]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
don't refresh the menu if it's frozen
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492 #define SWIGTYPE_p_wxColour swig_types[30]
2493 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2494 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2495 #define SWIGTYPE_p_wxComboBox swig_types[33]
2496 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2497 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2498 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2499 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2500 #define SWIGTYPE_p_wxControl swig_types[38]
2501 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2502 #define SWIGTYPE_p_wxCursor swig_types[40]
2503 #define SWIGTYPE_p_wxDC swig_types[41]
2504 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2505 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2506 #define SWIGTYPE_p_wxDateTime swig_types[44]
2507 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2508 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2509 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2510 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2511 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2512 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2513 #define SWIGTYPE_p_wxEvent swig_types[51]
2514 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2515 #define SWIGTYPE_p_wxFSFile swig_types[53]
2516 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2517 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2521 #define SWIGTYPE_p_wxFont swig_types[59]
2522 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2523 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2525 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2526 #define SWIGTYPE_p_wxGauge swig_types[64]
2527 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2528 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2529 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2530 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2531 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2532 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2533 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2534 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2535 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2536 #define SWIGTYPE_p_wxIcon swig_types[74]
2537 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2538 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2539 #define SWIGTYPE_p_wxImage swig_types[77]
2540 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2541 #define SWIGTYPE_p_wxImageList swig_types[79]
2542 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2543 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2544 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2545 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2546 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2548 #define SWIGTYPE_p_wxListBox swig_types[86]
2549 #define SWIGTYPE_p_wxListEvent swig_types[87]
2550 #define SWIGTYPE_p_wxListItem swig_types[88]
2551 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2552 #define SWIGTYPE_p_wxListView swig_types[90]
2553 #define SWIGTYPE_p_wxListbook swig_types[91]
2554 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2555 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2556 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2557 #define SWIGTYPE_p_wxMenu swig_types[95]
2558 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2559 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2560 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2561 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2562 #define SWIGTYPE_p_wxMouseEvent swig_types[100]
2563 #define SWIGTYPE_p_wxMoveEvent swig_types[101]
2564 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2565 #define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2566 #define SWIGTYPE_p_wxNotebook swig_types[104]
2567 #define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2568 #define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2569 #define SWIGTYPE_p_wxObject swig_types[107]
2570 #define SWIGTYPE_p_wxPCXHandler swig_types[108]
2571 #define SWIGTYPE_p_wxPNGHandler swig_types[109]
2572 #define SWIGTYPE_p_wxPNMHandler swig_types[110]
2573 #define SWIGTYPE_p_wxPaintEvent swig_types[111]
2574 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2575 #define SWIGTYPE_p_wxPaperSize swig_types[113]
2576 #define SWIGTYPE_p_wxPickerBase swig_types[114]
2577 #define SWIGTYPE_p_wxPoint swig_types[115]
2578 #define SWIGTYPE_p_wxPyApp swig_types[116]
2579 #define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2580 #define SWIGTYPE_p_wxPyControl swig_types[118]
2581 #define SWIGTYPE_p_wxPyEvent swig_types[119]
2582 #define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2583 #define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2584 #define SWIGTYPE_p_wxPySizer swig_types[122]
2585 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2586 #define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2587 #define SWIGTYPE_p_wxPyValidator swig_types[125]
2588 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2589 #define SWIGTYPE_p_wxRadioBox swig_types[127]
2590 #define SWIGTYPE_p_wxRadioButton swig_types[128]
2591 #define SWIGTYPE_p_wxRect swig_types[129]
2592 #define SWIGTYPE_p_wxScrollBar swig_types[130]
2593 #define SWIGTYPE_p_wxScrollEvent swig_types[131]
2594 #define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2595 #define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2596 #define SWIGTYPE_p_wxShowEvent swig_types[134]
2597 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2598 #define SWIGTYPE_p_wxSize swig_types[136]
2599 #define SWIGTYPE_p_wxSizeEvent swig_types[137]
2600 #define SWIGTYPE_p_wxSizer swig_types[138]
2601 #define SWIGTYPE_p_wxSizerItem swig_types[139]
2602 #define SWIGTYPE_p_wxSlider swig_types[140]
2603 #define SWIGTYPE_p_wxSpinButton swig_types[141]
2604 #define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2605 #define SWIGTYPE_p_wxSpinEvent swig_types[143]
2606 #define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2607 #define SWIGTYPE_p_wxStaticBox swig_types[145]
2608 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2609 #define SWIGTYPE_p_wxStaticLine swig_types[147]
2610 #define SWIGTYPE_p_wxStaticText swig_types[148]
2611 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2612 #define SWIGTYPE_p_wxString swig_types[150]
2613 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2614 #define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2615 #define SWIGTYPE_p_wxTextAttr swig_types[153]
2616 #define SWIGTYPE_p_wxTextCtrl swig_types[154]
2617 #define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2618 #define SWIGTYPE_p_wxToggleButton swig_types[156]
2619 #define SWIGTYPE_p_wxToolBar swig_types[157]
2620 #define SWIGTYPE_p_wxToolBarBase swig_types[158]
2621 #define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2622 #define SWIGTYPE_p_wxToolbook swig_types[160]
2623 #define SWIGTYPE_p_wxToolbookEvent swig_types[161]
2624 #define SWIGTYPE_p_wxTreeCtrl swig_types[162]
2625 #define SWIGTYPE_p_wxTreeEvent swig_types[163]
2626 #define SWIGTYPE_p_wxTreeItemId swig_types[164]
2627 #define SWIGTYPE_p_wxTreebook swig_types[165]
2628 #define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2629 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2630 #define SWIGTYPE_p_wxValidator swig_types[168]
2631 #define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2632 #define SWIGTYPE_p_wxWindow swig_types[170]
2633 #define SWIGTYPE_p_wxWindowBase swig_types[171]
2634 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[174]
2637 static swig_type_info *swig_types[176];
2638 static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _controls_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_controls_
2663
2664 #define SWIG_name "_controls_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741 static const wxString wxPyControlNameStr(wxControlNameStr);
2742
2743 const wxArrayString wxPyEmptyStringArray;
2744
2745 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2746
2747 #define SWIG_From_long PyInt_FromLong
2748
2749
2750 SWIGINTERNINLINE PyObject *
2751 SWIG_From_int (int value)
2752 {
2753 return SWIG_From_long (value);
2754 }
2755
2756
2757 #include <limits.h>
2758 #ifndef LLONG_MIN
2759 # define LLONG_MIN LONG_LONG_MIN
2760 #endif
2761 #ifndef LLONG_MAX
2762 # define LLONG_MAX LONG_LONG_MAX
2763 #endif
2764 #ifndef ULLONG_MAX
2765 # define ULLONG_MAX ULONG_LONG_MAX
2766 #endif
2767
2768
2769 SWIGINTERN int
2770 SWIG_AsVal_long (PyObject* obj, long* val)
2771 {
2772 if (PyNumber_Check(obj)) {
2773 if (val) *val = PyInt_AsLong(obj);
2774 return SWIG_OK;
2775 }
2776 return SWIG_TypeError;
2777 }
2778
2779
2780 SWIGINTERN int
2781 SWIG_AsVal_int (PyObject * obj, int *val)
2782 {
2783 long v;
2784 int res = SWIG_AsVal_long (obj, &v);
2785 if (SWIG_IsOK(res)) {
2786 if ((v < INT_MIN || v > INT_MAX)) {
2787 return SWIG_OverflowError;
2788 } else {
2789 if (val) *val = static_cast< int >(v);
2790 }
2791 }
2792 return res;
2793 }
2794
2795 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2796
2797 SWIGINTERN int
2798 SWIG_AsVal_bool (PyObject *obj, bool *val)
2799 {
2800 if (obj == Py_True) {
2801 if (val) *val = true;
2802 return SWIG_OK;
2803 } else if (obj == Py_False) {
2804 if (val) *val = false;
2805 return SWIG_OK;
2806 } else {
2807 long v = 0;
2808 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2809 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2810 return res;
2811 }
2812 }
2813
2814 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2815 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2816 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2817 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2818 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2819 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2820
2821 #include <wx/checklst.h>
2822
2823 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2824 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2825 if (clientData)
2826 {
2827 wxPyClientData* data = new wxPyClientData(clientData);
2828 self->Insert(item, pos, data);
2829 }
2830 else
2831 self->Insert(item, pos);
2832 }
2833
2834 SWIGINTERN int
2835 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2836 {
2837 long v = 0;
2838 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2839 return SWIG_TypeError;
2840 }
2841 else if (val)
2842 *val = (unsigned long)v;
2843 return SWIG_OK;
2844 }
2845
2846
2847 SWIGINTERN int
2848 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2849 {
2850 unsigned long v;
2851 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2852 if (SWIG_IsOK(res)) {
2853 if ((v > UINT_MAX)) {
2854 return SWIG_OverflowError;
2855 } else {
2856 if (val) *val = static_cast< unsigned int >(v);
2857 }
2858 }
2859 return res;
2860 }
2861
2862 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2863 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2864 wxArrayInt lst;
2865 self->GetSelections(lst);
2866 PyObject *tup = PyTuple_New(lst.GetCount());
2867 for (size_t i=0; i<lst.GetCount(); i++)
2868 {
2869 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2870 }
2871 wxPyEndBlockThreads(blocked);
2872 return tup;
2873 }
2874 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2875 #ifdef __WXMSW__
2876 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2877 self->GetItem(item)->SetTextColour(c);
2878 #endif
2879 }
2880 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2881 #ifdef __WXMSW__
2882 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2883 self->GetItem(item)->SetBackgroundColour(c);
2884 #endif
2885 }
2886 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2887 #ifdef __WXMSW__
2888 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2889 self->GetItem(item)->SetFont(f);
2890 #endif
2891 }
2892 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2893 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2894 self->AppendText(text);
2895 }
2896 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2897 return self->GetValue().Mid(from, to - from);
2898 }
2899 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2900 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2901 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2902 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2903 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2904
2905 SWIGINTERNINLINE PyObject*
2906 SWIG_From_unsigned_SS_long (unsigned long value)
2907 {
2908 return (value > LONG_MAX) ?
2909 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2910 }
2911
2912
2913 SWIGINTERNINLINE PyObject *
2914 SWIG_From_size_t (size_t value)
2915 {
2916 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2917 }
2918
2919
2920 SWIGINTERNINLINE PyObject *
2921 SWIG_From_unsigned_SS_int (unsigned int value)
2922 {
2923 return SWIG_From_unsigned_SS_long (value);
2924 }
2925
2926
2927 #include <wx/slider.h>
2928
2929
2930 static const wxString wxPySliderNameStr(wxSliderNameStr);
2931 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2932
2933 #if !wxUSE_TOGGLEBTN
2934 // implement dummy items for platforms that don't have this class
2935
2936 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2937
2938 class wxToggleButton : public wxControl
2939 {
2940 public:
2941 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2942 const wxPoint&, const wxSize&, long,
2943 const wxValidator&, const wxString&)
2944 { wxPyRaiseNotImplemented(); }
2945
2946 wxToggleButton()
2947 { wxPyRaiseNotImplemented(); }
2948 };
2949 #endif
2950
2951 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2952
2953 SWIGINTERNINLINE int
2954 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2955 {
2956 unsigned long v;
2957 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2958 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2959 return res;
2960 }
2961
2962 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2963 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2964 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2965 if (udata) {
2966 Py_INCREF(udata->m_obj);
2967 return udata->m_obj;
2968 } else {
2969 Py_INCREF(Py_None);
2970 return Py_None;
2971 }
2972 }
2973 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2974 self->SetClientData(new wxPyUserData(clientData));
2975 }
2976 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){
2977 wxPyUserData* udata = NULL;
2978 if (clientData && clientData != Py_None)
2979 udata = new wxPyUserData(clientData);
2980 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2981 shortHelp, longHelp, udata);
2982 }
2983 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){
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
2990 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2991 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2992 if (udata) {
2993 Py_INCREF(udata->m_obj);
2994 return udata->m_obj;
2995 } else {
2996 Py_INCREF(Py_None);
2997 return Py_None;
2998 }
2999 }
3000 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3001 self->SetToolClientData(id, new wxPyUserData(clientData));
3002 }
3003
3004 #include <wx/listctrl.h>
3005
3006 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3007 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3008 // Python aware sorting function for wxPyListCtrl
3009 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3010 int retval = 0;
3011 PyObject* func = (PyObject*)funcPtr;
3012 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3013
3014 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3015 PyObject* result = PyEval_CallObject(func, args);
3016 Py_DECREF(args);
3017 if (result) {
3018 retval = PyInt_AsLong(result);
3019 Py_DECREF(result);
3020 }
3021
3022 wxPyEndBlockThreads(blocked);
3023 return retval;
3024 }
3025
3026 // C++ Version of a Python aware class
3027 class wxPyListCtrl : public wxListCtrl {
3028 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3029 public:
3030 wxPyListCtrl() : wxListCtrl() {}
3031 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3032 const wxPoint& pos,
3033 const wxSize& size,
3034 long style,
3035 const wxValidator& validator,
3036 const wxString& name) :
3037 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3038
3039 bool Create(wxWindow* parent, wxWindowID id,
3040 const wxPoint& pos,
3041 const wxSize& size,
3042 long style,
3043 const wxValidator& validator,
3044 const wxString& name) {
3045 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3046 }
3047
3048 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3049 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3050
3051 // use the virtual version to avoid a confusing assert in the base class
3052 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3053 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3054
3055 PYPRIVATE;
3056 };
3057
3058 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3059
3060 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3061 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3062 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3063 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3064
3065
3066 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3067 wxListItem item;
3068 item.SetMask( wxLIST_MASK_STATE |
3069 wxLIST_MASK_TEXT |
3070 wxLIST_MASK_IMAGE |
3071 wxLIST_MASK_DATA |
3072 wxLIST_SET_ITEM |
3073 wxLIST_MASK_WIDTH |
3074 wxLIST_MASK_FORMAT
3075 );
3076 if (self->GetColumn(col, item))
3077 return new wxListItem(item);
3078 else
3079 return NULL;
3080 }
3081 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3082 wxListItem* info = new wxListItem;
3083 info->m_itemId = itemId;
3084 info->m_col = col;
3085 info->m_mask = 0xFFFF;
3086 self->GetItem(*info);
3087 return info;
3088 }
3089 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3090 wxPoint pos;
3091 self->GetItemPosition(item, pos);
3092 return pos;
3093 }
3094 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3095 wxRect rect;
3096 self->GetItemRect(item, rect, code);
3097 return rect;
3098 }
3099 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3100 if (!PyCallable_Check(func))
3101 return false;
3102 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3103 }
3104 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3105
3106 return self;
3107
3108
3109
3110 }
3111
3112 #include <wx/treectrl.h>
3113 #include "wx/wxPython/pytree.h"
3114
3115 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3116 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3117 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3118 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3119
3120 static wxTreeItemId wxNullTreeItemId;
3121
3122 // C++ version of Python aware wxTreeCtrl
3123 class wxPyTreeCtrl : public wxTreeCtrl {
3124 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3125 public:
3126 wxPyTreeCtrl() : wxTreeCtrl() {}
3127 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3128 const wxPoint& pos,
3129 const wxSize& size,
3130 long style,
3131 const wxValidator& validator,
3132 const wxString& name) :
3133 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3134
3135 bool Create(wxWindow *parent, wxWindowID id,
3136 const wxPoint& pos,
3137 const wxSize& size,
3138 long style,
3139 const wxValidator& validator,
3140 const wxString& name) {
3141 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3142 }
3143
3144
3145 int OnCompareItems(const wxTreeItemId& item1,
3146 const wxTreeItemId& item2) {
3147 int rval = 0;
3148 bool found;
3149 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3150 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3151 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3152 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3153 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3154 Py_DECREF(o1);
3155 Py_DECREF(o2);
3156 }
3157 wxPyEndBlockThreads(blocked);
3158 if (! found)
3159 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3160 return rval;
3161 }
3162 PYPRIVATE;
3163 };
3164
3165 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3166
3167
3168 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3169 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3170 if (data == NULL) {
3171 data = new wxPyTreeItemData();
3172 data->SetId(item); // set the id
3173 self->SetItemData(item, data);
3174 }
3175 return data;
3176 }
3177 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3178 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3179 if (data == NULL) {
3180 data = new wxPyTreeItemData();
3181 data->SetId(item); // set the id
3182 self->SetItemData(item, data);
3183 }
3184 return data->GetData();
3185 }
3186 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3187 data->SetId(item); // set the id
3188 self->SetItemData(item, data);
3189 }
3190 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3191 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3192 if (data == NULL) {
3193 data = new wxPyTreeItemData(obj);
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 } else
3197 data->SetData(obj);
3198 }
3199 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3200 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3201 PyObject* rval = PyList_New(0);
3202 wxArrayTreeItemIds array;
3203 size_t num, x;
3204 num = self->GetSelections(array);
3205 for (x=0; x < num; x++) {
3206 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3207 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3208 PyList_Append(rval, item);
3209 Py_DECREF(item);
3210 }
3211 wxPyEndBlockThreads(blocked);
3212 return rval;
3213 }
3214 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3215 void* cookie = 0;
3216 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3218 PyObject* tup = PyTuple_New(2);
3219 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3220 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3221 wxPyEndBlockThreads(blocked);
3222 return tup;
3223 }
3224 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3226 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3227 PyObject* tup = PyTuple_New(2);
3228 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3229 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3230 wxPyEndBlockThreads(blocked);
3231 return tup;
3232 }
3233 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3234 wxRect rect;
3235 if (self->GetBoundingRect(item, rect, textOnly)) {
3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3237 wxRect* r = new wxRect(rect);
3238 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3239 wxPyEndBlockThreads(blocked);
3240 return val;
3241 }
3242 else
3243 RETURN_NONE();
3244 }
3245 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3246
3247 SWIGINTERNINLINE PyObject*
3248 SWIG_From_bool (bool value)
3249 {
3250 return PyBool_FromLong(value ? 1 : 0);
3251 }
3252
3253 // C++ version of Python aware wxControl
3254 class wxPyControl : public wxControl
3255 {
3256 DECLARE_DYNAMIC_CLASS(wxPyControl)
3257 public:
3258 wxPyControl() : wxControl() {}
3259 wxPyControl(wxWindow* parent, const wxWindowID id,
3260 const wxPoint& pos = wxDefaultPosition,
3261 const wxSize& size = wxDefaultSize,
3262 long style = 0,
3263 const wxValidator& validator=wxDefaultValidator,
3264 const wxString& name = wxPyControlNameStr)
3265 : wxControl(parent, id, pos, size, style, validator, name) {}
3266
3267 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3268
3269 bool DoEraseBackground(wxDC* dc) {
3270 #ifdef __WXMSW__
3271 return wxWindow::DoEraseBackground(dc->GetHDC());
3272 #else
3273 dc->SetBackground(wxBrush(GetBackgroundColour()));
3274 dc->Clear();
3275 return true;
3276 #endif
3277 }
3278
3279 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3280 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3281 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3282 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3283
3284 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3285 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3286 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3287
3288 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3289 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3290
3291 DEC_PYCALLBACK__(InitDialog);
3292 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3293 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3294 DEC_PYCALLBACK_BOOL_(Validate);
3295
3296 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3297 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3298 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3299
3300 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3301 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3302
3303 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3304 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3305
3306 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3307
3308 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3309
3310 PYPRIVATE;
3311 };
3312
3313 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3314
3315 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3316 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3317 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3318 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3319
3320 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3321 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3322 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3323
3324 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3325 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3326
3327 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3328 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3329 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3330 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3331
3332 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3333 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3335
3336 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3337 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3338
3339 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3340 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3341
3342 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3343
3344 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3345
3346
3347
3348 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3349
3350 #include <wx/generic/dragimgg.h>
3351
3352 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3353 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3354 wxDateTime rv;
3355 self->GetRange(&rv, NULL);
3356 return rv;
3357 }
3358 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3359 wxDateTime rv;
3360 self->GetRange(NULL, &rv);
3361 return rv;
3362 }
3363 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3364 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3365 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3366 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3367 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3368 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3369 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3370 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3371 #ifdef __cplusplus
3372 extern "C" {
3373 #endif
3374 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3375 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3376 return 1;
3377 }
3378
3379
3380 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3381 PyObject *pyobj = 0;
3382
3383 {
3384 #if wxUSE_UNICODE
3385 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3386 #else
3387 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3388 #endif
3389 }
3390 return pyobj;
3391 }
3392
3393
3394 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj = 0;
3396 wxWindow *arg1 = (wxWindow *) 0 ;
3397 int arg2 = (int) -1 ;
3398 wxString const &arg3_defvalue = wxPyEmptyString ;
3399 wxString *arg3 = (wxString *) &arg3_defvalue ;
3400 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3401 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3402 wxSize const &arg5_defvalue = wxDefaultSize ;
3403 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3404 long arg6 = (long) 0 ;
3405 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3406 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3407 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3408 wxString *arg8 = (wxString *) &arg8_defvalue ;
3409 wxButton *result = 0 ;
3410 void *argp1 = 0 ;
3411 int res1 = 0 ;
3412 int val2 ;
3413 int ecode2 = 0 ;
3414 bool temp3 = false ;
3415 wxPoint temp4 ;
3416 wxSize temp5 ;
3417 long val6 ;
3418 int ecode6 = 0 ;
3419 void *argp7 = 0 ;
3420 int res7 = 0 ;
3421 bool temp8 = false ;
3422 PyObject * obj0 = 0 ;
3423 PyObject * obj1 = 0 ;
3424 PyObject * obj2 = 0 ;
3425 PyObject * obj3 = 0 ;
3426 PyObject * obj4 = 0 ;
3427 PyObject * obj5 = 0 ;
3428 PyObject * obj6 = 0 ;
3429 PyObject * obj7 = 0 ;
3430 char * kwnames[] = {
3431 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3432 };
3433
3434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3436 if (!SWIG_IsOK(res1)) {
3437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3438 }
3439 arg1 = reinterpret_cast< wxWindow * >(argp1);
3440 if (obj1) {
3441 ecode2 = SWIG_AsVal_int(obj1, &val2);
3442 if (!SWIG_IsOK(ecode2)) {
3443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3444 }
3445 arg2 = static_cast< int >(val2);
3446 }
3447 if (obj2) {
3448 {
3449 arg3 = wxString_in_helper(obj2);
3450 if (arg3 == NULL) SWIG_fail;
3451 temp3 = true;
3452 }
3453 }
3454 if (obj3) {
3455 {
3456 arg4 = &temp4;
3457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3458 }
3459 }
3460 if (obj4) {
3461 {
3462 arg5 = &temp5;
3463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3464 }
3465 }
3466 if (obj5) {
3467 ecode6 = SWIG_AsVal_long(obj5, &val6);
3468 if (!SWIG_IsOK(ecode6)) {
3469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3470 }
3471 arg6 = static_cast< long >(val6);
3472 }
3473 if (obj6) {
3474 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3475 if (!SWIG_IsOK(res7)) {
3476 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3477 }
3478 if (!argp7) {
3479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3480 }
3481 arg7 = reinterpret_cast< wxValidator * >(argp7);
3482 }
3483 if (obj7) {
3484 {
3485 arg8 = wxString_in_helper(obj7);
3486 if (arg8 == NULL) SWIG_fail;
3487 temp8 = true;
3488 }
3489 }
3490 {
3491 if (!wxPyCheckForApp()) SWIG_fail;
3492 PyThreadState* __tstate = wxPyBeginAllowThreads();
3493 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3498 {
3499 if (temp3)
3500 delete arg3;
3501 }
3502 {
3503 if (temp8)
3504 delete arg8;
3505 }
3506 return resultobj;
3507 fail:
3508 {
3509 if (temp3)
3510 delete arg3;
3511 }
3512 {
3513 if (temp8)
3514 delete arg8;
3515 }
3516 return NULL;
3517 }
3518
3519
3520 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3521 PyObject *resultobj = 0;
3522 wxButton *result = 0 ;
3523
3524 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3525 {
3526 if (!wxPyCheckForApp()) SWIG_fail;
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 result = (wxButton *)new wxButton();
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 }
3532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3533 return resultobj;
3534 fail:
3535 return NULL;
3536 }
3537
3538
3539 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3540 PyObject *resultobj = 0;
3541 wxButton *arg1 = (wxButton *) 0 ;
3542 wxWindow *arg2 = (wxWindow *) 0 ;
3543 int arg3 = (int) -1 ;
3544 wxString const &arg4_defvalue = wxPyEmptyString ;
3545 wxString *arg4 = (wxString *) &arg4_defvalue ;
3546 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3547 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3548 wxSize const &arg6_defvalue = wxDefaultSize ;
3549 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3550 long arg7 = (long) 0 ;
3551 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3552 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3553 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3554 wxString *arg9 = (wxString *) &arg9_defvalue ;
3555 bool result;
3556 void *argp1 = 0 ;
3557 int res1 = 0 ;
3558 void *argp2 = 0 ;
3559 int res2 = 0 ;
3560 int val3 ;
3561 int ecode3 = 0 ;
3562 bool temp4 = false ;
3563 wxPoint temp5 ;
3564 wxSize temp6 ;
3565 long val7 ;
3566 int ecode7 = 0 ;
3567 void *argp8 = 0 ;
3568 int res8 = 0 ;
3569 bool temp9 = false ;
3570 PyObject * obj0 = 0 ;
3571 PyObject * obj1 = 0 ;
3572 PyObject * obj2 = 0 ;
3573 PyObject * obj3 = 0 ;
3574 PyObject * obj4 = 0 ;
3575 PyObject * obj5 = 0 ;
3576 PyObject * obj6 = 0 ;
3577 PyObject * obj7 = 0 ;
3578 PyObject * obj8 = 0 ;
3579 char * kwnames[] = {
3580 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3581 };
3582
3583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3585 if (!SWIG_IsOK(res1)) {
3586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3587 }
3588 arg1 = reinterpret_cast< wxButton * >(argp1);
3589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3590 if (!SWIG_IsOK(res2)) {
3591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3592 }
3593 arg2 = reinterpret_cast< wxWindow * >(argp2);
3594 if (obj2) {
3595 ecode3 = SWIG_AsVal_int(obj2, &val3);
3596 if (!SWIG_IsOK(ecode3)) {
3597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3598 }
3599 arg3 = static_cast< int >(val3);
3600 }
3601 if (obj3) {
3602 {
3603 arg4 = wxString_in_helper(obj3);
3604 if (arg4 == NULL) SWIG_fail;
3605 temp4 = true;
3606 }
3607 }
3608 if (obj4) {
3609 {
3610 arg5 = &temp5;
3611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3612 }
3613 }
3614 if (obj5) {
3615 {
3616 arg6 = &temp6;
3617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3618 }
3619 }
3620 if (obj6) {
3621 ecode7 = SWIG_AsVal_long(obj6, &val7);
3622 if (!SWIG_IsOK(ecode7)) {
3623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3624 }
3625 arg7 = static_cast< long >(val7);
3626 }
3627 if (obj7) {
3628 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3629 if (!SWIG_IsOK(res8)) {
3630 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3631 }
3632 if (!argp8) {
3633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3634 }
3635 arg8 = reinterpret_cast< wxValidator * >(argp8);
3636 }
3637 if (obj8) {
3638 {
3639 arg9 = wxString_in_helper(obj8);
3640 if (arg9 == NULL) SWIG_fail;
3641 temp9 = true;
3642 }
3643 }
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 {
3651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3652 }
3653 {
3654 if (temp4)
3655 delete arg4;
3656 }
3657 {
3658 if (temp9)
3659 delete arg9;
3660 }
3661 return resultobj;
3662 fail:
3663 {
3664 if (temp4)
3665 delete arg4;
3666 }
3667 {
3668 if (temp9)
3669 delete arg9;
3670 }
3671 return NULL;
3672 }
3673
3674
3675 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3676 PyObject *resultobj = 0;
3677 wxButton *arg1 = (wxButton *) 0 ;
3678 void *argp1 = 0 ;
3679 int res1 = 0 ;
3680 PyObject *swig_obj[1] ;
3681
3682 if (!args) SWIG_fail;
3683 swig_obj[0] = args;
3684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3685 if (!SWIG_IsOK(res1)) {
3686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3687 }
3688 arg1 = reinterpret_cast< wxButton * >(argp1);
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 (arg1)->SetDefault();
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 resultobj = SWIG_Py_Void();
3696 return resultobj;
3697 fail:
3698 return NULL;
3699 }
3700
3701
3702 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3703 PyObject *resultobj = 0;
3704 wxSize result;
3705
3706 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 result = wxButton::GetDefaultSize();
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3714 return resultobj;
3715 fail:
3716 return NULL;
3717 }
3718
3719
3720 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3721 PyObject *resultobj = 0;
3722 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3723 SwigValueWrapper<wxVisualAttributes > result;
3724 int val1 ;
3725 int ecode1 = 0 ;
3726 PyObject * obj0 = 0 ;
3727 char * kwnames[] = {
3728 (char *) "variant", NULL
3729 };
3730
3731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3732 if (obj0) {
3733 ecode1 = SWIG_AsVal_int(obj0, &val1);
3734 if (!SWIG_IsOK(ecode1)) {
3735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3736 }
3737 arg1 = static_cast< wxWindowVariant >(val1);
3738 }
3739 {
3740 if (!wxPyCheckForApp()) SWIG_fail;
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = wxButton::GetClassDefaultAttributes(arg1);
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3747 return resultobj;
3748 fail:
3749 return NULL;
3750 }
3751
3752
3753 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3754 PyObject *obj;
3755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3756 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3757 return SWIG_Py_Void();
3758 }
3759
3760 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 return SWIG_Python_InitShadowInstance(args);
3762 }
3763
3764 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3765 PyObject *resultobj = 0;
3766 wxWindow *arg1 = (wxWindow *) 0 ;
3767 int arg2 = (int) -1 ;
3768 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3769 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3770 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3771 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3772 wxSize const &arg5_defvalue = wxDefaultSize ;
3773 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3774 long arg6 = (long) wxBU_AUTODRAW ;
3775 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3776 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3777 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3778 wxString *arg8 = (wxString *) &arg8_defvalue ;
3779 wxBitmapButton *result = 0 ;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 int val2 ;
3783 int ecode2 = 0 ;
3784 void *argp3 = 0 ;
3785 int res3 = 0 ;
3786 wxPoint temp4 ;
3787 wxSize temp5 ;
3788 long val6 ;
3789 int ecode6 = 0 ;
3790 void *argp7 = 0 ;
3791 int res7 = 0 ;
3792 bool temp8 = false ;
3793 PyObject * obj0 = 0 ;
3794 PyObject * obj1 = 0 ;
3795 PyObject * obj2 = 0 ;
3796 PyObject * obj3 = 0 ;
3797 PyObject * obj4 = 0 ;
3798 PyObject * obj5 = 0 ;
3799 PyObject * obj6 = 0 ;
3800 PyObject * obj7 = 0 ;
3801 char * kwnames[] = {
3802 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3803 };
3804
3805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3807 if (!SWIG_IsOK(res1)) {
3808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3809 }
3810 arg1 = reinterpret_cast< wxWindow * >(argp1);
3811 if (obj1) {
3812 ecode2 = SWIG_AsVal_int(obj1, &val2);
3813 if (!SWIG_IsOK(ecode2)) {
3814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3815 }
3816 arg2 = static_cast< int >(val2);
3817 }
3818 if (obj2) {
3819 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3820 if (!SWIG_IsOK(res3)) {
3821 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3822 }
3823 if (!argp3) {
3824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3825 }
3826 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3827 }
3828 if (obj3) {
3829 {
3830 arg4 = &temp4;
3831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3832 }
3833 }
3834 if (obj4) {
3835 {
3836 arg5 = &temp5;
3837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3838 }
3839 }
3840 if (obj5) {
3841 ecode6 = SWIG_AsVal_long(obj5, &val6);
3842 if (!SWIG_IsOK(ecode6)) {
3843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3844 }
3845 arg6 = static_cast< long >(val6);
3846 }
3847 if (obj6) {
3848 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3849 if (!SWIG_IsOK(res7)) {
3850 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3851 }
3852 if (!argp7) {
3853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3854 }
3855 arg7 = reinterpret_cast< wxValidator * >(argp7);
3856 }
3857 if (obj7) {
3858 {
3859 arg8 = wxString_in_helper(obj7);
3860 if (arg8 == NULL) SWIG_fail;
3861 temp8 = true;
3862 }
3863 }
3864 {
3865 if (!wxPyCheckForApp()) SWIG_fail;
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3872 {
3873 if (temp8)
3874 delete arg8;
3875 }
3876 return resultobj;
3877 fail:
3878 {
3879 if (temp8)
3880 delete arg8;
3881 }
3882 return NULL;
3883 }
3884
3885
3886 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3887 PyObject *resultobj = 0;
3888 wxBitmapButton *result = 0 ;
3889
3890 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3891 {
3892 if (!wxPyCheckForApp()) SWIG_fail;
3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
3894 result = (wxBitmapButton *)new wxBitmapButton();
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3899 return resultobj;
3900 fail:
3901 return NULL;
3902 }
3903
3904
3905 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3906 PyObject *resultobj = 0;
3907 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3908 wxWindow *arg2 = (wxWindow *) 0 ;
3909 int arg3 = (int) -1 ;
3910 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3911 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3912 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3913 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3914 wxSize const &arg6_defvalue = wxDefaultSize ;
3915 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3916 long arg7 = (long) wxBU_AUTODRAW ;
3917 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3918 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3919 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3920 wxString *arg9 = (wxString *) &arg9_defvalue ;
3921 bool result;
3922 void *argp1 = 0 ;
3923 int res1 = 0 ;
3924 void *argp2 = 0 ;
3925 int res2 = 0 ;
3926 int val3 ;
3927 int ecode3 = 0 ;
3928 void *argp4 = 0 ;
3929 int res4 = 0 ;
3930 wxPoint temp5 ;
3931 wxSize temp6 ;
3932 long val7 ;
3933 int ecode7 = 0 ;
3934 void *argp8 = 0 ;
3935 int res8 = 0 ;
3936 bool temp9 = false ;
3937 PyObject * obj0 = 0 ;
3938 PyObject * obj1 = 0 ;
3939 PyObject * obj2 = 0 ;
3940 PyObject * obj3 = 0 ;
3941 PyObject * obj4 = 0 ;
3942 PyObject * obj5 = 0 ;
3943 PyObject * obj6 = 0 ;
3944 PyObject * obj7 = 0 ;
3945 PyObject * obj8 = 0 ;
3946 char * kwnames[] = {
3947 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3948 };
3949
3950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3952 if (!SWIG_IsOK(res1)) {
3953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3954 }
3955 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3957 if (!SWIG_IsOK(res2)) {
3958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3959 }
3960 arg2 = reinterpret_cast< wxWindow * >(argp2);
3961 if (obj2) {
3962 ecode3 = SWIG_AsVal_int(obj2, &val3);
3963 if (!SWIG_IsOK(ecode3)) {
3964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3965 }
3966 arg3 = static_cast< int >(val3);
3967 }
3968 if (obj3) {
3969 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3970 if (!SWIG_IsOK(res4)) {
3971 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3972 }
3973 if (!argp4) {
3974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3975 }
3976 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3977 }
3978 if (obj4) {
3979 {
3980 arg5 = &temp5;
3981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3982 }
3983 }
3984 if (obj5) {
3985 {
3986 arg6 = &temp6;
3987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3988 }
3989 }
3990 if (obj6) {
3991 ecode7 = SWIG_AsVal_long(obj6, &val7);
3992 if (!SWIG_IsOK(ecode7)) {
3993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3994 }
3995 arg7 = static_cast< long >(val7);
3996 }
3997 if (obj7) {
3998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3999 if (!SWIG_IsOK(res8)) {
4000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4001 }
4002 if (!argp8) {
4003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4004 }
4005 arg8 = reinterpret_cast< wxValidator * >(argp8);
4006 }
4007 if (obj8) {
4008 {
4009 arg9 = wxString_in_helper(obj8);
4010 if (arg9 == NULL) SWIG_fail;
4011 temp9 = true;
4012 }
4013 }
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 {
4021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4022 }
4023 {
4024 if (temp9)
4025 delete arg9;
4026 }
4027 return resultobj;
4028 fail:
4029 {
4030 if (temp9)
4031 delete arg9;
4032 }
4033 return NULL;
4034 }
4035
4036
4037 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4038 PyObject *resultobj = 0;
4039 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4040 wxBitmap result;
4041 void *argp1 = 0 ;
4042 int res1 = 0 ;
4043 PyObject *swig_obj[1] ;
4044
4045 if (!args) SWIG_fail;
4046 swig_obj[0] = args;
4047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4048 if (!SWIG_IsOK(res1)) {
4049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4050 }
4051 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 result = (arg1)->GetBitmapLabel();
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4059 return resultobj;
4060 fail:
4061 return NULL;
4062 }
4063
4064
4065 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4066 PyObject *resultobj = 0;
4067 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4068 wxBitmap result;
4069 void *argp1 = 0 ;
4070 int res1 = 0 ;
4071 PyObject *swig_obj[1] ;
4072
4073 if (!args) SWIG_fail;
4074 swig_obj[0] = args;
4075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4076 if (!SWIG_IsOK(res1)) {
4077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4078 }
4079 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4080 {
4081 PyThreadState* __tstate = wxPyBeginAllowThreads();
4082 result = (arg1)->GetBitmapDisabled();
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4087 return resultobj;
4088 fail:
4089 return NULL;
4090 }
4091
4092
4093 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4094 PyObject *resultobj = 0;
4095 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4096 wxBitmap result;
4097 void *argp1 = 0 ;
4098 int res1 = 0 ;
4099 PyObject *swig_obj[1] ;
4100
4101 if (!args) SWIG_fail;
4102 swig_obj[0] = args;
4103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4104 if (!SWIG_IsOK(res1)) {
4105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4106 }
4107 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 result = (arg1)->GetBitmapFocus();
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4115 return resultobj;
4116 fail:
4117 return NULL;
4118 }
4119
4120
4121 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4122 PyObject *resultobj = 0;
4123 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4124 wxBitmap result;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 PyObject *swig_obj[1] ;
4128
4129 if (!args) SWIG_fail;
4130 swig_obj[0] = args;
4131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4132 if (!SWIG_IsOK(res1)) {
4133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4134 }
4135 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (arg1)->GetBitmapSelected();
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4150 PyObject *resultobj = 0;
4151 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4152 wxBitmap result;
4153 void *argp1 = 0 ;
4154 int res1 = 0 ;
4155 PyObject *swig_obj[1] ;
4156
4157 if (!args) SWIG_fail;
4158 swig_obj[0] = args;
4159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4160 if (!SWIG_IsOK(res1)) {
4161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4162 }
4163 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 result = (arg1)->GetBitmapHover();
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4171 return resultobj;
4172 fail:
4173 return NULL;
4174 }
4175
4176
4177 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj = 0;
4179 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4180 wxBitmap *arg2 = 0 ;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 void *argp2 = 0 ;
4184 int res2 = 0 ;
4185 PyObject * obj0 = 0 ;
4186 PyObject * obj1 = 0 ;
4187 char * kwnames[] = {
4188 (char *) "self",(char *) "bitmap", NULL
4189 };
4190
4191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4193 if (!SWIG_IsOK(res1)) {
4194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4195 }
4196 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4198 if (!SWIG_IsOK(res2)) {
4199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4200 }
4201 if (!argp2) {
4202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4203 }
4204 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 resultobj = SWIG_Py_Void();
4212 return resultobj;
4213 fail:
4214 return NULL;
4215 }
4216
4217
4218 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4219 PyObject *resultobj = 0;
4220 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4221 wxBitmap *arg2 = 0 ;
4222 void *argp1 = 0 ;
4223 int res1 = 0 ;
4224 void *argp2 = 0 ;
4225 int res2 = 0 ;
4226 PyObject * obj0 = 0 ;
4227 PyObject * obj1 = 0 ;
4228 char * kwnames[] = {
4229 (char *) "self",(char *) "bitmap", NULL
4230 };
4231
4232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4234 if (!SWIG_IsOK(res1)) {
4235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4236 }
4237 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4239 if (!SWIG_IsOK(res2)) {
4240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4241 }
4242 if (!argp2) {
4243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4244 }
4245 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4246 {
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 resultobj = SWIG_Py_Void();
4253 return resultobj;
4254 fail:
4255 return NULL;
4256 }
4257
4258
4259 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj = 0;
4261 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4262 wxBitmap *arg2 = 0 ;
4263 void *argp1 = 0 ;
4264 int res1 = 0 ;
4265 void *argp2 = 0 ;
4266 int res2 = 0 ;
4267 PyObject * obj0 = 0 ;
4268 PyObject * obj1 = 0 ;
4269 char * kwnames[] = {
4270 (char *) "self",(char *) "bitmap", NULL
4271 };
4272
4273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4275 if (!SWIG_IsOK(res1)) {
4276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4277 }
4278 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4280 if (!SWIG_IsOK(res2)) {
4281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4282 }
4283 if (!argp2) {
4284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4285 }
4286 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 resultobj = SWIG_Py_Void();
4294 return resultobj;
4295 fail:
4296 return NULL;
4297 }
4298
4299
4300 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4301 PyObject *resultobj = 0;
4302 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4303 wxBitmap *arg2 = 0 ;
4304 void *argp1 = 0 ;
4305 int res1 = 0 ;
4306 void *argp2 = 0 ;
4307 int res2 = 0 ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 char * kwnames[] = {
4311 (char *) "self",(char *) "bitmap", NULL
4312 };
4313
4314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4316 if (!SWIG_IsOK(res1)) {
4317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4318 }
4319 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4321 if (!SWIG_IsOK(res2)) {
4322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4323 }
4324 if (!argp2) {
4325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4326 }
4327 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_Py_Void();
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj = 0;
4343 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4344 wxBitmap *arg2 = 0 ;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
4347 void *argp2 = 0 ;
4348 int res2 = 0 ;
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
4351 char * kwnames[] = {
4352 (char *) "self",(char *) "hover", NULL
4353 };
4354
4355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4359 }
4360 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4362 if (!SWIG_IsOK(res2)) {
4363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4364 }
4365 if (!argp2) {
4366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4367 }
4368 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_Py_Void();
4376 return resultobj;
4377 fail:
4378 return NULL;
4379 }
4380
4381
4382 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj = 0;
4384 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4385 int arg2 ;
4386 int arg3 ;
4387 void *argp1 = 0 ;
4388 int res1 = 0 ;
4389 int val2 ;
4390 int ecode2 = 0 ;
4391 int val3 ;
4392 int ecode3 = 0 ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 PyObject * obj2 = 0 ;
4396 char * kwnames[] = {
4397 (char *) "self",(char *) "x",(char *) "y", NULL
4398 };
4399
4400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4402 if (!SWIG_IsOK(res1)) {
4403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4404 }
4405 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4406 ecode2 = SWIG_AsVal_int(obj1, &val2);
4407 if (!SWIG_IsOK(ecode2)) {
4408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4409 }
4410 arg2 = static_cast< int >(val2);
4411 ecode3 = SWIG_AsVal_int(obj2, &val3);
4412 if (!SWIG_IsOK(ecode3)) {
4413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4414 }
4415 arg3 = static_cast< int >(val3);
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 (arg1)->SetMargins(arg2,arg3);
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 resultobj = SWIG_Py_Void();
4423 return resultobj;
4424 fail:
4425 return NULL;
4426 }
4427
4428
4429 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4430 PyObject *resultobj = 0;
4431 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4432 int result;
4433 void *argp1 = 0 ;
4434 int res1 = 0 ;
4435 PyObject *swig_obj[1] ;
4436
4437 if (!args) SWIG_fail;
4438 swig_obj[0] = args;
4439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4442 }
4443 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4447 wxPyEndAllowThreads(__tstate);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 resultobj = SWIG_From_int(static_cast< int >(result));
4451 return resultobj;
4452 fail:
4453 return NULL;
4454 }
4455
4456
4457 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4458 PyObject *resultobj = 0;
4459 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4460 int result;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 PyObject *swig_obj[1] ;
4464
4465 if (!args) SWIG_fail;
4466 swig_obj[0] = args;
4467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4468 if (!SWIG_IsOK(res1)) {
4469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4470 }
4471 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_From_int(static_cast< int >(result));
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486 PyObject *obj;
4487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4488 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4489 return SWIG_Py_Void();
4490 }
4491
4492 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 return SWIG_Python_InitShadowInstance(args);
4494 }
4495
4496 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4497 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4498 return 1;
4499 }
4500
4501
4502 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4503 PyObject *pyobj = 0;
4504
4505 {
4506 #if wxUSE_UNICODE
4507 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4508 #else
4509 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4510 #endif
4511 }
4512 return pyobj;
4513 }
4514
4515
4516 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj = 0;
4518 wxWindow *arg1 = (wxWindow *) 0 ;
4519 int arg2 = (int) -1 ;
4520 wxString const &arg3_defvalue = wxPyEmptyString ;
4521 wxString *arg3 = (wxString *) &arg3_defvalue ;
4522 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4523 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4524 wxSize const &arg5_defvalue = wxDefaultSize ;
4525 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4526 long arg6 = (long) 0 ;
4527 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4528 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4529 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4530 wxString *arg8 = (wxString *) &arg8_defvalue ;
4531 wxCheckBox *result = 0 ;
4532 void *argp1 = 0 ;
4533 int res1 = 0 ;
4534 int val2 ;
4535 int ecode2 = 0 ;
4536 bool temp3 = false ;
4537 wxPoint temp4 ;
4538 wxSize temp5 ;
4539 long val6 ;
4540 int ecode6 = 0 ;
4541 void *argp7 = 0 ;
4542 int res7 = 0 ;
4543 bool temp8 = false ;
4544 PyObject * obj0 = 0 ;
4545 PyObject * obj1 = 0 ;
4546 PyObject * obj2 = 0 ;
4547 PyObject * obj3 = 0 ;
4548 PyObject * obj4 = 0 ;
4549 PyObject * obj5 = 0 ;
4550 PyObject * obj6 = 0 ;
4551 PyObject * obj7 = 0 ;
4552 char * kwnames[] = {
4553 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4554 };
4555
4556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4558 if (!SWIG_IsOK(res1)) {
4559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4560 }
4561 arg1 = reinterpret_cast< wxWindow * >(argp1);
4562 if (obj1) {
4563 ecode2 = SWIG_AsVal_int(obj1, &val2);
4564 if (!SWIG_IsOK(ecode2)) {
4565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4566 }
4567 arg2 = static_cast< int >(val2);
4568 }
4569 if (obj2) {
4570 {
4571 arg3 = wxString_in_helper(obj2);
4572 if (arg3 == NULL) SWIG_fail;
4573 temp3 = true;
4574 }
4575 }
4576 if (obj3) {
4577 {
4578 arg4 = &temp4;
4579 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4580 }
4581 }
4582 if (obj4) {
4583 {
4584 arg5 = &temp5;
4585 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4586 }
4587 }
4588 if (obj5) {
4589 ecode6 = SWIG_AsVal_long(obj5, &val6);
4590 if (!SWIG_IsOK(ecode6)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4592 }
4593 arg6 = static_cast< long >(val6);
4594 }
4595 if (obj6) {
4596 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4597 if (!SWIG_IsOK(res7)) {
4598 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4599 }
4600 if (!argp7) {
4601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4602 }
4603 arg7 = reinterpret_cast< wxValidator * >(argp7);
4604 }
4605 if (obj7) {
4606 {
4607 arg8 = wxString_in_helper(obj7);
4608 if (arg8 == NULL) SWIG_fail;
4609 temp8 = true;
4610 }
4611 }
4612 {
4613 if (!wxPyCheckForApp()) SWIG_fail;
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4620 {
4621 if (temp3)
4622 delete arg3;
4623 }
4624 {
4625 if (temp8)
4626 delete arg8;
4627 }
4628 return resultobj;
4629 fail:
4630 {
4631 if (temp3)
4632 delete arg3;
4633 }
4634 {
4635 if (temp8)
4636 delete arg8;
4637 }
4638 return NULL;
4639 }
4640
4641
4642 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4643 PyObject *resultobj = 0;
4644 wxCheckBox *result = 0 ;
4645
4646 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4647 {
4648 if (!wxPyCheckForApp()) SWIG_fail;
4649 PyThreadState* __tstate = wxPyBeginAllowThreads();
4650 result = (wxCheckBox *)new wxCheckBox();
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4655 return resultobj;
4656 fail:
4657 return NULL;
4658 }
4659
4660
4661 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj = 0;
4663 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4664 wxWindow *arg2 = (wxWindow *) 0 ;
4665 int arg3 = (int) -1 ;
4666 wxString const &arg4_defvalue = wxPyEmptyString ;
4667 wxString *arg4 = (wxString *) &arg4_defvalue ;
4668 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4669 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4670 wxSize const &arg6_defvalue = wxDefaultSize ;
4671 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4672 long arg7 = (long) 0 ;
4673 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4674 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4675 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4676 wxString *arg9 = (wxString *) &arg9_defvalue ;
4677 bool result;
4678 void *argp1 = 0 ;
4679 int res1 = 0 ;
4680 void *argp2 = 0 ;
4681 int res2 = 0 ;
4682 int val3 ;
4683 int ecode3 = 0 ;
4684 bool temp4 = false ;
4685 wxPoint temp5 ;
4686 wxSize temp6 ;
4687 long val7 ;
4688 int ecode7 = 0 ;
4689 void *argp8 = 0 ;
4690 int res8 = 0 ;
4691 bool temp9 = false ;
4692 PyObject * obj0 = 0 ;
4693 PyObject * obj1 = 0 ;
4694 PyObject * obj2 = 0 ;
4695 PyObject * obj3 = 0 ;
4696 PyObject * obj4 = 0 ;
4697 PyObject * obj5 = 0 ;
4698 PyObject * obj6 = 0 ;
4699 PyObject * obj7 = 0 ;
4700 PyObject * obj8 = 0 ;
4701 char * kwnames[] = {
4702 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4703 };
4704
4705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4709 }
4710 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4712 if (!SWIG_IsOK(res2)) {
4713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4714 }
4715 arg2 = reinterpret_cast< wxWindow * >(argp2);
4716 if (obj2) {
4717 ecode3 = SWIG_AsVal_int(obj2, &val3);
4718 if (!SWIG_IsOK(ecode3)) {
4719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4720 }
4721 arg3 = static_cast< int >(val3);
4722 }
4723 if (obj3) {
4724 {
4725 arg4 = wxString_in_helper(obj3);
4726 if (arg4 == NULL) SWIG_fail;
4727 temp4 = true;
4728 }
4729 }
4730 if (obj4) {
4731 {
4732 arg5 = &temp5;
4733 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4734 }
4735 }
4736 if (obj5) {
4737 {
4738 arg6 = &temp6;
4739 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4740 }
4741 }
4742 if (obj6) {
4743 ecode7 = SWIG_AsVal_long(obj6, &val7);
4744 if (!SWIG_IsOK(ecode7)) {
4745 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4746 }
4747 arg7 = static_cast< long >(val7);
4748 }
4749 if (obj7) {
4750 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4751 if (!SWIG_IsOK(res8)) {
4752 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4753 }
4754 if (!argp8) {
4755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4756 }
4757 arg8 = reinterpret_cast< wxValidator * >(argp8);
4758 }
4759 if (obj8) {
4760 {
4761 arg9 = wxString_in_helper(obj8);
4762 if (arg9 == NULL) SWIG_fail;
4763 temp9 = true;
4764 }
4765 }
4766 {
4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
4768 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 {
4773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4774 }
4775 {
4776 if (temp4)
4777 delete arg4;
4778 }
4779 {
4780 if (temp9)
4781 delete arg9;
4782 }
4783 return resultobj;
4784 fail:
4785 {
4786 if (temp4)
4787 delete arg4;
4788 }
4789 {
4790 if (temp9)
4791 delete arg9;
4792 }
4793 return NULL;
4794 }
4795
4796
4797 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4798 PyObject *resultobj = 0;
4799 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4800 bool result;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4810 }
4811 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (bool)(arg1)->GetValue();
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 {
4819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4820 }
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4828 PyObject *resultobj = 0;
4829 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4830 bool result;
4831 void *argp1 = 0 ;
4832 int res1 = 0 ;
4833 PyObject *swig_obj[1] ;
4834
4835 if (!args) SWIG_fail;
4836 swig_obj[0] = args;
4837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4838 if (!SWIG_IsOK(res1)) {
4839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4840 }
4841 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 result = (bool)(arg1)->IsChecked();
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 {
4849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4850 }
4851 return resultobj;
4852 fail:
4853 return NULL;
4854 }
4855
4856
4857 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj = 0;
4859 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4860 bool arg2 ;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 bool val2 ;
4864 int ecode2 = 0 ;
4865 PyObject * obj0 = 0 ;
4866 PyObject * obj1 = 0 ;
4867 char * kwnames[] = {
4868 (char *) "self",(char *) "state", NULL
4869 };
4870
4871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4873 if (!SWIG_IsOK(res1)) {
4874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4875 }
4876 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4877 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4878 if (!SWIG_IsOK(ecode2)) {
4879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4880 }
4881 arg2 = static_cast< bool >(val2);
4882 {
4883 PyThreadState* __tstate = wxPyBeginAllowThreads();
4884 (arg1)->SetValue(arg2);
4885 wxPyEndAllowThreads(__tstate);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 resultobj = SWIG_Py_Void();
4889 return resultobj;
4890 fail:
4891 return NULL;
4892 }
4893
4894
4895 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4896 PyObject *resultobj = 0;
4897 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4898 wxCheckBoxState result;
4899 void *argp1 = 0 ;
4900 int res1 = 0 ;
4901 PyObject *swig_obj[1] ;
4902
4903 if (!args) SWIG_fail;
4904 swig_obj[0] = args;
4905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4906 if (!SWIG_IsOK(res1)) {
4907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4908 }
4909 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4910 {
4911 PyThreadState* __tstate = wxPyBeginAllowThreads();
4912 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 resultobj = SWIG_From_int(static_cast< int >(result));
4917 return resultobj;
4918 fail:
4919 return NULL;
4920 }
4921
4922
4923 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4924 PyObject *resultobj = 0;
4925 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4926 wxCheckBoxState arg2 ;
4927 void *argp1 = 0 ;
4928 int res1 = 0 ;
4929 int val2 ;
4930 int ecode2 = 0 ;
4931 PyObject * obj0 = 0 ;
4932 PyObject * obj1 = 0 ;
4933 char * kwnames[] = {
4934 (char *) "self",(char *) "state", NULL
4935 };
4936
4937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4939 if (!SWIG_IsOK(res1)) {
4940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4941 }
4942 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4943 ecode2 = SWIG_AsVal_int(obj1, &val2);
4944 if (!SWIG_IsOK(ecode2)) {
4945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4946 }
4947 arg2 = static_cast< wxCheckBoxState >(val2);
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 (arg1)->Set3StateValue(arg2);
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_Py_Void();
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4964 bool result;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject *swig_obj[1] ;
4968
4969 if (!args) SWIG_fail;
4970 swig_obj[0] = args;
4971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4972 if (!SWIG_IsOK(res1)) {
4973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4974 }
4975 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 {
4983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4984 }
4985 return resultobj;
4986 fail:
4987 return NULL;
4988 }
4989
4990
4991 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4992 PyObject *resultobj = 0;
4993 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4994 bool result;
4995 void *argp1 = 0 ;
4996 int res1 = 0 ;
4997 PyObject *swig_obj[1] ;
4998
4999 if (!args) SWIG_fail;
5000 swig_obj[0] = args;
5001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5002 if (!SWIG_IsOK(res1)) {
5003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5004 }
5005 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 {
5013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5014 }
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj = 0;
5023 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5024 SwigValueWrapper<wxVisualAttributes > result;
5025 int val1 ;
5026 int ecode1 = 0 ;
5027 PyObject * obj0 = 0 ;
5028 char * kwnames[] = {
5029 (char *) "variant", NULL
5030 };
5031
5032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5033 if (obj0) {
5034 ecode1 = SWIG_AsVal_int(obj0, &val1);
5035 if (!SWIG_IsOK(ecode1)) {
5036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5037 }
5038 arg1 = static_cast< wxWindowVariant >(val1);
5039 }
5040 {
5041 if (!wxPyCheckForApp()) SWIG_fail;
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 PyObject *obj;
5056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5057 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5058 return SWIG_Py_Void();
5059 }
5060
5061 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 return SWIG_Python_InitShadowInstance(args);
5063 }
5064
5065 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5066 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5067 return 1;
5068 }
5069
5070
5071 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5072 PyObject *pyobj = 0;
5073
5074 {
5075 #if wxUSE_UNICODE
5076 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5077 #else
5078 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5079 #endif
5080 }
5081 return pyobj;
5082 }
5083
5084
5085 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5086 PyObject *resultobj = 0;
5087 wxWindow *arg1 = (wxWindow *) 0 ;
5088 int arg2 = (int) -1 ;
5089 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5090 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5091 wxSize const &arg4_defvalue = wxDefaultSize ;
5092 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5093 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5094 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5095 long arg6 = (long) 0 ;
5096 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5097 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5098 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5099 wxString *arg8 = (wxString *) &arg8_defvalue ;
5100 wxChoice *result = 0 ;
5101 void *argp1 = 0 ;
5102 int res1 = 0 ;
5103 int val2 ;
5104 int ecode2 = 0 ;
5105 wxPoint temp3 ;
5106 wxSize temp4 ;
5107 bool temp5 = false ;
5108 long val6 ;
5109 int ecode6 = 0 ;
5110 void *argp7 = 0 ;
5111 int res7 = 0 ;
5112 bool temp8 = false ;
5113 PyObject * obj0 = 0 ;
5114 PyObject * obj1 = 0 ;
5115 PyObject * obj2 = 0 ;
5116 PyObject * obj3 = 0 ;
5117 PyObject * obj4 = 0 ;
5118 PyObject * obj5 = 0 ;
5119 PyObject * obj6 = 0 ;
5120 PyObject * obj7 = 0 ;
5121 char * kwnames[] = {
5122 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5123 };
5124
5125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5129 }
5130 arg1 = reinterpret_cast< wxWindow * >(argp1);
5131 if (obj1) {
5132 ecode2 = SWIG_AsVal_int(obj1, &val2);
5133 if (!SWIG_IsOK(ecode2)) {
5134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5135 }
5136 arg2 = static_cast< int >(val2);
5137 }
5138 if (obj2) {
5139 {
5140 arg3 = &temp3;
5141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5142 }
5143 }
5144 if (obj3) {
5145 {
5146 arg4 = &temp4;
5147 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5148 }
5149 }
5150 if (obj4) {
5151 {
5152 if (! PySequence_Check(obj4)) {
5153 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5154 SWIG_fail;
5155 }
5156 arg5 = new wxArrayString;
5157 temp5 = true;
5158 int i, len=PySequence_Length(obj4);
5159 for (i=0; i<len; i++) {
5160 PyObject* item = PySequence_GetItem(obj4, i);
5161 wxString* s = wxString_in_helper(item);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 arg5->Add(*s);
5164 delete s;
5165 Py_DECREF(item);
5166 }
5167 }
5168 }
5169 if (obj5) {
5170 ecode6 = SWIG_AsVal_long(obj5, &val6);
5171 if (!SWIG_IsOK(ecode6)) {
5172 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5173 }
5174 arg6 = static_cast< long >(val6);
5175 }
5176 if (obj6) {
5177 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5178 if (!SWIG_IsOK(res7)) {
5179 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5180 }
5181 if (!argp7) {
5182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5183 }
5184 arg7 = reinterpret_cast< wxValidator * >(argp7);
5185 }
5186 if (obj7) {
5187 {
5188 arg8 = wxString_in_helper(obj7);
5189 if (arg8 == NULL) SWIG_fail;
5190 temp8 = true;
5191 }
5192 }
5193 {
5194 if (!wxPyCheckForApp()) SWIG_fail;
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5201 {
5202 if (temp5) delete arg5;
5203 }
5204 {
5205 if (temp8)
5206 delete arg8;
5207 }
5208 return resultobj;
5209 fail:
5210 {
5211 if (temp5) delete arg5;
5212 }
5213 {
5214 if (temp8)
5215 delete arg8;
5216 }
5217 return NULL;
5218 }
5219
5220
5221 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxChoice *result = 0 ;
5224
5225 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5226 {
5227 if (!wxPyCheckForApp()) SWIG_fail;
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (wxChoice *)new wxChoice();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5234 return resultobj;
5235 fail:
5236 return NULL;
5237 }
5238
5239
5240 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5241 PyObject *resultobj = 0;
5242 wxChoice *arg1 = (wxChoice *) 0 ;
5243 wxWindow *arg2 = (wxWindow *) 0 ;
5244 int arg3 = (int) -1 ;
5245 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5246 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5247 wxSize const &arg5_defvalue = wxDefaultSize ;
5248 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5249 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5250 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5251 long arg7 = (long) 0 ;
5252 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5253 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5254 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5255 wxString *arg9 = (wxString *) &arg9_defvalue ;
5256 bool result;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 void *argp2 = 0 ;
5260 int res2 = 0 ;
5261 int val3 ;
5262 int ecode3 = 0 ;
5263 wxPoint temp4 ;
5264 wxSize temp5 ;
5265 bool temp6 = false ;
5266 long val7 ;
5267 int ecode7 = 0 ;
5268 void *argp8 = 0 ;
5269 int res8 = 0 ;
5270 bool temp9 = false ;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 PyObject * obj2 = 0 ;
5274 PyObject * obj3 = 0 ;
5275 PyObject * obj4 = 0 ;
5276 PyObject * obj5 = 0 ;
5277 PyObject * obj6 = 0 ;
5278 PyObject * obj7 = 0 ;
5279 PyObject * obj8 = 0 ;
5280 char * kwnames[] = {
5281 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5282 };
5283
5284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5286 if (!SWIG_IsOK(res1)) {
5287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5288 }
5289 arg1 = reinterpret_cast< wxChoice * >(argp1);
5290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5291 if (!SWIG_IsOK(res2)) {
5292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5293 }
5294 arg2 = reinterpret_cast< wxWindow * >(argp2);
5295 if (obj2) {
5296 ecode3 = SWIG_AsVal_int(obj2, &val3);
5297 if (!SWIG_IsOK(ecode3)) {
5298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5299 }
5300 arg3 = static_cast< int >(val3);
5301 }
5302 if (obj3) {
5303 {
5304 arg4 = &temp4;
5305 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5306 }
5307 }
5308 if (obj4) {
5309 {
5310 arg5 = &temp5;
5311 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5312 }
5313 }
5314 if (obj5) {
5315 {
5316 if (! PySequence_Check(obj5)) {
5317 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5318 SWIG_fail;
5319 }
5320 arg6 = new wxArrayString;
5321 temp6 = true;
5322 int i, len=PySequence_Length(obj5);
5323 for (i=0; i<len; i++) {
5324 PyObject* item = PySequence_GetItem(obj5, i);
5325 wxString* s = wxString_in_helper(item);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 arg6->Add(*s);
5328 delete s;
5329 Py_DECREF(item);
5330 }
5331 }
5332 }
5333 if (obj6) {
5334 ecode7 = SWIG_AsVal_long(obj6, &val7);
5335 if (!SWIG_IsOK(ecode7)) {
5336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5337 }
5338 arg7 = static_cast< long >(val7);
5339 }
5340 if (obj7) {
5341 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5342 if (!SWIG_IsOK(res8)) {
5343 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5344 }
5345 if (!argp8) {
5346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5347 }
5348 arg8 = reinterpret_cast< wxValidator * >(argp8);
5349 }
5350 if (obj8) {
5351 {
5352 arg9 = wxString_in_helper(obj8);
5353 if (arg9 == NULL) SWIG_fail;
5354 temp9 = true;
5355 }
5356 }
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 {
5364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5365 }
5366 {
5367 if (temp6) delete arg6;
5368 }
5369 {
5370 if (temp9)
5371 delete arg9;
5372 }
5373 return resultobj;
5374 fail:
5375 {
5376 if (temp6) delete arg6;
5377 }
5378 {
5379 if (temp9)
5380 delete arg9;
5381 }
5382 return NULL;
5383 }
5384
5385
5386 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5387 PyObject *resultobj = 0;
5388 wxChoice *arg1 = (wxChoice *) 0 ;
5389 int result;
5390 void *argp1 = 0 ;
5391 int res1 = 0 ;
5392 PyObject *swig_obj[1] ;
5393
5394 if (!args) SWIG_fail;
5395 swig_obj[0] = args;
5396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5399 }
5400 arg1 = reinterpret_cast< wxChoice * >(argp1);
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5404 wxPyEndAllowThreads(__tstate);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 resultobj = SWIG_From_int(static_cast< int >(result));
5408 return resultobj;
5409 fail:
5410 return NULL;
5411 }
5412
5413
5414 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5415 PyObject *resultobj = 0;
5416 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5417 SwigValueWrapper<wxVisualAttributes > result;
5418 int val1 ;
5419 int ecode1 = 0 ;
5420 PyObject * obj0 = 0 ;
5421 char * kwnames[] = {
5422 (char *) "variant", NULL
5423 };
5424
5425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5426 if (obj0) {
5427 ecode1 = SWIG_AsVal_int(obj0, &val1);
5428 if (!SWIG_IsOK(ecode1)) {
5429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5430 }
5431 arg1 = static_cast< wxWindowVariant >(val1);
5432 }
5433 {
5434 if (!wxPyCheckForApp()) SWIG_fail;
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = wxChoice::GetClassDefaultAttributes(arg1);
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5441 return resultobj;
5442 fail:
5443 return NULL;
5444 }
5445
5446
5447 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5448 PyObject *obj;
5449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5450 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5451 return SWIG_Py_Void();
5452 }
5453
5454 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 return SWIG_Python_InitShadowInstance(args);
5456 }
5457
5458 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5459 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5460 return 1;
5461 }
5462
5463
5464 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5465 PyObject *pyobj = 0;
5466
5467 {
5468 #if wxUSE_UNICODE
5469 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5470 #else
5471 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5472 #endif
5473 }
5474 return pyobj;
5475 }
5476
5477
5478 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5479 PyObject *resultobj = 0;
5480 wxWindow *arg1 = (wxWindow *) 0 ;
5481 int arg2 = (int) -1 ;
5482 wxString const &arg3_defvalue = wxPyEmptyString ;
5483 wxString *arg3 = (wxString *) &arg3_defvalue ;
5484 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5485 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5486 wxSize const &arg5_defvalue = wxDefaultSize ;
5487 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5488 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5489 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5490 long arg7 = (long) 0 ;
5491 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5492 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5493 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5494 wxString *arg9 = (wxString *) &arg9_defvalue ;
5495 wxComboBox *result = 0 ;
5496 void *argp1 = 0 ;
5497 int res1 = 0 ;
5498 int val2 ;
5499 int ecode2 = 0 ;
5500 bool temp3 = false ;
5501 wxPoint temp4 ;
5502 wxSize temp5 ;
5503 bool temp6 = false ;
5504 long val7 ;
5505 int ecode7 = 0 ;
5506 void *argp8 = 0 ;
5507 int res8 = 0 ;
5508 bool temp9 = false ;
5509 PyObject * obj0 = 0 ;
5510 PyObject * obj1 = 0 ;
5511 PyObject * obj2 = 0 ;
5512 PyObject * obj3 = 0 ;
5513 PyObject * obj4 = 0 ;
5514 PyObject * obj5 = 0 ;
5515 PyObject * obj6 = 0 ;
5516 PyObject * obj7 = 0 ;
5517 PyObject * obj8 = 0 ;
5518 char * kwnames[] = {
5519 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5520 };
5521
5522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5524 if (!SWIG_IsOK(res1)) {
5525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5526 }
5527 arg1 = reinterpret_cast< wxWindow * >(argp1);
5528 if (obj1) {
5529 ecode2 = SWIG_AsVal_int(obj1, &val2);
5530 if (!SWIG_IsOK(ecode2)) {
5531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5532 }
5533 arg2 = static_cast< int >(val2);
5534 }
5535 if (obj2) {
5536 {
5537 arg3 = wxString_in_helper(obj2);
5538 if (arg3 == NULL) SWIG_fail;
5539 temp3 = true;
5540 }
5541 }
5542 if (obj3) {
5543 {
5544 arg4 = &temp4;
5545 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5546 }
5547 }
5548 if (obj4) {
5549 {
5550 arg5 = &temp5;
5551 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5552 }
5553 }
5554 if (obj5) {
5555 {
5556 if (! PySequence_Check(obj5)) {
5557 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5558 SWIG_fail;
5559 }
5560 arg6 = new wxArrayString;
5561 temp6 = true;
5562 int i, len=PySequence_Length(obj5);
5563 for (i=0; i<len; i++) {
5564 PyObject* item = PySequence_GetItem(obj5, i);
5565 wxString* s = wxString_in_helper(item);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 arg6->Add(*s);
5568 delete s;
5569 Py_DECREF(item);
5570 }
5571 }
5572 }
5573 if (obj6) {
5574 ecode7 = SWIG_AsVal_long(obj6, &val7);
5575 if (!SWIG_IsOK(ecode7)) {
5576 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5577 }
5578 arg7 = static_cast< long >(val7);
5579 }
5580 if (obj7) {
5581 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5582 if (!SWIG_IsOK(res8)) {
5583 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5584 }
5585 if (!argp8) {
5586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5587 }
5588 arg8 = reinterpret_cast< wxValidator * >(argp8);
5589 }
5590 if (obj8) {
5591 {
5592 arg9 = wxString_in_helper(obj8);
5593 if (arg9 == NULL) SWIG_fail;
5594 temp9 = true;
5595 }
5596 }
5597 {
5598 if (!wxPyCheckForApp()) SWIG_fail;
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 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);
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5605 {
5606 if (temp3)
5607 delete arg3;
5608 }
5609 {
5610 if (temp6) delete arg6;
5611 }
5612 {
5613 if (temp9)
5614 delete arg9;
5615 }
5616 return resultobj;
5617 fail:
5618 {
5619 if (temp3)
5620 delete arg3;
5621 }
5622 {
5623 if (temp6) delete arg6;
5624 }
5625 {
5626 if (temp9)
5627 delete arg9;
5628 }
5629 return NULL;
5630 }
5631
5632
5633 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5634 PyObject *resultobj = 0;
5635 wxComboBox *result = 0 ;
5636
5637 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5638 {
5639 if (!wxPyCheckForApp()) SWIG_fail;
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (wxComboBox *)new wxComboBox();
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj = 0;
5654 wxComboBox *arg1 = (wxComboBox *) 0 ;
5655 wxWindow *arg2 = (wxWindow *) 0 ;
5656 int arg3 = (int) -1 ;
5657 wxString const &arg4_defvalue = wxPyEmptyString ;
5658 wxString *arg4 = (wxString *) &arg4_defvalue ;
5659 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5660 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5661 wxSize const &arg6_defvalue = wxDefaultSize ;
5662 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5663 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5664 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5665 long arg8 = (long) 0 ;
5666 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5667 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5668 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5669 wxString *arg10 = (wxString *) &arg10_defvalue ;
5670 bool result;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 void *argp2 = 0 ;
5674 int res2 = 0 ;
5675 int val3 ;
5676 int ecode3 = 0 ;
5677 bool temp4 = false ;
5678 wxPoint temp5 ;
5679 wxSize temp6 ;
5680 bool temp7 = false ;
5681 long val8 ;
5682 int ecode8 = 0 ;
5683 void *argp9 = 0 ;
5684 int res9 = 0 ;
5685 bool temp10 = false ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 PyObject * obj2 = 0 ;
5689 PyObject * obj3 = 0 ;
5690 PyObject * obj4 = 0 ;
5691 PyObject * obj5 = 0 ;
5692 PyObject * obj6 = 0 ;
5693 PyObject * obj7 = 0 ;
5694 PyObject * obj8 = 0 ;
5695 PyObject * obj9 = 0 ;
5696 char * kwnames[] = {
5697 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5698 };
5699
5700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5702 if (!SWIG_IsOK(res1)) {
5703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5704 }
5705 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5707 if (!SWIG_IsOK(res2)) {
5708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5709 }
5710 arg2 = reinterpret_cast< wxWindow * >(argp2);
5711 if (obj2) {
5712 ecode3 = SWIG_AsVal_int(obj2, &val3);
5713 if (!SWIG_IsOK(ecode3)) {
5714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5715 }
5716 arg3 = static_cast< int >(val3);
5717 }
5718 if (obj3) {
5719 {
5720 arg4 = wxString_in_helper(obj3);
5721 if (arg4 == NULL) SWIG_fail;
5722 temp4 = true;
5723 }
5724 }
5725 if (obj4) {
5726 {
5727 arg5 = &temp5;
5728 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5729 }
5730 }
5731 if (obj5) {
5732 {
5733 arg6 = &temp6;
5734 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5735 }
5736 }
5737 if (obj6) {
5738 {
5739 if (! PySequence_Check(obj6)) {
5740 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5741 SWIG_fail;
5742 }
5743 arg7 = new wxArrayString;
5744 temp7 = true;
5745 int i, len=PySequence_Length(obj6);
5746 for (i=0; i<len; i++) {
5747 PyObject* item = PySequence_GetItem(obj6, i);
5748 wxString* s = wxString_in_helper(item);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 arg7->Add(*s);
5751 delete s;
5752 Py_DECREF(item);
5753 }
5754 }
5755 }
5756 if (obj7) {
5757 ecode8 = SWIG_AsVal_long(obj7, &val8);
5758 if (!SWIG_IsOK(ecode8)) {
5759 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5760 }
5761 arg8 = static_cast< long >(val8);
5762 }
5763 if (obj8) {
5764 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5765 if (!SWIG_IsOK(res9)) {
5766 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5767 }
5768 if (!argp9) {
5769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5770 }
5771 arg9 = reinterpret_cast< wxValidator * >(argp9);
5772 }
5773 if (obj9) {
5774 {
5775 arg10 = wxString_in_helper(obj9);
5776 if (arg10 == NULL) SWIG_fail;
5777 temp10 = true;
5778 }
5779 }
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 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);
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 {
5787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5788 }
5789 {
5790 if (temp4)
5791 delete arg4;
5792 }
5793 {
5794 if (temp7) delete arg7;
5795 }
5796 {
5797 if (temp10)
5798 delete arg10;
5799 }
5800 return resultobj;
5801 fail:
5802 {
5803 if (temp4)
5804 delete arg4;
5805 }
5806 {
5807 if (temp7) delete arg7;
5808 }
5809 {
5810 if (temp10)
5811 delete arg10;
5812 }
5813 return NULL;
5814 }
5815
5816
5817 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5818 PyObject *resultobj = 0;
5819 wxComboBox *arg1 = (wxComboBox *) 0 ;
5820 wxString result;
5821 void *argp1 = 0 ;
5822 int res1 = 0 ;
5823 PyObject *swig_obj[1] ;
5824
5825 if (!args) SWIG_fail;
5826 swig_obj[0] = args;
5827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5828 if (!SWIG_IsOK(res1)) {
5829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5830 }
5831 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5832 {
5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
5834 result = ((wxComboBox const *)arg1)->GetValue();
5835 wxPyEndAllowThreads(__tstate);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
5838 {
5839 #if wxUSE_UNICODE
5840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5841 #else
5842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5843 #endif
5844 }
5845 return resultobj;
5846 fail:
5847 return NULL;
5848 }
5849
5850
5851 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj = 0;
5853 wxComboBox *arg1 = (wxComboBox *) 0 ;
5854 wxString *arg2 = 0 ;
5855 void *argp1 = 0 ;
5856 int res1 = 0 ;
5857 bool temp2 = false ;
5858 PyObject * obj0 = 0 ;
5859 PyObject * obj1 = 0 ;
5860 char * kwnames[] = {
5861 (char *) "self",(char *) "value", NULL
5862 };
5863
5864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5866 if (!SWIG_IsOK(res1)) {
5867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5868 }
5869 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5870 {
5871 arg2 = wxString_in_helper(obj1);
5872 if (arg2 == NULL) SWIG_fail;
5873 temp2 = true;
5874 }
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 (arg1)->SetValue((wxString const &)*arg2);
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_Py_Void();
5882 {
5883 if (temp2)
5884 delete arg2;
5885 }
5886 return resultobj;
5887 fail:
5888 {
5889 if (temp2)
5890 delete arg2;
5891 }
5892 return NULL;
5893 }
5894
5895
5896 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5897 PyObject *resultobj = 0;
5898 wxComboBox *arg1 = (wxComboBox *) 0 ;
5899 void *argp1 = 0 ;
5900 int res1 = 0 ;
5901 PyObject *swig_obj[1] ;
5902
5903 if (!args) SWIG_fail;
5904 swig_obj[0] = args;
5905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5908 }
5909 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->Copy();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxComboBox *arg1 = (wxComboBox *) 0 ;
5926 void *argp1 = 0 ;
5927 int res1 = 0 ;
5928 PyObject *swig_obj[1] ;
5929
5930 if (!args) SWIG_fail;
5931 swig_obj[0] = args;
5932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5933 if (!SWIG_IsOK(res1)) {
5934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5935 }
5936 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Cut();
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_Py_Void();
5944 return resultobj;
5945 fail:
5946 return NULL;
5947 }
5948
5949
5950 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5962 }
5963 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 (arg1)->Paste();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_Py_Void();
5971 return resultobj;
5972 fail:
5973 return NULL;
5974 }
5975
5976
5977 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5978 PyObject *resultobj = 0;
5979 wxComboBox *arg1 = (wxComboBox *) 0 ;
5980 long arg2 ;
5981 void *argp1 = 0 ;
5982 int res1 = 0 ;
5983 long val2 ;
5984 int ecode2 = 0 ;
5985 PyObject * obj0 = 0 ;
5986 PyObject * obj1 = 0 ;
5987 char * kwnames[] = {
5988 (char *) "self",(char *) "pos", NULL
5989 };
5990
5991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5995 }
5996 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5997 ecode2 = SWIG_AsVal_long(obj1, &val2);
5998 if (!SWIG_IsOK(ecode2)) {
5999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6000 }
6001 arg2 = static_cast< long >(val2);
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 (arg1)->SetInsertionPoint(arg2);
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 resultobj = SWIG_Py_Void();
6009 return resultobj;
6010 fail:
6011 return NULL;
6012 }
6013
6014
6015 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6016 PyObject *resultobj = 0;
6017 wxComboBox *arg1 = (wxComboBox *) 0 ;
6018 long result;
6019 void *argp1 = 0 ;
6020 int res1 = 0 ;
6021 PyObject *swig_obj[1] ;
6022
6023 if (!args) SWIG_fail;
6024 swig_obj[0] = args;
6025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6026 if (!SWIG_IsOK(res1)) {
6027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6028 }
6029 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 resultobj = SWIG_From_long(static_cast< long >(result));
6037 return resultobj;
6038 fail:
6039 return NULL;
6040 }
6041
6042
6043 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6044 PyObject *resultobj = 0;
6045 wxComboBox *arg1 = (wxComboBox *) 0 ;
6046 long result;
6047 void *argp1 = 0 ;
6048 int res1 = 0 ;
6049 PyObject *swig_obj[1] ;
6050
6051 if (!args) SWIG_fail;
6052 swig_obj[0] = args;
6053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6056 }
6057 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_From_long(static_cast< long >(result));
6065 return resultobj;
6066 fail:
6067 return NULL;
6068 }
6069
6070
6071 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6072 PyObject *resultobj = 0;
6073 wxComboBox *arg1 = (wxComboBox *) 0 ;
6074 long arg2 ;
6075 long arg3 ;
6076 wxString *arg4 = 0 ;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 long val2 ;
6080 int ecode2 = 0 ;
6081 long val3 ;
6082 int ecode3 = 0 ;
6083 bool temp4 = false ;
6084 PyObject * obj0 = 0 ;
6085 PyObject * obj1 = 0 ;
6086 PyObject * obj2 = 0 ;
6087 PyObject * obj3 = 0 ;
6088 char * kwnames[] = {
6089 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6090 };
6091
6092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6094 if (!SWIG_IsOK(res1)) {
6095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6096 }
6097 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6098 ecode2 = SWIG_AsVal_long(obj1, &val2);
6099 if (!SWIG_IsOK(ecode2)) {
6100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6101 }
6102 arg2 = static_cast< long >(val2);
6103 ecode3 = SWIG_AsVal_long(obj2, &val3);
6104 if (!SWIG_IsOK(ecode3)) {
6105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6106 }
6107 arg3 = static_cast< long >(val3);
6108 {
6109 arg4 = wxString_in_helper(obj3);
6110 if (arg4 == NULL) SWIG_fail;
6111 temp4 = true;
6112 }
6113 {
6114 PyThreadState* __tstate = wxPyBeginAllowThreads();
6115 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 resultobj = SWIG_Py_Void();
6120 {
6121 if (temp4)
6122 delete arg4;
6123 }
6124 return resultobj;
6125 fail:
6126 {
6127 if (temp4)
6128 delete arg4;
6129 }
6130 return NULL;
6131 }
6132
6133
6134 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj = 0;
6136 wxComboBox *arg1 = (wxComboBox *) 0 ;
6137 long arg2 ;
6138 long arg3 ;
6139 void *argp1 = 0 ;
6140 int res1 = 0 ;
6141 long val2 ;
6142 int ecode2 = 0 ;
6143 long val3 ;
6144 int ecode3 = 0 ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 PyObject * obj2 = 0 ;
6148 char * kwnames[] = {
6149 (char *) "self",(char *) "from",(char *) "to", NULL
6150 };
6151
6152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6156 }
6157 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6158 ecode2 = SWIG_AsVal_long(obj1, &val2);
6159 if (!SWIG_IsOK(ecode2)) {
6160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6161 }
6162 arg2 = static_cast< long >(val2);
6163 ecode3 = SWIG_AsVal_long(obj2, &val3);
6164 if (!SWIG_IsOK(ecode3)) {
6165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6166 }
6167 arg3 = static_cast< long >(val3);
6168 {
6169 PyThreadState* __tstate = wxPyBeginAllowThreads();
6170 (arg1)->SetSelection(arg2,arg3);
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 resultobj = SWIG_Py_Void();
6175 return resultobj;
6176 fail:
6177 return NULL;
6178 }
6179
6180
6181 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxComboBox *arg1 = (wxComboBox *) 0 ;
6184 long *arg2 = (long *) 0 ;
6185 long *arg3 = (long *) 0 ;
6186 void *argp1 = 0 ;
6187 int res1 = 0 ;
6188 long temp2 ;
6189 int res2 = SWIG_TMPOBJ ;
6190 long temp3 ;
6191 int res3 = SWIG_TMPOBJ ;
6192 PyObject *swig_obj[1] ;
6193
6194 arg2 = &temp2;
6195 arg3 = &temp3;
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6201 }
6202 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 (arg1)->GetSelection(arg2,arg3);
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_Py_Void();
6210 if (SWIG_IsTmpObj(res2)) {
6211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6212 } else {
6213 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6215 }
6216 if (SWIG_IsTmpObj(res3)) {
6217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6218 } else {
6219 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6221 }
6222 return resultobj;
6223 fail:
6224 return NULL;
6225 }
6226
6227
6228 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6229 PyObject *resultobj = 0;
6230 wxComboBox *arg1 = (wxComboBox *) 0 ;
6231 int result;
6232 void *argp1 = 0 ;
6233 int res1 = 0 ;
6234 PyObject *swig_obj[1] ;
6235
6236 if (!args) SWIG_fail;
6237 swig_obj[0] = args;
6238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6239 if (!SWIG_IsOK(res1)) {
6240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6241 }
6242 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6246 wxPyEndAllowThreads(__tstate);
6247 if (PyErr_Occurred()) SWIG_fail;
6248 }
6249 resultobj = SWIG_From_int(static_cast< int >(result));
6250 return resultobj;
6251 fail:
6252 return NULL;
6253 }
6254
6255
6256 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6257 PyObject *resultobj = 0;
6258 wxComboBox *arg1 = (wxComboBox *) 0 ;
6259 wxString *arg2 = 0 ;
6260 bool result;
6261 void *argp1 = 0 ;
6262 int res1 = 0 ;
6263 bool temp2 = false ;
6264 PyObject * obj0 = 0 ;
6265 PyObject * obj1 = 0 ;
6266 char * kwnames[] = {
6267 (char *) "self",(char *) "string", NULL
6268 };
6269
6270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6272 if (!SWIG_IsOK(res1)) {
6273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6274 }
6275 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6276 {
6277 arg2 = wxString_in_helper(obj1);
6278 if (arg2 == NULL) SWIG_fail;
6279 temp2 = true;
6280 }
6281 {
6282 PyThreadState* __tstate = wxPyBeginAllowThreads();
6283 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 {
6288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6289 }
6290 {
6291 if (temp2)
6292 delete arg2;
6293 }
6294 return resultobj;
6295 fail:
6296 {
6297 if (temp2)
6298 delete arg2;
6299 }
6300 return NULL;
6301 }
6302
6303
6304 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6305 PyObject *resultobj = 0;
6306 wxComboBox *arg1 = (wxComboBox *) 0 ;
6307 int arg2 ;
6308 wxString *arg3 = 0 ;
6309 void *argp1 = 0 ;
6310 int res1 = 0 ;
6311 int val2 ;
6312 int ecode2 = 0 ;
6313 bool temp3 = false ;
6314 PyObject * obj0 = 0 ;
6315 PyObject * obj1 = 0 ;
6316 PyObject * obj2 = 0 ;
6317 char * kwnames[] = {
6318 (char *) "self",(char *) "n",(char *) "string", NULL
6319 };
6320
6321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6323 if (!SWIG_IsOK(res1)) {
6324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6325 }
6326 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6327 ecode2 = SWIG_AsVal_int(obj1, &val2);
6328 if (!SWIG_IsOK(ecode2)) {
6329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6330 }
6331 arg2 = static_cast< int >(val2);
6332 {
6333 arg3 = wxString_in_helper(obj2);
6334 if (arg3 == NULL) SWIG_fail;
6335 temp3 = true;
6336 }
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 (arg1)->SetString(arg2,(wxString const &)*arg3);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_Py_Void();
6344 {
6345 if (temp3)
6346 delete arg3;
6347 }
6348 return resultobj;
6349 fail:
6350 {
6351 if (temp3)
6352 delete arg3;
6353 }
6354 return NULL;
6355 }
6356
6357
6358 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj = 0;
6360 wxComboBox *arg1 = (wxComboBox *) 0 ;
6361 bool arg2 ;
6362 void *argp1 = 0 ;
6363 int res1 = 0 ;
6364 bool val2 ;
6365 int ecode2 = 0 ;
6366 PyObject * obj0 = 0 ;
6367 PyObject * obj1 = 0 ;
6368 char * kwnames[] = {
6369 (char *) "self",(char *) "editable", NULL
6370 };
6371
6372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6374 if (!SWIG_IsOK(res1)) {
6375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6376 }
6377 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6378 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6379 if (!SWIG_IsOK(ecode2)) {
6380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6381 }
6382 arg2 = static_cast< bool >(val2);
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 (arg1)->SetEditable(arg2);
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391 fail:
6392 return NULL;
6393 }
6394
6395
6396 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6397 PyObject *resultobj = 0;
6398 wxComboBox *arg1 = (wxComboBox *) 0 ;
6399 void *argp1 = 0 ;
6400 int res1 = 0 ;
6401 PyObject *swig_obj[1] ;
6402
6403 if (!args) SWIG_fail;
6404 swig_obj[0] = args;
6405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6406 if (!SWIG_IsOK(res1)) {
6407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6408 }
6409 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 (arg1)->SetInsertionPointEnd();
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj = 0;
6425 wxComboBox *arg1 = (wxComboBox *) 0 ;
6426 long arg2 ;
6427 long arg3 ;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 long val2 ;
6431 int ecode2 = 0 ;
6432 long val3 ;
6433 int ecode3 = 0 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 PyObject * obj2 = 0 ;
6437 char * kwnames[] = {
6438 (char *) "self",(char *) "from",(char *) "to", NULL
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6445 }
6446 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6447 ecode2 = SWIG_AsVal_long(obj1, &val2);
6448 if (!SWIG_IsOK(ecode2)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6450 }
6451 arg2 = static_cast< long >(val2);
6452 ecode3 = SWIG_AsVal_long(obj2, &val3);
6453 if (!SWIG_IsOK(ecode3)) {
6454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6455 }
6456 arg3 = static_cast< long >(val3);
6457 {
6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
6459 (arg1)->Remove(arg2,arg3);
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_Py_Void();
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxComboBox *arg1 = (wxComboBox *) 0 ;
6473 bool result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6483 }
6484 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 {
6492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6493 }
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6512 }
6513 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->Undo();
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxComboBox *arg1 = (wxComboBox *) 0 ;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->Redo();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 resultobj = SWIG_Py_Void();
6548 return resultobj;
6549 fail:
6550 return NULL;
6551 }
6552
6553
6554 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 wxComboBox *arg1 = (wxComboBox *) 0 ;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6566 }
6567 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 (arg1)->SelectAll();
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 resultobj = SWIG_Py_Void();
6575 return resultobj;
6576 fail:
6577 return NULL;
6578 }
6579
6580
6581 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6582 PyObject *resultobj = 0;
6583 wxComboBox *arg1 = (wxComboBox *) 0 ;
6584 bool result;
6585 void *argp1 = 0 ;
6586 int res1 = 0 ;
6587 PyObject *swig_obj[1] ;
6588
6589 if (!args) SWIG_fail;
6590 swig_obj[0] = args;
6591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6592 if (!SWIG_IsOK(res1)) {
6593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6594 }
6595 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6604 }
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 wxComboBox *arg1 = (wxComboBox *) 0 ;
6614 bool result;
6615 void *argp1 = 0 ;
6616 int res1 = 0 ;
6617 PyObject *swig_obj[1] ;
6618
6619 if (!args) SWIG_fail;
6620 swig_obj[0] = args;
6621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6624 }
6625 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6626 {
6627 PyThreadState* __tstate = wxPyBeginAllowThreads();
6628 result = (bool)((wxComboBox const *)arg1)->CanCut();
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 {
6633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6634 }
6635 return resultobj;
6636 fail:
6637 return NULL;
6638 }
6639
6640
6641 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6642 PyObject *resultobj = 0;
6643 wxComboBox *arg1 = (wxComboBox *) 0 ;
6644 bool result;
6645 void *argp1 = 0 ;
6646 int res1 = 0 ;
6647 PyObject *swig_obj[1] ;
6648
6649 if (!args) SWIG_fail;
6650 swig_obj[0] = args;
6651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6652 if (!SWIG_IsOK(res1)) {
6653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6654 }
6655 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 {
6663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6664 }
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6672 PyObject *resultobj = 0;
6673 wxComboBox *arg1 = (wxComboBox *) 0 ;
6674 bool result;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 PyObject *swig_obj[1] ;
6678
6679 if (!args) SWIG_fail;
6680 swig_obj[0] = args;
6681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6682 if (!SWIG_IsOK(res1)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6684 }
6685 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 {
6693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6694 }
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 wxComboBox *arg1 = (wxComboBox *) 0 ;
6704 bool result;
6705 void *argp1 = 0 ;
6706 int res1 = 0 ;
6707 PyObject *swig_obj[1] ;
6708
6709 if (!args) SWIG_fail;
6710 swig_obj[0] = args;
6711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6712 if (!SWIG_IsOK(res1)) {
6713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6714 }
6715 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 {
6723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6724 }
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6734 SwigValueWrapper<wxVisualAttributes > result;
6735 int val1 ;
6736 int ecode1 = 0 ;
6737 PyObject * obj0 = 0 ;
6738 char * kwnames[] = {
6739 (char *) "variant", NULL
6740 };
6741
6742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6743 if (obj0) {
6744 ecode1 = SWIG_AsVal_int(obj0, &val1);
6745 if (!SWIG_IsOK(ecode1)) {
6746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6747 }
6748 arg1 = static_cast< wxWindowVariant >(val1);
6749 }
6750 {
6751 if (!wxPyCheckForApp()) SWIG_fail;
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = wxComboBox::GetClassDefaultAttributes(arg1);
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6765 PyObject *obj;
6766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6767 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6768 return SWIG_Py_Void();
6769 }
6770
6771 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 return SWIG_Python_InitShadowInstance(args);
6773 }
6774
6775 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6776 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6777 return 1;
6778 }
6779
6780
6781 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6782 PyObject *pyobj = 0;
6783
6784 {
6785 #if wxUSE_UNICODE
6786 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6787 #else
6788 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6789 #endif
6790 }
6791 return pyobj;
6792 }
6793
6794
6795 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxWindow *arg1 = (wxWindow *) 0 ;
6798 int arg2 = (int) -1 ;
6799 int arg3 = (int) 100 ;
6800 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6801 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6802 wxSize const &arg5_defvalue = wxDefaultSize ;
6803 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6804 long arg6 = (long) wxGA_HORIZONTAL ;
6805 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6806 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6807 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6808 wxString *arg8 = (wxString *) &arg8_defvalue ;
6809 wxGauge *result = 0 ;
6810 void *argp1 = 0 ;
6811 int res1 = 0 ;
6812 int val2 ;
6813 int ecode2 = 0 ;
6814 int val3 ;
6815 int ecode3 = 0 ;
6816 wxPoint temp4 ;
6817 wxSize temp5 ;
6818 long val6 ;
6819 int ecode6 = 0 ;
6820 void *argp7 = 0 ;
6821 int res7 = 0 ;
6822 bool temp8 = false ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 PyObject * obj2 = 0 ;
6826 PyObject * obj3 = 0 ;
6827 PyObject * obj4 = 0 ;
6828 PyObject * obj5 = 0 ;
6829 PyObject * obj6 = 0 ;
6830 PyObject * obj7 = 0 ;
6831 char * kwnames[] = {
6832 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6833 };
6834
6835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6837 if (!SWIG_IsOK(res1)) {
6838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6839 }
6840 arg1 = reinterpret_cast< wxWindow * >(argp1);
6841 if (obj1) {
6842 ecode2 = SWIG_AsVal_int(obj1, &val2);
6843 if (!SWIG_IsOK(ecode2)) {
6844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6845 }
6846 arg2 = static_cast< int >(val2);
6847 }
6848 if (obj2) {
6849 ecode3 = SWIG_AsVal_int(obj2, &val3);
6850 if (!SWIG_IsOK(ecode3)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6852 }
6853 arg3 = static_cast< int >(val3);
6854 }
6855 if (obj3) {
6856 {
6857 arg4 = &temp4;
6858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6859 }
6860 }
6861 if (obj4) {
6862 {
6863 arg5 = &temp5;
6864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6865 }
6866 }
6867 if (obj5) {
6868 ecode6 = SWIG_AsVal_long(obj5, &val6);
6869 if (!SWIG_IsOK(ecode6)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6871 }
6872 arg6 = static_cast< long >(val6);
6873 }
6874 if (obj6) {
6875 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6876 if (!SWIG_IsOK(res7)) {
6877 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6878 }
6879 if (!argp7) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6881 }
6882 arg7 = reinterpret_cast< wxValidator * >(argp7);
6883 }
6884 if (obj7) {
6885 {
6886 arg8 = wxString_in_helper(obj7);
6887 if (arg8 == NULL) SWIG_fail;
6888 temp8 = true;
6889 }
6890 }
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6899 {
6900 if (temp8)
6901 delete arg8;
6902 }
6903 return resultobj;
6904 fail:
6905 {
6906 if (temp8)
6907 delete arg8;
6908 }
6909 return NULL;
6910 }
6911
6912
6913 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6914 PyObject *resultobj = 0;
6915 wxGauge *result = 0 ;
6916
6917 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6918 {
6919 if (!wxPyCheckForApp()) SWIG_fail;
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (wxGauge *)new wxGauge();
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6926 return resultobj;
6927 fail:
6928 return NULL;
6929 }
6930
6931
6932 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxGauge *arg1 = (wxGauge *) 0 ;
6935 wxWindow *arg2 = (wxWindow *) 0 ;
6936 int arg3 = (int) -1 ;
6937 int arg4 = (int) 100 ;
6938 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6939 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6940 wxSize const &arg6_defvalue = wxDefaultSize ;
6941 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6942 long arg7 = (long) wxGA_HORIZONTAL ;
6943 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6944 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6945 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6946 wxString *arg9 = (wxString *) &arg9_defvalue ;
6947 bool result;
6948 void *argp1 = 0 ;
6949 int res1 = 0 ;
6950 void *argp2 = 0 ;
6951 int res2 = 0 ;
6952 int val3 ;
6953 int ecode3 = 0 ;
6954 int val4 ;
6955 int ecode4 = 0 ;
6956 wxPoint temp5 ;
6957 wxSize temp6 ;
6958 long val7 ;
6959 int ecode7 = 0 ;
6960 void *argp8 = 0 ;
6961 int res8 = 0 ;
6962 bool temp9 = false ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 PyObject * obj2 = 0 ;
6966 PyObject * obj3 = 0 ;
6967 PyObject * obj4 = 0 ;
6968 PyObject * obj5 = 0 ;
6969 PyObject * obj6 = 0 ;
6970 PyObject * obj7 = 0 ;
6971 PyObject * obj8 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6980 }
6981 arg1 = reinterpret_cast< wxGauge * >(argp1);
6982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6983 if (!SWIG_IsOK(res2)) {
6984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6985 }
6986 arg2 = reinterpret_cast< wxWindow * >(argp2);
6987 if (obj2) {
6988 ecode3 = SWIG_AsVal_int(obj2, &val3);
6989 if (!SWIG_IsOK(ecode3)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6991 }
6992 arg3 = static_cast< int >(val3);
6993 }
6994 if (obj3) {
6995 ecode4 = SWIG_AsVal_int(obj3, &val4);
6996 if (!SWIG_IsOK(ecode4)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6998 }
6999 arg4 = static_cast< int >(val4);
7000 }
7001 if (obj4) {
7002 {
7003 arg5 = &temp5;
7004 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7005 }
7006 }
7007 if (obj5) {
7008 {
7009 arg6 = &temp6;
7010 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7011 }
7012 }
7013 if (obj6) {
7014 ecode7 = SWIG_AsVal_long(obj6, &val7);
7015 if (!SWIG_IsOK(ecode7)) {
7016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7017 }
7018 arg7 = static_cast< long >(val7);
7019 }
7020 if (obj7) {
7021 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7022 if (!SWIG_IsOK(res8)) {
7023 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7024 }
7025 if (!argp8) {
7026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7027 }
7028 arg8 = reinterpret_cast< wxValidator * >(argp8);
7029 }
7030 if (obj8) {
7031 {
7032 arg9 = wxString_in_helper(obj8);
7033 if (arg9 == NULL) SWIG_fail;
7034 temp9 = true;
7035 }
7036 }
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 {
7044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7045 }
7046 {
7047 if (temp9)
7048 delete arg9;
7049 }
7050 return resultobj;
7051 fail:
7052 {
7053 if (temp9)
7054 delete arg9;
7055 }
7056 return NULL;
7057 }
7058
7059
7060 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7061 PyObject *resultobj = 0;
7062 wxGauge *arg1 = (wxGauge *) 0 ;
7063 int arg2 ;
7064 void *argp1 = 0 ;
7065 int res1 = 0 ;
7066 int val2 ;
7067 int ecode2 = 0 ;
7068 PyObject * obj0 = 0 ;
7069 PyObject * obj1 = 0 ;
7070 char * kwnames[] = {
7071 (char *) "self",(char *) "range", NULL
7072 };
7073
7074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7076 if (!SWIG_IsOK(res1)) {
7077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7078 }
7079 arg1 = reinterpret_cast< wxGauge * >(argp1);
7080 ecode2 = SWIG_AsVal_int(obj1, &val2);
7081 if (!SWIG_IsOK(ecode2)) {
7082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7083 }
7084 arg2 = static_cast< int >(val2);
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 (arg1)->SetRange(arg2);
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_Py_Void();
7092 return resultobj;
7093 fail:
7094 return NULL;
7095 }
7096
7097
7098 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxGauge *arg1 = (wxGauge *) 0 ;
7101 int result;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxGauge * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (int)((wxGauge const *)arg1)->GetRange();
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121 fail:
7122 return NULL;
7123 }
7124
7125
7126 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7127 PyObject *resultobj = 0;
7128 wxGauge *arg1 = (wxGauge *) 0 ;
7129 int arg2 ;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 int val2 ;
7133 int ecode2 = 0 ;
7134 PyObject * obj0 = 0 ;
7135 PyObject * obj1 = 0 ;
7136 char * kwnames[] = {
7137 (char *) "self",(char *) "pos", NULL
7138 };
7139
7140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7144 }
7145 arg1 = reinterpret_cast< wxGauge * >(argp1);
7146 ecode2 = SWIG_AsVal_int(obj1, &val2);
7147 if (!SWIG_IsOK(ecode2)) {
7148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7149 }
7150 arg2 = static_cast< int >(val2);
7151 {
7152 PyThreadState* __tstate = wxPyBeginAllowThreads();
7153 (arg1)->SetValue(arg2);
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_Py_Void();
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165 PyObject *resultobj = 0;
7166 wxGauge *arg1 = (wxGauge *) 0 ;
7167 int result;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 PyObject *swig_obj[1] ;
7171
7172 if (!args) SWIG_fail;
7173 swig_obj[0] = args;
7174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7177 }
7178 arg1 = reinterpret_cast< wxGauge * >(argp1);
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = (int)((wxGauge const *)arg1)->GetValue();
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_From_int(static_cast< int >(result));
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7193 PyObject *resultobj = 0;
7194 wxGauge *arg1 = (wxGauge *) 0 ;
7195 bool result;
7196 void *argp1 = 0 ;
7197 int res1 = 0 ;
7198 PyObject *swig_obj[1] ;
7199
7200 if (!args) SWIG_fail;
7201 swig_obj[0] = args;
7202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7203 if (!SWIG_IsOK(res1)) {
7204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7205 }
7206 arg1 = reinterpret_cast< wxGauge * >(argp1);
7207 {
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
7209 result = (bool)((wxGauge const *)arg1)->IsVertical();
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 {
7214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7215 }
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj = 0;
7224 wxGauge *arg1 = (wxGauge *) 0 ;
7225 int arg2 ;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 int val2 ;
7229 int ecode2 = 0 ;
7230 PyObject * obj0 = 0 ;
7231 PyObject * obj1 = 0 ;
7232 char * kwnames[] = {
7233 (char *) "self",(char *) "w", NULL
7234 };
7235
7236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7238 if (!SWIG_IsOK(res1)) {
7239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7240 }
7241 arg1 = reinterpret_cast< wxGauge * >(argp1);
7242 ecode2 = SWIG_AsVal_int(obj1, &val2);
7243 if (!SWIG_IsOK(ecode2)) {
7244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7245 }
7246 arg2 = static_cast< int >(val2);
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 (arg1)->SetShadowWidth(arg2);
7250 wxPyEndAllowThreads(__tstate);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 resultobj = SWIG_Py_Void();
7254 return resultobj;
7255 fail:
7256 return NULL;
7257 }
7258
7259
7260 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7261 PyObject *resultobj = 0;
7262 wxGauge *arg1 = (wxGauge *) 0 ;
7263 int result;
7264 void *argp1 = 0 ;
7265 int res1 = 0 ;
7266 PyObject *swig_obj[1] ;
7267
7268 if (!args) SWIG_fail;
7269 swig_obj[0] = args;
7270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7271 if (!SWIG_IsOK(res1)) {
7272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7273 }
7274 arg1 = reinterpret_cast< wxGauge * >(argp1);
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 resultobj = SWIG_From_int(static_cast< int >(result));
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj = 0;
7290 wxGauge *arg1 = (wxGauge *) 0 ;
7291 int arg2 ;
7292 void *argp1 = 0 ;
7293 int res1 = 0 ;
7294 int val2 ;
7295 int ecode2 = 0 ;
7296 PyObject * obj0 = 0 ;
7297 PyObject * obj1 = 0 ;
7298 char * kwnames[] = {
7299 (char *) "self",(char *) "w", NULL
7300 };
7301
7302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7304 if (!SWIG_IsOK(res1)) {
7305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7306 }
7307 arg1 = reinterpret_cast< wxGauge * >(argp1);
7308 ecode2 = SWIG_AsVal_int(obj1, &val2);
7309 if (!SWIG_IsOK(ecode2)) {
7310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7311 }
7312 arg2 = static_cast< int >(val2);
7313 {
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 (arg1)->SetBezelFace(arg2);
7316 wxPyEndAllowThreads(__tstate);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_Py_Void();
7320 return resultobj;
7321 fail:
7322 return NULL;
7323 }
7324
7325
7326 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *resultobj = 0;
7328 wxGauge *arg1 = (wxGauge *) 0 ;
7329 int result;
7330 void *argp1 = 0 ;
7331 int res1 = 0 ;
7332 PyObject *swig_obj[1] ;
7333
7334 if (!args) SWIG_fail;
7335 swig_obj[0] = args;
7336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7337 if (!SWIG_IsOK(res1)) {
7338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7339 }
7340 arg1 = reinterpret_cast< wxGauge * >(argp1);
7341 {
7342 PyThreadState* __tstate = wxPyBeginAllowThreads();
7343 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7344 wxPyEndAllowThreads(__tstate);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 }
7347 resultobj = SWIG_From_int(static_cast< int >(result));
7348 return resultobj;
7349 fail:
7350 return NULL;
7351 }
7352
7353
7354 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7355 PyObject *resultobj = 0;
7356 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7357 SwigValueWrapper<wxVisualAttributes > result;
7358 int val1 ;
7359 int ecode1 = 0 ;
7360 PyObject * obj0 = 0 ;
7361 char * kwnames[] = {
7362 (char *) "variant", NULL
7363 };
7364
7365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7366 if (obj0) {
7367 ecode1 = SWIG_AsVal_int(obj0, &val1);
7368 if (!SWIG_IsOK(ecode1)) {
7369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7370 }
7371 arg1 = static_cast< wxWindowVariant >(val1);
7372 }
7373 {
7374 if (!wxPyCheckForApp()) SWIG_fail;
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 result = wxGauge::GetClassDefaultAttributes(arg1);
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7381 return resultobj;
7382 fail:
7383 return NULL;
7384 }
7385
7386
7387 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7388 PyObject *obj;
7389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7390 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7391 return SWIG_Py_Void();
7392 }
7393
7394 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 return SWIG_Python_InitShadowInstance(args);
7396 }
7397
7398 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7399 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7400 return 1;
7401 }
7402
7403
7404 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7405 PyObject *pyobj = 0;
7406
7407 {
7408 #if wxUSE_UNICODE
7409 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7410 #else
7411 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7412 #endif
7413 }
7414 return pyobj;
7415 }
7416
7417
7418 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7419 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7420 return 1;
7421 }
7422
7423
7424 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7425 PyObject *pyobj = 0;
7426
7427 {
7428 #if wxUSE_UNICODE
7429 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7430 #else
7431 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7432 #endif
7433 }
7434 return pyobj;
7435 }
7436
7437
7438 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7439 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7440 return 1;
7441 }
7442
7443
7444 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7445 PyObject *pyobj = 0;
7446
7447 {
7448 #if wxUSE_UNICODE
7449 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7450 #else
7451 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7452 #endif
7453 }
7454 return pyobj;
7455 }
7456
7457
7458 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj = 0;
7460 wxWindow *arg1 = (wxWindow *) 0 ;
7461 int arg2 = (int) -1 ;
7462 wxString const &arg3_defvalue = wxPyEmptyString ;
7463 wxString *arg3 = (wxString *) &arg3_defvalue ;
7464 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7465 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7466 wxSize const &arg5_defvalue = wxDefaultSize ;
7467 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7468 long arg6 = (long) 0 ;
7469 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7470 wxString *arg7 = (wxString *) &arg7_defvalue ;
7471 wxStaticBox *result = 0 ;
7472 void *argp1 = 0 ;
7473 int res1 = 0 ;
7474 int val2 ;
7475 int ecode2 = 0 ;
7476 bool temp3 = false ;
7477 wxPoint temp4 ;
7478 wxSize temp5 ;
7479 long val6 ;
7480 int ecode6 = 0 ;
7481 bool temp7 = false ;
7482 PyObject * obj0 = 0 ;
7483 PyObject * obj1 = 0 ;
7484 PyObject * obj2 = 0 ;
7485 PyObject * obj3 = 0 ;
7486 PyObject * obj4 = 0 ;
7487 PyObject * obj5 = 0 ;
7488 PyObject * obj6 = 0 ;
7489 char * kwnames[] = {
7490 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7491 };
7492
7493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7495 if (!SWIG_IsOK(res1)) {
7496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7497 }
7498 arg1 = reinterpret_cast< wxWindow * >(argp1);
7499 if (obj1) {
7500 ecode2 = SWIG_AsVal_int(obj1, &val2);
7501 if (!SWIG_IsOK(ecode2)) {
7502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7503 }
7504 arg2 = static_cast< int >(val2);
7505 }
7506 if (obj2) {
7507 {
7508 arg3 = wxString_in_helper(obj2);
7509 if (arg3 == NULL) SWIG_fail;
7510 temp3 = true;
7511 }
7512 }
7513 if (obj3) {
7514 {
7515 arg4 = &temp4;
7516 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7517 }
7518 }
7519 if (obj4) {
7520 {
7521 arg5 = &temp5;
7522 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7523 }
7524 }
7525 if (obj5) {
7526 ecode6 = SWIG_AsVal_long(obj5, &val6);
7527 if (!SWIG_IsOK(ecode6)) {
7528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7529 }
7530 arg6 = static_cast< long >(val6);
7531 }
7532 if (obj6) {
7533 {
7534 arg7 = wxString_in_helper(obj6);
7535 if (arg7 == NULL) SWIG_fail;
7536 temp7 = true;
7537 }
7538 }
7539 {
7540 if (!wxPyCheckForApp()) SWIG_fail;
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7547 {
7548 if (temp3)
7549 delete arg3;
7550 }
7551 {
7552 if (temp7)
7553 delete arg7;
7554 }
7555 return resultobj;
7556 fail:
7557 {
7558 if (temp3)
7559 delete arg3;
7560 }
7561 {
7562 if (temp7)
7563 delete arg7;
7564 }
7565 return NULL;
7566 }
7567
7568
7569 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7570 PyObject *resultobj = 0;
7571 wxStaticBox *result = 0 ;
7572
7573 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7574 {
7575 if (!wxPyCheckForApp()) SWIG_fail;
7576 PyThreadState* __tstate = wxPyBeginAllowThreads();
7577 result = (wxStaticBox *)new wxStaticBox();
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) SWIG_fail;
7580 }
7581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7582 return resultobj;
7583 fail:
7584 return NULL;
7585 }
7586
7587
7588 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj = 0;
7590 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7591 wxWindow *arg2 = (wxWindow *) 0 ;
7592 int arg3 = (int) -1 ;
7593 wxString const &arg4_defvalue = wxPyEmptyString ;
7594 wxString *arg4 = (wxString *) &arg4_defvalue ;
7595 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7596 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7597 wxSize const &arg6_defvalue = wxDefaultSize ;
7598 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7599 long arg7 = (long) 0 ;
7600 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7601 wxString *arg8 = (wxString *) &arg8_defvalue ;
7602 bool result;
7603 void *argp1 = 0 ;
7604 int res1 = 0 ;
7605 void *argp2 = 0 ;
7606 int res2 = 0 ;
7607 int val3 ;
7608 int ecode3 = 0 ;
7609 bool temp4 = false ;
7610 wxPoint temp5 ;
7611 wxSize temp6 ;
7612 long val7 ;
7613 int ecode7 = 0 ;
7614 bool temp8 = false ;
7615 PyObject * obj0 = 0 ;
7616 PyObject * obj1 = 0 ;
7617 PyObject * obj2 = 0 ;
7618 PyObject * obj3 = 0 ;
7619 PyObject * obj4 = 0 ;
7620 PyObject * obj5 = 0 ;
7621 PyObject * obj6 = 0 ;
7622 PyObject * obj7 = 0 ;
7623 char * kwnames[] = {
7624 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7625 };
7626
7627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7629 if (!SWIG_IsOK(res1)) {
7630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7631 }
7632 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7634 if (!SWIG_IsOK(res2)) {
7635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7636 }
7637 arg2 = reinterpret_cast< wxWindow * >(argp2);
7638 if (obj2) {
7639 ecode3 = SWIG_AsVal_int(obj2, &val3);
7640 if (!SWIG_IsOK(ecode3)) {
7641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7642 }
7643 arg3 = static_cast< int >(val3);
7644 }
7645 if (obj3) {
7646 {
7647 arg4 = wxString_in_helper(obj3);
7648 if (arg4 == NULL) SWIG_fail;
7649 temp4 = true;
7650 }
7651 }
7652 if (obj4) {
7653 {
7654 arg5 = &temp5;
7655 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7656 }
7657 }
7658 if (obj5) {
7659 {
7660 arg6 = &temp6;
7661 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7662 }
7663 }
7664 if (obj6) {
7665 ecode7 = SWIG_AsVal_long(obj6, &val7);
7666 if (!SWIG_IsOK(ecode7)) {
7667 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7668 }
7669 arg7 = static_cast< long >(val7);
7670 }
7671 if (obj7) {
7672 {
7673 arg8 = wxString_in_helper(obj7);
7674 if (arg8 == NULL) SWIG_fail;
7675 temp8 = true;
7676 }
7677 }
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 {
7685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7686 }
7687 {
7688 if (temp4)
7689 delete arg4;
7690 }
7691 {
7692 if (temp8)
7693 delete arg8;
7694 }
7695 return resultobj;
7696 fail:
7697 {
7698 if (temp4)
7699 delete arg4;
7700 }
7701 {
7702 if (temp8)
7703 delete arg8;
7704 }
7705 return NULL;
7706 }
7707
7708
7709 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7710 PyObject *resultobj = 0;
7711 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7712 SwigValueWrapper<wxVisualAttributes > result;
7713 int val1 ;
7714 int ecode1 = 0 ;
7715 PyObject * obj0 = 0 ;
7716 char * kwnames[] = {
7717 (char *) "variant", NULL
7718 };
7719
7720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7721 if (obj0) {
7722 ecode1 = SWIG_AsVal_int(obj0, &val1);
7723 if (!SWIG_IsOK(ecode1)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7725 }
7726 arg1 = static_cast< wxWindowVariant >(val1);
7727 }
7728 {
7729 if (!wxPyCheckForApp()) SWIG_fail;
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7736 return resultobj;
7737 fail:
7738 return NULL;
7739 }
7740
7741
7742 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7743 PyObject *obj;
7744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7745 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7746 return SWIG_Py_Void();
7747 }
7748
7749 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7750 return SWIG_Python_InitShadowInstance(args);
7751 }
7752
7753 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj = 0;
7755 wxWindow *arg1 = (wxWindow *) 0 ;
7756 int arg2 = (int) -1 ;
7757 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7758 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7759 wxSize const &arg4_defvalue = wxDefaultSize ;
7760 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7761 long arg5 = (long) wxLI_HORIZONTAL ;
7762 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7763 wxString *arg6 = (wxString *) &arg6_defvalue ;
7764 wxStaticLine *result = 0 ;
7765 void *argp1 = 0 ;
7766 int res1 = 0 ;
7767 int val2 ;
7768 int ecode2 = 0 ;
7769 wxPoint temp3 ;
7770 wxSize temp4 ;
7771 long val5 ;
7772 int ecode5 = 0 ;
7773 bool temp6 = false ;
7774 PyObject * obj0 = 0 ;
7775 PyObject * obj1 = 0 ;
7776 PyObject * obj2 = 0 ;
7777 PyObject * obj3 = 0 ;
7778 PyObject * obj4 = 0 ;
7779 PyObject * obj5 = 0 ;
7780 char * kwnames[] = {
7781 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7782 };
7783
7784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7786 if (!SWIG_IsOK(res1)) {
7787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7788 }
7789 arg1 = reinterpret_cast< wxWindow * >(argp1);
7790 if (obj1) {
7791 ecode2 = SWIG_AsVal_int(obj1, &val2);
7792 if (!SWIG_IsOK(ecode2)) {
7793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7794 }
7795 arg2 = static_cast< int >(val2);
7796 }
7797 if (obj2) {
7798 {
7799 arg3 = &temp3;
7800 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7801 }
7802 }
7803 if (obj3) {
7804 {
7805 arg4 = &temp4;
7806 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7807 }
7808 }
7809 if (obj4) {
7810 ecode5 = SWIG_AsVal_long(obj4, &val5);
7811 if (!SWIG_IsOK(ecode5)) {
7812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7813 }
7814 arg5 = static_cast< long >(val5);
7815 }
7816 if (obj5) {
7817 {
7818 arg6 = wxString_in_helper(obj5);
7819 if (arg6 == NULL) SWIG_fail;
7820 temp6 = true;
7821 }
7822 }
7823 {
7824 if (!wxPyCheckForApp()) SWIG_fail;
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7831 {
7832 if (temp6)
7833 delete arg6;
7834 }
7835 return resultobj;
7836 fail:
7837 {
7838 if (temp6)
7839 delete arg6;
7840 }
7841 return NULL;
7842 }
7843
7844
7845 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7846 PyObject *resultobj = 0;
7847 wxStaticLine *result = 0 ;
7848
7849 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7850 {
7851 if (!wxPyCheckForApp()) SWIG_fail;
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (wxStaticLine *)new wxStaticLine();
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7858 return resultobj;
7859 fail:
7860 return NULL;
7861 }
7862
7863
7864 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7865 PyObject *resultobj = 0;
7866 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7867 wxWindow *arg2 = (wxWindow *) 0 ;
7868 int arg3 = (int) -1 ;
7869 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7870 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7871 wxSize const &arg5_defvalue = wxDefaultSize ;
7872 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7873 long arg6 = (long) wxLI_HORIZONTAL ;
7874 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7875 wxString *arg7 = (wxString *) &arg7_defvalue ;
7876 bool result;
7877 void *argp1 = 0 ;
7878 int res1 = 0 ;
7879 void *argp2 = 0 ;
7880 int res2 = 0 ;
7881 int val3 ;
7882 int ecode3 = 0 ;
7883 wxPoint temp4 ;
7884 wxSize temp5 ;
7885 long val6 ;
7886 int ecode6 = 0 ;
7887 bool temp7 = false ;
7888 PyObject * obj0 = 0 ;
7889 PyObject * obj1 = 0 ;
7890 PyObject * obj2 = 0 ;
7891 PyObject * obj3 = 0 ;
7892 PyObject * obj4 = 0 ;
7893 PyObject * obj5 = 0 ;
7894 PyObject * obj6 = 0 ;
7895 char * kwnames[] = {
7896 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7897 };
7898
7899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7901 if (!SWIG_IsOK(res1)) {
7902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7903 }
7904 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7906 if (!SWIG_IsOK(res2)) {
7907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7908 }
7909 arg2 = reinterpret_cast< wxWindow * >(argp2);
7910 if (obj2) {
7911 ecode3 = SWIG_AsVal_int(obj2, &val3);
7912 if (!SWIG_IsOK(ecode3)) {
7913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7914 }
7915 arg3 = static_cast< int >(val3);
7916 }
7917 if (obj3) {
7918 {
7919 arg4 = &temp4;
7920 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7921 }
7922 }
7923 if (obj4) {
7924 {
7925 arg5 = &temp5;
7926 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7927 }
7928 }
7929 if (obj5) {
7930 ecode6 = SWIG_AsVal_long(obj5, &val6);
7931 if (!SWIG_IsOK(ecode6)) {
7932 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7933 }
7934 arg6 = static_cast< long >(val6);
7935 }
7936 if (obj6) {
7937 {
7938 arg7 = wxString_in_helper(obj6);
7939 if (arg7 == NULL) SWIG_fail;
7940 temp7 = true;
7941 }
7942 }
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 {
7950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7951 }
7952 {
7953 if (temp7)
7954 delete arg7;
7955 }
7956 return resultobj;
7957 fail:
7958 {
7959 if (temp7)
7960 delete arg7;
7961 }
7962 return NULL;
7963 }
7964
7965
7966 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7967 PyObject *resultobj = 0;
7968 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7969 bool result;
7970 void *argp1 = 0 ;
7971 int res1 = 0 ;
7972 PyObject *swig_obj[1] ;
7973
7974 if (!args) SWIG_fail;
7975 swig_obj[0] = args;
7976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7977 if (!SWIG_IsOK(res1)) {
7978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7979 }
7980 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 {
7988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7989 }
7990 return resultobj;
7991 fail:
7992 return NULL;
7993 }
7994
7995
7996 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7997 PyObject *resultobj = 0;
7998 int result;
7999
8000 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 result = (int)wxStaticLine::GetDefaultSize();
8004 wxPyEndAllowThreads(__tstate);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 resultobj = SWIG_From_int(static_cast< int >(result));
8008 return resultobj;
8009 fail:
8010 return NULL;
8011 }
8012
8013
8014 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8015 PyObject *resultobj = 0;
8016 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8017 SwigValueWrapper<wxVisualAttributes > result;
8018 int val1 ;
8019 int ecode1 = 0 ;
8020 PyObject * obj0 = 0 ;
8021 char * kwnames[] = {
8022 (char *) "variant", NULL
8023 };
8024
8025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8026 if (obj0) {
8027 ecode1 = SWIG_AsVal_int(obj0, &val1);
8028 if (!SWIG_IsOK(ecode1)) {
8029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8030 }
8031 arg1 = static_cast< wxWindowVariant >(val1);
8032 }
8033 {
8034 if (!wxPyCheckForApp()) SWIG_fail;
8035 PyThreadState* __tstate = wxPyBeginAllowThreads();
8036 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8041 return resultobj;
8042 fail:
8043 return NULL;
8044 }
8045
8046
8047 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048 PyObject *obj;
8049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8050 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8051 return SWIG_Py_Void();
8052 }
8053
8054 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8055 return SWIG_Python_InitShadowInstance(args);
8056 }
8057
8058 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8059 PyObject *resultobj = 0;
8060 wxWindow *arg1 = (wxWindow *) 0 ;
8061 int arg2 = (int) -1 ;
8062 wxString const &arg3_defvalue = wxPyEmptyString ;
8063 wxString *arg3 = (wxString *) &arg3_defvalue ;
8064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8066 wxSize const &arg5_defvalue = wxDefaultSize ;
8067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8068 long arg6 = (long) 0 ;
8069 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8070 wxString *arg7 = (wxString *) &arg7_defvalue ;
8071 wxStaticText *result = 0 ;
8072 void *argp1 = 0 ;
8073 int res1 = 0 ;
8074 int val2 ;
8075 int ecode2 = 0 ;
8076 bool temp3 = false ;
8077 wxPoint temp4 ;
8078 wxSize temp5 ;
8079 long val6 ;
8080 int ecode6 = 0 ;
8081 bool temp7 = false ;
8082 PyObject * obj0 = 0 ;
8083 PyObject * obj1 = 0 ;
8084 PyObject * obj2 = 0 ;
8085 PyObject * obj3 = 0 ;
8086 PyObject * obj4 = 0 ;
8087 PyObject * obj5 = 0 ;
8088 PyObject * obj6 = 0 ;
8089 char * kwnames[] = {
8090 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8091 };
8092
8093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8097 }
8098 arg1 = reinterpret_cast< wxWindow * >(argp1);
8099 if (obj1) {
8100 ecode2 = SWIG_AsVal_int(obj1, &val2);
8101 if (!SWIG_IsOK(ecode2)) {
8102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8103 }
8104 arg2 = static_cast< int >(val2);
8105 }
8106 if (obj2) {
8107 {
8108 arg3 = wxString_in_helper(obj2);
8109 if (arg3 == NULL) SWIG_fail;
8110 temp3 = true;
8111 }
8112 }
8113 if (obj3) {
8114 {
8115 arg4 = &temp4;
8116 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8117 }
8118 }
8119 if (obj4) {
8120 {
8121 arg5 = &temp5;
8122 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8123 }
8124 }
8125 if (obj5) {
8126 ecode6 = SWIG_AsVal_long(obj5, &val6);
8127 if (!SWIG_IsOK(ecode6)) {
8128 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8129 }
8130 arg6 = static_cast< long >(val6);
8131 }
8132 if (obj6) {
8133 {
8134 arg7 = wxString_in_helper(obj6);
8135 if (arg7 == NULL) SWIG_fail;
8136 temp7 = true;
8137 }
8138 }
8139 {
8140 if (!wxPyCheckForApp()) SWIG_fail;
8141 PyThreadState* __tstate = wxPyBeginAllowThreads();
8142 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8143 wxPyEndAllowThreads(__tstate);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8147 {
8148 if (temp3)
8149 delete arg3;
8150 }
8151 {
8152 if (temp7)
8153 delete arg7;
8154 }
8155 return resultobj;
8156 fail:
8157 {
8158 if (temp3)
8159 delete arg3;
8160 }
8161 {
8162 if (temp7)
8163 delete arg7;
8164 }
8165 return NULL;
8166 }
8167
8168
8169 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8170 PyObject *resultobj = 0;
8171 wxStaticText *result = 0 ;
8172
8173 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8174 {
8175 if (!wxPyCheckForApp()) SWIG_fail;
8176 PyThreadState* __tstate = wxPyBeginAllowThreads();
8177 result = (wxStaticText *)new wxStaticText();
8178 wxPyEndAllowThreads(__tstate);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8182 return resultobj;
8183 fail:
8184 return NULL;
8185 }
8186
8187
8188 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8189 PyObject *resultobj = 0;
8190 wxStaticText *arg1 = (wxStaticText *) 0 ;
8191 wxWindow *arg2 = (wxWindow *) 0 ;
8192 int arg3 = (int) -1 ;
8193 wxString const &arg4_defvalue = wxPyEmptyString ;
8194 wxString *arg4 = (wxString *) &arg4_defvalue ;
8195 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8196 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8197 wxSize const &arg6_defvalue = wxDefaultSize ;
8198 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8199 long arg7 = (long) 0 ;
8200 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8201 wxString *arg8 = (wxString *) &arg8_defvalue ;
8202 bool result;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 int val3 ;
8208 int ecode3 = 0 ;
8209 bool temp4 = false ;
8210 wxPoint temp5 ;
8211 wxSize temp6 ;
8212 long val7 ;
8213 int ecode7 = 0 ;
8214 bool temp8 = false ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 PyObject * obj2 = 0 ;
8218 PyObject * obj3 = 0 ;
8219 PyObject * obj4 = 0 ;
8220 PyObject * obj5 = 0 ;
8221 PyObject * obj6 = 0 ;
8222 PyObject * obj7 = 0 ;
8223 char * kwnames[] = {
8224 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8225 };
8226
8227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8229 if (!SWIG_IsOK(res1)) {
8230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8231 }
8232 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8233 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8234 if (!SWIG_IsOK(res2)) {
8235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8236 }
8237 arg2 = reinterpret_cast< wxWindow * >(argp2);
8238 if (obj2) {
8239 ecode3 = SWIG_AsVal_int(obj2, &val3);
8240 if (!SWIG_IsOK(ecode3)) {
8241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8242 }
8243 arg3 = static_cast< int >(val3);
8244 }
8245 if (obj3) {
8246 {
8247 arg4 = wxString_in_helper(obj3);
8248 if (arg4 == NULL) SWIG_fail;
8249 temp4 = true;
8250 }
8251 }
8252 if (obj4) {
8253 {
8254 arg5 = &temp5;
8255 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8256 }
8257 }
8258 if (obj5) {
8259 {
8260 arg6 = &temp6;
8261 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8262 }
8263 }
8264 if (obj6) {
8265 ecode7 = SWIG_AsVal_long(obj6, &val7);
8266 if (!SWIG_IsOK(ecode7)) {
8267 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8268 }
8269 arg7 = static_cast< long >(val7);
8270 }
8271 if (obj7) {
8272 {
8273 arg8 = wxString_in_helper(obj7);
8274 if (arg8 == NULL) SWIG_fail;
8275 temp8 = true;
8276 }
8277 }
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 {
8285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8286 }
8287 {
8288 if (temp4)
8289 delete arg4;
8290 }
8291 {
8292 if (temp8)
8293 delete arg8;
8294 }
8295 return resultobj;
8296 fail:
8297 {
8298 if (temp4)
8299 delete arg4;
8300 }
8301 {
8302 if (temp8)
8303 delete arg8;
8304 }
8305 return NULL;
8306 }
8307
8308
8309 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj = 0;
8311 wxStaticText *arg1 = (wxStaticText *) 0 ;
8312 int arg2 ;
8313 void *argp1 = 0 ;
8314 int res1 = 0 ;
8315 int val2 ;
8316 int ecode2 = 0 ;
8317 PyObject * obj0 = 0 ;
8318 PyObject * obj1 = 0 ;
8319 char * kwnames[] = {
8320 (char *) "self",(char *) "width", NULL
8321 };
8322
8323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8325 if (!SWIG_IsOK(res1)) {
8326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8327 }
8328 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8329 ecode2 = SWIG_AsVal_int(obj1, &val2);
8330 if (!SWIG_IsOK(ecode2)) {
8331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8332 }
8333 arg2 = static_cast< int >(val2);
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 (arg1)->Wrap(arg2);
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 resultobj = SWIG_Py_Void();
8341 return resultobj;
8342 fail:
8343 return NULL;
8344 }
8345
8346
8347 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj = 0;
8349 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8350 SwigValueWrapper<wxVisualAttributes > result;
8351 int val1 ;
8352 int ecode1 = 0 ;
8353 PyObject * obj0 = 0 ;
8354 char * kwnames[] = {
8355 (char *) "variant", NULL
8356 };
8357
8358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8359 if (obj0) {
8360 ecode1 = SWIG_AsVal_int(obj0, &val1);
8361 if (!SWIG_IsOK(ecode1)) {
8362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8363 }
8364 arg1 = static_cast< wxWindowVariant >(val1);
8365 }
8366 {
8367 if (!wxPyCheckForApp()) SWIG_fail;
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = wxStaticText::GetClassDefaultAttributes(arg1);
8370 wxPyEndAllowThreads(__tstate);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 }
8373 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8374 return resultobj;
8375 fail:
8376 return NULL;
8377 }
8378
8379
8380 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8381 PyObject *obj;
8382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8383 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8384 return SWIG_Py_Void();
8385 }
8386
8387 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8388 return SWIG_Python_InitShadowInstance(args);
8389 }
8390
8391 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj = 0;
8393 wxWindow *arg1 = (wxWindow *) 0 ;
8394 int arg2 = (int) -1 ;
8395 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8396 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8397 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8398 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8399 wxSize const &arg5_defvalue = wxDefaultSize ;
8400 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8401 long arg6 = (long) 0 ;
8402 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8403 wxString *arg7 = (wxString *) &arg7_defvalue ;
8404 wxStaticBitmap *result = 0 ;
8405 void *argp1 = 0 ;
8406 int res1 = 0 ;
8407 int val2 ;
8408 int ecode2 = 0 ;
8409 void *argp3 = 0 ;
8410 int res3 = 0 ;
8411 wxPoint temp4 ;
8412 wxSize temp5 ;
8413 long val6 ;
8414 int ecode6 = 0 ;
8415 bool temp7 = false ;
8416 PyObject * obj0 = 0 ;
8417 PyObject * obj1 = 0 ;
8418 PyObject * obj2 = 0 ;
8419 PyObject * obj3 = 0 ;
8420 PyObject * obj4 = 0 ;
8421 PyObject * obj5 = 0 ;
8422 PyObject * obj6 = 0 ;
8423 char * kwnames[] = {
8424 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8425 };
8426
8427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8429 if (!SWIG_IsOK(res1)) {
8430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8431 }
8432 arg1 = reinterpret_cast< wxWindow * >(argp1);
8433 if (obj1) {
8434 ecode2 = SWIG_AsVal_int(obj1, &val2);
8435 if (!SWIG_IsOK(ecode2)) {
8436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8437 }
8438 arg2 = static_cast< int >(val2);
8439 }
8440 if (obj2) {
8441 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8442 if (!SWIG_IsOK(res3)) {
8443 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8444 }
8445 if (!argp3) {
8446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8447 }
8448 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8449 }
8450 if (obj3) {
8451 {
8452 arg4 = &temp4;
8453 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8454 }
8455 }
8456 if (obj4) {
8457 {
8458 arg5 = &temp5;
8459 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8460 }
8461 }
8462 if (obj5) {
8463 ecode6 = SWIG_AsVal_long(obj5, &val6);
8464 if (!SWIG_IsOK(ecode6)) {
8465 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8466 }
8467 arg6 = static_cast< long >(val6);
8468 }
8469 if (obj6) {
8470 {
8471 arg7 = wxString_in_helper(obj6);
8472 if (arg7 == NULL) SWIG_fail;
8473 temp7 = true;
8474 }
8475 }
8476 {
8477 if (!wxPyCheckForApp()) SWIG_fail;
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8484 {
8485 if (temp7)
8486 delete arg7;
8487 }
8488 return resultobj;
8489 fail:
8490 {
8491 if (temp7)
8492 delete arg7;
8493 }
8494 return NULL;
8495 }
8496
8497
8498 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8499 PyObject *resultobj = 0;
8500 wxStaticBitmap *result = 0 ;
8501
8502 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8503 {
8504 if (!wxPyCheckForApp()) SWIG_fail;
8505 PyThreadState* __tstate = wxPyBeginAllowThreads();
8506 result = (wxStaticBitmap *)new wxStaticBitmap();
8507 wxPyEndAllowThreads(__tstate);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj = 0;
8519 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8520 wxWindow *arg2 = (wxWindow *) 0 ;
8521 int arg3 = (int) -1 ;
8522 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8523 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8524 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8525 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8526 wxSize const &arg6_defvalue = wxDefaultSize ;
8527 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8528 long arg7 = (long) 0 ;
8529 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8530 wxString *arg8 = (wxString *) &arg8_defvalue ;
8531 bool result;
8532 void *argp1 = 0 ;
8533 int res1 = 0 ;
8534 void *argp2 = 0 ;
8535 int res2 = 0 ;
8536 int val3 ;
8537 int ecode3 = 0 ;
8538 void *argp4 = 0 ;
8539 int res4 = 0 ;
8540 wxPoint temp5 ;
8541 wxSize temp6 ;
8542 long val7 ;
8543 int ecode7 = 0 ;
8544 bool temp8 = false ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 PyObject * obj2 = 0 ;
8548 PyObject * obj3 = 0 ;
8549 PyObject * obj4 = 0 ;
8550 PyObject * obj5 = 0 ;
8551 PyObject * obj6 = 0 ;
8552 PyObject * obj7 = 0 ;
8553 char * kwnames[] = {
8554 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8555 };
8556
8557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8559 if (!SWIG_IsOK(res1)) {
8560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8561 }
8562 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8564 if (!SWIG_IsOK(res2)) {
8565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8566 }
8567 arg2 = reinterpret_cast< wxWindow * >(argp2);
8568 if (obj2) {
8569 ecode3 = SWIG_AsVal_int(obj2, &val3);
8570 if (!SWIG_IsOK(ecode3)) {
8571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8572 }
8573 arg3 = static_cast< int >(val3);
8574 }
8575 if (obj3) {
8576 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8577 if (!SWIG_IsOK(res4)) {
8578 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8579 }
8580 if (!argp4) {
8581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8582 }
8583 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8584 }
8585 if (obj4) {
8586 {
8587 arg5 = &temp5;
8588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8589 }
8590 }
8591 if (obj5) {
8592 {
8593 arg6 = &temp6;
8594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8595 }
8596 }
8597 if (obj6) {
8598 ecode7 = SWIG_AsVal_long(obj6, &val7);
8599 if (!SWIG_IsOK(ecode7)) {
8600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8601 }
8602 arg7 = static_cast< long >(val7);
8603 }
8604 if (obj7) {
8605 {
8606 arg8 = wxString_in_helper(obj7);
8607 if (arg8 == NULL) SWIG_fail;
8608 temp8 = true;
8609 }
8610 }
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 {
8618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8619 }
8620 {
8621 if (temp8)
8622 delete arg8;
8623 }
8624 return resultobj;
8625 fail:
8626 {
8627 if (temp8)
8628 delete arg8;
8629 }
8630 return NULL;
8631 }
8632
8633
8634 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8635 PyObject *resultobj = 0;
8636 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8637 wxBitmap result;
8638 void *argp1 = 0 ;
8639 int res1 = 0 ;
8640 PyObject *swig_obj[1] ;
8641
8642 if (!args) SWIG_fail;
8643 swig_obj[0] = args;
8644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8645 if (!SWIG_IsOK(res1)) {
8646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8647 }
8648 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (arg1)->GetBitmap();
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
8655 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8656 return resultobj;
8657 fail:
8658 return NULL;
8659 }
8660
8661
8662 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8663 PyObject *resultobj = 0;
8664 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8665 wxBitmap *arg2 = 0 ;
8666 void *argp1 = 0 ;
8667 int res1 = 0 ;
8668 void *argp2 = 0 ;
8669 int res2 = 0 ;
8670 PyObject * obj0 = 0 ;
8671 PyObject * obj1 = 0 ;
8672 char * kwnames[] = {
8673 (char *) "self",(char *) "bitmap", NULL
8674 };
8675
8676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8680 }
8681 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8683 if (!SWIG_IsOK(res2)) {
8684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8685 }
8686 if (!argp2) {
8687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8688 }
8689 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8690 {
8691 PyThreadState* __tstate = wxPyBeginAllowThreads();
8692 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 resultobj = SWIG_Py_Void();
8697 return resultobj;
8698 fail:
8699 return NULL;
8700 }
8701
8702
8703 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8704 PyObject *resultobj = 0;
8705 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8706 wxIcon *arg2 = 0 ;
8707 void *argp1 = 0 ;
8708 int res1 = 0 ;
8709 void *argp2 = 0 ;
8710 int res2 = 0 ;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char * kwnames[] = {
8714 (char *) "self",(char *) "icon", NULL
8715 };
8716
8717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8719 if (!SWIG_IsOK(res1)) {
8720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8721 }
8722 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8724 if (!SWIG_IsOK(res2)) {
8725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8726 }
8727 if (!argp2) {
8728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8729 }
8730 arg2 = reinterpret_cast< wxIcon * >(argp2);
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 (arg1)->SetIcon((wxIcon const &)*arg2);
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 resultobj = SWIG_Py_Void();
8738 return resultobj;
8739 fail:
8740 return NULL;
8741 }
8742
8743
8744 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj = 0;
8746 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8747 SwigValueWrapper<wxVisualAttributes > result;
8748 int val1 ;
8749 int ecode1 = 0 ;
8750 PyObject * obj0 = 0 ;
8751 char * kwnames[] = {
8752 (char *) "variant", NULL
8753 };
8754
8755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8756 if (obj0) {
8757 ecode1 = SWIG_AsVal_int(obj0, &val1);
8758 if (!SWIG_IsOK(ecode1)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8760 }
8761 arg1 = static_cast< wxWindowVariant >(val1);
8762 }
8763 {
8764 if (!wxPyCheckForApp()) SWIG_fail;
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8767 wxPyEndAllowThreads(__tstate);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 }
8770 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8771 return resultobj;
8772 fail:
8773 return NULL;
8774 }
8775
8776
8777 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8778 PyObject *obj;
8779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8780 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8781 return SWIG_Py_Void();
8782 }
8783
8784 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 return SWIG_Python_InitShadowInstance(args);
8786 }
8787
8788 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8789 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8790 return 1;
8791 }
8792
8793
8794 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8795 PyObject *pyobj = 0;
8796
8797 {
8798 #if wxUSE_UNICODE
8799 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8800 #else
8801 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8802 #endif
8803 }
8804 return pyobj;
8805 }
8806
8807
8808 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj = 0;
8810 wxWindow *arg1 = (wxWindow *) 0 ;
8811 int arg2 = (int) -1 ;
8812 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8813 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8814 wxSize const &arg4_defvalue = wxDefaultSize ;
8815 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8816 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8817 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8818 long arg6 = (long) 0 ;
8819 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8820 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8821 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8822 wxString *arg8 = (wxString *) &arg8_defvalue ;
8823 wxListBox *result = 0 ;
8824 void *argp1 = 0 ;
8825 int res1 = 0 ;
8826 int val2 ;
8827 int ecode2 = 0 ;
8828 wxPoint temp3 ;
8829 wxSize temp4 ;
8830 bool temp5 = false ;
8831 long val6 ;
8832 int ecode6 = 0 ;
8833 void *argp7 = 0 ;
8834 int res7 = 0 ;
8835 bool temp8 = false ;
8836 PyObject * obj0 = 0 ;
8837 PyObject * obj1 = 0 ;
8838 PyObject * obj2 = 0 ;
8839 PyObject * obj3 = 0 ;
8840 PyObject * obj4 = 0 ;
8841 PyObject * obj5 = 0 ;
8842 PyObject * obj6 = 0 ;
8843 PyObject * obj7 = 0 ;
8844 char * kwnames[] = {
8845 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8846 };
8847
8848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8852 }
8853 arg1 = reinterpret_cast< wxWindow * >(argp1);
8854 if (obj1) {
8855 ecode2 = SWIG_AsVal_int(obj1, &val2);
8856 if (!SWIG_IsOK(ecode2)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8858 }
8859 arg2 = static_cast< int >(val2);
8860 }
8861 if (obj2) {
8862 {
8863 arg3 = &temp3;
8864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8865 }
8866 }
8867 if (obj3) {
8868 {
8869 arg4 = &temp4;
8870 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8871 }
8872 }
8873 if (obj4) {
8874 {
8875 if (! PySequence_Check(obj4)) {
8876 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8877 SWIG_fail;
8878 }
8879 arg5 = new wxArrayString;
8880 temp5 = true;
8881 int i, len=PySequence_Length(obj4);
8882 for (i=0; i<len; i++) {
8883 PyObject* item = PySequence_GetItem(obj4, i);
8884 wxString* s = wxString_in_helper(item);
8885 if (PyErr_Occurred()) SWIG_fail;
8886 arg5->Add(*s);
8887 delete s;
8888 Py_DECREF(item);
8889 }
8890 }
8891 }
8892 if (obj5) {
8893 ecode6 = SWIG_AsVal_long(obj5, &val6);
8894 if (!SWIG_IsOK(ecode6)) {
8895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8896 }
8897 arg6 = static_cast< long >(val6);
8898 }
8899 if (obj6) {
8900 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8901 if (!SWIG_IsOK(res7)) {
8902 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8903 }
8904 if (!argp7) {
8905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8906 }
8907 arg7 = reinterpret_cast< wxValidator * >(argp7);
8908 }
8909 if (obj7) {
8910 {
8911 arg8 = wxString_in_helper(obj7);
8912 if (arg8 == NULL) SWIG_fail;
8913 temp8 = true;
8914 }
8915 }
8916 {
8917 if (!wxPyCheckForApp()) SWIG_fail;
8918 PyThreadState* __tstate = wxPyBeginAllowThreads();
8919 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8920 wxPyEndAllowThreads(__tstate);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 }
8923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8924 {
8925 if (temp5) delete arg5;
8926 }
8927 {
8928 if (temp8)
8929 delete arg8;
8930 }
8931 return resultobj;
8932 fail:
8933 {
8934 if (temp5) delete arg5;
8935 }
8936 {
8937 if (temp8)
8938 delete arg8;
8939 }
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *resultobj = 0;
8946 wxListBox *result = 0 ;
8947
8948 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8949 {
8950 if (!wxPyCheckForApp()) SWIG_fail;
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 result = (wxListBox *)new wxListBox();
8953 wxPyEndAllowThreads(__tstate);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8957 return resultobj;
8958 fail:
8959 return NULL;
8960 }
8961
8962
8963 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj = 0;
8965 wxListBox *arg1 = (wxListBox *) 0 ;
8966 wxWindow *arg2 = (wxWindow *) 0 ;
8967 int arg3 = (int) -1 ;
8968 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8969 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8970 wxSize const &arg5_defvalue = wxDefaultSize ;
8971 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8972 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8973 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8974 long arg7 = (long) 0 ;
8975 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8976 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8977 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8978 wxString *arg9 = (wxString *) &arg9_defvalue ;
8979 bool result;
8980 void *argp1 = 0 ;
8981 int res1 = 0 ;
8982 void *argp2 = 0 ;
8983 int res2 = 0 ;
8984 int val3 ;
8985 int ecode3 = 0 ;
8986 wxPoint temp4 ;
8987 wxSize temp5 ;
8988 bool temp6 = false ;
8989 long val7 ;
8990 int ecode7 = 0 ;
8991 void *argp8 = 0 ;
8992 int res8 = 0 ;
8993 bool temp9 = false ;
8994 PyObject * obj0 = 0 ;
8995 PyObject * obj1 = 0 ;
8996 PyObject * obj2 = 0 ;
8997 PyObject * obj3 = 0 ;
8998 PyObject * obj4 = 0 ;
8999 PyObject * obj5 = 0 ;
9000 PyObject * obj6 = 0 ;
9001 PyObject * obj7 = 0 ;
9002 PyObject * obj8 = 0 ;
9003 char * kwnames[] = {
9004 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9005 };
9006
9007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9009 if (!SWIG_IsOK(res1)) {
9010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9011 }
9012 arg1 = reinterpret_cast< wxListBox * >(argp1);
9013 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9014 if (!SWIG_IsOK(res2)) {
9015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9016 }
9017 arg2 = reinterpret_cast< wxWindow * >(argp2);
9018 if (obj2) {
9019 ecode3 = SWIG_AsVal_int(obj2, &val3);
9020 if (!SWIG_IsOK(ecode3)) {
9021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9022 }
9023 arg3 = static_cast< int >(val3);
9024 }
9025 if (obj3) {
9026 {
9027 arg4 = &temp4;
9028 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9029 }
9030 }
9031 if (obj4) {
9032 {
9033 arg5 = &temp5;
9034 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9035 }
9036 }
9037 if (obj5) {
9038 {
9039 if (! PySequence_Check(obj5)) {
9040 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9041 SWIG_fail;
9042 }
9043 arg6 = new wxArrayString;
9044 temp6 = true;
9045 int i, len=PySequence_Length(obj5);
9046 for (i=0; i<len; i++) {
9047 PyObject* item = PySequence_GetItem(obj5, i);
9048 wxString* s = wxString_in_helper(item);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 arg6->Add(*s);
9051 delete s;
9052 Py_DECREF(item);
9053 }
9054 }
9055 }
9056 if (obj6) {
9057 ecode7 = SWIG_AsVal_long(obj6, &val7);
9058 if (!SWIG_IsOK(ecode7)) {
9059 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9060 }
9061 arg7 = static_cast< long >(val7);
9062 }
9063 if (obj7) {
9064 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9065 if (!SWIG_IsOK(res8)) {
9066 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9067 }
9068 if (!argp8) {
9069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9070 }
9071 arg8 = reinterpret_cast< wxValidator * >(argp8);
9072 }
9073 if (obj8) {
9074 {
9075 arg9 = wxString_in_helper(obj8);
9076 if (arg9 == NULL) SWIG_fail;
9077 temp9 = true;
9078 }
9079 }
9080 {
9081 PyThreadState* __tstate = wxPyBeginAllowThreads();
9082 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
9086 {
9087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9088 }
9089 {
9090 if (temp6) delete arg6;
9091 }
9092 {
9093 if (temp9)
9094 delete arg9;
9095 }
9096 return resultobj;
9097 fail:
9098 {
9099 if (temp6) delete arg6;
9100 }
9101 {
9102 if (temp9)
9103 delete arg9;
9104 }
9105 return NULL;
9106 }
9107
9108
9109 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9110 PyObject *resultobj = 0;
9111 wxListBox *arg1 = (wxListBox *) 0 ;
9112 wxString *arg2 = 0 ;
9113 int arg3 ;
9114 PyObject *arg4 = (PyObject *) NULL ;
9115 void *argp1 = 0 ;
9116 int res1 = 0 ;
9117 bool temp2 = false ;
9118 int val3 ;
9119 int ecode3 = 0 ;
9120 PyObject * obj0 = 0 ;
9121 PyObject * obj1 = 0 ;
9122 PyObject * obj2 = 0 ;
9123 PyObject * obj3 = 0 ;
9124 char * kwnames[] = {
9125 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9126 };
9127
9128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9130 if (!SWIG_IsOK(res1)) {
9131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9132 }
9133 arg1 = reinterpret_cast< wxListBox * >(argp1);
9134 {
9135 arg2 = wxString_in_helper(obj1);
9136 if (arg2 == NULL) SWIG_fail;
9137 temp2 = true;
9138 }
9139 ecode3 = SWIG_AsVal_int(obj2, &val3);
9140 if (!SWIG_IsOK(ecode3)) {
9141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9142 }
9143 arg3 = static_cast< int >(val3);
9144 if (obj3) {
9145 arg4 = obj3;
9146 }
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 resultobj = SWIG_Py_Void();
9154 {
9155 if (temp2)
9156 delete arg2;
9157 }
9158 return resultobj;
9159 fail:
9160 {
9161 if (temp2)
9162 delete arg2;
9163 }
9164 return NULL;
9165 }
9166
9167
9168 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9169 PyObject *resultobj = 0;
9170 wxListBox *arg1 = (wxListBox *) 0 ;
9171 wxArrayString *arg2 = 0 ;
9172 unsigned int arg3 ;
9173 void *argp1 = 0 ;
9174 int res1 = 0 ;
9175 bool temp2 = false ;
9176 unsigned int val3 ;
9177 int ecode3 = 0 ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 PyObject * obj2 = 0 ;
9181 char * kwnames[] = {
9182 (char *) "self",(char *) "items",(char *) "pos", NULL
9183 };
9184
9185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9187 if (!SWIG_IsOK(res1)) {
9188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9189 }
9190 arg1 = reinterpret_cast< wxListBox * >(argp1);
9191 {
9192 if (! PySequence_Check(obj1)) {
9193 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9194 SWIG_fail;
9195 }
9196 arg2 = new wxArrayString;
9197 temp2 = true;
9198 int i, len=PySequence_Length(obj1);
9199 for (i=0; i<len; i++) {
9200 PyObject* item = PySequence_GetItem(obj1, i);
9201 wxString* s = wxString_in_helper(item);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 arg2->Add(*s);
9204 delete s;
9205 Py_DECREF(item);
9206 }
9207 }
9208 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9209 if (!SWIG_IsOK(ecode3)) {
9210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9211 }
9212 arg3 = static_cast< unsigned int >(val3);
9213 {
9214 PyThreadState* __tstate = wxPyBeginAllowThreads();
9215 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9216 wxPyEndAllowThreads(__tstate);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 resultobj = SWIG_Py_Void();
9220 {
9221 if (temp2) delete arg2;
9222 }
9223 return resultobj;
9224 fail:
9225 {
9226 if (temp2) delete arg2;
9227 }
9228 return NULL;
9229 }
9230
9231
9232 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9233 PyObject *resultobj = 0;
9234 wxListBox *arg1 = (wxListBox *) 0 ;
9235 wxArrayString *arg2 = 0 ;
9236 void *argp1 = 0 ;
9237 int res1 = 0 ;
9238 bool temp2 = false ;
9239 PyObject * obj0 = 0 ;
9240 PyObject * obj1 = 0 ;
9241 char * kwnames[] = {
9242 (char *) "self",(char *) "items", NULL
9243 };
9244
9245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9247 if (!SWIG_IsOK(res1)) {
9248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9249 }
9250 arg1 = reinterpret_cast< wxListBox * >(argp1);
9251 {
9252 if (! PySequence_Check(obj1)) {
9253 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9254 SWIG_fail;
9255 }
9256 arg2 = new wxArrayString;
9257 temp2 = true;
9258 int i, len=PySequence_Length(obj1);
9259 for (i=0; i<len; i++) {
9260 PyObject* item = PySequence_GetItem(obj1, i);
9261 wxString* s = wxString_in_helper(item);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 arg2->Add(*s);
9264 delete s;
9265 Py_DECREF(item);
9266 }
9267 }
9268 {
9269 PyThreadState* __tstate = wxPyBeginAllowThreads();
9270 (arg1)->Set((wxArrayString const &)*arg2);
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 }
9274 resultobj = SWIG_Py_Void();
9275 {
9276 if (temp2) delete arg2;
9277 }
9278 return resultobj;
9279 fail:
9280 {
9281 if (temp2) delete arg2;
9282 }
9283 return NULL;
9284 }
9285
9286
9287 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj = 0;
9289 wxListBox *arg1 = (wxListBox *) 0 ;
9290 int arg2 ;
9291 bool result;
9292 void *argp1 = 0 ;
9293 int res1 = 0 ;
9294 int val2 ;
9295 int ecode2 = 0 ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 char * kwnames[] = {
9299 (char *) "self",(char *) "n", NULL
9300 };
9301
9302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9304 if (!SWIG_IsOK(res1)) {
9305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9306 }
9307 arg1 = reinterpret_cast< wxListBox * >(argp1);
9308 ecode2 = SWIG_AsVal_int(obj1, &val2);
9309 if (!SWIG_IsOK(ecode2)) {
9310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9311 }
9312 arg2 = static_cast< int >(val2);
9313 {
9314 PyThreadState* __tstate = wxPyBeginAllowThreads();
9315 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 {
9320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9321 }
9322 return resultobj;
9323 fail:
9324 return NULL;
9325 }
9326
9327
9328 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9329 PyObject *resultobj = 0;
9330 wxListBox *arg1 = (wxListBox *) 0 ;
9331 int arg2 ;
9332 bool arg3 = (bool) true ;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 int val2 ;
9336 int ecode2 = 0 ;
9337 bool val3 ;
9338 int ecode3 = 0 ;
9339 PyObject * obj0 = 0 ;
9340 PyObject * obj1 = 0 ;
9341 PyObject * obj2 = 0 ;
9342 char * kwnames[] = {
9343 (char *) "self",(char *) "n",(char *) "select", NULL
9344 };
9345
9346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9348 if (!SWIG_IsOK(res1)) {
9349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9350 }
9351 arg1 = reinterpret_cast< wxListBox * >(argp1);
9352 ecode2 = SWIG_AsVal_int(obj1, &val2);
9353 if (!SWIG_IsOK(ecode2)) {
9354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9355 }
9356 arg2 = static_cast< int >(val2);
9357 if (obj2) {
9358 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9359 if (!SWIG_IsOK(ecode3)) {
9360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9361 }
9362 arg3 = static_cast< bool >(val3);
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 (arg1)->SetSelection(arg2,arg3);
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 resultobj = SWIG_Py_Void();
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj = 0;
9379 wxListBox *arg1 = (wxListBox *) 0 ;
9380 int arg2 ;
9381 void *argp1 = 0 ;
9382 int res1 = 0 ;
9383 int val2 ;
9384 int ecode2 = 0 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 char * kwnames[] = {
9388 (char *) "self",(char *) "n", NULL
9389 };
9390
9391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9395 }
9396 arg1 = reinterpret_cast< wxListBox * >(argp1);
9397 ecode2 = SWIG_AsVal_int(obj1, &val2);
9398 if (!SWIG_IsOK(ecode2)) {
9399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9400 }
9401 arg2 = static_cast< int >(val2);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->Select(arg2);
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_Py_Void();
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj = 0;
9417 wxListBox *arg1 = (wxListBox *) 0 ;
9418 int arg2 ;
9419 void *argp1 = 0 ;
9420 int res1 = 0 ;
9421 int val2 ;
9422 int ecode2 = 0 ;
9423 PyObject * obj0 = 0 ;
9424 PyObject * obj1 = 0 ;
9425 char * kwnames[] = {
9426 (char *) "self",(char *) "n", NULL
9427 };
9428
9429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9431 if (!SWIG_IsOK(res1)) {
9432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9433 }
9434 arg1 = reinterpret_cast< wxListBox * >(argp1);
9435 ecode2 = SWIG_AsVal_int(obj1, &val2);
9436 if (!SWIG_IsOK(ecode2)) {
9437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9438 }
9439 arg2 = static_cast< int >(val2);
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->Deselect(arg2);
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_Py_Void();
9447 return resultobj;
9448 fail:
9449 return NULL;
9450 }
9451
9452
9453 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj = 0;
9455 wxListBox *arg1 = (wxListBox *) 0 ;
9456 int arg2 = (int) -1 ;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 int val2 ;
9460 int ecode2 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 char * kwnames[] = {
9464 (char *) "self",(char *) "itemToLeaveSelected", NULL
9465 };
9466
9467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9471 }
9472 arg1 = reinterpret_cast< wxListBox * >(argp1);
9473 if (obj1) {
9474 ecode2 = SWIG_AsVal_int(obj1, &val2);
9475 if (!SWIG_IsOK(ecode2)) {
9476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9477 }
9478 arg2 = static_cast< int >(val2);
9479 }
9480 {
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 (arg1)->DeselectAll(arg2);
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 resultobj = SWIG_Py_Void();
9487 return resultobj;
9488 fail:
9489 return NULL;
9490 }
9491
9492
9493 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9494 PyObject *resultobj = 0;
9495 wxListBox *arg1 = (wxListBox *) 0 ;
9496 wxString *arg2 = 0 ;
9497 bool arg3 = (bool) true ;
9498 bool result;
9499 void *argp1 = 0 ;
9500 int res1 = 0 ;
9501 bool temp2 = false ;
9502 bool val3 ;
9503 int ecode3 = 0 ;
9504 PyObject * obj0 = 0 ;
9505 PyObject * obj1 = 0 ;
9506 PyObject * obj2 = 0 ;
9507 char * kwnames[] = {
9508 (char *) "self",(char *) "s",(char *) "select", NULL
9509 };
9510
9511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9513 if (!SWIG_IsOK(res1)) {
9514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9515 }
9516 arg1 = reinterpret_cast< wxListBox * >(argp1);
9517 {
9518 arg2 = wxString_in_helper(obj1);
9519 if (arg2 == NULL) SWIG_fail;
9520 temp2 = true;
9521 }
9522 if (obj2) {
9523 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9524 if (!SWIG_IsOK(ecode3)) {
9525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9526 }
9527 arg3 = static_cast< bool >(val3);
9528 }
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 {
9536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9537 }
9538 {
9539 if (temp2)
9540 delete arg2;
9541 }
9542 return resultobj;
9543 fail:
9544 {
9545 if (temp2)
9546 delete arg2;
9547 }
9548 return NULL;
9549 }
9550
9551
9552 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9553 PyObject *resultobj = 0;
9554 wxListBox *arg1 = (wxListBox *) 0 ;
9555 PyObject *result = 0 ;
9556 void *argp1 = 0 ;
9557 int res1 = 0 ;
9558 PyObject *swig_obj[1] ;
9559
9560 if (!args) SWIG_fail;
9561 swig_obj[0] = args;
9562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9563 if (!SWIG_IsOK(res1)) {
9564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9565 }
9566 arg1 = reinterpret_cast< wxListBox * >(argp1);
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = (PyObject *)wxListBox_GetSelections(arg1);
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = result;
9574 return resultobj;
9575 fail:
9576 return NULL;
9577 }
9578
9579
9580 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj = 0;
9582 wxListBox *arg1 = (wxListBox *) 0 ;
9583 int arg2 ;
9584 void *argp1 = 0 ;
9585 int res1 = 0 ;
9586 int val2 ;
9587 int ecode2 = 0 ;
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 char * kwnames[] = {
9591 (char *) "self",(char *) "n", NULL
9592 };
9593
9594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9596 if (!SWIG_IsOK(res1)) {
9597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9598 }
9599 arg1 = reinterpret_cast< wxListBox * >(argp1);
9600 ecode2 = SWIG_AsVal_int(obj1, &val2);
9601 if (!SWIG_IsOK(ecode2)) {
9602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9603 }
9604 arg2 = static_cast< int >(val2);
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 (arg1)->SetFirstItem(arg2);
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_Py_Void();
9612 return resultobj;
9613 fail:
9614 return NULL;
9615 }
9616
9617
9618 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9619 PyObject *resultobj = 0;
9620 wxListBox *arg1 = (wxListBox *) 0 ;
9621 wxString *arg2 = 0 ;
9622 void *argp1 = 0 ;
9623 int res1 = 0 ;
9624 bool temp2 = false ;
9625 PyObject * obj0 = 0 ;
9626 PyObject * obj1 = 0 ;
9627 char * kwnames[] = {
9628 (char *) "self",(char *) "s", NULL
9629 };
9630
9631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9633 if (!SWIG_IsOK(res1)) {
9634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9635 }
9636 arg1 = reinterpret_cast< wxListBox * >(argp1);
9637 {
9638 arg2 = wxString_in_helper(obj1);
9639 if (arg2 == NULL) SWIG_fail;
9640 temp2 = true;
9641 }
9642 {
9643 PyThreadState* __tstate = wxPyBeginAllowThreads();
9644 (arg1)->SetFirstItem((wxString const &)*arg2);
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 resultobj = SWIG_Py_Void();
9649 {
9650 if (temp2)
9651 delete arg2;
9652 }
9653 return resultobj;
9654 fail:
9655 {
9656 if (temp2)
9657 delete arg2;
9658 }
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj = 0;
9665 wxListBox *arg1 = (wxListBox *) 0 ;
9666 int arg2 ;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 int val2 ;
9670 int ecode2 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 char * kwnames[] = {
9674 (char *) "self",(char *) "n", NULL
9675 };
9676
9677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9681 }
9682 arg1 = reinterpret_cast< wxListBox * >(argp1);
9683 ecode2 = SWIG_AsVal_int(obj1, &val2);
9684 if (!SWIG_IsOK(ecode2)) {
9685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9686 }
9687 arg2 = static_cast< int >(val2);
9688 {
9689 PyThreadState* __tstate = wxPyBeginAllowThreads();
9690 (arg1)->EnsureVisible(arg2);
9691 wxPyEndAllowThreads(__tstate);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 }
9694 resultobj = SWIG_Py_Void();
9695 return resultobj;
9696 fail:
9697 return NULL;
9698 }
9699
9700
9701 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9702 PyObject *resultobj = 0;
9703 wxListBox *arg1 = (wxListBox *) 0 ;
9704 wxString *arg2 = 0 ;
9705 void *argp1 = 0 ;
9706 int res1 = 0 ;
9707 bool temp2 = false ;
9708 PyObject * obj0 = 0 ;
9709 PyObject * obj1 = 0 ;
9710 char * kwnames[] = {
9711 (char *) "self",(char *) "s", NULL
9712 };
9713
9714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9716 if (!SWIG_IsOK(res1)) {
9717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9718 }
9719 arg1 = reinterpret_cast< wxListBox * >(argp1);
9720 {
9721 arg2 = wxString_in_helper(obj1);
9722 if (arg2 == NULL) SWIG_fail;
9723 temp2 = true;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_Py_Void();
9732 {
9733 if (temp2)
9734 delete arg2;
9735 }
9736 return resultobj;
9737 fail:
9738 {
9739 if (temp2)
9740 delete arg2;
9741 }
9742 return NULL;
9743 }
9744
9745
9746 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9747 PyObject *resultobj = 0;
9748 wxListBox *arg1 = (wxListBox *) 0 ;
9749 bool result;
9750 void *argp1 = 0 ;
9751 int res1 = 0 ;
9752 PyObject *swig_obj[1] ;
9753
9754 if (!args) SWIG_fail;
9755 swig_obj[0] = args;
9756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9759 }
9760 arg1 = reinterpret_cast< wxListBox * >(argp1);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (bool)((wxListBox const *)arg1)->IsSorted();
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 {
9768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9769 }
9770 return resultobj;
9771 fail:
9772 return NULL;
9773 }
9774
9775
9776 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj = 0;
9778 wxListBox *arg1 = (wxListBox *) 0 ;
9779 wxPoint *arg2 = 0 ;
9780 int result;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 wxPoint temp2 ;
9784 PyObject * obj0 = 0 ;
9785 PyObject * obj1 = 0 ;
9786 char * kwnames[] = {
9787 (char *) "self",(char *) "pt", NULL
9788 };
9789
9790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9792 if (!SWIG_IsOK(res1)) {
9793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9794 }
9795 arg1 = reinterpret_cast< wxListBox * >(argp1);
9796 {
9797 arg2 = &temp2;
9798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9799 }
9800 {
9801 PyThreadState* __tstate = wxPyBeginAllowThreads();
9802 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 resultobj = SWIG_From_int(static_cast< int >(result));
9807 return resultobj;
9808 fail:
9809 return NULL;
9810 }
9811
9812
9813 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj = 0;
9815 wxListBox *arg1 = (wxListBox *) 0 ;
9816 int arg2 ;
9817 wxColour *arg3 = 0 ;
9818 void *argp1 = 0 ;
9819 int res1 = 0 ;
9820 int val2 ;
9821 int ecode2 = 0 ;
9822 wxColour temp3 ;
9823 PyObject * obj0 = 0 ;
9824 PyObject * obj1 = 0 ;
9825 PyObject * obj2 = 0 ;
9826 char * kwnames[] = {
9827 (char *) "self",(char *) "item",(char *) "c", NULL
9828 };
9829
9830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9832 if (!SWIG_IsOK(res1)) {
9833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9834 }
9835 arg1 = reinterpret_cast< wxListBox * >(argp1);
9836 ecode2 = SWIG_AsVal_int(obj1, &val2);
9837 if (!SWIG_IsOK(ecode2)) {
9838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9839 }
9840 arg2 = static_cast< int >(val2);
9841 {
9842 arg3 = &temp3;
9843 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9844 }
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_Py_Void();
9852 return resultobj;
9853 fail:
9854 return NULL;
9855 }
9856
9857
9858 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj = 0;
9860 wxListBox *arg1 = (wxListBox *) 0 ;
9861 int arg2 ;
9862 wxColour *arg3 = 0 ;
9863 void *argp1 = 0 ;
9864 int res1 = 0 ;
9865 int val2 ;
9866 int ecode2 = 0 ;
9867 wxColour temp3 ;
9868 PyObject * obj0 = 0 ;
9869 PyObject * obj1 = 0 ;
9870 PyObject * obj2 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "self",(char *) "item",(char *) "c", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9877 if (!SWIG_IsOK(res1)) {
9878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9879 }
9880 arg1 = reinterpret_cast< wxListBox * >(argp1);
9881 ecode2 = SWIG_AsVal_int(obj1, &val2);
9882 if (!SWIG_IsOK(ecode2)) {
9883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9884 }
9885 arg2 = static_cast< int >(val2);
9886 {
9887 arg3 = &temp3;
9888 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9889 }
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 resultobj = SWIG_Py_Void();
9897 return resultobj;
9898 fail:
9899 return NULL;
9900 }
9901
9902
9903 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj = 0;
9905 wxListBox *arg1 = (wxListBox *) 0 ;
9906 int arg2 ;
9907 wxFont *arg3 = 0 ;
9908 void *argp1 = 0 ;
9909 int res1 = 0 ;
9910 int val2 ;
9911 int ecode2 = 0 ;
9912 void *argp3 = 0 ;
9913 int res3 = 0 ;
9914 PyObject * obj0 = 0 ;
9915 PyObject * obj1 = 0 ;
9916 PyObject * obj2 = 0 ;
9917 char * kwnames[] = {
9918 (char *) "self",(char *) "item",(char *) "f", NULL
9919 };
9920
9921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9923 if (!SWIG_IsOK(res1)) {
9924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9925 }
9926 arg1 = reinterpret_cast< wxListBox * >(argp1);
9927 ecode2 = SWIG_AsVal_int(obj1, &val2);
9928 if (!SWIG_IsOK(ecode2)) {
9929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9930 }
9931 arg2 = static_cast< int >(val2);
9932 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9933 if (!SWIG_IsOK(res3)) {
9934 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9935 }
9936 if (!argp3) {
9937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9938 }
9939 arg3 = reinterpret_cast< wxFont * >(argp3);
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 resultobj = SWIG_Py_Void();
9947 return resultobj;
9948 fail:
9949 return NULL;
9950 }
9951
9952
9953 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9956 SwigValueWrapper<wxVisualAttributes > result;
9957 int val1 ;
9958 int ecode1 = 0 ;
9959 PyObject * obj0 = 0 ;
9960 char * kwnames[] = {
9961 (char *) "variant", NULL
9962 };
9963
9964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9965 if (obj0) {
9966 ecode1 = SWIG_AsVal_int(obj0, &val1);
9967 if (!SWIG_IsOK(ecode1)) {
9968 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9969 }
9970 arg1 = static_cast< wxWindowVariant >(val1);
9971 }
9972 {
9973 if (!wxPyCheckForApp()) SWIG_fail;
9974 PyThreadState* __tstate = wxPyBeginAllowThreads();
9975 result = wxListBox::GetClassDefaultAttributes(arg1);
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9980 return resultobj;
9981 fail:
9982 return NULL;
9983 }
9984
9985
9986 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9987 PyObject *obj;
9988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9989 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9990 return SWIG_Py_Void();
9991 }
9992
9993 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9994 return SWIG_Python_InitShadowInstance(args);
9995 }
9996
9997 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9998 PyObject *resultobj = 0;
9999 wxWindow *arg1 = (wxWindow *) 0 ;
10000 int arg2 = (int) -1 ;
10001 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10002 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10003 wxSize const &arg4_defvalue = wxDefaultSize ;
10004 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10005 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10006 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10007 long arg6 = (long) 0 ;
10008 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10009 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10010 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10011 wxString *arg8 = (wxString *) &arg8_defvalue ;
10012 wxCheckListBox *result = 0 ;
10013 void *argp1 = 0 ;
10014 int res1 = 0 ;
10015 int val2 ;
10016 int ecode2 = 0 ;
10017 wxPoint temp3 ;
10018 wxSize temp4 ;
10019 bool temp5 = false ;
10020 long val6 ;
10021 int ecode6 = 0 ;
10022 void *argp7 = 0 ;
10023 int res7 = 0 ;
10024 bool temp8 = false ;
10025 PyObject * obj0 = 0 ;
10026 PyObject * obj1 = 0 ;
10027 PyObject * obj2 = 0 ;
10028 PyObject * obj3 = 0 ;
10029 PyObject * obj4 = 0 ;
10030 PyObject * obj5 = 0 ;
10031 PyObject * obj6 = 0 ;
10032 PyObject * obj7 = 0 ;
10033 char * kwnames[] = {
10034 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10035 };
10036
10037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10041 }
10042 arg1 = reinterpret_cast< wxWindow * >(argp1);
10043 if (obj1) {
10044 ecode2 = SWIG_AsVal_int(obj1, &val2);
10045 if (!SWIG_IsOK(ecode2)) {
10046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10047 }
10048 arg2 = static_cast< int >(val2);
10049 }
10050 if (obj2) {
10051 {
10052 arg3 = &temp3;
10053 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10054 }
10055 }
10056 if (obj3) {
10057 {
10058 arg4 = &temp4;
10059 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10060 }
10061 }
10062 if (obj4) {
10063 {
10064 if (! PySequence_Check(obj4)) {
10065 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10066 SWIG_fail;
10067 }
10068 arg5 = new wxArrayString;
10069 temp5 = true;
10070 int i, len=PySequence_Length(obj4);
10071 for (i=0; i<len; i++) {
10072 PyObject* item = PySequence_GetItem(obj4, i);
10073 wxString* s = wxString_in_helper(item);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 arg5->Add(*s);
10076 delete s;
10077 Py_DECREF(item);
10078 }
10079 }
10080 }
10081 if (obj5) {
10082 ecode6 = SWIG_AsVal_long(obj5, &val6);
10083 if (!SWIG_IsOK(ecode6)) {
10084 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10085 }
10086 arg6 = static_cast< long >(val6);
10087 }
10088 if (obj6) {
10089 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10090 if (!SWIG_IsOK(res7)) {
10091 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10092 }
10093 if (!argp7) {
10094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10095 }
10096 arg7 = reinterpret_cast< wxValidator * >(argp7);
10097 }
10098 if (obj7) {
10099 {
10100 arg8 = wxString_in_helper(obj7);
10101 if (arg8 == NULL) SWIG_fail;
10102 temp8 = true;
10103 }
10104 }
10105 {
10106 if (!wxPyCheckForApp()) SWIG_fail;
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10109 wxPyEndAllowThreads(__tstate);
10110 if (PyErr_Occurred()) SWIG_fail;
10111 }
10112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10113 {
10114 if (temp5) delete arg5;
10115 }
10116 {
10117 if (temp8)
10118 delete arg8;
10119 }
10120 return resultobj;
10121 fail:
10122 {
10123 if (temp5) delete arg5;
10124 }
10125 {
10126 if (temp8)
10127 delete arg8;
10128 }
10129 return NULL;
10130 }
10131
10132
10133 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10134 PyObject *resultobj = 0;
10135 wxCheckListBox *result = 0 ;
10136
10137 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10138 {
10139 if (!wxPyCheckForApp()) SWIG_fail;
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (wxCheckListBox *)new wxCheckListBox();
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10146 return resultobj;
10147 fail:
10148 return NULL;
10149 }
10150
10151
10152 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10153 PyObject *resultobj = 0;
10154 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10155 wxWindow *arg2 = (wxWindow *) 0 ;
10156 int arg3 = (int) -1 ;
10157 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10158 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10159 wxSize const &arg5_defvalue = wxDefaultSize ;
10160 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10161 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10162 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10163 long arg7 = (long) 0 ;
10164 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10165 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10166 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10167 wxString *arg9 = (wxString *) &arg9_defvalue ;
10168 bool result;
10169 void *argp1 = 0 ;
10170 int res1 = 0 ;
10171 void *argp2 = 0 ;
10172 int res2 = 0 ;
10173 int val3 ;
10174 int ecode3 = 0 ;
10175 wxPoint temp4 ;
10176 wxSize temp5 ;
10177 bool temp6 = false ;
10178 long val7 ;
10179 int ecode7 = 0 ;
10180 void *argp8 = 0 ;
10181 int res8 = 0 ;
10182 bool temp9 = false ;
10183 PyObject * obj0 = 0 ;
10184 PyObject * obj1 = 0 ;
10185 PyObject * obj2 = 0 ;
10186 PyObject * obj3 = 0 ;
10187 PyObject * obj4 = 0 ;
10188 PyObject * obj5 = 0 ;
10189 PyObject * obj6 = 0 ;
10190 PyObject * obj7 = 0 ;
10191 PyObject * obj8 = 0 ;
10192 char * kwnames[] = {
10193 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10194 };
10195
10196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10198 if (!SWIG_IsOK(res1)) {
10199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10200 }
10201 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10203 if (!SWIG_IsOK(res2)) {
10204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10205 }
10206 arg2 = reinterpret_cast< wxWindow * >(argp2);
10207 if (obj2) {
10208 ecode3 = SWIG_AsVal_int(obj2, &val3);
10209 if (!SWIG_IsOK(ecode3)) {
10210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10211 }
10212 arg3 = static_cast< int >(val3);
10213 }
10214 if (obj3) {
10215 {
10216 arg4 = &temp4;
10217 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10218 }
10219 }
10220 if (obj4) {
10221 {
10222 arg5 = &temp5;
10223 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10224 }
10225 }
10226 if (obj5) {
10227 {
10228 if (! PySequence_Check(obj5)) {
10229 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10230 SWIG_fail;
10231 }
10232 arg6 = new wxArrayString;
10233 temp6 = true;
10234 int i, len=PySequence_Length(obj5);
10235 for (i=0; i<len; i++) {
10236 PyObject* item = PySequence_GetItem(obj5, i);
10237 wxString* s = wxString_in_helper(item);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 arg6->Add(*s);
10240 delete s;
10241 Py_DECREF(item);
10242 }
10243 }
10244 }
10245 if (obj6) {
10246 ecode7 = SWIG_AsVal_long(obj6, &val7);
10247 if (!SWIG_IsOK(ecode7)) {
10248 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10249 }
10250 arg7 = static_cast< long >(val7);
10251 }
10252 if (obj7) {
10253 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10254 if (!SWIG_IsOK(res8)) {
10255 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10256 }
10257 if (!argp8) {
10258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10259 }
10260 arg8 = reinterpret_cast< wxValidator * >(argp8);
10261 }
10262 if (obj8) {
10263 {
10264 arg9 = wxString_in_helper(obj8);
10265 if (arg9 == NULL) SWIG_fail;
10266 temp9 = true;
10267 }
10268 }
10269 {
10270 PyThreadState* __tstate = wxPyBeginAllowThreads();
10271 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 {
10276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10277 }
10278 {
10279 if (temp6) delete arg6;
10280 }
10281 {
10282 if (temp9)
10283 delete arg9;
10284 }
10285 return resultobj;
10286 fail:
10287 {
10288 if (temp6) delete arg6;
10289 }
10290 {
10291 if (temp9)
10292 delete arg9;
10293 }
10294 return NULL;
10295 }
10296
10297
10298 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj = 0;
10300 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10301 unsigned int arg2 ;
10302 bool result;
10303 void *argp1 = 0 ;
10304 int res1 = 0 ;
10305 unsigned int val2 ;
10306 int ecode2 = 0 ;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10309 char * kwnames[] = {
10310 (char *) "self",(char *) "index", NULL
10311 };
10312
10313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10315 if (!SWIG_IsOK(res1)) {
10316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10317 }
10318 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10319 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10320 if (!SWIG_IsOK(ecode2)) {
10321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10322 }
10323 arg2 = static_cast< unsigned int >(val2);
10324 {
10325 PyThreadState* __tstate = wxPyBeginAllowThreads();
10326 result = (bool)(arg1)->IsChecked(arg2);
10327 wxPyEndAllowThreads(__tstate);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 {
10331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10332 }
10333 return resultobj;
10334 fail:
10335 return NULL;
10336 }
10337
10338
10339 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj = 0;
10341 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10342 unsigned int arg2 ;
10343 int arg3 = (int) true ;
10344 void *argp1 = 0 ;
10345 int res1 = 0 ;
10346 unsigned int val2 ;
10347 int ecode2 = 0 ;
10348 int val3 ;
10349 int ecode3 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 char * kwnames[] = {
10354 (char *) "self",(char *) "index",(char *) "check", NULL
10355 };
10356
10357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10359 if (!SWIG_IsOK(res1)) {
10360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10361 }
10362 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10363 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10364 if (!SWIG_IsOK(ecode2)) {
10365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10366 }
10367 arg2 = static_cast< unsigned int >(val2);
10368 if (obj2) {
10369 ecode3 = SWIG_AsVal_int(obj2, &val3);
10370 if (!SWIG_IsOK(ecode3)) {
10371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10372 }
10373 arg3 = static_cast< int >(val3);
10374 }
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 (arg1)->Check(arg2,arg3);
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 resultobj = SWIG_Py_Void();
10382 return resultobj;
10383 fail:
10384 return NULL;
10385 }
10386
10387
10388 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10389 PyObject *resultobj = 0;
10390 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10391 int result;
10392 void *argp1 = 0 ;
10393 int res1 = 0 ;
10394 PyObject *swig_obj[1] ;
10395
10396 if (!args) SWIG_fail;
10397 swig_obj[0] = args;
10398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10401 }
10402 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (int)(arg1)->GetItemHeight();
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_From_int(static_cast< int >(result));
10410 return resultobj;
10411 fail:
10412 return NULL;
10413 }
10414
10415
10416 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10417 PyObject *obj;
10418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10419 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10420 return SWIG_Py_Void();
10421 }
10422
10423 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 return SWIG_Python_InitShadowInstance(args);
10425 }
10426
10427 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10428 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10429 return 1;
10430 }
10431
10432
10433 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10434 PyObject *pyobj = 0;
10435
10436 {
10437 #if wxUSE_UNICODE
10438 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10439 #else
10440 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10441 #endif
10442 }
10443 return pyobj;
10444 }
10445
10446
10447 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj = 0;
10449 wxColour const &arg1_defvalue = wxNullColour ;
10450 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10451 wxColour const &arg2_defvalue = wxNullColour ;
10452 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10453 wxFont const &arg3_defvalue = wxNullFont ;
10454 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10455 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10456 wxTextAttr *result = 0 ;
10457 wxColour temp1 ;
10458 wxColour temp2 ;
10459 void *argp3 = 0 ;
10460 int res3 = 0 ;
10461 int val4 ;
10462 int ecode4 = 0 ;
10463 PyObject * obj0 = 0 ;
10464 PyObject * obj1 = 0 ;
10465 PyObject * obj2 = 0 ;
10466 PyObject * obj3 = 0 ;
10467 char * kwnames[] = {
10468 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10469 };
10470
10471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10472 if (obj0) {
10473 {
10474 arg1 = &temp1;
10475 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10476 }
10477 }
10478 if (obj1) {
10479 {
10480 arg2 = &temp2;
10481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10482 }
10483 }
10484 if (obj2) {
10485 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10486 if (!SWIG_IsOK(res3)) {
10487 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10488 }
10489 if (!argp3) {
10490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10491 }
10492 arg3 = reinterpret_cast< wxFont * >(argp3);
10493 }
10494 if (obj3) {
10495 ecode4 = SWIG_AsVal_int(obj3, &val4);
10496 if (!SWIG_IsOK(ecode4)) {
10497 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10498 }
10499 arg4 = static_cast< wxTextAttrAlignment >(val4);
10500 }
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10508 return resultobj;
10509 fail:
10510 return NULL;
10511 }
10512
10513
10514 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10517 void *argp1 = 0 ;
10518 int res1 = 0 ;
10519 PyObject *swig_obj[1] ;
10520
10521 if (!args) SWIG_fail;
10522 swig_obj[0] = args;
10523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10524 if (!SWIG_IsOK(res1)) {
10525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10526 }
10527 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 delete arg1;
10531
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_Py_Void();
10536 return resultobj;
10537 fail:
10538 return NULL;
10539 }
10540
10541
10542 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543 PyObject *resultobj = 0;
10544 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10545 void *argp1 = 0 ;
10546 int res1 = 0 ;
10547 PyObject *swig_obj[1] ;
10548
10549 if (!args) SWIG_fail;
10550 swig_obj[0] = args;
10551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10552 if (!SWIG_IsOK(res1)) {
10553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10554 }
10555 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 (arg1)->Init();
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 resultobj = SWIG_Py_Void();
10563 return resultobj;
10564 fail:
10565 return NULL;
10566 }
10567
10568
10569 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj = 0;
10571 wxTextAttr *arg1 = 0 ;
10572 wxTextAttr *arg2 = 0 ;
10573 wxTextAttr result;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 void *argp2 = 0 ;
10577 int res2 = 0 ;
10578 PyObject * obj0 = 0 ;
10579 PyObject * obj1 = 0 ;
10580 char * kwnames[] = {
10581 (char *) "base",(char *) "overlay", NULL
10582 };
10583
10584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10585 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10586 if (!SWIG_IsOK(res1)) {
10587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10588 }
10589 if (!argp1) {
10590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10591 }
10592 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10594 if (!SWIG_IsOK(res2)) {
10595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10596 }
10597 if (!argp2) {
10598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10599 }
10600 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10608 return resultobj;
10609 fail:
10610 return NULL;
10611 }
10612
10613
10614 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10617 wxColour *arg2 = 0 ;
10618 void *argp1 = 0 ;
10619 int res1 = 0 ;
10620 wxColour temp2 ;
10621 PyObject * obj0 = 0 ;
10622 PyObject * obj1 = 0 ;
10623 char * kwnames[] = {
10624 (char *) "self",(char *) "colText", NULL
10625 };
10626
10627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10629 if (!SWIG_IsOK(res1)) {
10630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10631 }
10632 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10633 {
10634 arg2 = &temp2;
10635 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10636 }
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 (arg1)->SetTextColour((wxColour const &)*arg2);
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 resultobj = SWIG_Py_Void();
10644 return resultobj;
10645 fail:
10646 return NULL;
10647 }
10648
10649
10650 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj = 0;
10652 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10653 wxColour *arg2 = 0 ;
10654 void *argp1 = 0 ;
10655 int res1 = 0 ;
10656 wxColour temp2 ;
10657 PyObject * obj0 = 0 ;
10658 PyObject * obj1 = 0 ;
10659 char * kwnames[] = {
10660 (char *) "self",(char *) "colBack", NULL
10661 };
10662
10663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10665 if (!SWIG_IsOK(res1)) {
10666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10667 }
10668 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10669 {
10670 arg2 = &temp2;
10671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10672 }
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10676 wxPyEndAllowThreads(__tstate);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 resultobj = SWIG_Py_Void();
10680 return resultobj;
10681 fail:
10682 return NULL;
10683 }
10684
10685
10686 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj = 0;
10688 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10689 wxFont *arg2 = 0 ;
10690 long arg3 = (long) wxTEXT_ATTR_FONT ;
10691 void *argp1 = 0 ;
10692 int res1 = 0 ;
10693 void *argp2 = 0 ;
10694 int res2 = 0 ;
10695 long val3 ;
10696 int ecode3 = 0 ;
10697 PyObject * obj0 = 0 ;
10698 PyObject * obj1 = 0 ;
10699 PyObject * obj2 = 0 ;
10700 char * kwnames[] = {
10701 (char *) "self",(char *) "font",(char *) "flags", NULL
10702 };
10703
10704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10706 if (!SWIG_IsOK(res1)) {
10707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10708 }
10709 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10711 if (!SWIG_IsOK(res2)) {
10712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10713 }
10714 if (!argp2) {
10715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10716 }
10717 arg2 = reinterpret_cast< wxFont * >(argp2);
10718 if (obj2) {
10719 ecode3 = SWIG_AsVal_long(obj2, &val3);
10720 if (!SWIG_IsOK(ecode3)) {
10721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10722 }
10723 arg3 = static_cast< long >(val3);
10724 }
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 resultobj = SWIG_Py_Void();
10732 return resultobj;
10733 fail:
10734 return NULL;
10735 }
10736
10737
10738 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj = 0;
10740 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10741 wxTextAttrAlignment arg2 ;
10742 void *argp1 = 0 ;
10743 int res1 = 0 ;
10744 int val2 ;
10745 int ecode2 = 0 ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10748 char * kwnames[] = {
10749 (char *) "self",(char *) "alignment", NULL
10750 };
10751
10752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10754 if (!SWIG_IsOK(res1)) {
10755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10756 }
10757 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10758 ecode2 = SWIG_AsVal_int(obj1, &val2);
10759 if (!SWIG_IsOK(ecode2)) {
10760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10761 }
10762 arg2 = static_cast< wxTextAttrAlignment >(val2);
10763 {
10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
10765 (arg1)->SetAlignment(arg2);
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 resultobj = SWIG_Py_Void();
10770 return resultobj;
10771 fail:
10772 return NULL;
10773 }
10774
10775
10776 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10777 PyObject *resultobj = 0;
10778 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10779 wxArrayInt *arg2 = 0 ;
10780 void *argp1 = 0 ;
10781 int res1 = 0 ;
10782 bool temp2 = false ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 char * kwnames[] = {
10786 (char *) "self",(char *) "tabs", NULL
10787 };
10788
10789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10791 if (!SWIG_IsOK(res1)) {
10792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10793 }
10794 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10795 {
10796 if (! PySequence_Check(obj1)) {
10797 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10798 SWIG_fail;
10799 }
10800 arg2 = new wxArrayInt;
10801 temp2 = true;
10802 int i, len=PySequence_Length(obj1);
10803 for (i=0; i<len; i++) {
10804 PyObject* item = PySequence_GetItem(obj1, i);
10805 PyObject* number = PyNumber_Int(item);
10806 arg2->Add(PyInt_AS_LONG(number));
10807 Py_DECREF(item);
10808 Py_DECREF(number);
10809 }
10810 }
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10814 wxPyEndAllowThreads(__tstate);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 }
10817 resultobj = SWIG_Py_Void();
10818 {
10819 if (temp2) delete arg2;
10820 }
10821 return resultobj;
10822 fail:
10823 {
10824 if (temp2) delete arg2;
10825 }
10826 return NULL;
10827 }
10828
10829
10830 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj = 0;
10832 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10833 int arg2 ;
10834 int arg3 = (int) 0 ;
10835 void *argp1 = 0 ;
10836 int res1 = 0 ;
10837 int val2 ;
10838 int ecode2 = 0 ;
10839 int val3 ;
10840 int ecode3 = 0 ;
10841 PyObject * obj0 = 0 ;
10842 PyObject * obj1 = 0 ;
10843 PyObject * obj2 = 0 ;
10844 char * kwnames[] = {
10845 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10846 };
10847
10848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10850 if (!SWIG_IsOK(res1)) {
10851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10852 }
10853 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10854 ecode2 = SWIG_AsVal_int(obj1, &val2);
10855 if (!SWIG_IsOK(ecode2)) {
10856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10857 }
10858 arg2 = static_cast< int >(val2);
10859 if (obj2) {
10860 ecode3 = SWIG_AsVal_int(obj2, &val3);
10861 if (!SWIG_IsOK(ecode3)) {
10862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10863 }
10864 arg3 = static_cast< int >(val3);
10865 }
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->SetLeftIndent(arg2,arg3);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 resultobj = SWIG_Py_Void();
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj = 0;
10881 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10882 int arg2 ;
10883 void *argp1 = 0 ;
10884 int res1 = 0 ;
10885 int val2 ;
10886 int ecode2 = 0 ;
10887 PyObject * obj0 = 0 ;
10888 PyObject * obj1 = 0 ;
10889 char * kwnames[] = {
10890 (char *) "self",(char *) "indent", NULL
10891 };
10892
10893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10895 if (!SWIG_IsOK(res1)) {
10896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10897 }
10898 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10899 ecode2 = SWIG_AsVal_int(obj1, &val2);
10900 if (!SWIG_IsOK(ecode2)) {
10901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10902 }
10903 arg2 = static_cast< int >(val2);
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 (arg1)->SetRightIndent(arg2);
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 resultobj = SWIG_Py_Void();
10911 return resultobj;
10912 fail:
10913 return NULL;
10914 }
10915
10916
10917 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj = 0;
10919 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10920 long arg2 ;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 long val2 ;
10924 int ecode2 = 0 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 char * kwnames[] = {
10928 (char *) "self",(char *) "flags", NULL
10929 };
10930
10931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10933 if (!SWIG_IsOK(res1)) {
10934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10935 }
10936 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10937 ecode2 = SWIG_AsVal_long(obj1, &val2);
10938 if (!SWIG_IsOK(ecode2)) {
10939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10940 }
10941 arg2 = static_cast< long >(val2);
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 (arg1)->SetFlags(arg2);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_Py_Void();
10949 return resultobj;
10950 fail:
10951 return NULL;
10952 }
10953
10954
10955 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10956 PyObject *resultobj = 0;
10957 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10958 bool result;
10959 void *argp1 = 0 ;
10960 int res1 = 0 ;
10961 PyObject *swig_obj[1] ;
10962
10963 if (!args) SWIG_fail;
10964 swig_obj[0] = args;
10965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10966 if (!SWIG_IsOK(res1)) {
10967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10968 }
10969 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10973 wxPyEndAllowThreads(__tstate);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 }
10976 {
10977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10978 }
10979 return resultobj;
10980 fail:
10981 return NULL;
10982 }
10983
10984
10985 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10986 PyObject *resultobj = 0;
10987 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10988 bool result;
10989 void *argp1 = 0 ;
10990 int res1 = 0 ;
10991 PyObject *swig_obj[1] ;
10992
10993 if (!args) SWIG_fail;
10994 swig_obj[0] = args;
10995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10998 }
10999 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11003 wxPyEndAllowThreads(__tstate);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 }
11006 {
11007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11008 }
11009 return resultobj;
11010 fail:
11011 return NULL;
11012 }
11013
11014
11015 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11016 PyObject *resultobj = 0;
11017 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11018 bool result;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 PyObject *swig_obj[1] ;
11022
11023 if (!args) SWIG_fail;
11024 swig_obj[0] = args;
11025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11026 if (!SWIG_IsOK(res1)) {
11027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11028 }
11029 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11030 {
11031 PyThreadState* __tstate = wxPyBeginAllowThreads();
11032 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11033 wxPyEndAllowThreads(__tstate);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 {
11037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11038 }
11039 return resultobj;
11040 fail:
11041 return NULL;
11042 }
11043
11044
11045 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11046 PyObject *resultobj = 0;
11047 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11048 bool result;
11049 void *argp1 = 0 ;
11050 int res1 = 0 ;
11051 PyObject *swig_obj[1] ;
11052
11053 if (!args) SWIG_fail;
11054 swig_obj[0] = args;
11055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11056 if (!SWIG_IsOK(res1)) {
11057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11058 }
11059 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11068 }
11069 return resultobj;
11070 fail:
11071 return NULL;
11072 }
11073
11074
11075 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11076 PyObject *resultobj = 0;
11077 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11078 bool result;
11079 void *argp1 = 0 ;
11080 int res1 = 0 ;
11081 PyObject *swig_obj[1] ;
11082
11083 if (!args) SWIG_fail;
11084 swig_obj[0] = args;
11085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11086 if (!SWIG_IsOK(res1)) {
11087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11088 }
11089 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11090 {
11091 PyThreadState* __tstate = wxPyBeginAllowThreads();
11092 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 {
11097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11098 }
11099 return resultobj;
11100 fail:
11101 return NULL;
11102 }
11103
11104
11105 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11106 PyObject *resultobj = 0;
11107 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11108 bool result;
11109 void *argp1 = 0 ;
11110 int res1 = 0 ;
11111 PyObject *swig_obj[1] ;
11112
11113 if (!args) SWIG_fail;
11114 swig_obj[0] = args;
11115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11116 if (!SWIG_IsOK(res1)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11118 }
11119 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 {
11127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11128 }
11129 return resultobj;
11130 fail:
11131 return NULL;
11132 }
11133
11134
11135 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11136 PyObject *resultobj = 0;
11137 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11138 bool result;
11139 void *argp1 = 0 ;
11140 int res1 = 0 ;
11141 PyObject *swig_obj[1] ;
11142
11143 if (!args) SWIG_fail;
11144 swig_obj[0] = args;
11145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11148 }
11149 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 {
11157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11158 }
11159 return resultobj;
11160 fail:
11161 return NULL;
11162 }
11163
11164
11165 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11166 PyObject *resultobj = 0;
11167 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11168 long arg2 ;
11169 bool result;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 long val2 ;
11173 int ecode2 = 0 ;
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 char * kwnames[] = {
11177 (char *) "self",(char *) "flag", NULL
11178 };
11179
11180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11184 }
11185 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11186 ecode2 = SWIG_AsVal_long(obj1, &val2);
11187 if (!SWIG_IsOK(ecode2)) {
11188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11189 }
11190 arg2 = static_cast< long >(val2);
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 {
11198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11199 }
11200 return resultobj;
11201 fail:
11202 return NULL;
11203 }
11204
11205
11206 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11207 PyObject *resultobj = 0;
11208 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11209 wxColour *result = 0 ;
11210 void *argp1 = 0 ;
11211 int res1 = 0 ;
11212 PyObject *swig_obj[1] ;
11213
11214 if (!args) SWIG_fail;
11215 swig_obj[0] = args;
11216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11217 if (!SWIG_IsOK(res1)) {
11218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11219 }
11220 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 {
11224 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11225 result = (wxColour *) &_result_ref;
11226 }
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11231 return resultobj;
11232 fail:
11233 return NULL;
11234 }
11235
11236
11237 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11238 PyObject *resultobj = 0;
11239 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11240 wxColour *result = 0 ;
11241 void *argp1 = 0 ;
11242 int res1 = 0 ;
11243 PyObject *swig_obj[1] ;
11244
11245 if (!args) SWIG_fail;
11246 swig_obj[0] = args;
11247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11248 if (!SWIG_IsOK(res1)) {
11249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11250 }
11251 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
11254 {
11255 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11256 result = (wxColour *) &_result_ref;
11257 }
11258 wxPyEndAllowThreads(__tstate);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11262 return resultobj;
11263 fail:
11264 return NULL;
11265 }
11266
11267
11268 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11269 PyObject *resultobj = 0;
11270 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11271 wxFont *result = 0 ;
11272 void *argp1 = 0 ;
11273 int res1 = 0 ;
11274 PyObject *swig_obj[1] ;
11275
11276 if (!args) SWIG_fail;
11277 swig_obj[0] = args;
11278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11281 }
11282 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 {
11286 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11287 result = (wxFont *) &_result_ref;
11288 }
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 {
11293 wxFont* resultptr = new wxFont(*result);
11294 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11295 }
11296 return resultobj;
11297 fail:
11298 return NULL;
11299 }
11300
11301
11302 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11303 PyObject *resultobj = 0;
11304 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11305 wxTextAttrAlignment result;
11306 void *argp1 = 0 ;
11307 int res1 = 0 ;
11308 PyObject *swig_obj[1] ;
11309
11310 if (!args) SWIG_fail;
11311 swig_obj[0] = args;
11312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11315 }
11316 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 resultobj = SWIG_From_int(static_cast< int >(result));
11324 return resultobj;
11325 fail:
11326 return NULL;
11327 }
11328
11329
11330 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11331 PyObject *resultobj = 0;
11332 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11333 wxArrayInt *result = 0 ;
11334 void *argp1 = 0 ;
11335 int res1 = 0 ;
11336 PyObject *swig_obj[1] ;
11337
11338 if (!args) SWIG_fail;
11339 swig_obj[0] = args;
11340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11343 }
11344 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
11347 {
11348 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11349 result = (wxArrayInt *) &_result_ref;
11350 }
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 {
11355 resultobj = PyList_New(0);
11356 size_t idx;
11357 for (idx = 0; idx < result->GetCount(); idx += 1) {
11358 PyObject* val = PyInt_FromLong( result->Item(idx) );
11359 PyList_Append(resultobj, val);
11360 Py_DECREF(val);
11361 }
11362 }
11363 return resultobj;
11364 fail:
11365 return NULL;
11366 }
11367
11368
11369 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11370 PyObject *resultobj = 0;
11371 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11372 long result;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 PyObject *swig_obj[1] ;
11376
11377 if (!args) SWIG_fail;
11378 swig_obj[0] = args;
11379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11380 if (!SWIG_IsOK(res1)) {
11381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11382 }
11383 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 resultobj = SWIG_From_long(static_cast< long >(result));
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11398 PyObject *resultobj = 0;
11399 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11400 long result;
11401 void *argp1 = 0 ;
11402 int res1 = 0 ;
11403 PyObject *swig_obj[1] ;
11404
11405 if (!args) SWIG_fail;
11406 swig_obj[0] = args;
11407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11410 }
11411 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 resultobj = SWIG_From_long(static_cast< long >(result));
11419 return resultobj;
11420 fail:
11421 return NULL;
11422 }
11423
11424
11425 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11426 PyObject *resultobj = 0;
11427 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11428 long result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 PyObject *swig_obj[1] ;
11432
11433 if (!args) SWIG_fail;
11434 swig_obj[0] = args;
11435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11438 }
11439 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_From_long(static_cast< long >(result));
11447 return resultobj;
11448 fail:
11449 return NULL;
11450 }
11451
11452
11453 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11454 PyObject *resultobj = 0;
11455 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11456 long result;
11457 void *argp1 = 0 ;
11458 int res1 = 0 ;
11459 PyObject *swig_obj[1] ;
11460
11461 if (!args) SWIG_fail;
11462 swig_obj[0] = args;
11463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 resultobj = SWIG_From_long(static_cast< long >(result));
11475 return resultobj;
11476 fail:
11477 return NULL;
11478 }
11479
11480
11481 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11482 PyObject *resultobj = 0;
11483 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11484 bool result;
11485 void *argp1 = 0 ;
11486 int res1 = 0 ;
11487 PyObject *swig_obj[1] ;
11488
11489 if (!args) SWIG_fail;
11490 swig_obj[0] = args;
11491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11492 if (!SWIG_IsOK(res1)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11494 }
11495 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11496 {
11497 PyThreadState* __tstate = wxPyBeginAllowThreads();
11498 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 {
11503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11504 }
11505 return resultobj;
11506 fail:
11507 return NULL;
11508 }
11509
11510
11511 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11512 PyObject *resultobj = 0;
11513 wxTextAttr *arg1 = 0 ;
11514 wxTextAttr *arg2 = 0 ;
11515 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11516 wxTextAttr result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 void *argp2 = 0 ;
11520 int res2 = 0 ;
11521 void *argp3 = 0 ;
11522 int res3 = 0 ;
11523 PyObject * obj0 = 0 ;
11524 PyObject * obj1 = 0 ;
11525 PyObject * obj2 = 0 ;
11526 char * kwnames[] = {
11527 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11528 };
11529
11530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11532 if (!SWIG_IsOK(res1)) {
11533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11534 }
11535 if (!argp1) {
11536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11537 }
11538 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11540 if (!SWIG_IsOK(res2)) {
11541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11542 }
11543 if (!argp2) {
11544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11545 }
11546 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11547 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11548 if (!SWIG_IsOK(res3)) {
11549 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11550 }
11551 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11552 {
11553 PyThreadState* __tstate = wxPyBeginAllowThreads();
11554 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11559 return resultobj;
11560 fail:
11561 return NULL;
11562 }
11563
11564
11565 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11566 PyObject *obj;
11567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11568 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11569 return SWIG_Py_Void();
11570 }
11571
11572 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11573 return SWIG_Python_InitShadowInstance(args);
11574 }
11575
11576 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11577 PyObject *resultobj = 0;
11578 wxWindow *arg1 = (wxWindow *) 0 ;
11579 int arg2 = (int) -1 ;
11580 wxString const &arg3_defvalue = wxPyEmptyString ;
11581 wxString *arg3 = (wxString *) &arg3_defvalue ;
11582 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11583 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11584 wxSize const &arg5_defvalue = wxDefaultSize ;
11585 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11586 long arg6 = (long) 0 ;
11587 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11588 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11589 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11590 wxString *arg8 = (wxString *) &arg8_defvalue ;
11591 wxTextCtrl *result = 0 ;
11592 void *argp1 = 0 ;
11593 int res1 = 0 ;
11594 int val2 ;
11595 int ecode2 = 0 ;
11596 bool temp3 = false ;
11597 wxPoint temp4 ;
11598 wxSize temp5 ;
11599 long val6 ;
11600 int ecode6 = 0 ;
11601 void *argp7 = 0 ;
11602 int res7 = 0 ;
11603 bool temp8 = false ;
11604 PyObject * obj0 = 0 ;
11605 PyObject * obj1 = 0 ;
11606 PyObject * obj2 = 0 ;
11607 PyObject * obj3 = 0 ;
11608 PyObject * obj4 = 0 ;
11609 PyObject * obj5 = 0 ;
11610 PyObject * obj6 = 0 ;
11611 PyObject * obj7 = 0 ;
11612 char * kwnames[] = {
11613 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11614 };
11615
11616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11618 if (!SWIG_IsOK(res1)) {
11619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11620 }
11621 arg1 = reinterpret_cast< wxWindow * >(argp1);
11622 if (obj1) {
11623 ecode2 = SWIG_AsVal_int(obj1, &val2);
11624 if (!SWIG_IsOK(ecode2)) {
11625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11626 }
11627 arg2 = static_cast< int >(val2);
11628 }
11629 if (obj2) {
11630 {
11631 arg3 = wxString_in_helper(obj2);
11632 if (arg3 == NULL) SWIG_fail;
11633 temp3 = true;
11634 }
11635 }
11636 if (obj3) {
11637 {
11638 arg4 = &temp4;
11639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11640 }
11641 }
11642 if (obj4) {
11643 {
11644 arg5 = &temp5;
11645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11646 }
11647 }
11648 if (obj5) {
11649 ecode6 = SWIG_AsVal_long(obj5, &val6);
11650 if (!SWIG_IsOK(ecode6)) {
11651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11652 }
11653 arg6 = static_cast< long >(val6);
11654 }
11655 if (obj6) {
11656 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11657 if (!SWIG_IsOK(res7)) {
11658 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11659 }
11660 if (!argp7) {
11661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11662 }
11663 arg7 = reinterpret_cast< wxValidator * >(argp7);
11664 }
11665 if (obj7) {
11666 {
11667 arg8 = wxString_in_helper(obj7);
11668 if (arg8 == NULL) SWIG_fail;
11669 temp8 = true;
11670 }
11671 }
11672 {
11673 if (!wxPyCheckForApp()) SWIG_fail;
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11680 {
11681 if (temp3)
11682 delete arg3;
11683 }
11684 {
11685 if (temp8)
11686 delete arg8;
11687 }
11688 return resultobj;
11689 fail:
11690 {
11691 if (temp3)
11692 delete arg3;
11693 }
11694 {
11695 if (temp8)
11696 delete arg8;
11697 }
11698 return NULL;
11699 }
11700
11701
11702 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11703 PyObject *resultobj = 0;
11704 wxTextCtrl *result = 0 ;
11705
11706 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11707 {
11708 if (!wxPyCheckForApp()) SWIG_fail;
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (wxTextCtrl *)new wxTextCtrl();
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj = 0;
11723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11724 wxWindow *arg2 = (wxWindow *) 0 ;
11725 int arg3 = (int) -1 ;
11726 wxString const &arg4_defvalue = wxPyEmptyString ;
11727 wxString *arg4 = (wxString *) &arg4_defvalue ;
11728 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11729 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11730 wxSize const &arg6_defvalue = wxDefaultSize ;
11731 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11732 long arg7 = (long) 0 ;
11733 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11734 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11735 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11736 wxString *arg9 = (wxString *) &arg9_defvalue ;
11737 bool result;
11738 void *argp1 = 0 ;
11739 int res1 = 0 ;
11740 void *argp2 = 0 ;
11741 int res2 = 0 ;
11742 int val3 ;
11743 int ecode3 = 0 ;
11744 bool temp4 = false ;
11745 wxPoint temp5 ;
11746 wxSize temp6 ;
11747 long val7 ;
11748 int ecode7 = 0 ;
11749 void *argp8 = 0 ;
11750 int res8 = 0 ;
11751 bool temp9 = false ;
11752 PyObject * obj0 = 0 ;
11753 PyObject * obj1 = 0 ;
11754 PyObject * obj2 = 0 ;
11755 PyObject * obj3 = 0 ;
11756 PyObject * obj4 = 0 ;
11757 PyObject * obj5 = 0 ;
11758 PyObject * obj6 = 0 ;
11759 PyObject * obj7 = 0 ;
11760 PyObject * obj8 = 0 ;
11761 char * kwnames[] = {
11762 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11763 };
11764
11765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11767 if (!SWIG_IsOK(res1)) {
11768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11769 }
11770 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11772 if (!SWIG_IsOK(res2)) {
11773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11774 }
11775 arg2 = reinterpret_cast< wxWindow * >(argp2);
11776 if (obj2) {
11777 ecode3 = SWIG_AsVal_int(obj2, &val3);
11778 if (!SWIG_IsOK(ecode3)) {
11779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11780 }
11781 arg3 = static_cast< int >(val3);
11782 }
11783 if (obj3) {
11784 {
11785 arg4 = wxString_in_helper(obj3);
11786 if (arg4 == NULL) SWIG_fail;
11787 temp4 = true;
11788 }
11789 }
11790 if (obj4) {
11791 {
11792 arg5 = &temp5;
11793 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11794 }
11795 }
11796 if (obj5) {
11797 {
11798 arg6 = &temp6;
11799 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11800 }
11801 }
11802 if (obj6) {
11803 ecode7 = SWIG_AsVal_long(obj6, &val7);
11804 if (!SWIG_IsOK(ecode7)) {
11805 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11806 }
11807 arg7 = static_cast< long >(val7);
11808 }
11809 if (obj7) {
11810 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11811 if (!SWIG_IsOK(res8)) {
11812 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11813 }
11814 if (!argp8) {
11815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11816 }
11817 arg8 = reinterpret_cast< wxValidator * >(argp8);
11818 }
11819 if (obj8) {
11820 {
11821 arg9 = wxString_in_helper(obj8);
11822 if (arg9 == NULL) SWIG_fail;
11823 temp9 = true;
11824 }
11825 }
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 {
11833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11834 }
11835 {
11836 if (temp4)
11837 delete arg4;
11838 }
11839 {
11840 if (temp9)
11841 delete arg9;
11842 }
11843 return resultobj;
11844 fail:
11845 {
11846 if (temp4)
11847 delete arg4;
11848 }
11849 {
11850 if (temp9)
11851 delete arg9;
11852 }
11853 return NULL;
11854 }
11855
11856
11857 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11858 PyObject *resultobj = 0;
11859 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11860 wxString result;
11861 void *argp1 = 0 ;
11862 int res1 = 0 ;
11863 PyObject *swig_obj[1] ;
11864
11865 if (!args) SWIG_fail;
11866 swig_obj[0] = args;
11867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11868 if (!SWIG_IsOK(res1)) {
11869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11870 }
11871 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = ((wxTextCtrl const *)arg1)->GetValue();
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 {
11879 #if wxUSE_UNICODE
11880 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11881 #else
11882 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11883 #endif
11884 }
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj = 0;
11893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11894 wxString *arg2 = 0 ;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 bool temp2 = false ;
11898 PyObject * obj0 = 0 ;
11899 PyObject * obj1 = 0 ;
11900 char * kwnames[] = {
11901 (char *) "self",(char *) "value", NULL
11902 };
11903
11904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11908 }
11909 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11910 {
11911 arg2 = wxString_in_helper(obj1);
11912 if (arg2 == NULL) SWIG_fail;
11913 temp2 = true;
11914 }
11915 {
11916 PyThreadState* __tstate = wxPyBeginAllowThreads();
11917 (arg1)->SetValue((wxString const &)*arg2);
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = SWIG_Py_Void();
11922 {
11923 if (temp2)
11924 delete arg2;
11925 }
11926 return resultobj;
11927 fail:
11928 {
11929 if (temp2)
11930 delete arg2;
11931 }
11932 return NULL;
11933 }
11934
11935
11936 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11939 long arg2 ;
11940 long arg3 ;
11941 wxString result;
11942 void *argp1 = 0 ;
11943 int res1 = 0 ;
11944 long val2 ;
11945 int ecode2 = 0 ;
11946 long val3 ;
11947 int ecode3 = 0 ;
11948 PyObject * obj0 = 0 ;
11949 PyObject * obj1 = 0 ;
11950 PyObject * obj2 = 0 ;
11951 char * kwnames[] = {
11952 (char *) "self",(char *) "from",(char *) "to", NULL
11953 };
11954
11955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11957 if (!SWIG_IsOK(res1)) {
11958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11959 }
11960 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11961 ecode2 = SWIG_AsVal_long(obj1, &val2);
11962 if (!SWIG_IsOK(ecode2)) {
11963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11964 }
11965 arg2 = static_cast< long >(val2);
11966 ecode3 = SWIG_AsVal_long(obj2, &val3);
11967 if (!SWIG_IsOK(ecode3)) {
11968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11969 }
11970 arg3 = static_cast< long >(val3);
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 {
11978 #if wxUSE_UNICODE
11979 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11980 #else
11981 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11982 #endif
11983 }
11984 return resultobj;
11985 fail:
11986 return NULL;
11987 }
11988
11989
11990 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj = 0;
11992 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11993 long arg2 ;
11994 int result;
11995 void *argp1 = 0 ;
11996 int res1 = 0 ;
11997 long val2 ;
11998 int ecode2 = 0 ;
11999 PyObject * obj0 = 0 ;
12000 PyObject * obj1 = 0 ;
12001 char * kwnames[] = {
12002 (char *) "self",(char *) "lineNo", NULL
12003 };
12004
12005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12007 if (!SWIG_IsOK(res1)) {
12008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12009 }
12010 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12011 ecode2 = SWIG_AsVal_long(obj1, &val2);
12012 if (!SWIG_IsOK(ecode2)) {
12013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12014 }
12015 arg2 = static_cast< long >(val2);
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12019 wxPyEndAllowThreads(__tstate);
12020 if (PyErr_Occurred()) SWIG_fail;
12021 }
12022 resultobj = SWIG_From_int(static_cast< int >(result));
12023 return resultobj;
12024 fail:
12025 return NULL;
12026 }
12027
12028
12029 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12030 PyObject *resultobj = 0;
12031 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12032 long arg2 ;
12033 wxString result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 long val2 ;
12037 int ecode2 = 0 ;
12038 PyObject * obj0 = 0 ;
12039 PyObject * obj1 = 0 ;
12040 char * kwnames[] = {
12041 (char *) "self",(char *) "lineNo", NULL
12042 };
12043
12044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12046 if (!SWIG_IsOK(res1)) {
12047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12048 }
12049 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12050 ecode2 = SWIG_AsVal_long(obj1, &val2);
12051 if (!SWIG_IsOK(ecode2)) {
12052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12053 }
12054 arg2 = static_cast< long >(val2);
12055 {
12056 PyThreadState* __tstate = wxPyBeginAllowThreads();
12057 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 {
12062 #if wxUSE_UNICODE
12063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12064 #else
12065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12066 #endif
12067 }
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12075 PyObject *resultobj = 0;
12076 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12077 int result;
12078 void *argp1 = 0 ;
12079 int res1 = 0 ;
12080 PyObject *swig_obj[1] ;
12081
12082 if (!args) SWIG_fail;
12083 swig_obj[0] = args;
12084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12085 if (!SWIG_IsOK(res1)) {
12086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12087 }
12088 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 resultobj = SWIG_From_int(static_cast< int >(result));
12096 return resultobj;
12097 fail:
12098 return NULL;
12099 }
12100
12101
12102 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12103 PyObject *resultobj = 0;
12104 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12105 bool result;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 PyObject *swig_obj[1] ;
12109
12110 if (!args) SWIG_fail;
12111 swig_obj[0] = args;
12112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12113 if (!SWIG_IsOK(res1)) {
12114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12115 }
12116 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 {
12124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12125 }
12126 return resultobj;
12127 fail:
12128 return NULL;
12129 }
12130
12131
12132 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12133 PyObject *resultobj = 0;
12134 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12135 bool result;
12136 void *argp1 = 0 ;
12137 int res1 = 0 ;
12138 PyObject *swig_obj[1] ;
12139
12140 if (!args) SWIG_fail;
12141 swig_obj[0] = args;
12142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12143 if (!SWIG_IsOK(res1)) {
12144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12145 }
12146 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 {
12154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12155 }
12156 return resultobj;
12157 fail:
12158 return NULL;
12159 }
12160
12161
12162 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12163 PyObject *resultobj = 0;
12164 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12165 bool result;
12166 void *argp1 = 0 ;
12167 int res1 = 0 ;
12168 PyObject *swig_obj[1] ;
12169
12170 if (!args) SWIG_fail;
12171 swig_obj[0] = args;
12172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12173 if (!SWIG_IsOK(res1)) {
12174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12175 }
12176 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 {
12184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12185 }
12186 return resultobj;
12187 fail:
12188 return NULL;
12189 }
12190
12191
12192 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12193 PyObject *resultobj = 0;
12194 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12195 bool result;
12196 void *argp1 = 0 ;
12197 int res1 = 0 ;
12198 PyObject *swig_obj[1] ;
12199
12200 if (!args) SWIG_fail;
12201 swig_obj[0] = args;
12202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12203 if (!SWIG_IsOK(res1)) {
12204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12205 }
12206 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 {
12214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12215 }
12216 return resultobj;
12217 fail:
12218 return NULL;
12219 }
12220
12221
12222 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12225 long *arg2 = (long *) 0 ;
12226 long *arg3 = (long *) 0 ;
12227 void *argp1 = 0 ;
12228 int res1 = 0 ;
12229 long temp2 ;
12230 int res2 = SWIG_TMPOBJ ;
12231 long temp3 ;
12232 int res3 = SWIG_TMPOBJ ;
12233 PyObject *swig_obj[1] ;
12234
12235 arg2 = &temp2;
12236 arg3 = &temp3;
12237 if (!args) SWIG_fail;
12238 swig_obj[0] = args;
12239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12242 }
12243 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 resultobj = SWIG_Py_Void();
12251 if (SWIG_IsTmpObj(res2)) {
12252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12253 } else {
12254 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12256 }
12257 if (SWIG_IsTmpObj(res3)) {
12258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12259 } else {
12260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12262 }
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 wxString result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 #if wxUSE_UNICODE
12292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12293 #else
12294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12295 #endif
12296 }
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12306 void *argp1 = 0 ;
12307 int res1 = 0 ;
12308 PyObject *swig_obj[1] ;
12309
12310 if (!args) SWIG_fail;
12311 swig_obj[0] = args;
12312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12313 if (!SWIG_IsOK(res1)) {
12314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12315 }
12316 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12317 {
12318 PyThreadState* __tstate = wxPyBeginAllowThreads();
12319 (arg1)->Clear();
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 resultobj = SWIG_Py_Void();
12324 return resultobj;
12325 fail:
12326 return NULL;
12327 }
12328
12329
12330 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12331 PyObject *resultobj = 0;
12332 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12333 long arg2 ;
12334 long arg3 ;
12335 wxString *arg4 = 0 ;
12336 void *argp1 = 0 ;
12337 int res1 = 0 ;
12338 long val2 ;
12339 int ecode2 = 0 ;
12340 long val3 ;
12341 int ecode3 = 0 ;
12342 bool temp4 = false ;
12343 PyObject * obj0 = 0 ;
12344 PyObject * obj1 = 0 ;
12345 PyObject * obj2 = 0 ;
12346 PyObject * obj3 = 0 ;
12347 char * kwnames[] = {
12348 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12349 };
12350
12351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12355 }
12356 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12357 ecode2 = SWIG_AsVal_long(obj1, &val2);
12358 if (!SWIG_IsOK(ecode2)) {
12359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12360 }
12361 arg2 = static_cast< long >(val2);
12362 ecode3 = SWIG_AsVal_long(obj2, &val3);
12363 if (!SWIG_IsOK(ecode3)) {
12364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12365 }
12366 arg3 = static_cast< long >(val3);
12367 {
12368 arg4 = wxString_in_helper(obj3);
12369 if (arg4 == NULL) SWIG_fail;
12370 temp4 = true;
12371 }
12372 {
12373 PyThreadState* __tstate = wxPyBeginAllowThreads();
12374 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 resultobj = SWIG_Py_Void();
12379 {
12380 if (temp4)
12381 delete arg4;
12382 }
12383 return resultobj;
12384 fail:
12385 {
12386 if (temp4)
12387 delete arg4;
12388 }
12389 return NULL;
12390 }
12391
12392
12393 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj = 0;
12395 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12396 long arg2 ;
12397 long arg3 ;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 long val2 ;
12401 int ecode2 = 0 ;
12402 long val3 ;
12403 int ecode3 = 0 ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 PyObject * obj2 = 0 ;
12407 char * kwnames[] = {
12408 (char *) "self",(char *) "from",(char *) "to", NULL
12409 };
12410
12411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12415 }
12416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12417 ecode2 = SWIG_AsVal_long(obj1, &val2);
12418 if (!SWIG_IsOK(ecode2)) {
12419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12420 }
12421 arg2 = static_cast< long >(val2);
12422 ecode3 = SWIG_AsVal_long(obj2, &val3);
12423 if (!SWIG_IsOK(ecode3)) {
12424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12425 }
12426 arg3 = static_cast< long >(val3);
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 (arg1)->Remove(arg2,arg3);
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_Py_Void();
12434 return resultobj;
12435 fail:
12436 return NULL;
12437 }
12438
12439
12440 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj = 0;
12442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12443 wxString *arg2 = 0 ;
12444 bool result;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 bool temp2 = false ;
12448 PyObject * obj0 = 0 ;
12449 PyObject * obj1 = 0 ;
12450 char * kwnames[] = {
12451 (char *) "self",(char *) "file", NULL
12452 };
12453
12454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12456 if (!SWIG_IsOK(res1)) {
12457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12458 }
12459 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12460 {
12461 arg2 = wxString_in_helper(obj1);
12462 if (arg2 == NULL) SWIG_fail;
12463 temp2 = true;
12464 }
12465 {
12466 PyThreadState* __tstate = wxPyBeginAllowThreads();
12467 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 {
12472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12473 }
12474 {
12475 if (temp2)
12476 delete arg2;
12477 }
12478 return resultobj;
12479 fail:
12480 {
12481 if (temp2)
12482 delete arg2;
12483 }
12484 return NULL;
12485 }
12486
12487
12488 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj = 0;
12490 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12491 wxString const &arg2_defvalue = wxPyEmptyString ;
12492 wxString *arg2 = (wxString *) &arg2_defvalue ;
12493 bool result;
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 bool temp2 = false ;
12497 PyObject * obj0 = 0 ;
12498 PyObject * obj1 = 0 ;
12499 char * kwnames[] = {
12500 (char *) "self",(char *) "file", NULL
12501 };
12502
12503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12507 }
12508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12509 if (obj1) {
12510 {
12511 arg2 = wxString_in_helper(obj1);
12512 if (arg2 == NULL) SWIG_fail;
12513 temp2 = true;
12514 }
12515 }
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 {
12523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12524 }
12525 {
12526 if (temp2)
12527 delete arg2;
12528 }
12529 return resultobj;
12530 fail:
12531 {
12532 if (temp2)
12533 delete arg2;
12534 }
12535 return NULL;
12536 }
12537
12538
12539 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12540 PyObject *resultobj = 0;
12541 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12542 void *argp1 = 0 ;
12543 int res1 = 0 ;
12544 PyObject *swig_obj[1] ;
12545
12546 if (!args) SWIG_fail;
12547 swig_obj[0] = args;
12548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12549 if (!SWIG_IsOK(res1)) {
12550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12551 }
12552 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 (arg1)->MarkDirty();
12556 wxPyEndAllowThreads(__tstate);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 resultobj = SWIG_Py_Void();
12560 return resultobj;
12561 fail:
12562 return NULL;
12563 }
12564
12565
12566 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12567 PyObject *resultobj = 0;
12568 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 PyObject *swig_obj[1] ;
12572
12573 if (!args) SWIG_fail;
12574 swig_obj[0] = args;
12575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12576 if (!SWIG_IsOK(res1)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12578 }
12579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 (arg1)->DiscardEdits();
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 resultobj = SWIG_Py_Void();
12587 return resultobj;
12588 fail:
12589 return NULL;
12590 }
12591
12592
12593 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj = 0;
12595 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12596 bool arg2 ;
12597 void *argp1 = 0 ;
12598 int res1 = 0 ;
12599 bool val2 ;
12600 int ecode2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char * kwnames[] = {
12604 (char *) "self",(char *) "modified", NULL
12605 };
12606
12607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12611 }
12612 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12613 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12614 if (!SWIG_IsOK(ecode2)) {
12615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12616 }
12617 arg2 = static_cast< bool >(val2);
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetModified(arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj = 0;
12633 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12634 unsigned long arg2 ;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 unsigned long val2 ;
12638 int ecode2 = 0 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "len", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12649 }
12650 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12651 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12652 if (!SWIG_IsOK(ecode2)) {
12653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12654 }
12655 arg2 = static_cast< unsigned long >(val2);
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 (arg1)->SetMaxLength(arg2);
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 resultobj = SWIG_Py_Void();
12663 return resultobj;
12664 fail:
12665 return NULL;
12666 }
12667
12668
12669 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj = 0;
12671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12672 wxString *arg2 = 0 ;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 bool temp2 = false ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 char * kwnames[] = {
12679 (char *) "self",(char *) "text", NULL
12680 };
12681
12682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12684 if (!SWIG_IsOK(res1)) {
12685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12686 }
12687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12688 {
12689 arg2 = wxString_in_helper(obj1);
12690 if (arg2 == NULL) SWIG_fail;
12691 temp2 = true;
12692 }
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 (arg1)->WriteText((wxString const &)*arg2);
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 resultobj = SWIG_Py_Void();
12700 {
12701 if (temp2)
12702 delete arg2;
12703 }
12704 return resultobj;
12705 fail:
12706 {
12707 if (temp2)
12708 delete arg2;
12709 }
12710 return NULL;
12711 }
12712
12713
12714 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj = 0;
12716 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12717 wxString *arg2 = 0 ;
12718 void *argp1 = 0 ;
12719 int res1 = 0 ;
12720 bool temp2 = false ;
12721 PyObject * obj0 = 0 ;
12722 PyObject * obj1 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "self",(char *) "text", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12731 }
12732 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12733 {
12734 arg2 = wxString_in_helper(obj1);
12735 if (arg2 == NULL) SWIG_fail;
12736 temp2 = true;
12737 }
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->AppendText((wxString const &)*arg2);
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 resultobj = SWIG_Py_Void();
12745 {
12746 if (temp2)
12747 delete arg2;
12748 }
12749 return resultobj;
12750 fail:
12751 {
12752 if (temp2)
12753 delete arg2;
12754 }
12755 return NULL;
12756 }
12757
12758
12759 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj = 0;
12761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12762 wxKeyEvent *arg2 = 0 ;
12763 bool result;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 void *argp2 = 0 ;
12767 int res2 = 0 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "event", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12781 if (!SWIG_IsOK(res2)) {
12782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12783 }
12784 if (!argp2) {
12785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12786 }
12787 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 {
12795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12796 }
12797 return resultobj;
12798 fail:
12799 return NULL;
12800 }
12801
12802
12803 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj = 0;
12805 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12806 long arg2 ;
12807 long arg3 ;
12808 wxTextAttr *arg4 = 0 ;
12809 bool result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 long val2 ;
12813 int ecode2 = 0 ;
12814 long val3 ;
12815 int ecode3 = 0 ;
12816 void *argp4 = 0 ;
12817 int res4 = 0 ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 PyObject * obj2 = 0 ;
12821 PyObject * obj3 = 0 ;
12822 char * kwnames[] = {
12823 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12824 };
12825
12826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12828 if (!SWIG_IsOK(res1)) {
12829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12830 }
12831 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12832 ecode2 = SWIG_AsVal_long(obj1, &val2);
12833 if (!SWIG_IsOK(ecode2)) {
12834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12835 }
12836 arg2 = static_cast< long >(val2);
12837 ecode3 = SWIG_AsVal_long(obj2, &val3);
12838 if (!SWIG_IsOK(ecode3)) {
12839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12840 }
12841 arg3 = static_cast< long >(val3);
12842 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12843 if (!SWIG_IsOK(res4)) {
12844 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12845 }
12846 if (!argp4) {
12847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12848 }
12849 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 {
12857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12858 }
12859 return resultobj;
12860 fail:
12861 return NULL;
12862 }
12863
12864
12865 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj = 0;
12867 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12868 long arg2 ;
12869 wxTextAttr *arg3 = 0 ;
12870 bool result;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 long val2 ;
12874 int ecode2 = 0 ;
12875 void *argp3 = 0 ;
12876 int res3 = 0 ;
12877 PyObject * obj0 = 0 ;
12878 PyObject * obj1 = 0 ;
12879 PyObject * obj2 = 0 ;
12880 char * kwnames[] = {
12881 (char *) "self",(char *) "position",(char *) "style", NULL
12882 };
12883
12884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12886 if (!SWIG_IsOK(res1)) {
12887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12888 }
12889 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12890 ecode2 = SWIG_AsVal_long(obj1, &val2);
12891 if (!SWIG_IsOK(ecode2)) {
12892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12893 }
12894 arg2 = static_cast< long >(val2);
12895 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12896 if (!SWIG_IsOK(res3)) {
12897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12898 }
12899 if (!argp3) {
12900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12901 }
12902 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12906 wxPyEndAllowThreads(__tstate);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 }
12909 {
12910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12911 }
12912 return resultobj;
12913 fail:
12914 return NULL;
12915 }
12916
12917
12918 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 wxTextAttr *arg2 = 0 ;
12922 bool result;
12923 void *argp1 = 0 ;
12924 int res1 = 0 ;
12925 void *argp2 = 0 ;
12926 int res2 = 0 ;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 char * kwnames[] = {
12930 (char *) "self",(char *) "style", NULL
12931 };
12932
12933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12935 if (!SWIG_IsOK(res1)) {
12936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12937 }
12938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12939 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12940 if (!SWIG_IsOK(res2)) {
12941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12942 }
12943 if (!argp2) {
12944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12945 }
12946 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 {
12954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12955 }
12956 return resultobj;
12957 fail:
12958 return NULL;
12959 }
12960
12961
12962 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12963 PyObject *resultobj = 0;
12964 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12965 wxTextAttr *result = 0 ;
12966 void *argp1 = 0 ;
12967 int res1 = 0 ;
12968 PyObject *swig_obj[1] ;
12969
12970 if (!args) SWIG_fail;
12971 swig_obj[0] = args;
12972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12975 }
12976 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
12979 {
12980 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12981 result = (wxTextAttr *) &_result_ref;
12982 }
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12987 return resultobj;
12988 fail:
12989 return NULL;
12990 }
12991
12992
12993 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 long arg2 ;
12997 long arg3 ;
12998 long result;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 long val2 ;
13002 int ecode2 = 0 ;
13003 long val3 ;
13004 int ecode3 = 0 ;
13005 PyObject * obj0 = 0 ;
13006 PyObject * obj1 = 0 ;
13007 PyObject * obj2 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "x",(char *) "y", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13016 }
13017 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13018 ecode2 = SWIG_AsVal_long(obj1, &val2);
13019 if (!SWIG_IsOK(ecode2)) {
13020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13021 }
13022 arg2 = static_cast< long >(val2);
13023 ecode3 = SWIG_AsVal_long(obj2, &val3);
13024 if (!SWIG_IsOK(ecode3)) {
13025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13026 }
13027 arg3 = static_cast< long >(val3);
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 resultobj = SWIG_From_long(static_cast< long >(result));
13035 return resultobj;
13036 fail:
13037 return NULL;
13038 }
13039
13040
13041 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13042 PyObject *resultobj = 0;
13043 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13044 long arg2 ;
13045 long *arg3 = (long *) 0 ;
13046 long *arg4 = (long *) 0 ;
13047 void *argp1 = 0 ;
13048 int res1 = 0 ;
13049 long val2 ;
13050 int ecode2 = 0 ;
13051 long temp3 ;
13052 int res3 = SWIG_TMPOBJ ;
13053 long temp4 ;
13054 int res4 = SWIG_TMPOBJ ;
13055 PyObject * obj0 = 0 ;
13056 PyObject * obj1 = 0 ;
13057 char * kwnames[] = {
13058 (char *) "self",(char *) "pos", NULL
13059 };
13060
13061 arg3 = &temp3;
13062 arg4 = &temp4;
13063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13065 if (!SWIG_IsOK(res1)) {
13066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13067 }
13068 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13069 ecode2 = SWIG_AsVal_long(obj1, &val2);
13070 if (!SWIG_IsOK(ecode2)) {
13071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13072 }
13073 arg2 = static_cast< long >(val2);
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = SWIG_Py_Void();
13081 if (SWIG_IsTmpObj(res3)) {
13082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13083 } else {
13084 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13086 }
13087 if (SWIG_IsTmpObj(res4)) {
13088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13089 } else {
13090 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13092 }
13093 return resultobj;
13094 fail:
13095 return NULL;
13096 }
13097
13098
13099 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj = 0;
13101 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13102 long arg2 ;
13103 void *argp1 = 0 ;
13104 int res1 = 0 ;
13105 long val2 ;
13106 int ecode2 = 0 ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "self",(char *) "pos", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13117 }
13118 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13119 ecode2 = SWIG_AsVal_long(obj1, &val2);
13120 if (!SWIG_IsOK(ecode2)) {
13121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13122 }
13123 arg2 = static_cast< long >(val2);
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 (arg1)->ShowPosition(arg2);
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 resultobj = SWIG_Py_Void();
13131 return resultobj;
13132 fail:
13133 return NULL;
13134 }
13135
13136
13137 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13138 PyObject *resultobj = 0;
13139 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13140 wxPoint *arg2 = 0 ;
13141 long *arg3 = (long *) 0 ;
13142 long *arg4 = (long *) 0 ;
13143 wxTextCtrlHitTestResult result;
13144 void *argp1 = 0 ;
13145 int res1 = 0 ;
13146 wxPoint temp2 ;
13147 long temp3 ;
13148 int res3 = SWIG_TMPOBJ ;
13149 long temp4 ;
13150 int res4 = SWIG_TMPOBJ ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 char * kwnames[] = {
13154 (char *) "self",(char *) "pt", NULL
13155 };
13156
13157 arg3 = &temp3;
13158 arg4 = &temp4;
13159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13161 if (!SWIG_IsOK(res1)) {
13162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13163 }
13164 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13165 {
13166 arg2 = &temp2;
13167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13168 }
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13172 wxPyEndAllowThreads(__tstate);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 resultobj = SWIG_From_int(static_cast< int >(result));
13176 if (SWIG_IsTmpObj(res3)) {
13177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13178 } else {
13179 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13181 }
13182 if (SWIG_IsTmpObj(res4)) {
13183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13184 } else {
13185 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13187 }
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj = 0;
13196 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13197 wxPoint *arg2 = 0 ;
13198 long *arg3 = (long *) 0 ;
13199 wxTextCtrlHitTestResult result;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 wxPoint temp2 ;
13203 long temp3 ;
13204 int res3 = SWIG_TMPOBJ ;
13205 PyObject * obj0 = 0 ;
13206 PyObject * obj1 = 0 ;
13207 char * kwnames[] = {
13208 (char *) "self",(char *) "pt", NULL
13209 };
13210
13211 arg3 = &temp3;
13212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13214 if (!SWIG_IsOK(res1)) {
13215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13216 }
13217 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13218 {
13219 arg2 = &temp2;
13220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 resultobj = SWIG_From_int(static_cast< int >(result));
13229 if (SWIG_IsTmpObj(res3)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13234 }
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 void *argp1 = 0 ;
13245 int res1 = 0 ;
13246 PyObject *swig_obj[1] ;
13247
13248 if (!args) SWIG_fail;
13249 swig_obj[0] = args;
13250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13253 }
13254 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->Copy();
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13269 PyObject *resultobj = 0;
13270 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13271 void *argp1 = 0 ;
13272 int res1 = 0 ;
13273 PyObject *swig_obj[1] ;
13274
13275 if (!args) SWIG_fail;
13276 swig_obj[0] = args;
13277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13278 if (!SWIG_IsOK(res1)) {
13279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13280 }
13281 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13282 {
13283 PyThreadState* __tstate = wxPyBeginAllowThreads();
13284 (arg1)->Cut();
13285 wxPyEndAllowThreads(__tstate);
13286 if (PyErr_Occurred()) SWIG_fail;
13287 }
13288 resultobj = SWIG_Py_Void();
13289 return resultobj;
13290 fail:
13291 return NULL;
13292 }
13293
13294
13295 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13296 PyObject *resultobj = 0;
13297 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13298 void *argp1 = 0 ;
13299 int res1 = 0 ;
13300 PyObject *swig_obj[1] ;
13301
13302 if (!args) SWIG_fail;
13303 swig_obj[0] = args;
13304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13305 if (!SWIG_IsOK(res1)) {
13306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13307 }
13308 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 (arg1)->Paste();
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_Py_Void();
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13323 PyObject *resultobj = 0;
13324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13325 bool result;
13326 void *argp1 = 0 ;
13327 int res1 = 0 ;
13328 PyObject *swig_obj[1] ;
13329
13330 if (!args) SWIG_fail;
13331 swig_obj[0] = args;
13332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13335 }
13336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13345 }
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13355 bool result;
13356 void *argp1 = 0 ;
13357 int res1 = 0 ;
13358 PyObject *swig_obj[1] ;
13359
13360 if (!args) SWIG_fail;
13361 swig_obj[0] = args;
13362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13363 if (!SWIG_IsOK(res1)) {
13364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13365 }
13366 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 {
13374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13375 }
13376 return resultobj;
13377 fail:
13378 return NULL;
13379 }
13380
13381
13382 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *resultobj = 0;
13384 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13385 bool result;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13395 }
13396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 {
13404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13405 }
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 PyObject *resultobj = 0;
13414 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13415 void *argp1 = 0 ;
13416 int res1 = 0 ;
13417 PyObject *swig_obj[1] ;
13418
13419 if (!args) SWIG_fail;
13420 swig_obj[0] = args;
13421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13422 if (!SWIG_IsOK(res1)) {
13423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13424 }
13425 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->Undo();
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 resultobj = SWIG_Py_Void();
13433 return resultobj;
13434 fail:
13435 return NULL;
13436 }
13437
13438
13439 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13440 PyObject *resultobj = 0;
13441 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13442 void *argp1 = 0 ;
13443 int res1 = 0 ;
13444 PyObject *swig_obj[1] ;
13445
13446 if (!args) SWIG_fail;
13447 swig_obj[0] = args;
13448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13449 if (!SWIG_IsOK(res1)) {
13450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13451 }
13452 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13453 {
13454 PyThreadState* __tstate = wxPyBeginAllowThreads();
13455 (arg1)->Redo();
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_Py_Void();
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13467 PyObject *resultobj = 0;
13468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13469 bool result;
13470 void *argp1 = 0 ;
13471 int res1 = 0 ;
13472 PyObject *swig_obj[1] ;
13473
13474 if (!args) SWIG_fail;
13475 swig_obj[0] = args;
13476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13477 if (!SWIG_IsOK(res1)) {
13478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13479 }
13480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 {
13488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13489 }
13490 return resultobj;
13491 fail:
13492 return NULL;
13493 }
13494
13495
13496 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13497 PyObject *resultobj = 0;
13498 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13499 bool result;
13500 void *argp1 = 0 ;
13501 int res1 = 0 ;
13502 PyObject *swig_obj[1] ;
13503
13504 if (!args) SWIG_fail;
13505 swig_obj[0] = args;
13506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13507 if (!SWIG_IsOK(res1)) {
13508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13509 }
13510 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13514 wxPyEndAllowThreads(__tstate);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 {
13518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13519 }
13520 return resultobj;
13521 fail:
13522 return NULL;
13523 }
13524
13525
13526 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj = 0;
13528 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13529 long arg2 ;
13530 void *argp1 = 0 ;
13531 int res1 = 0 ;
13532 long val2 ;
13533 int ecode2 = 0 ;
13534 PyObject * obj0 = 0 ;
13535 PyObject * obj1 = 0 ;
13536 char * kwnames[] = {
13537 (char *) "self",(char *) "pos", NULL
13538 };
13539
13540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13542 if (!SWIG_IsOK(res1)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13544 }
13545 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13546 ecode2 = SWIG_AsVal_long(obj1, &val2);
13547 if (!SWIG_IsOK(ecode2)) {
13548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13549 }
13550 arg2 = static_cast< long >(val2);
13551 {
13552 PyThreadState* __tstate = wxPyBeginAllowThreads();
13553 (arg1)->SetInsertionPoint(arg2);
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 resultobj = SWIG_Py_Void();
13558 return resultobj;
13559 fail:
13560 return NULL;
13561 }
13562
13563
13564 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13565 PyObject *resultobj = 0;
13566 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13567 void *argp1 = 0 ;
13568 int res1 = 0 ;
13569 PyObject *swig_obj[1] ;
13570
13571 if (!args) SWIG_fail;
13572 swig_obj[0] = args;
13573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13574 if (!SWIG_IsOK(res1)) {
13575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13576 }
13577 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 (arg1)->SetInsertionPointEnd();
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 resultobj = SWIG_Py_Void();
13585 return resultobj;
13586 fail:
13587 return NULL;
13588 }
13589
13590
13591 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13592 PyObject *resultobj = 0;
13593 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13594 long result;
13595 void *argp1 = 0 ;
13596 int res1 = 0 ;
13597 PyObject *swig_obj[1] ;
13598
13599 if (!args) SWIG_fail;
13600 swig_obj[0] = args;
13601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13602 if (!SWIG_IsOK(res1)) {
13603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13604 }
13605 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 resultobj = SWIG_From_long(static_cast< long >(result));
13613 return resultobj;
13614 fail:
13615 return NULL;
13616 }
13617
13618
13619 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13620 PyObject *resultobj = 0;
13621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13622 long result;
13623 void *argp1 = 0 ;
13624 int res1 = 0 ;
13625 PyObject *swig_obj[1] ;
13626
13627 if (!args) SWIG_fail;
13628 swig_obj[0] = args;
13629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13630 if (!SWIG_IsOK(res1)) {
13631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13632 }
13633 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13634 {
13635 PyThreadState* __tstate = wxPyBeginAllowThreads();
13636 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 resultobj = SWIG_From_long(static_cast< long >(result));
13641 return resultobj;
13642 fail:
13643 return NULL;
13644 }
13645
13646
13647 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13648 PyObject *resultobj = 0;
13649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13650 long arg2 ;
13651 long arg3 ;
13652 void *argp1 = 0 ;
13653 int res1 = 0 ;
13654 long val2 ;
13655 int ecode2 = 0 ;
13656 long val3 ;
13657 int ecode3 = 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 PyObject * obj2 = 0 ;
13661 char * kwnames[] = {
13662 (char *) "self",(char *) "from",(char *) "to", NULL
13663 };
13664
13665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13667 if (!SWIG_IsOK(res1)) {
13668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13669 }
13670 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13671 ecode2 = SWIG_AsVal_long(obj1, &val2);
13672 if (!SWIG_IsOK(ecode2)) {
13673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13674 }
13675 arg2 = static_cast< long >(val2);
13676 ecode3 = SWIG_AsVal_long(obj2, &val3);
13677 if (!SWIG_IsOK(ecode3)) {
13678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13679 }
13680 arg3 = static_cast< long >(val3);
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 (arg1)->SetSelection(arg2,arg3);
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 resultobj = SWIG_Py_Void();
13688 return resultobj;
13689 fail:
13690 return NULL;
13691 }
13692
13693
13694 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13695 PyObject *resultobj = 0;
13696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13697 void *argp1 = 0 ;
13698 int res1 = 0 ;
13699 PyObject *swig_obj[1] ;
13700
13701 if (!args) SWIG_fail;
13702 swig_obj[0] = args;
13703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13704 if (!SWIG_IsOK(res1)) {
13705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13706 }
13707 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 (arg1)->SelectAll();
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_Py_Void();
13715 return resultobj;
13716 fail:
13717 return NULL;
13718 }
13719
13720
13721 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13724 bool arg2 ;
13725 void *argp1 = 0 ;
13726 int res1 = 0 ;
13727 bool val2 ;
13728 int ecode2 = 0 ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char * kwnames[] = {
13732 (char *) "self",(char *) "editable", NULL
13733 };
13734
13735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13739 }
13740 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13741 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13742 if (!SWIG_IsOK(ecode2)) {
13743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13744 }
13745 arg2 = static_cast< bool >(val2);
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 (arg1)->SetEditable(arg2);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_Py_Void();
13753 return resultobj;
13754 fail:
13755 return NULL;
13756 }
13757
13758
13759 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj = 0;
13761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13762 bool arg2 = (bool) true ;
13763 bool result;
13764 void *argp1 = 0 ;
13765 int res1 = 0 ;
13766 bool val2 ;
13767 int ecode2 = 0 ;
13768 PyObject * obj0 = 0 ;
13769 PyObject * obj1 = 0 ;
13770 char * kwnames[] = {
13771 (char *) "self",(char *) "show", NULL
13772 };
13773
13774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13776 if (!SWIG_IsOK(res1)) {
13777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13778 }
13779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13780 if (obj1) {
13781 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13782 if (!SWIG_IsOK(ecode2)) {
13783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13784 }
13785 arg2 = static_cast< bool >(val2);
13786 }
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 result = (bool)(arg1)->ShowNativeCaret(arg2);
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 {
13794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13795 }
13796 return resultobj;
13797 fail:
13798 return NULL;
13799 }
13800
13801
13802 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13803 PyObject *resultobj = 0;
13804 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13805 bool result;
13806 void *argp1 = 0 ;
13807 int res1 = 0 ;
13808 PyObject *swig_obj[1] ;
13809
13810 if (!args) SWIG_fail;
13811 swig_obj[0] = args;
13812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13813 if (!SWIG_IsOK(res1)) {
13814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13815 }
13816 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 result = (bool)(arg1)->HideNativeCaret();
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 {
13824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13825 }
13826 return resultobj;
13827 fail:
13828 return NULL;
13829 }
13830
13831
13832 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13833 PyObject *resultobj = 0;
13834 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13835 wxString *arg2 = 0 ;
13836 void *argp1 = 0 ;
13837 int res1 = 0 ;
13838 bool temp2 = false ;
13839 PyObject * obj0 = 0 ;
13840 PyObject * obj1 = 0 ;
13841 char * kwnames[] = {
13842 (char *) "self",(char *) "text", NULL
13843 };
13844
13845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13847 if (!SWIG_IsOK(res1)) {
13848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13849 }
13850 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13851 {
13852 arg2 = wxString_in_helper(obj1);
13853 if (arg2 == NULL) SWIG_fail;
13854 temp2 = true;
13855 }
13856 {
13857 PyThreadState* __tstate = wxPyBeginAllowThreads();
13858 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13859 wxPyEndAllowThreads(__tstate);
13860 if (PyErr_Occurred()) SWIG_fail;
13861 }
13862 resultobj = SWIG_Py_Void();
13863 {
13864 if (temp2)
13865 delete arg2;
13866 }
13867 return resultobj;
13868 fail:
13869 {
13870 if (temp2)
13871 delete arg2;
13872 }
13873 return NULL;
13874 }
13875
13876
13877 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj = 0;
13879 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13880 long arg2 ;
13881 long arg3 ;
13882 wxString result;
13883 void *argp1 = 0 ;
13884 int res1 = 0 ;
13885 long val2 ;
13886 int ecode2 = 0 ;
13887 long val3 ;
13888 int ecode3 = 0 ;
13889 PyObject * obj0 = 0 ;
13890 PyObject * obj1 = 0 ;
13891 PyObject * obj2 = 0 ;
13892 char * kwnames[] = {
13893 (char *) "self",(char *) "from",(char *) "to", NULL
13894 };
13895
13896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13898 if (!SWIG_IsOK(res1)) {
13899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13900 }
13901 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13902 ecode2 = SWIG_AsVal_long(obj1, &val2);
13903 if (!SWIG_IsOK(ecode2)) {
13904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13905 }
13906 arg2 = static_cast< long >(val2);
13907 ecode3 = SWIG_AsVal_long(obj2, &val3);
13908 if (!SWIG_IsOK(ecode3)) {
13909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13910 }
13911 arg3 = static_cast< long >(val3);
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 {
13919 #if wxUSE_UNICODE
13920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13921 #else
13922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13923 #endif
13924 }
13925 return resultobj;
13926 fail:
13927 return NULL;
13928 }
13929
13930
13931 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13932 PyObject *resultobj = 0;
13933 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13934 SwigValueWrapper<wxVisualAttributes > result;
13935 int val1 ;
13936 int ecode1 = 0 ;
13937 PyObject * obj0 = 0 ;
13938 char * kwnames[] = {
13939 (char *) "variant", NULL
13940 };
13941
13942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13943 if (obj0) {
13944 ecode1 = SWIG_AsVal_int(obj0, &val1);
13945 if (!SWIG_IsOK(ecode1)) {
13946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13947 }
13948 arg1 = static_cast< wxWindowVariant >(val1);
13949 }
13950 {
13951 if (!wxPyCheckForApp()) SWIG_fail;
13952 PyThreadState* __tstate = wxPyBeginAllowThreads();
13953 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13958 return resultobj;
13959 fail:
13960 return NULL;
13961 }
13962
13963
13964 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13965 PyObject *obj;
13966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13967 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13968 return SWIG_Py_Void();
13969 }
13970
13971 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13972 return SWIG_Python_InitShadowInstance(args);
13973 }
13974
13975 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13976 PyObject *resultobj = 0;
13977 int arg1 ;
13978 wxMouseEvent *arg2 = 0 ;
13979 long arg3 ;
13980 long arg4 ;
13981 wxTextUrlEvent *result = 0 ;
13982 int val1 ;
13983 int ecode1 = 0 ;
13984 void *argp2 = 0 ;
13985 int res2 = 0 ;
13986 long val3 ;
13987 int ecode3 = 0 ;
13988 long val4 ;
13989 int ecode4 = 0 ;
13990 PyObject * obj0 = 0 ;
13991 PyObject * obj1 = 0 ;
13992 PyObject * obj2 = 0 ;
13993 PyObject * obj3 = 0 ;
13994 char * kwnames[] = {
13995 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13996 };
13997
13998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13999 ecode1 = SWIG_AsVal_int(obj0, &val1);
14000 if (!SWIG_IsOK(ecode1)) {
14001 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14002 }
14003 arg1 = static_cast< int >(val1);
14004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14005 if (!SWIG_IsOK(res2)) {
14006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14007 }
14008 if (!argp2) {
14009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14010 }
14011 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14012 ecode3 = SWIG_AsVal_long(obj2, &val3);
14013 if (!SWIG_IsOK(ecode3)) {
14014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14015 }
14016 arg3 = static_cast< long >(val3);
14017 ecode4 = SWIG_AsVal_long(obj3, &val4);
14018 if (!SWIG_IsOK(ecode4)) {
14019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14020 }
14021 arg4 = static_cast< long >(val4);
14022 {
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14029 return resultobj;
14030 fail:
14031 return NULL;
14032 }
14033
14034
14035 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14036 PyObject *resultobj = 0;
14037 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14038 wxMouseEvent *result = 0 ;
14039 void *argp1 = 0 ;
14040 int res1 = 0 ;
14041 PyObject *swig_obj[1] ;
14042
14043 if (!args) SWIG_fail;
14044 swig_obj[0] = args;
14045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14046 if (!SWIG_IsOK(res1)) {
14047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14048 }
14049 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14050 {
14051 PyThreadState* __tstate = wxPyBeginAllowThreads();
14052 {
14053 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14054 result = (wxMouseEvent *) &_result_ref;
14055 }
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14060 return resultobj;
14061 fail:
14062 return NULL;
14063 }
14064
14065
14066 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14067 PyObject *resultobj = 0;
14068 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14069 long result;
14070 void *argp1 = 0 ;
14071 int res1 = 0 ;
14072 PyObject *swig_obj[1] ;
14073
14074 if (!args) SWIG_fail;
14075 swig_obj[0] = args;
14076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14077 if (!SWIG_IsOK(res1)) {
14078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14079 }
14080 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14081 {
14082 PyThreadState* __tstate = wxPyBeginAllowThreads();
14083 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 resultobj = SWIG_From_long(static_cast< long >(result));
14088 return resultobj;
14089 fail:
14090 return NULL;
14091 }
14092
14093
14094 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14095 PyObject *resultobj = 0;
14096 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14097 long result;
14098 void *argp1 = 0 ;
14099 int res1 = 0 ;
14100 PyObject *swig_obj[1] ;
14101
14102 if (!args) SWIG_fail;
14103 swig_obj[0] = args;
14104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14105 if (!SWIG_IsOK(res1)) {
14106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14107 }
14108 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14109 {
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 resultobj = SWIG_From_long(static_cast< long >(result));
14116 return resultobj;
14117 fail:
14118 return NULL;
14119 }
14120
14121
14122 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14123 PyObject *obj;
14124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14125 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14126 return SWIG_Py_Void();
14127 }
14128
14129 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14130 return SWIG_Python_InitShadowInstance(args);
14131 }
14132
14133 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14134 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14135 return 1;
14136 }
14137
14138
14139 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14140 PyObject *pyobj = 0;
14141
14142 {
14143 #if wxUSE_UNICODE
14144 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14145 #else
14146 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14147 #endif
14148 }
14149 return pyobj;
14150 }
14151
14152
14153 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14154 PyObject *resultobj = 0;
14155 wxWindow *arg1 = (wxWindow *) 0 ;
14156 int arg2 = (int) -1 ;
14157 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14158 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14159 wxSize const &arg4_defvalue = wxDefaultSize ;
14160 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14161 long arg5 = (long) wxSB_HORIZONTAL ;
14162 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14163 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14164 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14165 wxString *arg7 = (wxString *) &arg7_defvalue ;
14166 wxScrollBar *result = 0 ;
14167 void *argp1 = 0 ;
14168 int res1 = 0 ;
14169 int val2 ;
14170 int ecode2 = 0 ;
14171 wxPoint temp3 ;
14172 wxSize temp4 ;
14173 long val5 ;
14174 int ecode5 = 0 ;
14175 void *argp6 = 0 ;
14176 int res6 = 0 ;
14177 bool temp7 = false ;
14178 PyObject * obj0 = 0 ;
14179 PyObject * obj1 = 0 ;
14180 PyObject * obj2 = 0 ;
14181 PyObject * obj3 = 0 ;
14182 PyObject * obj4 = 0 ;
14183 PyObject * obj5 = 0 ;
14184 PyObject * obj6 = 0 ;
14185 char * kwnames[] = {
14186 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14187 };
14188
14189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14191 if (!SWIG_IsOK(res1)) {
14192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14193 }
14194 arg1 = reinterpret_cast< wxWindow * >(argp1);
14195 if (obj1) {
14196 ecode2 = SWIG_AsVal_int(obj1, &val2);
14197 if (!SWIG_IsOK(ecode2)) {
14198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14199 }
14200 arg2 = static_cast< int >(val2);
14201 }
14202 if (obj2) {
14203 {
14204 arg3 = &temp3;
14205 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14206 }
14207 }
14208 if (obj3) {
14209 {
14210 arg4 = &temp4;
14211 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14212 }
14213 }
14214 if (obj4) {
14215 ecode5 = SWIG_AsVal_long(obj4, &val5);
14216 if (!SWIG_IsOK(ecode5)) {
14217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14218 }
14219 arg5 = static_cast< long >(val5);
14220 }
14221 if (obj5) {
14222 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14223 if (!SWIG_IsOK(res6)) {
14224 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14225 }
14226 if (!argp6) {
14227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14228 }
14229 arg6 = reinterpret_cast< wxValidator * >(argp6);
14230 }
14231 if (obj6) {
14232 {
14233 arg7 = wxString_in_helper(obj6);
14234 if (arg7 == NULL) SWIG_fail;
14235 temp7 = true;
14236 }
14237 }
14238 {
14239 if (!wxPyCheckForApp()) SWIG_fail;
14240 PyThreadState* __tstate = wxPyBeginAllowThreads();
14241 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14246 {
14247 if (temp7)
14248 delete arg7;
14249 }
14250 return resultobj;
14251 fail:
14252 {
14253 if (temp7)
14254 delete arg7;
14255 }
14256 return NULL;
14257 }
14258
14259
14260 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14261 PyObject *resultobj = 0;
14262 wxScrollBar *result = 0 ;
14263
14264 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14265 {
14266 if (!wxPyCheckForApp()) SWIG_fail;
14267 PyThreadState* __tstate = wxPyBeginAllowThreads();
14268 result = (wxScrollBar *)new wxScrollBar();
14269 wxPyEndAllowThreads(__tstate);
14270 if (PyErr_Occurred()) SWIG_fail;
14271 }
14272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14273 return resultobj;
14274 fail:
14275 return NULL;
14276 }
14277
14278
14279 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14280 PyObject *resultobj = 0;
14281 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14282 wxWindow *arg2 = (wxWindow *) 0 ;
14283 int arg3 = (int) -1 ;
14284 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14285 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14286 wxSize const &arg5_defvalue = wxDefaultSize ;
14287 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14288 long arg6 = (long) wxSB_HORIZONTAL ;
14289 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14290 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14291 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14292 wxString *arg8 = (wxString *) &arg8_defvalue ;
14293 bool result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 void *argp2 = 0 ;
14297 int res2 = 0 ;
14298 int val3 ;
14299 int ecode3 = 0 ;
14300 wxPoint temp4 ;
14301 wxSize temp5 ;
14302 long val6 ;
14303 int ecode6 = 0 ;
14304 void *argp7 = 0 ;
14305 int res7 = 0 ;
14306 bool temp8 = false ;
14307 PyObject * obj0 = 0 ;
14308 PyObject * obj1 = 0 ;
14309 PyObject * obj2 = 0 ;
14310 PyObject * obj3 = 0 ;
14311 PyObject * obj4 = 0 ;
14312 PyObject * obj5 = 0 ;
14313 PyObject * obj6 = 0 ;
14314 PyObject * obj7 = 0 ;
14315 char * kwnames[] = {
14316 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14317 };
14318
14319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14321 if (!SWIG_IsOK(res1)) {
14322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14323 }
14324 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14325 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14326 if (!SWIG_IsOK(res2)) {
14327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14328 }
14329 arg2 = reinterpret_cast< wxWindow * >(argp2);
14330 if (obj2) {
14331 ecode3 = SWIG_AsVal_int(obj2, &val3);
14332 if (!SWIG_IsOK(ecode3)) {
14333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14334 }
14335 arg3 = static_cast< int >(val3);
14336 }
14337 if (obj3) {
14338 {
14339 arg4 = &temp4;
14340 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14341 }
14342 }
14343 if (obj4) {
14344 {
14345 arg5 = &temp5;
14346 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14347 }
14348 }
14349 if (obj5) {
14350 ecode6 = SWIG_AsVal_long(obj5, &val6);
14351 if (!SWIG_IsOK(ecode6)) {
14352 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14353 }
14354 arg6 = static_cast< long >(val6);
14355 }
14356 if (obj6) {
14357 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14358 if (!SWIG_IsOK(res7)) {
14359 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14360 }
14361 if (!argp7) {
14362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14363 }
14364 arg7 = reinterpret_cast< wxValidator * >(argp7);
14365 }
14366 if (obj7) {
14367 {
14368 arg8 = wxString_in_helper(obj7);
14369 if (arg8 == NULL) SWIG_fail;
14370 temp8 = true;
14371 }
14372 }
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 {
14380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14381 }
14382 {
14383 if (temp8)
14384 delete arg8;
14385 }
14386 return resultobj;
14387 fail:
14388 {
14389 if (temp8)
14390 delete arg8;
14391 }
14392 return NULL;
14393 }
14394
14395
14396 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14397 PyObject *resultobj = 0;
14398 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14399 int result;
14400 void *argp1 = 0 ;
14401 int res1 = 0 ;
14402 PyObject *swig_obj[1] ;
14403
14404 if (!args) SWIG_fail;
14405 swig_obj[0] = args;
14406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14407 if (!SWIG_IsOK(res1)) {
14408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14409 }
14410 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14411 {
14412 PyThreadState* __tstate = wxPyBeginAllowThreads();
14413 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14414 wxPyEndAllowThreads(__tstate);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 }
14417 resultobj = SWIG_From_int(static_cast< int >(result));
14418 return resultobj;
14419 fail:
14420 return NULL;
14421 }
14422
14423
14424 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14425 PyObject *resultobj = 0;
14426 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14427 int result;
14428 void *argp1 = 0 ;
14429 int res1 = 0 ;
14430 PyObject *swig_obj[1] ;
14431
14432 if (!args) SWIG_fail;
14433 swig_obj[0] = args;
14434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14435 if (!SWIG_IsOK(res1)) {
14436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14437 }
14438 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 resultobj = SWIG_From_int(static_cast< int >(result));
14446 return resultobj;
14447 fail:
14448 return NULL;
14449 }
14450
14451
14452 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14453 PyObject *resultobj = 0;
14454 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14455 int result;
14456 void *argp1 = 0 ;
14457 int res1 = 0 ;
14458 PyObject *swig_obj[1] ;
14459
14460 if (!args) SWIG_fail;
14461 swig_obj[0] = args;
14462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14463 if (!SWIG_IsOK(res1)) {
14464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14465 }
14466 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14467 {
14468 PyThreadState* __tstate = wxPyBeginAllowThreads();
14469 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 resultobj = SWIG_From_int(static_cast< int >(result));
14474 return resultobj;
14475 fail:
14476 return NULL;
14477 }
14478
14479
14480 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14481 PyObject *resultobj = 0;
14482 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14483 int result;
14484 void *argp1 = 0 ;
14485 int res1 = 0 ;
14486 PyObject *swig_obj[1] ;
14487
14488 if (!args) SWIG_fail;
14489 swig_obj[0] = args;
14490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14491 if (!SWIG_IsOK(res1)) {
14492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14493 }
14494 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = (int)((wxScrollBar const *)arg1)->GetRange();
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 resultobj = SWIG_From_int(static_cast< int >(result));
14502 return resultobj;
14503 fail:
14504 return NULL;
14505 }
14506
14507
14508 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14509 PyObject *resultobj = 0;
14510 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14511 bool result;
14512 void *argp1 = 0 ;
14513 int res1 = 0 ;
14514 PyObject *swig_obj[1] ;
14515
14516 if (!args) SWIG_fail;
14517 swig_obj[0] = args;
14518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14519 if (!SWIG_IsOK(res1)) {
14520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14521 }
14522 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14526 wxPyEndAllowThreads(__tstate);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 }
14529 {
14530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14531 }
14532 return resultobj;
14533 fail:
14534 return NULL;
14535 }
14536
14537
14538 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj = 0;
14540 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14541 int arg2 ;
14542 void *argp1 = 0 ;
14543 int res1 = 0 ;
14544 int val2 ;
14545 int ecode2 = 0 ;
14546 PyObject * obj0 = 0 ;
14547 PyObject * obj1 = 0 ;
14548 char * kwnames[] = {
14549 (char *) "self",(char *) "viewStart", NULL
14550 };
14551
14552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14554 if (!SWIG_IsOK(res1)) {
14555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14556 }
14557 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14558 ecode2 = SWIG_AsVal_int(obj1, &val2);
14559 if (!SWIG_IsOK(ecode2)) {
14560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14561 }
14562 arg2 = static_cast< int >(val2);
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 (arg1)->SetThumbPosition(arg2);
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 resultobj = SWIG_Py_Void();
14570 return resultobj;
14571 fail:
14572 return NULL;
14573 }
14574
14575
14576 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14577 PyObject *resultobj = 0;
14578 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14579 SwigValueWrapper<wxVisualAttributes > result;
14580 int val1 ;
14581 int ecode1 = 0 ;
14582 PyObject * obj0 = 0 ;
14583 char * kwnames[] = {
14584 (char *) "variant", NULL
14585 };
14586
14587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14588 if (obj0) {
14589 ecode1 = SWIG_AsVal_int(obj0, &val1);
14590 if (!SWIG_IsOK(ecode1)) {
14591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14592 }
14593 arg1 = static_cast< wxWindowVariant >(val1);
14594 }
14595 {
14596 if (!wxPyCheckForApp()) SWIG_fail;
14597 PyThreadState* __tstate = wxPyBeginAllowThreads();
14598 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14603 return resultobj;
14604 fail:
14605 return NULL;
14606 }
14607
14608
14609 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14610 PyObject *obj;
14611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14612 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14613 return SWIG_Py_Void();
14614 }
14615
14616 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14617 return SWIG_Python_InitShadowInstance(args);
14618 }
14619
14620 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14621 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14622 return 1;
14623 }
14624
14625
14626 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14627 PyObject *pyobj = 0;
14628
14629 {
14630 #if wxUSE_UNICODE
14631 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14632 #else
14633 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14634 #endif
14635 }
14636 return pyobj;
14637 }
14638
14639
14640 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14641 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14642 return 1;
14643 }
14644
14645
14646 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14647 PyObject *pyobj = 0;
14648
14649 {
14650 #if wxUSE_UNICODE
14651 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14652 #else
14653 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14654 #endif
14655 }
14656 return pyobj;
14657 }
14658
14659
14660 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14661 PyObject *resultobj = 0;
14662 wxWindow *arg1 = (wxWindow *) 0 ;
14663 int arg2 = (int) -1 ;
14664 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14665 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14666 wxSize const &arg4_defvalue = wxDefaultSize ;
14667 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14668 long arg5 = (long) wxSP_HORIZONTAL ;
14669 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14670 wxString *arg6 = (wxString *) &arg6_defvalue ;
14671 wxSpinButton *result = 0 ;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 int val2 ;
14675 int ecode2 = 0 ;
14676 wxPoint temp3 ;
14677 wxSize temp4 ;
14678 long val5 ;
14679 int ecode5 = 0 ;
14680 bool temp6 = false ;
14681 PyObject * obj0 = 0 ;
14682 PyObject * obj1 = 0 ;
14683 PyObject * obj2 = 0 ;
14684 PyObject * obj3 = 0 ;
14685 PyObject * obj4 = 0 ;
14686 PyObject * obj5 = 0 ;
14687 char * kwnames[] = {
14688 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14689 };
14690
14691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14693 if (!SWIG_IsOK(res1)) {
14694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14695 }
14696 arg1 = reinterpret_cast< wxWindow * >(argp1);
14697 if (obj1) {
14698 ecode2 = SWIG_AsVal_int(obj1, &val2);
14699 if (!SWIG_IsOK(ecode2)) {
14700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14701 }
14702 arg2 = static_cast< int >(val2);
14703 }
14704 if (obj2) {
14705 {
14706 arg3 = &temp3;
14707 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14708 }
14709 }
14710 if (obj3) {
14711 {
14712 arg4 = &temp4;
14713 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14714 }
14715 }
14716 if (obj4) {
14717 ecode5 = SWIG_AsVal_long(obj4, &val5);
14718 if (!SWIG_IsOK(ecode5)) {
14719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14720 }
14721 arg5 = static_cast< long >(val5);
14722 }
14723 if (obj5) {
14724 {
14725 arg6 = wxString_in_helper(obj5);
14726 if (arg6 == NULL) SWIG_fail;
14727 temp6 = true;
14728 }
14729 }
14730 {
14731 if (!wxPyCheckForApp()) SWIG_fail;
14732 PyThreadState* __tstate = wxPyBeginAllowThreads();
14733 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
14737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14738 {
14739 if (temp6)
14740 delete arg6;
14741 }
14742 return resultobj;
14743 fail:
14744 {
14745 if (temp6)
14746 delete arg6;
14747 }
14748 return NULL;
14749 }
14750
14751
14752 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14753 PyObject *resultobj = 0;
14754 wxSpinButton *result = 0 ;
14755
14756 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14757 {
14758 if (!wxPyCheckForApp()) SWIG_fail;
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 result = (wxSpinButton *)new wxSpinButton();
14761 wxPyEndAllowThreads(__tstate);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14765 return resultobj;
14766 fail:
14767 return NULL;
14768 }
14769
14770
14771 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj = 0;
14773 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14774 wxWindow *arg2 = (wxWindow *) 0 ;
14775 int arg3 = (int) -1 ;
14776 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14777 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14778 wxSize const &arg5_defvalue = wxDefaultSize ;
14779 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14780 long arg6 = (long) wxSP_HORIZONTAL ;
14781 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14782 wxString *arg7 = (wxString *) &arg7_defvalue ;
14783 bool result;
14784 void *argp1 = 0 ;
14785 int res1 = 0 ;
14786 void *argp2 = 0 ;
14787 int res2 = 0 ;
14788 int val3 ;
14789 int ecode3 = 0 ;
14790 wxPoint temp4 ;
14791 wxSize temp5 ;
14792 long val6 ;
14793 int ecode6 = 0 ;
14794 bool temp7 = false ;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 PyObject * obj2 = 0 ;
14798 PyObject * obj3 = 0 ;
14799 PyObject * obj4 = 0 ;
14800 PyObject * obj5 = 0 ;
14801 PyObject * obj6 = 0 ;
14802 char * kwnames[] = {
14803 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14804 };
14805
14806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14808 if (!SWIG_IsOK(res1)) {
14809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14810 }
14811 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14813 if (!SWIG_IsOK(res2)) {
14814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14815 }
14816 arg2 = reinterpret_cast< wxWindow * >(argp2);
14817 if (obj2) {
14818 ecode3 = SWIG_AsVal_int(obj2, &val3);
14819 if (!SWIG_IsOK(ecode3)) {
14820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14821 }
14822 arg3 = static_cast< int >(val3);
14823 }
14824 if (obj3) {
14825 {
14826 arg4 = &temp4;
14827 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14828 }
14829 }
14830 if (obj4) {
14831 {
14832 arg5 = &temp5;
14833 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14834 }
14835 }
14836 if (obj5) {
14837 ecode6 = SWIG_AsVal_long(obj5, &val6);
14838 if (!SWIG_IsOK(ecode6)) {
14839 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14840 }
14841 arg6 = static_cast< long >(val6);
14842 }
14843 if (obj6) {
14844 {
14845 arg7 = wxString_in_helper(obj6);
14846 if (arg7 == NULL) SWIG_fail;
14847 temp7 = true;
14848 }
14849 }
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 {
14857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14858 }
14859 {
14860 if (temp7)
14861 delete arg7;
14862 }
14863 return resultobj;
14864 fail:
14865 {
14866 if (temp7)
14867 delete arg7;
14868 }
14869 return NULL;
14870 }
14871
14872
14873 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14874 PyObject *resultobj = 0;
14875 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14876 int result;
14877 void *argp1 = 0 ;
14878 int res1 = 0 ;
14879 PyObject *swig_obj[1] ;
14880
14881 if (!args) SWIG_fail;
14882 swig_obj[0] = args;
14883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14884 if (!SWIG_IsOK(res1)) {
14885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14886 }
14887 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
14890 result = (int)((wxSpinButton const *)arg1)->GetValue();
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 resultobj = SWIG_From_int(static_cast< int >(result));
14895 return resultobj;
14896 fail:
14897 return NULL;
14898 }
14899
14900
14901 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14902 PyObject *resultobj = 0;
14903 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14904 int result;
14905 void *argp1 = 0 ;
14906 int res1 = 0 ;
14907 PyObject *swig_obj[1] ;
14908
14909 if (!args) SWIG_fail;
14910 swig_obj[0] = args;
14911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14912 if (!SWIG_IsOK(res1)) {
14913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14914 }
14915 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14916 {
14917 PyThreadState* __tstate = wxPyBeginAllowThreads();
14918 result = (int)((wxSpinButton const *)arg1)->GetMin();
14919 wxPyEndAllowThreads(__tstate);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 }
14922 resultobj = SWIG_From_int(static_cast< int >(result));
14923 return resultobj;
14924 fail:
14925 return NULL;
14926 }
14927
14928
14929 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14930 PyObject *resultobj = 0;
14931 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14932 int result;
14933 void *argp1 = 0 ;
14934 int res1 = 0 ;
14935 PyObject *swig_obj[1] ;
14936
14937 if (!args) SWIG_fail;
14938 swig_obj[0] = args;
14939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14940 if (!SWIG_IsOK(res1)) {
14941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14942 }
14943 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 result = (int)((wxSpinButton const *)arg1)->GetMax();
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
14950 resultobj = SWIG_From_int(static_cast< int >(result));
14951 return resultobj;
14952 fail:
14953 return NULL;
14954 }
14955
14956
14957 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14958 PyObject *resultobj = 0;
14959 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14960 int arg2 ;
14961 void *argp1 = 0 ;
14962 int res1 = 0 ;
14963 int val2 ;
14964 int ecode2 = 0 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 char * kwnames[] = {
14968 (char *) "self",(char *) "val", NULL
14969 };
14970
14971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14975 }
14976 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14977 ecode2 = SWIG_AsVal_int(obj1, &val2);
14978 if (!SWIG_IsOK(ecode2)) {
14979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14980 }
14981 arg2 = static_cast< int >(val2);
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 (arg1)->SetValue(arg2);
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = SWIG_Py_Void();
14989 return resultobj;
14990 fail:
14991 return NULL;
14992 }
14993
14994
14995 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj = 0;
14997 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14998 int arg2 ;
14999 void *argp1 = 0 ;
15000 int res1 = 0 ;
15001 int val2 ;
15002 int ecode2 = 0 ;
15003 PyObject * obj0 = 0 ;
15004 PyObject * obj1 = 0 ;
15005 char * kwnames[] = {
15006 (char *) "self",(char *) "minVal", NULL
15007 };
15008
15009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15011 if (!SWIG_IsOK(res1)) {
15012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15013 }
15014 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15015 ecode2 = SWIG_AsVal_int(obj1, &val2);
15016 if (!SWIG_IsOK(ecode2)) {
15017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15018 }
15019 arg2 = static_cast< int >(val2);
15020 {
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 (arg1)->SetMin(arg2);
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
15026 resultobj = SWIG_Py_Void();
15027 return resultobj;
15028 fail:
15029 return NULL;
15030 }
15031
15032
15033 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15034 PyObject *resultobj = 0;
15035 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15036 int arg2 ;
15037 void *argp1 = 0 ;
15038 int res1 = 0 ;
15039 int val2 ;
15040 int ecode2 = 0 ;
15041 PyObject * obj0 = 0 ;
15042 PyObject * obj1 = 0 ;
15043 char * kwnames[] = {
15044 (char *) "self",(char *) "maxVal", NULL
15045 };
15046
15047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15049 if (!SWIG_IsOK(res1)) {
15050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15051 }
15052 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15053 ecode2 = SWIG_AsVal_int(obj1, &val2);
15054 if (!SWIG_IsOK(ecode2)) {
15055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15056 }
15057 arg2 = static_cast< int >(val2);
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 (arg1)->SetMax(arg2);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_Py_Void();
15065 return resultobj;
15066 fail:
15067 return NULL;
15068 }
15069
15070
15071 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15072 PyObject *resultobj = 0;
15073 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15074 int arg2 ;
15075 int arg3 ;
15076 void *argp1 = 0 ;
15077 int res1 = 0 ;
15078 int val2 ;
15079 int ecode2 = 0 ;
15080 int val3 ;
15081 int ecode3 = 0 ;
15082 PyObject * obj0 = 0 ;
15083 PyObject * obj1 = 0 ;
15084 PyObject * obj2 = 0 ;
15085 char * kwnames[] = {
15086 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15087 };
15088
15089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15091 if (!SWIG_IsOK(res1)) {
15092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15093 }
15094 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15095 ecode2 = SWIG_AsVal_int(obj1, &val2);
15096 if (!SWIG_IsOK(ecode2)) {
15097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15098 }
15099 arg2 = static_cast< int >(val2);
15100 ecode3 = SWIG_AsVal_int(obj2, &val3);
15101 if (!SWIG_IsOK(ecode3)) {
15102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15103 }
15104 arg3 = static_cast< int >(val3);
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 (arg1)->SetRange(arg2,arg3);
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 resultobj = SWIG_Py_Void();
15112 return resultobj;
15113 fail:
15114 return NULL;
15115 }
15116
15117
15118 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15119 PyObject *resultobj = 0;
15120 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15121 bool result;
15122 void *argp1 = 0 ;
15123 int res1 = 0 ;
15124 PyObject *swig_obj[1] ;
15125
15126 if (!args) SWIG_fail;
15127 swig_obj[0] = args;
15128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15129 if (!SWIG_IsOK(res1)) {
15130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15131 }
15132 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 {
15140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15141 }
15142 return resultobj;
15143 fail:
15144 return NULL;
15145 }
15146
15147
15148 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj = 0;
15150 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15151 SwigValueWrapper<wxVisualAttributes > result;
15152 int val1 ;
15153 int ecode1 = 0 ;
15154 PyObject * obj0 = 0 ;
15155 char * kwnames[] = {
15156 (char *) "variant", NULL
15157 };
15158
15159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15160 if (obj0) {
15161 ecode1 = SWIG_AsVal_int(obj0, &val1);
15162 if (!SWIG_IsOK(ecode1)) {
15163 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15164 }
15165 arg1 = static_cast< wxWindowVariant >(val1);
15166 }
15167 {
15168 if (!wxPyCheckForApp()) SWIG_fail;
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15175 return resultobj;
15176 fail:
15177 return NULL;
15178 }
15179
15180
15181 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15182 PyObject *obj;
15183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15184 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15185 return SWIG_Py_Void();
15186 }
15187
15188 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15189 return SWIG_Python_InitShadowInstance(args);
15190 }
15191
15192 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15193 PyObject *resultobj = 0;
15194 wxWindow *arg1 = (wxWindow *) 0 ;
15195 int arg2 = (int) -1 ;
15196 wxString const &arg3_defvalue = wxPyEmptyString ;
15197 wxString *arg3 = (wxString *) &arg3_defvalue ;
15198 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15199 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15200 wxSize const &arg5_defvalue = wxDefaultSize ;
15201 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15202 long arg6 = (long) wxSP_ARROW_KEYS ;
15203 int arg7 = (int) 0 ;
15204 int arg8 = (int) 100 ;
15205 int arg9 = (int) 0 ;
15206 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15207 wxString *arg10 = (wxString *) &arg10_defvalue ;
15208 wxSpinCtrl *result = 0 ;
15209 void *argp1 = 0 ;
15210 int res1 = 0 ;
15211 int val2 ;
15212 int ecode2 = 0 ;
15213 bool temp3 = false ;
15214 wxPoint temp4 ;
15215 wxSize temp5 ;
15216 long val6 ;
15217 int ecode6 = 0 ;
15218 int val7 ;
15219 int ecode7 = 0 ;
15220 int val8 ;
15221 int ecode8 = 0 ;
15222 int val9 ;
15223 int ecode9 = 0 ;
15224 bool temp10 = false ;
15225 PyObject * obj0 = 0 ;
15226 PyObject * obj1 = 0 ;
15227 PyObject * obj2 = 0 ;
15228 PyObject * obj3 = 0 ;
15229 PyObject * obj4 = 0 ;
15230 PyObject * obj5 = 0 ;
15231 PyObject * obj6 = 0 ;
15232 PyObject * obj7 = 0 ;
15233 PyObject * obj8 = 0 ;
15234 PyObject * obj9 = 0 ;
15235 char * kwnames[] = {
15236 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15237 };
15238
15239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15241 if (!SWIG_IsOK(res1)) {
15242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15243 }
15244 arg1 = reinterpret_cast< wxWindow * >(argp1);
15245 if (obj1) {
15246 ecode2 = SWIG_AsVal_int(obj1, &val2);
15247 if (!SWIG_IsOK(ecode2)) {
15248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15249 }
15250 arg2 = static_cast< int >(val2);
15251 }
15252 if (obj2) {
15253 {
15254 arg3 = wxString_in_helper(obj2);
15255 if (arg3 == NULL) SWIG_fail;
15256 temp3 = true;
15257 }
15258 }
15259 if (obj3) {
15260 {
15261 arg4 = &temp4;
15262 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15263 }
15264 }
15265 if (obj4) {
15266 {
15267 arg5 = &temp5;
15268 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15269 }
15270 }
15271 if (obj5) {
15272 ecode6 = SWIG_AsVal_long(obj5, &val6);
15273 if (!SWIG_IsOK(ecode6)) {
15274 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15275 }
15276 arg6 = static_cast< long >(val6);
15277 }
15278 if (obj6) {
15279 ecode7 = SWIG_AsVal_int(obj6, &val7);
15280 if (!SWIG_IsOK(ecode7)) {
15281 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15282 }
15283 arg7 = static_cast< int >(val7);
15284 }
15285 if (obj7) {
15286 ecode8 = SWIG_AsVal_int(obj7, &val8);
15287 if (!SWIG_IsOK(ecode8)) {
15288 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15289 }
15290 arg8 = static_cast< int >(val8);
15291 }
15292 if (obj8) {
15293 ecode9 = SWIG_AsVal_int(obj8, &val9);
15294 if (!SWIG_IsOK(ecode9)) {
15295 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15296 }
15297 arg9 = static_cast< int >(val9);
15298 }
15299 if (obj9) {
15300 {
15301 arg10 = wxString_in_helper(obj9);
15302 if (arg10 == NULL) SWIG_fail;
15303 temp10 = true;
15304 }
15305 }
15306 {
15307 if (!wxPyCheckForApp()) SWIG_fail;
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15314 {
15315 if (temp3)
15316 delete arg3;
15317 }
15318 {
15319 if (temp10)
15320 delete arg10;
15321 }
15322 return resultobj;
15323 fail:
15324 {
15325 if (temp3)
15326 delete arg3;
15327 }
15328 {
15329 if (temp10)
15330 delete arg10;
15331 }
15332 return NULL;
15333 }
15334
15335
15336 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15337 PyObject *resultobj = 0;
15338 wxSpinCtrl *result = 0 ;
15339
15340 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15341 {
15342 if (!wxPyCheckForApp()) SWIG_fail;
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
15344 result = (wxSpinCtrl *)new wxSpinCtrl();
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15349 return resultobj;
15350 fail:
15351 return NULL;
15352 }
15353
15354
15355 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj = 0;
15357 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15358 wxWindow *arg2 = (wxWindow *) 0 ;
15359 int arg3 = (int) -1 ;
15360 wxString const &arg4_defvalue = wxPyEmptyString ;
15361 wxString *arg4 = (wxString *) &arg4_defvalue ;
15362 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15363 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15364 wxSize const &arg6_defvalue = wxDefaultSize ;
15365 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15366 long arg7 = (long) wxSP_ARROW_KEYS ;
15367 int arg8 = (int) 0 ;
15368 int arg9 = (int) 100 ;
15369 int arg10 = (int) 0 ;
15370 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15371 wxString *arg11 = (wxString *) &arg11_defvalue ;
15372 bool result;
15373 void *argp1 = 0 ;
15374 int res1 = 0 ;
15375 void *argp2 = 0 ;
15376 int res2 = 0 ;
15377 int val3 ;
15378 int ecode3 = 0 ;
15379 bool temp4 = false ;
15380 wxPoint temp5 ;
15381 wxSize temp6 ;
15382 long val7 ;
15383 int ecode7 = 0 ;
15384 int val8 ;
15385 int ecode8 = 0 ;
15386 int val9 ;
15387 int ecode9 = 0 ;
15388 int val10 ;
15389 int ecode10 = 0 ;
15390 bool temp11 = false ;
15391 PyObject * obj0 = 0 ;
15392 PyObject * obj1 = 0 ;
15393 PyObject * obj2 = 0 ;
15394 PyObject * obj3 = 0 ;
15395 PyObject * obj4 = 0 ;
15396 PyObject * obj5 = 0 ;
15397 PyObject * obj6 = 0 ;
15398 PyObject * obj7 = 0 ;
15399 PyObject * obj8 = 0 ;
15400 PyObject * obj9 = 0 ;
15401 PyObject * obj10 = 0 ;
15402 char * kwnames[] = {
15403 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15404 };
15405
15406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15408 if (!SWIG_IsOK(res1)) {
15409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15410 }
15411 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15412 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15413 if (!SWIG_IsOK(res2)) {
15414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15415 }
15416 arg2 = reinterpret_cast< wxWindow * >(argp2);
15417 if (obj2) {
15418 ecode3 = SWIG_AsVal_int(obj2, &val3);
15419 if (!SWIG_IsOK(ecode3)) {
15420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15421 }
15422 arg3 = static_cast< int >(val3);
15423 }
15424 if (obj3) {
15425 {
15426 arg4 = wxString_in_helper(obj3);
15427 if (arg4 == NULL) SWIG_fail;
15428 temp4 = true;
15429 }
15430 }
15431 if (obj4) {
15432 {
15433 arg5 = &temp5;
15434 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15435 }
15436 }
15437 if (obj5) {
15438 {
15439 arg6 = &temp6;
15440 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15441 }
15442 }
15443 if (obj6) {
15444 ecode7 = SWIG_AsVal_long(obj6, &val7);
15445 if (!SWIG_IsOK(ecode7)) {
15446 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15447 }
15448 arg7 = static_cast< long >(val7);
15449 }
15450 if (obj7) {
15451 ecode8 = SWIG_AsVal_int(obj7, &val8);
15452 if (!SWIG_IsOK(ecode8)) {
15453 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15454 }
15455 arg8 = static_cast< int >(val8);
15456 }
15457 if (obj8) {
15458 ecode9 = SWIG_AsVal_int(obj8, &val9);
15459 if (!SWIG_IsOK(ecode9)) {
15460 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15461 }
15462 arg9 = static_cast< int >(val9);
15463 }
15464 if (obj9) {
15465 ecode10 = SWIG_AsVal_int(obj9, &val10);
15466 if (!SWIG_IsOK(ecode10)) {
15467 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15468 }
15469 arg10 = static_cast< int >(val10);
15470 }
15471 if (obj10) {
15472 {
15473 arg11 = wxString_in_helper(obj10);
15474 if (arg11 == NULL) SWIG_fail;
15475 temp11 = true;
15476 }
15477 }
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15481 wxPyEndAllowThreads(__tstate);
15482 if (PyErr_Occurred()) SWIG_fail;
15483 }
15484 {
15485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15486 }
15487 {
15488 if (temp4)
15489 delete arg4;
15490 }
15491 {
15492 if (temp11)
15493 delete arg11;
15494 }
15495 return resultobj;
15496 fail:
15497 {
15498 if (temp4)
15499 delete arg4;
15500 }
15501 {
15502 if (temp11)
15503 delete arg11;
15504 }
15505 return NULL;
15506 }
15507
15508
15509 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15510 PyObject *resultobj = 0;
15511 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15512 int result;
15513 void *argp1 = 0 ;
15514 int res1 = 0 ;
15515 PyObject *swig_obj[1] ;
15516
15517 if (!args) SWIG_fail;
15518 swig_obj[0] = args;
15519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15520 if (!SWIG_IsOK(res1)) {
15521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15522 }
15523 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 resultobj = SWIG_From_int(static_cast< int >(result));
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj = 0;
15539 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15540 int arg2 ;
15541 void *argp1 = 0 ;
15542 int res1 = 0 ;
15543 int val2 ;
15544 int ecode2 = 0 ;
15545 PyObject * obj0 = 0 ;
15546 PyObject * obj1 = 0 ;
15547 char * kwnames[] = {
15548 (char *) "self",(char *) "value", NULL
15549 };
15550
15551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15553 if (!SWIG_IsOK(res1)) {
15554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15555 }
15556 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15557 ecode2 = SWIG_AsVal_int(obj1, &val2);
15558 if (!SWIG_IsOK(ecode2)) {
15559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15560 }
15561 arg2 = static_cast< int >(val2);
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 (arg1)->SetValue(arg2);
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 resultobj = SWIG_Py_Void();
15569 return resultobj;
15570 fail:
15571 return NULL;
15572 }
15573
15574
15575 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj = 0;
15577 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15578 wxString *arg2 = 0 ;
15579 void *argp1 = 0 ;
15580 int res1 = 0 ;
15581 bool temp2 = false ;
15582 PyObject * obj0 = 0 ;
15583 PyObject * obj1 = 0 ;
15584 char * kwnames[] = {
15585 (char *) "self",(char *) "text", NULL
15586 };
15587
15588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15590 if (!SWIG_IsOK(res1)) {
15591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15592 }
15593 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15594 {
15595 arg2 = wxString_in_helper(obj1);
15596 if (arg2 == NULL) SWIG_fail;
15597 temp2 = true;
15598 }
15599 {
15600 PyThreadState* __tstate = wxPyBeginAllowThreads();
15601 (arg1)->SetValue((wxString const &)*arg2);
15602 wxPyEndAllowThreads(__tstate);
15603 if (PyErr_Occurred()) SWIG_fail;
15604 }
15605 resultobj = SWIG_Py_Void();
15606 {
15607 if (temp2)
15608 delete arg2;
15609 }
15610 return resultobj;
15611 fail:
15612 {
15613 if (temp2)
15614 delete arg2;
15615 }
15616 return NULL;
15617 }
15618
15619
15620 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15621 PyObject *resultobj = 0;
15622 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15623 int arg2 ;
15624 int arg3 ;
15625 void *argp1 = 0 ;
15626 int res1 = 0 ;
15627 int val2 ;
15628 int ecode2 = 0 ;
15629 int val3 ;
15630 int ecode3 = 0 ;
15631 PyObject * obj0 = 0 ;
15632 PyObject * obj1 = 0 ;
15633 PyObject * obj2 = 0 ;
15634 char * kwnames[] = {
15635 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15636 };
15637
15638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15640 if (!SWIG_IsOK(res1)) {
15641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15642 }
15643 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15644 ecode2 = SWIG_AsVal_int(obj1, &val2);
15645 if (!SWIG_IsOK(ecode2)) {
15646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15647 }
15648 arg2 = static_cast< int >(val2);
15649 ecode3 = SWIG_AsVal_int(obj2, &val3);
15650 if (!SWIG_IsOK(ecode3)) {
15651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15652 }
15653 arg3 = static_cast< int >(val3);
15654 {
15655 PyThreadState* __tstate = wxPyBeginAllowThreads();
15656 (arg1)->SetRange(arg2,arg3);
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 resultobj = SWIG_Py_Void();
15661 return resultobj;
15662 fail:
15663 return NULL;
15664 }
15665
15666
15667 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15668 PyObject *resultobj = 0;
15669 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15670 int result;
15671 void *argp1 = 0 ;
15672 int res1 = 0 ;
15673 PyObject *swig_obj[1] ;
15674
15675 if (!args) SWIG_fail;
15676 swig_obj[0] = args;
15677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15678 if (!SWIG_IsOK(res1)) {
15679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15680 }
15681 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15682 {
15683 PyThreadState* __tstate = wxPyBeginAllowThreads();
15684 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 resultobj = SWIG_From_int(static_cast< int >(result));
15689 return resultobj;
15690 fail:
15691 return NULL;
15692 }
15693
15694
15695 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15696 PyObject *resultobj = 0;
15697 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15698 int result;
15699 void *argp1 = 0 ;
15700 int res1 = 0 ;
15701 PyObject *swig_obj[1] ;
15702
15703 if (!args) SWIG_fail;
15704 swig_obj[0] = args;
15705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15706 if (!SWIG_IsOK(res1)) {
15707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15708 }
15709 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15710 {
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15713 wxPyEndAllowThreads(__tstate);
15714 if (PyErr_Occurred()) SWIG_fail;
15715 }
15716 resultobj = SWIG_From_int(static_cast< int >(result));
15717 return resultobj;
15718 fail:
15719 return NULL;
15720 }
15721
15722
15723 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15724 PyObject *resultobj = 0;
15725 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15726 long arg2 ;
15727 long arg3 ;
15728 void *argp1 = 0 ;
15729 int res1 = 0 ;
15730 long val2 ;
15731 int ecode2 = 0 ;
15732 long val3 ;
15733 int ecode3 = 0 ;
15734 PyObject * obj0 = 0 ;
15735 PyObject * obj1 = 0 ;
15736 PyObject * obj2 = 0 ;
15737 char * kwnames[] = {
15738 (char *) "self",(char *) "from",(char *) "to", NULL
15739 };
15740
15741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15743 if (!SWIG_IsOK(res1)) {
15744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15745 }
15746 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15747 ecode2 = SWIG_AsVal_long(obj1, &val2);
15748 if (!SWIG_IsOK(ecode2)) {
15749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15750 }
15751 arg2 = static_cast< long >(val2);
15752 ecode3 = SWIG_AsVal_long(obj2, &val3);
15753 if (!SWIG_IsOK(ecode3)) {
15754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15755 }
15756 arg3 = static_cast< long >(val3);
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 (arg1)->SetSelection(arg2,arg3);
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 resultobj = SWIG_Py_Void();
15764 return resultobj;
15765 fail:
15766 return NULL;
15767 }
15768
15769
15770 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj = 0;
15772 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15773 SwigValueWrapper<wxVisualAttributes > result;
15774 int val1 ;
15775 int ecode1 = 0 ;
15776 PyObject * obj0 = 0 ;
15777 char * kwnames[] = {
15778 (char *) "variant", NULL
15779 };
15780
15781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15782 if (obj0) {
15783 ecode1 = SWIG_AsVal_int(obj0, &val1);
15784 if (!SWIG_IsOK(ecode1)) {
15785 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15786 }
15787 arg1 = static_cast< wxWindowVariant >(val1);
15788 }
15789 {
15790 if (!wxPyCheckForApp()) SWIG_fail;
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15804 PyObject *obj;
15805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15806 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15807 return SWIG_Py_Void();
15808 }
15809
15810 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15811 return SWIG_Python_InitShadowInstance(args);
15812 }
15813
15814 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15815 PyObject *resultobj = 0;
15816 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15817 int arg2 = (int) 0 ;
15818 wxSpinEvent *result = 0 ;
15819 int val1 ;
15820 int ecode1 = 0 ;
15821 int val2 ;
15822 int ecode2 = 0 ;
15823 PyObject * obj0 = 0 ;
15824 PyObject * obj1 = 0 ;
15825 char * kwnames[] = {
15826 (char *) "commandType",(char *) "winid", NULL
15827 };
15828
15829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15830 if (obj0) {
15831 ecode1 = SWIG_AsVal_int(obj0, &val1);
15832 if (!SWIG_IsOK(ecode1)) {
15833 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15834 }
15835 arg1 = static_cast< wxEventType >(val1);
15836 }
15837 if (obj1) {
15838 ecode2 = SWIG_AsVal_int(obj1, &val2);
15839 if (!SWIG_IsOK(ecode2)) {
15840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15841 }
15842 arg2 = static_cast< int >(val2);
15843 }
15844 {
15845 PyThreadState* __tstate = wxPyBeginAllowThreads();
15846 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15847 wxPyEndAllowThreads(__tstate);
15848 if (PyErr_Occurred()) SWIG_fail;
15849 }
15850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15851 return resultobj;
15852 fail:
15853 return NULL;
15854 }
15855
15856
15857 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15858 PyObject *resultobj = 0;
15859 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15860 int result;
15861 void *argp1 = 0 ;
15862 int res1 = 0 ;
15863 PyObject *swig_obj[1] ;
15864
15865 if (!args) SWIG_fail;
15866 swig_obj[0] = args;
15867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15868 if (!SWIG_IsOK(res1)) {
15869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15870 }
15871 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15872 {
15873 PyThreadState* __tstate = wxPyBeginAllowThreads();
15874 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_From_int(static_cast< int >(result));
15879 return resultobj;
15880 fail:
15881 return NULL;
15882 }
15883
15884
15885 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj = 0;
15887 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15888 int arg2 ;
15889 void *argp1 = 0 ;
15890 int res1 = 0 ;
15891 int val2 ;
15892 int ecode2 = 0 ;
15893 PyObject * obj0 = 0 ;
15894 PyObject * obj1 = 0 ;
15895 char * kwnames[] = {
15896 (char *) "self",(char *) "pos", NULL
15897 };
15898
15899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15901 if (!SWIG_IsOK(res1)) {
15902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15903 }
15904 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15905 ecode2 = SWIG_AsVal_int(obj1, &val2);
15906 if (!SWIG_IsOK(ecode2)) {
15907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15908 }
15909 arg2 = static_cast< int >(val2);
15910 {
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 (arg1)->SetPosition(arg2);
15913 wxPyEndAllowThreads(__tstate);
15914 if (PyErr_Occurred()) SWIG_fail;
15915 }
15916 resultobj = SWIG_Py_Void();
15917 return resultobj;
15918 fail:
15919 return NULL;
15920 }
15921
15922
15923 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15924 PyObject *obj;
15925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15926 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15927 return SWIG_Py_Void();
15928 }
15929
15930 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15931 return SWIG_Python_InitShadowInstance(args);
15932 }
15933
15934 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15935 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15936 return 1;
15937 }
15938
15939
15940 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15941 PyObject *pyobj = 0;
15942
15943 {
15944 #if wxUSE_UNICODE
15945 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15946 #else
15947 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15948 #endif
15949 }
15950 return pyobj;
15951 }
15952
15953
15954 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15955 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15956 return 1;
15957 }
15958
15959
15960 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15961 PyObject *pyobj = 0;
15962
15963 {
15964 #if wxUSE_UNICODE
15965 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15966 #else
15967 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15968 #endif
15969 }
15970 return pyobj;
15971 }
15972
15973
15974 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15975 PyObject *resultobj = 0;
15976 wxWindow *arg1 = (wxWindow *) 0 ;
15977 int arg2 = (int) -1 ;
15978 wxString const &arg3_defvalue = wxPyEmptyString ;
15979 wxString *arg3 = (wxString *) &arg3_defvalue ;
15980 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15981 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15982 wxSize const &arg5_defvalue = wxDefaultSize ;
15983 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15984 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15985 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15986 int arg7 = (int) 0 ;
15987 long arg8 = (long) wxRA_HORIZONTAL ;
15988 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15989 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15990 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15991 wxString *arg10 = (wxString *) &arg10_defvalue ;
15992 wxRadioBox *result = 0 ;
15993 void *argp1 = 0 ;
15994 int res1 = 0 ;
15995 int val2 ;
15996 int ecode2 = 0 ;
15997 bool temp3 = false ;
15998 wxPoint temp4 ;
15999 wxSize temp5 ;
16000 bool temp6 = false ;
16001 int val7 ;
16002 int ecode7 = 0 ;
16003 long val8 ;
16004 int ecode8 = 0 ;
16005 void *argp9 = 0 ;
16006 int res9 = 0 ;
16007 bool temp10 = false ;
16008 PyObject * obj0 = 0 ;
16009 PyObject * obj1 = 0 ;
16010 PyObject * obj2 = 0 ;
16011 PyObject * obj3 = 0 ;
16012 PyObject * obj4 = 0 ;
16013 PyObject * obj5 = 0 ;
16014 PyObject * obj6 = 0 ;
16015 PyObject * obj7 = 0 ;
16016 PyObject * obj8 = 0 ;
16017 PyObject * obj9 = 0 ;
16018 char * kwnames[] = {
16019 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16020 };
16021
16022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16024 if (!SWIG_IsOK(res1)) {
16025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16026 }
16027 arg1 = reinterpret_cast< wxWindow * >(argp1);
16028 if (obj1) {
16029 ecode2 = SWIG_AsVal_int(obj1, &val2);
16030 if (!SWIG_IsOK(ecode2)) {
16031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16032 }
16033 arg2 = static_cast< int >(val2);
16034 }
16035 if (obj2) {
16036 {
16037 arg3 = wxString_in_helper(obj2);
16038 if (arg3 == NULL) SWIG_fail;
16039 temp3 = true;
16040 }
16041 }
16042 if (obj3) {
16043 {
16044 arg4 = &temp4;
16045 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16046 }
16047 }
16048 if (obj4) {
16049 {
16050 arg5 = &temp5;
16051 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16052 }
16053 }
16054 if (obj5) {
16055 {
16056 if (! PySequence_Check(obj5)) {
16057 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16058 SWIG_fail;
16059 }
16060 arg6 = new wxArrayString;
16061 temp6 = true;
16062 int i, len=PySequence_Length(obj5);
16063 for (i=0; i<len; i++) {
16064 PyObject* item = PySequence_GetItem(obj5, i);
16065 wxString* s = wxString_in_helper(item);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 arg6->Add(*s);
16068 delete s;
16069 Py_DECREF(item);
16070 }
16071 }
16072 }
16073 if (obj6) {
16074 ecode7 = SWIG_AsVal_int(obj6, &val7);
16075 if (!SWIG_IsOK(ecode7)) {
16076 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16077 }
16078 arg7 = static_cast< int >(val7);
16079 }
16080 if (obj7) {
16081 ecode8 = SWIG_AsVal_long(obj7, &val8);
16082 if (!SWIG_IsOK(ecode8)) {
16083 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16084 }
16085 arg8 = static_cast< long >(val8);
16086 }
16087 if (obj8) {
16088 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16089 if (!SWIG_IsOK(res9)) {
16090 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16091 }
16092 if (!argp9) {
16093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16094 }
16095 arg9 = reinterpret_cast< wxValidator * >(argp9);
16096 }
16097 if (obj9) {
16098 {
16099 arg10 = wxString_in_helper(obj9);
16100 if (arg10 == NULL) SWIG_fail;
16101 temp10 = true;
16102 }
16103 }
16104 {
16105 if (!wxPyCheckForApp()) SWIG_fail;
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 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);
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16112 {
16113 if (temp3)
16114 delete arg3;
16115 }
16116 {
16117 if (temp6) delete arg6;
16118 }
16119 {
16120 if (temp10)
16121 delete arg10;
16122 }
16123 return resultobj;
16124 fail:
16125 {
16126 if (temp3)
16127 delete arg3;
16128 }
16129 {
16130 if (temp6) delete arg6;
16131 }
16132 {
16133 if (temp10)
16134 delete arg10;
16135 }
16136 return NULL;
16137 }
16138
16139
16140 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16141 PyObject *resultobj = 0;
16142 wxRadioBox *result = 0 ;
16143
16144 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16145 {
16146 if (!wxPyCheckForApp()) SWIG_fail;
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = (wxRadioBox *)new wxRadioBox();
16149 wxPyEndAllowThreads(__tstate);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 }
16152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16153 return resultobj;
16154 fail:
16155 return NULL;
16156 }
16157
16158
16159 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj = 0;
16161 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16162 wxWindow *arg2 = (wxWindow *) 0 ;
16163 int arg3 = (int) -1 ;
16164 wxString const &arg4_defvalue = wxPyEmptyString ;
16165 wxString *arg4 = (wxString *) &arg4_defvalue ;
16166 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16167 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16168 wxSize const &arg6_defvalue = wxDefaultSize ;
16169 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16170 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16171 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16172 int arg8 = (int) 0 ;
16173 long arg9 = (long) wxRA_HORIZONTAL ;
16174 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16175 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16176 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16177 wxString *arg11 = (wxString *) &arg11_defvalue ;
16178 bool result;
16179 void *argp1 = 0 ;
16180 int res1 = 0 ;
16181 void *argp2 = 0 ;
16182 int res2 = 0 ;
16183 int val3 ;
16184 int ecode3 = 0 ;
16185 bool temp4 = false ;
16186 wxPoint temp5 ;
16187 wxSize temp6 ;
16188 bool temp7 = false ;
16189 int val8 ;
16190 int ecode8 = 0 ;
16191 long val9 ;
16192 int ecode9 = 0 ;
16193 void *argp10 = 0 ;
16194 int res10 = 0 ;
16195 bool temp11 = false ;
16196 PyObject * obj0 = 0 ;
16197 PyObject * obj1 = 0 ;
16198 PyObject * obj2 = 0 ;
16199 PyObject * obj3 = 0 ;
16200 PyObject * obj4 = 0 ;
16201 PyObject * obj5 = 0 ;
16202 PyObject * obj6 = 0 ;
16203 PyObject * obj7 = 0 ;
16204 PyObject * obj8 = 0 ;
16205 PyObject * obj9 = 0 ;
16206 PyObject * obj10 = 0 ;
16207 char * kwnames[] = {
16208 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16209 };
16210
16211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16213 if (!SWIG_IsOK(res1)) {
16214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16215 }
16216 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16218 if (!SWIG_IsOK(res2)) {
16219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16220 }
16221 arg2 = reinterpret_cast< wxWindow * >(argp2);
16222 if (obj2) {
16223 ecode3 = SWIG_AsVal_int(obj2, &val3);
16224 if (!SWIG_IsOK(ecode3)) {
16225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16226 }
16227 arg3 = static_cast< int >(val3);
16228 }
16229 if (obj3) {
16230 {
16231 arg4 = wxString_in_helper(obj3);
16232 if (arg4 == NULL) SWIG_fail;
16233 temp4 = true;
16234 }
16235 }
16236 if (obj4) {
16237 {
16238 arg5 = &temp5;
16239 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16240 }
16241 }
16242 if (obj5) {
16243 {
16244 arg6 = &temp6;
16245 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16246 }
16247 }
16248 if (obj6) {
16249 {
16250 if (! PySequence_Check(obj6)) {
16251 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16252 SWIG_fail;
16253 }
16254 arg7 = new wxArrayString;
16255 temp7 = true;
16256 int i, len=PySequence_Length(obj6);
16257 for (i=0; i<len; i++) {
16258 PyObject* item = PySequence_GetItem(obj6, i);
16259 wxString* s = wxString_in_helper(item);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 arg7->Add(*s);
16262 delete s;
16263 Py_DECREF(item);
16264 }
16265 }
16266 }
16267 if (obj7) {
16268 ecode8 = SWIG_AsVal_int(obj7, &val8);
16269 if (!SWIG_IsOK(ecode8)) {
16270 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16271 }
16272 arg8 = static_cast< int >(val8);
16273 }
16274 if (obj8) {
16275 ecode9 = SWIG_AsVal_long(obj8, &val9);
16276 if (!SWIG_IsOK(ecode9)) {
16277 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16278 }
16279 arg9 = static_cast< long >(val9);
16280 }
16281 if (obj9) {
16282 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16283 if (!SWIG_IsOK(res10)) {
16284 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16285 }
16286 if (!argp10) {
16287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16288 }
16289 arg10 = reinterpret_cast< wxValidator * >(argp10);
16290 }
16291 if (obj10) {
16292 {
16293 arg11 = wxString_in_helper(obj10);
16294 if (arg11 == NULL) SWIG_fail;
16295 temp11 = true;
16296 }
16297 }
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 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);
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 {
16305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16306 }
16307 {
16308 if (temp4)
16309 delete arg4;
16310 }
16311 {
16312 if (temp7) delete arg7;
16313 }
16314 {
16315 if (temp11)
16316 delete arg11;
16317 }
16318 return resultobj;
16319 fail:
16320 {
16321 if (temp4)
16322 delete arg4;
16323 }
16324 {
16325 if (temp7) delete arg7;
16326 }
16327 {
16328 if (temp11)
16329 delete arg11;
16330 }
16331 return NULL;
16332 }
16333
16334
16335 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj = 0;
16337 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16338 int arg2 ;
16339 void *argp1 = 0 ;
16340 int res1 = 0 ;
16341 int val2 ;
16342 int ecode2 = 0 ;
16343 PyObject * obj0 = 0 ;
16344 PyObject * obj1 = 0 ;
16345 char * kwnames[] = {
16346 (char *) "self",(char *) "n", NULL
16347 };
16348
16349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16351 if (!SWIG_IsOK(res1)) {
16352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16353 }
16354 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16355 ecode2 = SWIG_AsVal_int(obj1, &val2);
16356 if (!SWIG_IsOK(ecode2)) {
16357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16358 }
16359 arg2 = static_cast< int >(val2);
16360 {
16361 PyThreadState* __tstate = wxPyBeginAllowThreads();
16362 (arg1)->SetSelection(arg2);
16363 wxPyEndAllowThreads(__tstate);
16364 if (PyErr_Occurred()) SWIG_fail;
16365 }
16366 resultobj = SWIG_Py_Void();
16367 return resultobj;
16368 fail:
16369 return NULL;
16370 }
16371
16372
16373 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16374 PyObject *resultobj = 0;
16375 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16376 int result;
16377 void *argp1 = 0 ;
16378 int res1 = 0 ;
16379 PyObject *swig_obj[1] ;
16380
16381 if (!args) SWIG_fail;
16382 swig_obj[0] = args;
16383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16384 if (!SWIG_IsOK(res1)) {
16385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16386 }
16387 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16391 wxPyEndAllowThreads(__tstate);
16392 if (PyErr_Occurred()) SWIG_fail;
16393 }
16394 resultobj = SWIG_From_int(static_cast< int >(result));
16395 return resultobj;
16396 fail:
16397 return NULL;
16398 }
16399
16400
16401 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16402 PyObject *resultobj = 0;
16403 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16404 wxString result;
16405 void *argp1 = 0 ;
16406 int res1 = 0 ;
16407 PyObject *swig_obj[1] ;
16408
16409 if (!args) SWIG_fail;
16410 swig_obj[0] = args;
16411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16412 if (!SWIG_IsOK(res1)) {
16413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16414 }
16415 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16416 {
16417 PyThreadState* __tstate = wxPyBeginAllowThreads();
16418 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16419 wxPyEndAllowThreads(__tstate);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 {
16423 #if wxUSE_UNICODE
16424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16425 #else
16426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16427 #endif
16428 }
16429 return resultobj;
16430 fail:
16431 return NULL;
16432 }
16433
16434
16435 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16436 PyObject *resultobj = 0;
16437 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16438 wxString *arg2 = 0 ;
16439 bool result;
16440 void *argp1 = 0 ;
16441 int res1 = 0 ;
16442 bool temp2 = false ;
16443 PyObject * obj0 = 0 ;
16444 PyObject * obj1 = 0 ;
16445 char * kwnames[] = {
16446 (char *) "self",(char *) "s", NULL
16447 };
16448
16449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16451 if (!SWIG_IsOK(res1)) {
16452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16453 }
16454 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16455 {
16456 arg2 = wxString_in_helper(obj1);
16457 if (arg2 == NULL) SWIG_fail;
16458 temp2 = true;
16459 }
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 {
16467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16468 }
16469 {
16470 if (temp2)
16471 delete arg2;
16472 }
16473 return resultobj;
16474 fail:
16475 {
16476 if (temp2)
16477 delete arg2;
16478 }
16479 return NULL;
16480 }
16481
16482
16483 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16484 PyObject *resultobj = 0;
16485 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16486 size_t result;
16487 void *argp1 = 0 ;
16488 int res1 = 0 ;
16489 PyObject *swig_obj[1] ;
16490
16491 if (!args) SWIG_fail;
16492 swig_obj[0] = args;
16493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16494 if (!SWIG_IsOK(res1)) {
16495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16496 }
16497 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
16500 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16501 wxPyEndAllowThreads(__tstate);
16502 if (PyErr_Occurred()) SWIG_fail;
16503 }
16504 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16505 return resultobj;
16506 fail:
16507 return NULL;
16508 }
16509
16510
16511 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj = 0;
16513 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16514 wxString *arg2 = 0 ;
16515 int result;
16516 void *argp1 = 0 ;
16517 int res1 = 0 ;
16518 bool temp2 = false ;
16519 PyObject * obj0 = 0 ;
16520 PyObject * obj1 = 0 ;
16521 char * kwnames[] = {
16522 (char *) "self",(char *) "s", NULL
16523 };
16524
16525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16527 if (!SWIG_IsOK(res1)) {
16528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16529 }
16530 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16531 {
16532 arg2 = wxString_in_helper(obj1);
16533 if (arg2 == NULL) SWIG_fail;
16534 temp2 = true;
16535 }
16536 {
16537 PyThreadState* __tstate = wxPyBeginAllowThreads();
16538 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16539 wxPyEndAllowThreads(__tstate);
16540 if (PyErr_Occurred()) SWIG_fail;
16541 }
16542 resultobj = SWIG_From_int(static_cast< int >(result));
16543 {
16544 if (temp2)
16545 delete arg2;
16546 }
16547 return resultobj;
16548 fail:
16549 {
16550 if (temp2)
16551 delete arg2;
16552 }
16553 return NULL;
16554 }
16555
16556
16557 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj = 0;
16559 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16560 int arg2 ;
16561 wxString result;
16562 void *argp1 = 0 ;
16563 int res1 = 0 ;
16564 int val2 ;
16565 int ecode2 = 0 ;
16566 PyObject * obj0 = 0 ;
16567 PyObject * obj1 = 0 ;
16568 char * kwnames[] = {
16569 (char *) "self",(char *) "n", NULL
16570 };
16571
16572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16574 if (!SWIG_IsOK(res1)) {
16575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16576 }
16577 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16578 ecode2 = SWIG_AsVal_int(obj1, &val2);
16579 if (!SWIG_IsOK(ecode2)) {
16580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16581 }
16582 arg2 = static_cast< int >(val2);
16583 {
16584 PyThreadState* __tstate = wxPyBeginAllowThreads();
16585 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16586 wxPyEndAllowThreads(__tstate);
16587 if (PyErr_Occurred()) SWIG_fail;
16588 }
16589 {
16590 #if wxUSE_UNICODE
16591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16592 #else
16593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16594 #endif
16595 }
16596 return resultobj;
16597 fail:
16598 return NULL;
16599 }
16600
16601
16602 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj = 0;
16604 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16605 int arg2 ;
16606 wxString *arg3 = 0 ;
16607 void *argp1 = 0 ;
16608 int res1 = 0 ;
16609 int val2 ;
16610 int ecode2 = 0 ;
16611 bool temp3 = false ;
16612 PyObject * obj0 = 0 ;
16613 PyObject * obj1 = 0 ;
16614 PyObject * obj2 = 0 ;
16615 char * kwnames[] = {
16616 (char *) "self",(char *) "n",(char *) "label", NULL
16617 };
16618
16619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16623 }
16624 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16625 ecode2 = SWIG_AsVal_int(obj1, &val2);
16626 if (!SWIG_IsOK(ecode2)) {
16627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16628 }
16629 arg2 = static_cast< int >(val2);
16630 {
16631 arg3 = wxString_in_helper(obj2);
16632 if (arg3 == NULL) SWIG_fail;
16633 temp3 = true;
16634 }
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 (arg1)->SetString(arg2,(wxString const &)*arg3);
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 resultobj = SWIG_Py_Void();
16642 {
16643 if (temp3)
16644 delete arg3;
16645 }
16646 return resultobj;
16647 fail:
16648 {
16649 if (temp3)
16650 delete arg3;
16651 }
16652 return NULL;
16653 }
16654
16655
16656 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16657 PyObject *resultobj = 0;
16658 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16659 unsigned int arg2 ;
16660 bool arg3 = (bool) true ;
16661 void *argp1 = 0 ;
16662 int res1 = 0 ;
16663 unsigned int val2 ;
16664 int ecode2 = 0 ;
16665 bool val3 ;
16666 int ecode3 = 0 ;
16667 PyObject * obj0 = 0 ;
16668 PyObject * obj1 = 0 ;
16669 PyObject * obj2 = 0 ;
16670 char * kwnames[] = {
16671 (char *) "self",(char *) "n",(char *) "enable", NULL
16672 };
16673
16674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16676 if (!SWIG_IsOK(res1)) {
16677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16678 }
16679 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16680 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16681 if (!SWIG_IsOK(ecode2)) {
16682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16683 }
16684 arg2 = static_cast< unsigned int >(val2);
16685 if (obj2) {
16686 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16687 if (!SWIG_IsOK(ecode3)) {
16688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16689 }
16690 arg3 = static_cast< bool >(val3);
16691 }
16692 {
16693 PyThreadState* __tstate = wxPyBeginAllowThreads();
16694 (arg1)->Enable(arg2,arg3);
16695 wxPyEndAllowThreads(__tstate);
16696 if (PyErr_Occurred()) SWIG_fail;
16697 }
16698 resultobj = SWIG_Py_Void();
16699 return resultobj;
16700 fail:
16701 return NULL;
16702 }
16703
16704
16705 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16706 PyObject *resultobj = 0;
16707 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16708 unsigned int arg2 ;
16709 bool arg3 = (bool) true ;
16710 void *argp1 = 0 ;
16711 int res1 = 0 ;
16712 unsigned int val2 ;
16713 int ecode2 = 0 ;
16714 bool val3 ;
16715 int ecode3 = 0 ;
16716 PyObject * obj0 = 0 ;
16717 PyObject * obj1 = 0 ;
16718 PyObject * obj2 = 0 ;
16719 char * kwnames[] = {
16720 (char *) "self",(char *) "n",(char *) "show", NULL
16721 };
16722
16723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16725 if (!SWIG_IsOK(res1)) {
16726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16727 }
16728 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16729 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16730 if (!SWIG_IsOK(ecode2)) {
16731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16732 }
16733 arg2 = static_cast< unsigned int >(val2);
16734 if (obj2) {
16735 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16736 if (!SWIG_IsOK(ecode3)) {
16737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16738 }
16739 arg3 = static_cast< bool >(val3);
16740 }
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 (arg1)->Show(arg2,arg3);
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 resultobj = SWIG_Py_Void();
16748 return resultobj;
16749 fail:
16750 return NULL;
16751 }
16752
16753
16754 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16755 PyObject *resultobj = 0;
16756 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16757 unsigned int arg2 ;
16758 bool result;
16759 void *argp1 = 0 ;
16760 int res1 = 0 ;
16761 unsigned int val2 ;
16762 int ecode2 = 0 ;
16763 PyObject * obj0 = 0 ;
16764 PyObject * obj1 = 0 ;
16765 char * kwnames[] = {
16766 (char *) "self",(char *) "n", NULL
16767 };
16768
16769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16771 if (!SWIG_IsOK(res1)) {
16772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16773 }
16774 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16775 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16776 if (!SWIG_IsOK(ecode2)) {
16777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16778 }
16779 arg2 = static_cast< unsigned int >(val2);
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16783 wxPyEndAllowThreads(__tstate);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 {
16787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16788 }
16789 return resultobj;
16790 fail:
16791 return NULL;
16792 }
16793
16794
16795 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16796 PyObject *resultobj = 0;
16797 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16798 unsigned int arg2 ;
16799 bool result;
16800 void *argp1 = 0 ;
16801 int res1 = 0 ;
16802 unsigned int val2 ;
16803 int ecode2 = 0 ;
16804 PyObject * obj0 = 0 ;
16805 PyObject * obj1 = 0 ;
16806 char * kwnames[] = {
16807 (char *) "self",(char *) "n", NULL
16808 };
16809
16810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16812 if (!SWIG_IsOK(res1)) {
16813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16814 }
16815 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16816 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16817 if (!SWIG_IsOK(ecode2)) {
16818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16819 }
16820 arg2 = static_cast< unsigned int >(val2);
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 {
16828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16829 }
16830 return resultobj;
16831 fail:
16832 return NULL;
16833 }
16834
16835
16836 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16837 PyObject *resultobj = 0;
16838 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16839 unsigned int result;
16840 void *argp1 = 0 ;
16841 int res1 = 0 ;
16842 PyObject *swig_obj[1] ;
16843
16844 if (!args) SWIG_fail;
16845 swig_obj[0] = args;
16846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16847 if (!SWIG_IsOK(res1)) {
16848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16849 }
16850 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16854 wxPyEndAllowThreads(__tstate);
16855 if (PyErr_Occurred()) SWIG_fail;
16856 }
16857 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16858 return resultobj;
16859 fail:
16860 return NULL;
16861 }
16862
16863
16864 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16865 PyObject *resultobj = 0;
16866 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16867 unsigned int result;
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
16870 PyObject *swig_obj[1] ;
16871
16872 if (!args) SWIG_fail;
16873 swig_obj[0] = args;
16874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16877 }
16878 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16879 {
16880 PyThreadState* __tstate = wxPyBeginAllowThreads();
16881 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16886 return resultobj;
16887 fail:
16888 return NULL;
16889 }
16890
16891
16892 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16893 PyObject *resultobj = 0;
16894 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16895 int arg2 ;
16896 wxDirection arg3 ;
16897 long arg4 ;
16898 int result;
16899 void *argp1 = 0 ;
16900 int res1 = 0 ;
16901 int val2 ;
16902 int ecode2 = 0 ;
16903 int val3 ;
16904 int ecode3 = 0 ;
16905 long val4 ;
16906 int ecode4 = 0 ;
16907 PyObject * obj0 = 0 ;
16908 PyObject * obj1 = 0 ;
16909 PyObject * obj2 = 0 ;
16910 PyObject * obj3 = 0 ;
16911 char * kwnames[] = {
16912 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16913 };
16914
16915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16917 if (!SWIG_IsOK(res1)) {
16918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16919 }
16920 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16921 ecode2 = SWIG_AsVal_int(obj1, &val2);
16922 if (!SWIG_IsOK(ecode2)) {
16923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16924 }
16925 arg2 = static_cast< int >(val2);
16926 ecode3 = SWIG_AsVal_int(obj2, &val3);
16927 if (!SWIG_IsOK(ecode3)) {
16928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16929 }
16930 arg3 = static_cast< wxDirection >(val3);
16931 ecode4 = SWIG_AsVal_long(obj3, &val4);
16932 if (!SWIG_IsOK(ecode4)) {
16933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16934 }
16935 arg4 = static_cast< long >(val4);
16936 {
16937 PyThreadState* __tstate = wxPyBeginAllowThreads();
16938 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16939 wxPyEndAllowThreads(__tstate);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 resultobj = SWIG_From_int(static_cast< int >(result));
16943 return resultobj;
16944 fail:
16945 return NULL;
16946 }
16947
16948
16949 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj = 0;
16951 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16952 unsigned int arg2 ;
16953 wxString *arg3 = 0 ;
16954 void *argp1 = 0 ;
16955 int res1 = 0 ;
16956 unsigned int val2 ;
16957 int ecode2 = 0 ;
16958 bool temp3 = false ;
16959 PyObject * obj0 = 0 ;
16960 PyObject * obj1 = 0 ;
16961 PyObject * obj2 = 0 ;
16962 char * kwnames[] = {
16963 (char *) "self",(char *) "item",(char *) "text", NULL
16964 };
16965
16966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16968 if (!SWIG_IsOK(res1)) {
16969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16970 }
16971 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16972 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16973 if (!SWIG_IsOK(ecode2)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16975 }
16976 arg2 = static_cast< unsigned int >(val2);
16977 {
16978 arg3 = wxString_in_helper(obj2);
16979 if (arg3 == NULL) SWIG_fail;
16980 temp3 = true;
16981 }
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 resultobj = SWIG_Py_Void();
16989 {
16990 if (temp3)
16991 delete arg3;
16992 }
16993 return resultobj;
16994 fail:
16995 {
16996 if (temp3)
16997 delete arg3;
16998 }
16999 return NULL;
17000 }
17001
17002
17003 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17004 PyObject *resultobj = 0;
17005 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17006 unsigned int arg2 ;
17007 wxToolTip *result = 0 ;
17008 void *argp1 = 0 ;
17009 int res1 = 0 ;
17010 unsigned int val2 ;
17011 int ecode2 = 0 ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 char * kwnames[] = {
17015 (char *) "self",(char *) "item", NULL
17016 };
17017
17018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17020 if (!SWIG_IsOK(res1)) {
17021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17022 }
17023 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17024 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17025 if (!SWIG_IsOK(ecode2)) {
17026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17027 }
17028 arg2 = static_cast< unsigned int >(val2);
17029 {
17030 PyThreadState* __tstate = wxPyBeginAllowThreads();
17031 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 resultobj = wxPyMake_wxObject(result, (bool)0);
17037 }
17038 return resultobj;
17039 fail:
17040 return NULL;
17041 }
17042
17043
17044 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17045 PyObject *resultobj = 0;
17046 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17047 unsigned int arg2 ;
17048 wxString *arg3 = 0 ;
17049 void *argp1 = 0 ;
17050 int res1 = 0 ;
17051 unsigned int val2 ;
17052 int ecode2 = 0 ;
17053 bool temp3 = false ;
17054 PyObject * obj0 = 0 ;
17055 PyObject * obj1 = 0 ;
17056 PyObject * obj2 = 0 ;
17057 char * kwnames[] = {
17058 (char *) "self",(char *) "n",(char *) "helpText", NULL
17059 };
17060
17061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17063 if (!SWIG_IsOK(res1)) {
17064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17065 }
17066 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17067 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17068 if (!SWIG_IsOK(ecode2)) {
17069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17070 }
17071 arg2 = static_cast< unsigned int >(val2);
17072 {
17073 arg3 = wxString_in_helper(obj2);
17074 if (arg3 == NULL) SWIG_fail;
17075 temp3 = true;
17076 }
17077 {
17078 PyThreadState* __tstate = wxPyBeginAllowThreads();
17079 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17080 wxPyEndAllowThreads(__tstate);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 resultobj = SWIG_Py_Void();
17084 {
17085 if (temp3)
17086 delete arg3;
17087 }
17088 return resultobj;
17089 fail:
17090 {
17091 if (temp3)
17092 delete arg3;
17093 }
17094 return NULL;
17095 }
17096
17097
17098 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17099 PyObject *resultobj = 0;
17100 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17101 unsigned int arg2 ;
17102 wxString result;
17103 void *argp1 = 0 ;
17104 int res1 = 0 ;
17105 unsigned int val2 ;
17106 int ecode2 = 0 ;
17107 PyObject * obj0 = 0 ;
17108 PyObject * obj1 = 0 ;
17109 char * kwnames[] = {
17110 (char *) "self",(char *) "n", NULL
17111 };
17112
17113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17115 if (!SWIG_IsOK(res1)) {
17116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17117 }
17118 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17119 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17120 if (!SWIG_IsOK(ecode2)) {
17121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17122 }
17123 arg2 = static_cast< unsigned int >(val2);
17124 {
17125 PyThreadState* __tstate = wxPyBeginAllowThreads();
17126 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17127 wxPyEndAllowThreads(__tstate);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131 #if wxUSE_UNICODE
17132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17133 #else
17134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17135 #endif
17136 }
17137 return resultobj;
17138 fail:
17139 return NULL;
17140 }
17141
17142
17143 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj = 0;
17145 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17146 SwigValueWrapper<wxVisualAttributes > result;
17147 int val1 ;
17148 int ecode1 = 0 ;
17149 PyObject * obj0 = 0 ;
17150 char * kwnames[] = {
17151 (char *) "variant", NULL
17152 };
17153
17154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17155 if (obj0) {
17156 ecode1 = SWIG_AsVal_int(obj0, &val1);
17157 if (!SWIG_IsOK(ecode1)) {
17158 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17159 }
17160 arg1 = static_cast< wxWindowVariant >(val1);
17161 }
17162 {
17163 if (!wxPyCheckForApp()) SWIG_fail;
17164 PyThreadState* __tstate = wxPyBeginAllowThreads();
17165 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17170 return resultobj;
17171 fail:
17172 return NULL;
17173 }
17174
17175
17176 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17177 PyObject *obj;
17178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17179 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17180 return SWIG_Py_Void();
17181 }
17182
17183 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17184 return SWIG_Python_InitShadowInstance(args);
17185 }
17186
17187 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17188 PyObject *resultobj = 0;
17189 wxWindow *arg1 = (wxWindow *) 0 ;
17190 int arg2 = (int) -1 ;
17191 wxString const &arg3_defvalue = wxPyEmptyString ;
17192 wxString *arg3 = (wxString *) &arg3_defvalue ;
17193 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17194 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17195 wxSize const &arg5_defvalue = wxDefaultSize ;
17196 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17197 long arg6 = (long) 0 ;
17198 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17199 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17200 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17201 wxString *arg8 = (wxString *) &arg8_defvalue ;
17202 wxRadioButton *result = 0 ;
17203 void *argp1 = 0 ;
17204 int res1 = 0 ;
17205 int val2 ;
17206 int ecode2 = 0 ;
17207 bool temp3 = false ;
17208 wxPoint temp4 ;
17209 wxSize temp5 ;
17210 long val6 ;
17211 int ecode6 = 0 ;
17212 void *argp7 = 0 ;
17213 int res7 = 0 ;
17214 bool temp8 = false ;
17215 PyObject * obj0 = 0 ;
17216 PyObject * obj1 = 0 ;
17217 PyObject * obj2 = 0 ;
17218 PyObject * obj3 = 0 ;
17219 PyObject * obj4 = 0 ;
17220 PyObject * obj5 = 0 ;
17221 PyObject * obj6 = 0 ;
17222 PyObject * obj7 = 0 ;
17223 char * kwnames[] = {
17224 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17225 };
17226
17227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17229 if (!SWIG_IsOK(res1)) {
17230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17231 }
17232 arg1 = reinterpret_cast< wxWindow * >(argp1);
17233 if (obj1) {
17234 ecode2 = SWIG_AsVal_int(obj1, &val2);
17235 if (!SWIG_IsOK(ecode2)) {
17236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17237 }
17238 arg2 = static_cast< int >(val2);
17239 }
17240 if (obj2) {
17241 {
17242 arg3 = wxString_in_helper(obj2);
17243 if (arg3 == NULL) SWIG_fail;
17244 temp3 = true;
17245 }
17246 }
17247 if (obj3) {
17248 {
17249 arg4 = &temp4;
17250 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17251 }
17252 }
17253 if (obj4) {
17254 {
17255 arg5 = &temp5;
17256 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17257 }
17258 }
17259 if (obj5) {
17260 ecode6 = SWIG_AsVal_long(obj5, &val6);
17261 if (!SWIG_IsOK(ecode6)) {
17262 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17263 }
17264 arg6 = static_cast< long >(val6);
17265 }
17266 if (obj6) {
17267 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17268 if (!SWIG_IsOK(res7)) {
17269 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17270 }
17271 if (!argp7) {
17272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17273 }
17274 arg7 = reinterpret_cast< wxValidator * >(argp7);
17275 }
17276 if (obj7) {
17277 {
17278 arg8 = wxString_in_helper(obj7);
17279 if (arg8 == NULL) SWIG_fail;
17280 temp8 = true;
17281 }
17282 }
17283 {
17284 if (!wxPyCheckForApp()) SWIG_fail;
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17291 {
17292 if (temp3)
17293 delete arg3;
17294 }
17295 {
17296 if (temp8)
17297 delete arg8;
17298 }
17299 return resultobj;
17300 fail:
17301 {
17302 if (temp3)
17303 delete arg3;
17304 }
17305 {
17306 if (temp8)
17307 delete arg8;
17308 }
17309 return NULL;
17310 }
17311
17312
17313 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17314 PyObject *resultobj = 0;
17315 wxRadioButton *result = 0 ;
17316
17317 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17318 {
17319 if (!wxPyCheckForApp()) SWIG_fail;
17320 PyThreadState* __tstate = wxPyBeginAllowThreads();
17321 result = (wxRadioButton *)new wxRadioButton();
17322 wxPyEndAllowThreads(__tstate);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17326 return resultobj;
17327 fail:
17328 return NULL;
17329 }
17330
17331
17332 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17333 PyObject *resultobj = 0;
17334 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17335 wxWindow *arg2 = (wxWindow *) 0 ;
17336 int arg3 = (int) -1 ;
17337 wxString const &arg4_defvalue = wxPyEmptyString ;
17338 wxString *arg4 = (wxString *) &arg4_defvalue ;
17339 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17340 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17341 wxSize const &arg6_defvalue = wxDefaultSize ;
17342 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17343 long arg7 = (long) 0 ;
17344 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17345 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17346 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17347 wxString *arg9 = (wxString *) &arg9_defvalue ;
17348 bool result;
17349 void *argp1 = 0 ;
17350 int res1 = 0 ;
17351 void *argp2 = 0 ;
17352 int res2 = 0 ;
17353 int val3 ;
17354 int ecode3 = 0 ;
17355 bool temp4 = false ;
17356 wxPoint temp5 ;
17357 wxSize temp6 ;
17358 long val7 ;
17359 int ecode7 = 0 ;
17360 void *argp8 = 0 ;
17361 int res8 = 0 ;
17362 bool temp9 = false ;
17363 PyObject * obj0 = 0 ;
17364 PyObject * obj1 = 0 ;
17365 PyObject * obj2 = 0 ;
17366 PyObject * obj3 = 0 ;
17367 PyObject * obj4 = 0 ;
17368 PyObject * obj5 = 0 ;
17369 PyObject * obj6 = 0 ;
17370 PyObject * obj7 = 0 ;
17371 PyObject * obj8 = 0 ;
17372 char * kwnames[] = {
17373 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17374 };
17375
17376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17378 if (!SWIG_IsOK(res1)) {
17379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17380 }
17381 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17383 if (!SWIG_IsOK(res2)) {
17384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17385 }
17386 arg2 = reinterpret_cast< wxWindow * >(argp2);
17387 if (obj2) {
17388 ecode3 = SWIG_AsVal_int(obj2, &val3);
17389 if (!SWIG_IsOK(ecode3)) {
17390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17391 }
17392 arg3 = static_cast< int >(val3);
17393 }
17394 if (obj3) {
17395 {
17396 arg4 = wxString_in_helper(obj3);
17397 if (arg4 == NULL) SWIG_fail;
17398 temp4 = true;
17399 }
17400 }
17401 if (obj4) {
17402 {
17403 arg5 = &temp5;
17404 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17405 }
17406 }
17407 if (obj5) {
17408 {
17409 arg6 = &temp6;
17410 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17411 }
17412 }
17413 if (obj6) {
17414 ecode7 = SWIG_AsVal_long(obj6, &val7);
17415 if (!SWIG_IsOK(ecode7)) {
17416 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17417 }
17418 arg7 = static_cast< long >(val7);
17419 }
17420 if (obj7) {
17421 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17422 if (!SWIG_IsOK(res8)) {
17423 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17424 }
17425 if (!argp8) {
17426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17427 }
17428 arg8 = reinterpret_cast< wxValidator * >(argp8);
17429 }
17430 if (obj8) {
17431 {
17432 arg9 = wxString_in_helper(obj8);
17433 if (arg9 == NULL) SWIG_fail;
17434 temp9 = true;
17435 }
17436 }
17437 {
17438 PyThreadState* __tstate = wxPyBeginAllowThreads();
17439 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 {
17444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17445 }
17446 {
17447 if (temp4)
17448 delete arg4;
17449 }
17450 {
17451 if (temp9)
17452 delete arg9;
17453 }
17454 return resultobj;
17455 fail:
17456 {
17457 if (temp4)
17458 delete arg4;
17459 }
17460 {
17461 if (temp9)
17462 delete arg9;
17463 }
17464 return NULL;
17465 }
17466
17467
17468 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17469 PyObject *resultobj = 0;
17470 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17471 bool result;
17472 void *argp1 = 0 ;
17473 int res1 = 0 ;
17474 PyObject *swig_obj[1] ;
17475
17476 if (!args) SWIG_fail;
17477 swig_obj[0] = args;
17478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17479 if (!SWIG_IsOK(res1)) {
17480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17481 }
17482 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 result = (bool)(arg1)->GetValue();
17486 wxPyEndAllowThreads(__tstate);
17487 if (PyErr_Occurred()) SWIG_fail;
17488 }
17489 {
17490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17491 }
17492 return resultobj;
17493 fail:
17494 return NULL;
17495 }
17496
17497
17498 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17499 PyObject *resultobj = 0;
17500 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17501 bool arg2 ;
17502 void *argp1 = 0 ;
17503 int res1 = 0 ;
17504 bool val2 ;
17505 int ecode2 = 0 ;
17506 PyObject * obj0 = 0 ;
17507 PyObject * obj1 = 0 ;
17508 char * kwnames[] = {
17509 (char *) "self",(char *) "value", NULL
17510 };
17511
17512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17514 if (!SWIG_IsOK(res1)) {
17515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17516 }
17517 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17518 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17519 if (!SWIG_IsOK(ecode2)) {
17520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17521 }
17522 arg2 = static_cast< bool >(val2);
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 (arg1)->SetValue(arg2);
17526 wxPyEndAllowThreads(__tstate);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 resultobj = SWIG_Py_Void();
17530 return resultobj;
17531 fail:
17532 return NULL;
17533 }
17534
17535
17536 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17537 PyObject *resultobj = 0;
17538 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17539 SwigValueWrapper<wxVisualAttributes > result;
17540 int val1 ;
17541 int ecode1 = 0 ;
17542 PyObject * obj0 = 0 ;
17543 char * kwnames[] = {
17544 (char *) "variant", NULL
17545 };
17546
17547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17548 if (obj0) {
17549 ecode1 = SWIG_AsVal_int(obj0, &val1);
17550 if (!SWIG_IsOK(ecode1)) {
17551 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17552 }
17553 arg1 = static_cast< wxWindowVariant >(val1);
17554 }
17555 {
17556 if (!wxPyCheckForApp()) SWIG_fail;
17557 PyThreadState* __tstate = wxPyBeginAllowThreads();
17558 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17559 wxPyEndAllowThreads(__tstate);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 }
17562 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17563 return resultobj;
17564 fail:
17565 return NULL;
17566 }
17567
17568
17569 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17570 PyObject *obj;
17571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17572 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17573 return SWIG_Py_Void();
17574 }
17575
17576 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17577 return SWIG_Python_InitShadowInstance(args);
17578 }
17579
17580 SWIGINTERN int SliderNameStr_set(PyObject *) {
17581 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17582 return 1;
17583 }
17584
17585
17586 SWIGINTERN PyObject *SliderNameStr_get(void) {
17587 PyObject *pyobj = 0;
17588
17589 {
17590 #if wxUSE_UNICODE
17591 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17592 #else
17593 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17594 #endif
17595 }
17596 return pyobj;
17597 }
17598
17599
17600 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17601 PyObject *resultobj = 0;
17602 wxWindow *arg1 = (wxWindow *) 0 ;
17603 int arg2 = (int) -1 ;
17604 int arg3 = (int) 0 ;
17605 int arg4 = (int) 0 ;
17606 int arg5 = (int) 100 ;
17607 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17608 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17609 wxSize const &arg7_defvalue = wxDefaultSize ;
17610 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17611 long arg8 = (long) wxSL_HORIZONTAL ;
17612 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17613 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17614 wxString const &arg10_defvalue = wxPySliderNameStr ;
17615 wxString *arg10 = (wxString *) &arg10_defvalue ;
17616 wxSlider *result = 0 ;
17617 void *argp1 = 0 ;
17618 int res1 = 0 ;
17619 int val2 ;
17620 int ecode2 = 0 ;
17621 int val3 ;
17622 int ecode3 = 0 ;
17623 int val4 ;
17624 int ecode4 = 0 ;
17625 int val5 ;
17626 int ecode5 = 0 ;
17627 wxPoint temp6 ;
17628 wxSize temp7 ;
17629 long val8 ;
17630 int ecode8 = 0 ;
17631 void *argp9 = 0 ;
17632 int res9 = 0 ;
17633 bool temp10 = false ;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 PyObject * obj2 = 0 ;
17637 PyObject * obj3 = 0 ;
17638 PyObject * obj4 = 0 ;
17639 PyObject * obj5 = 0 ;
17640 PyObject * obj6 = 0 ;
17641 PyObject * obj7 = 0 ;
17642 PyObject * obj8 = 0 ;
17643 PyObject * obj9 = 0 ;
17644 char * kwnames[] = {
17645 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17646 };
17647
17648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17650 if (!SWIG_IsOK(res1)) {
17651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17652 }
17653 arg1 = reinterpret_cast< wxWindow * >(argp1);
17654 if (obj1) {
17655 ecode2 = SWIG_AsVal_int(obj1, &val2);
17656 if (!SWIG_IsOK(ecode2)) {
17657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17658 }
17659 arg2 = static_cast< int >(val2);
17660 }
17661 if (obj2) {
17662 ecode3 = SWIG_AsVal_int(obj2, &val3);
17663 if (!SWIG_IsOK(ecode3)) {
17664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17665 }
17666 arg3 = static_cast< int >(val3);
17667 }
17668 if (obj3) {
17669 ecode4 = SWIG_AsVal_int(obj3, &val4);
17670 if (!SWIG_IsOK(ecode4)) {
17671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17672 }
17673 arg4 = static_cast< int >(val4);
17674 }
17675 if (obj4) {
17676 ecode5 = SWIG_AsVal_int(obj4, &val5);
17677 if (!SWIG_IsOK(ecode5)) {
17678 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17679 }
17680 arg5 = static_cast< int >(val5);
17681 }
17682 if (obj5) {
17683 {
17684 arg6 = &temp6;
17685 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17686 }
17687 }
17688 if (obj6) {
17689 {
17690 arg7 = &temp7;
17691 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17692 }
17693 }
17694 if (obj7) {
17695 ecode8 = SWIG_AsVal_long(obj7, &val8);
17696 if (!SWIG_IsOK(ecode8)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17698 }
17699 arg8 = static_cast< long >(val8);
17700 }
17701 if (obj8) {
17702 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17703 if (!SWIG_IsOK(res9)) {
17704 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17705 }
17706 if (!argp9) {
17707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17708 }
17709 arg9 = reinterpret_cast< wxValidator * >(argp9);
17710 }
17711 if (obj9) {
17712 {
17713 arg10 = wxString_in_helper(obj9);
17714 if (arg10 == NULL) SWIG_fail;
17715 temp10 = true;
17716 }
17717 }
17718 {
17719 if (!wxPyCheckForApp()) SWIG_fail;
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
17721 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17726 {
17727 if (temp10)
17728 delete arg10;
17729 }
17730 return resultobj;
17731 fail:
17732 {
17733 if (temp10)
17734 delete arg10;
17735 }
17736 return NULL;
17737 }
17738
17739
17740 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17741 PyObject *resultobj = 0;
17742 wxSlider *result = 0 ;
17743
17744 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17745 {
17746 if (!wxPyCheckForApp()) SWIG_fail;
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = (wxSlider *)new wxSlider();
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17753 return resultobj;
17754 fail:
17755 return NULL;
17756 }
17757
17758
17759 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj = 0;
17761 wxSlider *arg1 = (wxSlider *) 0 ;
17762 wxWindow *arg2 = (wxWindow *) 0 ;
17763 int arg3 = (int) -1 ;
17764 int arg4 = (int) 0 ;
17765 int arg5 = (int) 0 ;
17766 int arg6 = (int) 100 ;
17767 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17768 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17769 wxSize const &arg8_defvalue = wxDefaultSize ;
17770 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17771 long arg9 = (long) wxSL_HORIZONTAL ;
17772 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17773 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17774 wxString const &arg11_defvalue = wxPySliderNameStr ;
17775 wxString *arg11 = (wxString *) &arg11_defvalue ;
17776 bool result;
17777 void *argp1 = 0 ;
17778 int res1 = 0 ;
17779 void *argp2 = 0 ;
17780 int res2 = 0 ;
17781 int val3 ;
17782 int ecode3 = 0 ;
17783 int val4 ;
17784 int ecode4 = 0 ;
17785 int val5 ;
17786 int ecode5 = 0 ;
17787 int val6 ;
17788 int ecode6 = 0 ;
17789 wxPoint temp7 ;
17790 wxSize temp8 ;
17791 long val9 ;
17792 int ecode9 = 0 ;
17793 void *argp10 = 0 ;
17794 int res10 = 0 ;
17795 bool temp11 = false ;
17796 PyObject * obj0 = 0 ;
17797 PyObject * obj1 = 0 ;
17798 PyObject * obj2 = 0 ;
17799 PyObject * obj3 = 0 ;
17800 PyObject * obj4 = 0 ;
17801 PyObject * obj5 = 0 ;
17802 PyObject * obj6 = 0 ;
17803 PyObject * obj7 = 0 ;
17804 PyObject * obj8 = 0 ;
17805 PyObject * obj9 = 0 ;
17806 PyObject * obj10 = 0 ;
17807 char * kwnames[] = {
17808 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17809 };
17810
17811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17813 if (!SWIG_IsOK(res1)) {
17814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17815 }
17816 arg1 = reinterpret_cast< wxSlider * >(argp1);
17817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17818 if (!SWIG_IsOK(res2)) {
17819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17820 }
17821 arg2 = reinterpret_cast< wxWindow * >(argp2);
17822 if (obj2) {
17823 ecode3 = SWIG_AsVal_int(obj2, &val3);
17824 if (!SWIG_IsOK(ecode3)) {
17825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17826 }
17827 arg3 = static_cast< int >(val3);
17828 }
17829 if (obj3) {
17830 ecode4 = SWIG_AsVal_int(obj3, &val4);
17831 if (!SWIG_IsOK(ecode4)) {
17832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17833 }
17834 arg4 = static_cast< int >(val4);
17835 }
17836 if (obj4) {
17837 ecode5 = SWIG_AsVal_int(obj4, &val5);
17838 if (!SWIG_IsOK(ecode5)) {
17839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17840 }
17841 arg5 = static_cast< int >(val5);
17842 }
17843 if (obj5) {
17844 ecode6 = SWIG_AsVal_int(obj5, &val6);
17845 if (!SWIG_IsOK(ecode6)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17847 }
17848 arg6 = static_cast< int >(val6);
17849 }
17850 if (obj6) {
17851 {
17852 arg7 = &temp7;
17853 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17854 }
17855 }
17856 if (obj7) {
17857 {
17858 arg8 = &temp8;
17859 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17860 }
17861 }
17862 if (obj8) {
17863 ecode9 = SWIG_AsVal_long(obj8, &val9);
17864 if (!SWIG_IsOK(ecode9)) {
17865 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17866 }
17867 arg9 = static_cast< long >(val9);
17868 }
17869 if (obj9) {
17870 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17871 if (!SWIG_IsOK(res10)) {
17872 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17873 }
17874 if (!argp10) {
17875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17876 }
17877 arg10 = reinterpret_cast< wxValidator * >(argp10);
17878 }
17879 if (obj10) {
17880 {
17881 arg11 = wxString_in_helper(obj10);
17882 if (arg11 == NULL) SWIG_fail;
17883 temp11 = true;
17884 }
17885 }
17886 {
17887 PyThreadState* __tstate = wxPyBeginAllowThreads();
17888 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17889 wxPyEndAllowThreads(__tstate);
17890 if (PyErr_Occurred()) SWIG_fail;
17891 }
17892 {
17893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17894 }
17895 {
17896 if (temp11)
17897 delete arg11;
17898 }
17899 return resultobj;
17900 fail:
17901 {
17902 if (temp11)
17903 delete arg11;
17904 }
17905 return NULL;
17906 }
17907
17908
17909 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17910 PyObject *resultobj = 0;
17911 wxSlider *arg1 = (wxSlider *) 0 ;
17912 int result;
17913 void *argp1 = 0 ;
17914 int res1 = 0 ;
17915 PyObject *swig_obj[1] ;
17916
17917 if (!args) SWIG_fail;
17918 swig_obj[0] = args;
17919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17920 if (!SWIG_IsOK(res1)) {
17921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17922 }
17923 arg1 = reinterpret_cast< wxSlider * >(argp1);
17924 {
17925 PyThreadState* __tstate = wxPyBeginAllowThreads();
17926 result = (int)((wxSlider const *)arg1)->GetValue();
17927 wxPyEndAllowThreads(__tstate);
17928 if (PyErr_Occurred()) SWIG_fail;
17929 }
17930 resultobj = SWIG_From_int(static_cast< int >(result));
17931 return resultobj;
17932 fail:
17933 return NULL;
17934 }
17935
17936
17937 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17938 PyObject *resultobj = 0;
17939 wxSlider *arg1 = (wxSlider *) 0 ;
17940 int arg2 ;
17941 void *argp1 = 0 ;
17942 int res1 = 0 ;
17943 int val2 ;
17944 int ecode2 = 0 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char * kwnames[] = {
17948 (char *) "self",(char *) "value", NULL
17949 };
17950
17951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17953 if (!SWIG_IsOK(res1)) {
17954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17955 }
17956 arg1 = reinterpret_cast< wxSlider * >(argp1);
17957 ecode2 = SWIG_AsVal_int(obj1, &val2);
17958 if (!SWIG_IsOK(ecode2)) {
17959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17960 }
17961 arg2 = static_cast< int >(val2);
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 (arg1)->SetValue(arg2);
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_Py_Void();
17969 return resultobj;
17970 fail:
17971 return NULL;
17972 }
17973
17974
17975 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj = 0;
17977 wxSlider *arg1 = (wxSlider *) 0 ;
17978 int arg2 ;
17979 int arg3 ;
17980 void *argp1 = 0 ;
17981 int res1 = 0 ;
17982 int val2 ;
17983 int ecode2 = 0 ;
17984 int val3 ;
17985 int ecode3 = 0 ;
17986 PyObject * obj0 = 0 ;
17987 PyObject * obj1 = 0 ;
17988 PyObject * obj2 = 0 ;
17989 char * kwnames[] = {
17990 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17991 };
17992
17993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17995 if (!SWIG_IsOK(res1)) {
17996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17997 }
17998 arg1 = reinterpret_cast< wxSlider * >(argp1);
17999 ecode2 = SWIG_AsVal_int(obj1, &val2);
18000 if (!SWIG_IsOK(ecode2)) {
18001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18002 }
18003 arg2 = static_cast< int >(val2);
18004 ecode3 = SWIG_AsVal_int(obj2, &val3);
18005 if (!SWIG_IsOK(ecode3)) {
18006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18007 }
18008 arg3 = static_cast< int >(val3);
18009 {
18010 PyThreadState* __tstate = wxPyBeginAllowThreads();
18011 (arg1)->SetRange(arg2,arg3);
18012 wxPyEndAllowThreads(__tstate);
18013 if (PyErr_Occurred()) SWIG_fail;
18014 }
18015 resultobj = SWIG_Py_Void();
18016 return resultobj;
18017 fail:
18018 return NULL;
18019 }
18020
18021
18022 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18023 PyObject *resultobj = 0;
18024 wxSlider *arg1 = (wxSlider *) 0 ;
18025 int result;
18026 void *argp1 = 0 ;
18027 int res1 = 0 ;
18028 PyObject *swig_obj[1] ;
18029
18030 if (!args) SWIG_fail;
18031 swig_obj[0] = args;
18032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18033 if (!SWIG_IsOK(res1)) {
18034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18035 }
18036 arg1 = reinterpret_cast< wxSlider * >(argp1);
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 result = (int)((wxSlider const *)arg1)->GetMin();
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 resultobj = SWIG_From_int(static_cast< int >(result));
18044 return resultobj;
18045 fail:
18046 return NULL;
18047 }
18048
18049
18050 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18051 PyObject *resultobj = 0;
18052 wxSlider *arg1 = (wxSlider *) 0 ;
18053 int result;
18054 void *argp1 = 0 ;
18055 int res1 = 0 ;
18056 PyObject *swig_obj[1] ;
18057
18058 if (!args) SWIG_fail;
18059 swig_obj[0] = args;
18060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18061 if (!SWIG_IsOK(res1)) {
18062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18063 }
18064 arg1 = reinterpret_cast< wxSlider * >(argp1);
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 result = (int)((wxSlider const *)arg1)->GetMax();
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_From_int(static_cast< int >(result));
18072 return resultobj;
18073 fail:
18074 return NULL;
18075 }
18076
18077
18078 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj = 0;
18080 wxSlider *arg1 = (wxSlider *) 0 ;
18081 int arg2 ;
18082 void *argp1 = 0 ;
18083 int res1 = 0 ;
18084 int val2 ;
18085 int ecode2 = 0 ;
18086 PyObject * obj0 = 0 ;
18087 PyObject * obj1 = 0 ;
18088 char * kwnames[] = {
18089 (char *) "self",(char *) "minValue", NULL
18090 };
18091
18092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18094 if (!SWIG_IsOK(res1)) {
18095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18096 }
18097 arg1 = reinterpret_cast< wxSlider * >(argp1);
18098 ecode2 = SWIG_AsVal_int(obj1, &val2);
18099 if (!SWIG_IsOK(ecode2)) {
18100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18101 }
18102 arg2 = static_cast< int >(val2);
18103 {
18104 PyThreadState* __tstate = wxPyBeginAllowThreads();
18105 (arg1)->SetMin(arg2);
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 resultobj = SWIG_Py_Void();
18110 return resultobj;
18111 fail:
18112 return NULL;
18113 }
18114
18115
18116 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18117 PyObject *resultobj = 0;
18118 wxSlider *arg1 = (wxSlider *) 0 ;
18119 int arg2 ;
18120 void *argp1 = 0 ;
18121 int res1 = 0 ;
18122 int val2 ;
18123 int ecode2 = 0 ;
18124 PyObject * obj0 = 0 ;
18125 PyObject * obj1 = 0 ;
18126 char * kwnames[] = {
18127 (char *) "self",(char *) "maxValue", NULL
18128 };
18129
18130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18132 if (!SWIG_IsOK(res1)) {
18133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18134 }
18135 arg1 = reinterpret_cast< wxSlider * >(argp1);
18136 ecode2 = SWIG_AsVal_int(obj1, &val2);
18137 if (!SWIG_IsOK(ecode2)) {
18138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18139 }
18140 arg2 = static_cast< int >(val2);
18141 {
18142 PyThreadState* __tstate = wxPyBeginAllowThreads();
18143 (arg1)->SetMax(arg2);
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 resultobj = SWIG_Py_Void();
18148 return resultobj;
18149 fail:
18150 return NULL;
18151 }
18152
18153
18154 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj = 0;
18156 wxSlider *arg1 = (wxSlider *) 0 ;
18157 int arg2 ;
18158 void *argp1 = 0 ;
18159 int res1 = 0 ;
18160 int val2 ;
18161 int ecode2 = 0 ;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 char * kwnames[] = {
18165 (char *) "self",(char *) "lineSize", NULL
18166 };
18167
18168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18170 if (!SWIG_IsOK(res1)) {
18171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18172 }
18173 arg1 = reinterpret_cast< wxSlider * >(argp1);
18174 ecode2 = SWIG_AsVal_int(obj1, &val2);
18175 if (!SWIG_IsOK(ecode2)) {
18176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18177 }
18178 arg2 = static_cast< int >(val2);
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->SetLineSize(arg2);
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 resultobj = SWIG_Py_Void();
18186 return resultobj;
18187 fail:
18188 return NULL;
18189 }
18190
18191
18192 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18193 PyObject *resultobj = 0;
18194 wxSlider *arg1 = (wxSlider *) 0 ;
18195 int arg2 ;
18196 void *argp1 = 0 ;
18197 int res1 = 0 ;
18198 int val2 ;
18199 int ecode2 = 0 ;
18200 PyObject * obj0 = 0 ;
18201 PyObject * obj1 = 0 ;
18202 char * kwnames[] = {
18203 (char *) "self",(char *) "pageSize", NULL
18204 };
18205
18206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18208 if (!SWIG_IsOK(res1)) {
18209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18210 }
18211 arg1 = reinterpret_cast< wxSlider * >(argp1);
18212 ecode2 = SWIG_AsVal_int(obj1, &val2);
18213 if (!SWIG_IsOK(ecode2)) {
18214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18215 }
18216 arg2 = static_cast< int >(val2);
18217 {
18218 PyThreadState* __tstate = wxPyBeginAllowThreads();
18219 (arg1)->SetPageSize(arg2);
18220 wxPyEndAllowThreads(__tstate);
18221 if (PyErr_Occurred()) SWIG_fail;
18222 }
18223 resultobj = SWIG_Py_Void();
18224 return resultobj;
18225 fail:
18226 return NULL;
18227 }
18228
18229
18230 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18231 PyObject *resultobj = 0;
18232 wxSlider *arg1 = (wxSlider *) 0 ;
18233 int result;
18234 void *argp1 = 0 ;
18235 int res1 = 0 ;
18236 PyObject *swig_obj[1] ;
18237
18238 if (!args) SWIG_fail;
18239 swig_obj[0] = args;
18240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18241 if (!SWIG_IsOK(res1)) {
18242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18243 }
18244 arg1 = reinterpret_cast< wxSlider * >(argp1);
18245 {
18246 PyThreadState* __tstate = wxPyBeginAllowThreads();
18247 result = (int)((wxSlider const *)arg1)->GetLineSize();
18248 wxPyEndAllowThreads(__tstate);
18249 if (PyErr_Occurred()) SWIG_fail;
18250 }
18251 resultobj = SWIG_From_int(static_cast< int >(result));
18252 return resultobj;
18253 fail:
18254 return NULL;
18255 }
18256
18257
18258 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18259 PyObject *resultobj = 0;
18260 wxSlider *arg1 = (wxSlider *) 0 ;
18261 int result;
18262 void *argp1 = 0 ;
18263 int res1 = 0 ;
18264 PyObject *swig_obj[1] ;
18265
18266 if (!args) SWIG_fail;
18267 swig_obj[0] = args;
18268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18269 if (!SWIG_IsOK(res1)) {
18270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18271 }
18272 arg1 = reinterpret_cast< wxSlider * >(argp1);
18273 {
18274 PyThreadState* __tstate = wxPyBeginAllowThreads();
18275 result = (int)((wxSlider const *)arg1)->GetPageSize();
18276 wxPyEndAllowThreads(__tstate);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 }
18279 resultobj = SWIG_From_int(static_cast< int >(result));
18280 return resultobj;
18281 fail:
18282 return NULL;
18283 }
18284
18285
18286 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj = 0;
18288 wxSlider *arg1 = (wxSlider *) 0 ;
18289 int arg2 ;
18290 void *argp1 = 0 ;
18291 int res1 = 0 ;
18292 int val2 ;
18293 int ecode2 = 0 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 char * kwnames[] = {
18297 (char *) "self",(char *) "lenPixels", NULL
18298 };
18299
18300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18304 }
18305 arg1 = reinterpret_cast< wxSlider * >(argp1);
18306 ecode2 = SWIG_AsVal_int(obj1, &val2);
18307 if (!SWIG_IsOK(ecode2)) {
18308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18309 }
18310 arg2 = static_cast< int >(val2);
18311 {
18312 PyThreadState* __tstate = wxPyBeginAllowThreads();
18313 (arg1)->SetThumbLength(arg2);
18314 wxPyEndAllowThreads(__tstate);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 }
18317 resultobj = SWIG_Py_Void();
18318 return resultobj;
18319 fail:
18320 return NULL;
18321 }
18322
18323
18324 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18325 PyObject *resultobj = 0;
18326 wxSlider *arg1 = (wxSlider *) 0 ;
18327 int result;
18328 void *argp1 = 0 ;
18329 int res1 = 0 ;
18330 PyObject *swig_obj[1] ;
18331
18332 if (!args) SWIG_fail;
18333 swig_obj[0] = args;
18334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18335 if (!SWIG_IsOK(res1)) {
18336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18337 }
18338 arg1 = reinterpret_cast< wxSlider * >(argp1);
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 resultobj = SWIG_From_int(static_cast< int >(result));
18346 return resultobj;
18347 fail:
18348 return NULL;
18349 }
18350
18351
18352 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18353 PyObject *resultobj = 0;
18354 wxSlider *arg1 = (wxSlider *) 0 ;
18355 int arg2 ;
18356 int arg3 = (int) 1 ;
18357 void *argp1 = 0 ;
18358 int res1 = 0 ;
18359 int val2 ;
18360 int ecode2 = 0 ;
18361 int val3 ;
18362 int ecode3 = 0 ;
18363 PyObject * obj0 = 0 ;
18364 PyObject * obj1 = 0 ;
18365 PyObject * obj2 = 0 ;
18366 char * kwnames[] = {
18367 (char *) "self",(char *) "n",(char *) "pos", NULL
18368 };
18369
18370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18372 if (!SWIG_IsOK(res1)) {
18373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18374 }
18375 arg1 = reinterpret_cast< wxSlider * >(argp1);
18376 ecode2 = SWIG_AsVal_int(obj1, &val2);
18377 if (!SWIG_IsOK(ecode2)) {
18378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18379 }
18380 arg2 = static_cast< int >(val2);
18381 if (obj2) {
18382 ecode3 = SWIG_AsVal_int(obj2, &val3);
18383 if (!SWIG_IsOK(ecode3)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18385 }
18386 arg3 = static_cast< int >(val3);
18387 }
18388 {
18389 PyThreadState* __tstate = wxPyBeginAllowThreads();
18390 (arg1)->SetTickFreq(arg2,arg3);
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 resultobj = SWIG_Py_Void();
18395 return resultobj;
18396 fail:
18397 return NULL;
18398 }
18399
18400
18401 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18402 PyObject *resultobj = 0;
18403 wxSlider *arg1 = (wxSlider *) 0 ;
18404 int result;
18405 void *argp1 = 0 ;
18406 int res1 = 0 ;
18407 PyObject *swig_obj[1] ;
18408
18409 if (!args) SWIG_fail;
18410 swig_obj[0] = args;
18411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18412 if (!SWIG_IsOK(res1)) {
18413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18414 }
18415 arg1 = reinterpret_cast< wxSlider * >(argp1);
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 resultobj = SWIG_From_int(static_cast< int >(result));
18423 return resultobj;
18424 fail:
18425 return NULL;
18426 }
18427
18428
18429 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18430 PyObject *resultobj = 0;
18431 wxSlider *arg1 = (wxSlider *) 0 ;
18432 void *argp1 = 0 ;
18433 int res1 = 0 ;
18434 PyObject *swig_obj[1] ;
18435
18436 if (!args) SWIG_fail;
18437 swig_obj[0] = args;
18438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18439 if (!SWIG_IsOK(res1)) {
18440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18441 }
18442 arg1 = reinterpret_cast< wxSlider * >(argp1);
18443 {
18444 PyThreadState* __tstate = wxPyBeginAllowThreads();
18445 (arg1)->ClearTicks();
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 resultobj = SWIG_Py_Void();
18450 return resultobj;
18451 fail:
18452 return NULL;
18453 }
18454
18455
18456 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj = 0;
18458 wxSlider *arg1 = (wxSlider *) 0 ;
18459 int arg2 ;
18460 void *argp1 = 0 ;
18461 int res1 = 0 ;
18462 int val2 ;
18463 int ecode2 = 0 ;
18464 PyObject * obj0 = 0 ;
18465 PyObject * obj1 = 0 ;
18466 char * kwnames[] = {
18467 (char *) "self",(char *) "tickPos", NULL
18468 };
18469
18470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18472 if (!SWIG_IsOK(res1)) {
18473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18474 }
18475 arg1 = reinterpret_cast< wxSlider * >(argp1);
18476 ecode2 = SWIG_AsVal_int(obj1, &val2);
18477 if (!SWIG_IsOK(ecode2)) {
18478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18479 }
18480 arg2 = static_cast< int >(val2);
18481 {
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 (arg1)->SetTick(arg2);
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_Py_Void();
18488 return resultobj;
18489 fail:
18490 return NULL;
18491 }
18492
18493
18494 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18495 PyObject *resultobj = 0;
18496 wxSlider *arg1 = (wxSlider *) 0 ;
18497 void *argp1 = 0 ;
18498 int res1 = 0 ;
18499 PyObject *swig_obj[1] ;
18500
18501 if (!args) SWIG_fail;
18502 swig_obj[0] = args;
18503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18504 if (!SWIG_IsOK(res1)) {
18505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18506 }
18507 arg1 = reinterpret_cast< wxSlider * >(argp1);
18508 {
18509 PyThreadState* __tstate = wxPyBeginAllowThreads();
18510 (arg1)->ClearSel();
18511 wxPyEndAllowThreads(__tstate);
18512 if (PyErr_Occurred()) SWIG_fail;
18513 }
18514 resultobj = SWIG_Py_Void();
18515 return resultobj;
18516 fail:
18517 return NULL;
18518 }
18519
18520
18521 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18522 PyObject *resultobj = 0;
18523 wxSlider *arg1 = (wxSlider *) 0 ;
18524 int result;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 PyObject *swig_obj[1] ;
18528
18529 if (!args) SWIG_fail;
18530 swig_obj[0] = args;
18531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18532 if (!SWIG_IsOK(res1)) {
18533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18534 }
18535 arg1 = reinterpret_cast< wxSlider * >(argp1);
18536 {
18537 PyThreadState* __tstate = wxPyBeginAllowThreads();
18538 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18539 wxPyEndAllowThreads(__tstate);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 resultobj = SWIG_From_int(static_cast< int >(result));
18543 return resultobj;
18544 fail:
18545 return NULL;
18546 }
18547
18548
18549 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18550 PyObject *resultobj = 0;
18551 wxSlider *arg1 = (wxSlider *) 0 ;
18552 int result;
18553 void *argp1 = 0 ;
18554 int res1 = 0 ;
18555 PyObject *swig_obj[1] ;
18556
18557 if (!args) SWIG_fail;
18558 swig_obj[0] = args;
18559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18560 if (!SWIG_IsOK(res1)) {
18561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18562 }
18563 arg1 = reinterpret_cast< wxSlider * >(argp1);
18564 {
18565 PyThreadState* __tstate = wxPyBeginAllowThreads();
18566 result = (int)((wxSlider const *)arg1)->GetSelStart();
18567 wxPyEndAllowThreads(__tstate);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 }
18570 resultobj = SWIG_From_int(static_cast< int >(result));
18571 return resultobj;
18572 fail:
18573 return NULL;
18574 }
18575
18576
18577 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18578 PyObject *resultobj = 0;
18579 wxSlider *arg1 = (wxSlider *) 0 ;
18580 int arg2 ;
18581 int arg3 ;
18582 void *argp1 = 0 ;
18583 int res1 = 0 ;
18584 int val2 ;
18585 int ecode2 = 0 ;
18586 int val3 ;
18587 int ecode3 = 0 ;
18588 PyObject * obj0 = 0 ;
18589 PyObject * obj1 = 0 ;
18590 PyObject * obj2 = 0 ;
18591 char * kwnames[] = {
18592 (char *) "self",(char *) "min",(char *) "max", NULL
18593 };
18594
18595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18597 if (!SWIG_IsOK(res1)) {
18598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18599 }
18600 arg1 = reinterpret_cast< wxSlider * >(argp1);
18601 ecode2 = SWIG_AsVal_int(obj1, &val2);
18602 if (!SWIG_IsOK(ecode2)) {
18603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18604 }
18605 arg2 = static_cast< int >(val2);
18606 ecode3 = SWIG_AsVal_int(obj2, &val3);
18607 if (!SWIG_IsOK(ecode3)) {
18608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18609 }
18610 arg3 = static_cast< int >(val3);
18611 {
18612 PyThreadState* __tstate = wxPyBeginAllowThreads();
18613 (arg1)->SetSelection(arg2,arg3);
18614 wxPyEndAllowThreads(__tstate);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 }
18617 resultobj = SWIG_Py_Void();
18618 return resultobj;
18619 fail:
18620 return NULL;
18621 }
18622
18623
18624 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18625 PyObject *resultobj = 0;
18626 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18627 SwigValueWrapper<wxVisualAttributes > result;
18628 int val1 ;
18629 int ecode1 = 0 ;
18630 PyObject * obj0 = 0 ;
18631 char * kwnames[] = {
18632 (char *) "variant", NULL
18633 };
18634
18635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18636 if (obj0) {
18637 ecode1 = SWIG_AsVal_int(obj0, &val1);
18638 if (!SWIG_IsOK(ecode1)) {
18639 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18640 }
18641 arg1 = static_cast< wxWindowVariant >(val1);
18642 }
18643 {
18644 if (!wxPyCheckForApp()) SWIG_fail;
18645 PyThreadState* __tstate = wxPyBeginAllowThreads();
18646 result = wxSlider::GetClassDefaultAttributes(arg1);
18647 wxPyEndAllowThreads(__tstate);
18648 if (PyErr_Occurred()) SWIG_fail;
18649 }
18650 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18651 return resultobj;
18652 fail:
18653 return NULL;
18654 }
18655
18656
18657 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18658 PyObject *obj;
18659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18660 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18661 return SWIG_Py_Void();
18662 }
18663
18664 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18665 return SWIG_Python_InitShadowInstance(args);
18666 }
18667
18668 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18669 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18670 return 1;
18671 }
18672
18673
18674 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18675 PyObject *pyobj = 0;
18676
18677 {
18678 #if wxUSE_UNICODE
18679 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18680 #else
18681 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18682 #endif
18683 }
18684 return pyobj;
18685 }
18686
18687
18688 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18689 PyObject *resultobj = 0;
18690 wxWindow *arg1 = (wxWindow *) 0 ;
18691 int arg2 = (int) -1 ;
18692 wxString const &arg3_defvalue = wxPyEmptyString ;
18693 wxString *arg3 = (wxString *) &arg3_defvalue ;
18694 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18695 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18696 wxSize const &arg5_defvalue = wxDefaultSize ;
18697 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18698 long arg6 = (long) 0 ;
18699 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18700 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18701 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18702 wxString *arg8 = (wxString *) &arg8_defvalue ;
18703 wxToggleButton *result = 0 ;
18704 void *argp1 = 0 ;
18705 int res1 = 0 ;
18706 int val2 ;
18707 int ecode2 = 0 ;
18708 bool temp3 = false ;
18709 wxPoint temp4 ;
18710 wxSize temp5 ;
18711 long val6 ;
18712 int ecode6 = 0 ;
18713 void *argp7 = 0 ;
18714 int res7 = 0 ;
18715 bool temp8 = false ;
18716 PyObject * obj0 = 0 ;
18717 PyObject * obj1 = 0 ;
18718 PyObject * obj2 = 0 ;
18719 PyObject * obj3 = 0 ;
18720 PyObject * obj4 = 0 ;
18721 PyObject * obj5 = 0 ;
18722 PyObject * obj6 = 0 ;
18723 PyObject * obj7 = 0 ;
18724 char * kwnames[] = {
18725 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18726 };
18727
18728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18730 if (!SWIG_IsOK(res1)) {
18731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18732 }
18733 arg1 = reinterpret_cast< wxWindow * >(argp1);
18734 if (obj1) {
18735 ecode2 = SWIG_AsVal_int(obj1, &val2);
18736 if (!SWIG_IsOK(ecode2)) {
18737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18738 }
18739 arg2 = static_cast< int >(val2);
18740 }
18741 if (obj2) {
18742 {
18743 arg3 = wxString_in_helper(obj2);
18744 if (arg3 == NULL) SWIG_fail;
18745 temp3 = true;
18746 }
18747 }
18748 if (obj3) {
18749 {
18750 arg4 = &temp4;
18751 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18752 }
18753 }
18754 if (obj4) {
18755 {
18756 arg5 = &temp5;
18757 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18758 }
18759 }
18760 if (obj5) {
18761 ecode6 = SWIG_AsVal_long(obj5, &val6);
18762 if (!SWIG_IsOK(ecode6)) {
18763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18764 }
18765 arg6 = static_cast< long >(val6);
18766 }
18767 if (obj6) {
18768 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18769 if (!SWIG_IsOK(res7)) {
18770 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18771 }
18772 if (!argp7) {
18773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18774 }
18775 arg7 = reinterpret_cast< wxValidator * >(argp7);
18776 }
18777 if (obj7) {
18778 {
18779 arg8 = wxString_in_helper(obj7);
18780 if (arg8 == NULL) SWIG_fail;
18781 temp8 = true;
18782 }
18783 }
18784 {
18785 if (!wxPyCheckForApp()) SWIG_fail;
18786 PyThreadState* __tstate = wxPyBeginAllowThreads();
18787 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18792 {
18793 if (temp3)
18794 delete arg3;
18795 }
18796 {
18797 if (temp8)
18798 delete arg8;
18799 }
18800 return resultobj;
18801 fail:
18802 {
18803 if (temp3)
18804 delete arg3;
18805 }
18806 {
18807 if (temp8)
18808 delete arg8;
18809 }
18810 return NULL;
18811 }
18812
18813
18814 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18815 PyObject *resultobj = 0;
18816 wxToggleButton *result = 0 ;
18817
18818 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18819 {
18820 if (!wxPyCheckForApp()) SWIG_fail;
18821 PyThreadState* __tstate = wxPyBeginAllowThreads();
18822 result = (wxToggleButton *)new wxToggleButton();
18823 wxPyEndAllowThreads(__tstate);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18827 return resultobj;
18828 fail:
18829 return NULL;
18830 }
18831
18832
18833 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18834 PyObject *resultobj = 0;
18835 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18836 wxWindow *arg2 = (wxWindow *) 0 ;
18837 int arg3 = (int) -1 ;
18838 wxString const &arg4_defvalue = wxPyEmptyString ;
18839 wxString *arg4 = (wxString *) &arg4_defvalue ;
18840 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18841 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18842 wxSize const &arg6_defvalue = wxDefaultSize ;
18843 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18844 long arg7 = (long) 0 ;
18845 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18846 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18847 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18848 wxString *arg9 = (wxString *) &arg9_defvalue ;
18849 bool result;
18850 void *argp1 = 0 ;
18851 int res1 = 0 ;
18852 void *argp2 = 0 ;
18853 int res2 = 0 ;
18854 int val3 ;
18855 int ecode3 = 0 ;
18856 bool temp4 = false ;
18857 wxPoint temp5 ;
18858 wxSize temp6 ;
18859 long val7 ;
18860 int ecode7 = 0 ;
18861 void *argp8 = 0 ;
18862 int res8 = 0 ;
18863 bool temp9 = false ;
18864 PyObject * obj0 = 0 ;
18865 PyObject * obj1 = 0 ;
18866 PyObject * obj2 = 0 ;
18867 PyObject * obj3 = 0 ;
18868 PyObject * obj4 = 0 ;
18869 PyObject * obj5 = 0 ;
18870 PyObject * obj6 = 0 ;
18871 PyObject * obj7 = 0 ;
18872 PyObject * obj8 = 0 ;
18873 char * kwnames[] = {
18874 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18875 };
18876
18877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18879 if (!SWIG_IsOK(res1)) {
18880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18881 }
18882 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18884 if (!SWIG_IsOK(res2)) {
18885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18886 }
18887 arg2 = reinterpret_cast< wxWindow * >(argp2);
18888 if (obj2) {
18889 ecode3 = SWIG_AsVal_int(obj2, &val3);
18890 if (!SWIG_IsOK(ecode3)) {
18891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18892 }
18893 arg3 = static_cast< int >(val3);
18894 }
18895 if (obj3) {
18896 {
18897 arg4 = wxString_in_helper(obj3);
18898 if (arg4 == NULL) SWIG_fail;
18899 temp4 = true;
18900 }
18901 }
18902 if (obj4) {
18903 {
18904 arg5 = &temp5;
18905 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18906 }
18907 }
18908 if (obj5) {
18909 {
18910 arg6 = &temp6;
18911 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18912 }
18913 }
18914 if (obj6) {
18915 ecode7 = SWIG_AsVal_long(obj6, &val7);
18916 if (!SWIG_IsOK(ecode7)) {
18917 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18918 }
18919 arg7 = static_cast< long >(val7);
18920 }
18921 if (obj7) {
18922 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18923 if (!SWIG_IsOK(res8)) {
18924 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18925 }
18926 if (!argp8) {
18927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18928 }
18929 arg8 = reinterpret_cast< wxValidator * >(argp8);
18930 }
18931 if (obj8) {
18932 {
18933 arg9 = wxString_in_helper(obj8);
18934 if (arg9 == NULL) SWIG_fail;
18935 temp9 = true;
18936 }
18937 }
18938 {
18939 PyThreadState* __tstate = wxPyBeginAllowThreads();
18940 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18941 wxPyEndAllowThreads(__tstate);
18942 if (PyErr_Occurred()) SWIG_fail;
18943 }
18944 {
18945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18946 }
18947 {
18948 if (temp4)
18949 delete arg4;
18950 }
18951 {
18952 if (temp9)
18953 delete arg9;
18954 }
18955 return resultobj;
18956 fail:
18957 {
18958 if (temp4)
18959 delete arg4;
18960 }
18961 {
18962 if (temp9)
18963 delete arg9;
18964 }
18965 return NULL;
18966 }
18967
18968
18969 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18970 PyObject *resultobj = 0;
18971 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18972 bool arg2 ;
18973 void *argp1 = 0 ;
18974 int res1 = 0 ;
18975 bool val2 ;
18976 int ecode2 = 0 ;
18977 PyObject * obj0 = 0 ;
18978 PyObject * obj1 = 0 ;
18979 char * kwnames[] = {
18980 (char *) "self",(char *) "value", NULL
18981 };
18982
18983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18985 if (!SWIG_IsOK(res1)) {
18986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18987 }
18988 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18989 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18990 if (!SWIG_IsOK(ecode2)) {
18991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18992 }
18993 arg2 = static_cast< bool >(val2);
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 (arg1)->SetValue(arg2);
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_Py_Void();
19001 return resultobj;
19002 fail:
19003 return NULL;
19004 }
19005
19006
19007 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19008 PyObject *resultobj = 0;
19009 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19010 bool result;
19011 void *argp1 = 0 ;
19012 int res1 = 0 ;
19013 PyObject *swig_obj[1] ;
19014
19015 if (!args) SWIG_fail;
19016 swig_obj[0] = args;
19017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19018 if (!SWIG_IsOK(res1)) {
19019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19020 }
19021 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19022 {
19023 PyThreadState* __tstate = wxPyBeginAllowThreads();
19024 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 {
19029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19030 }
19031 return resultobj;
19032 fail:
19033 return NULL;
19034 }
19035
19036
19037 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19038 PyObject *resultobj = 0;
19039 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19040 SwigValueWrapper<wxVisualAttributes > result;
19041 int val1 ;
19042 int ecode1 = 0 ;
19043 PyObject * obj0 = 0 ;
19044 char * kwnames[] = {
19045 (char *) "variant", NULL
19046 };
19047
19048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19049 if (obj0) {
19050 ecode1 = SWIG_AsVal_int(obj0, &val1);
19051 if (!SWIG_IsOK(ecode1)) {
19052 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19053 }
19054 arg1 = static_cast< wxWindowVariant >(val1);
19055 }
19056 {
19057 if (!wxPyCheckForApp()) SWIG_fail;
19058 PyThreadState* __tstate = wxPyBeginAllowThreads();
19059 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19060 wxPyEndAllowThreads(__tstate);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 }
19063 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19064 return resultobj;
19065 fail:
19066 return NULL;
19067 }
19068
19069
19070 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19071 PyObject *obj;
19072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19073 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19074 return SWIG_Py_Void();
19075 }
19076
19077 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19078 return SWIG_Python_InitShadowInstance(args);
19079 }
19080
19081 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19082 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19083 return 1;
19084 }
19085
19086
19087 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19088 PyObject *pyobj = 0;
19089
19090 {
19091 #if wxUSE_UNICODE
19092 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19093 #else
19094 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19095 #endif
19096 }
19097 return pyobj;
19098 }
19099
19100
19101 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19102 PyObject *resultobj = 0;
19103 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19104 size_t result;
19105 void *argp1 = 0 ;
19106 int res1 = 0 ;
19107 PyObject *swig_obj[1] ;
19108
19109 if (!args) SWIG_fail;
19110 swig_obj[0] = args;
19111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19114 }
19115 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19123 return resultobj;
19124 fail:
19125 return NULL;
19126 }
19127
19128
19129 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19130 PyObject *resultobj = 0;
19131 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19132 size_t arg2 ;
19133 wxWindow *result = 0 ;
19134 void *argp1 = 0 ;
19135 int res1 = 0 ;
19136 size_t val2 ;
19137 int ecode2 = 0 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 char * kwnames[] = {
19141 (char *) "self",(char *) "n", NULL
19142 };
19143
19144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19146 if (!SWIG_IsOK(res1)) {
19147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19148 }
19149 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19150 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19151 if (!SWIG_IsOK(ecode2)) {
19152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19153 }
19154 arg2 = static_cast< size_t >(val2);
19155 {
19156 PyThreadState* __tstate = wxPyBeginAllowThreads();
19157 result = (wxWindow *)(arg1)->GetPage(arg2);
19158 wxPyEndAllowThreads(__tstate);
19159 if (PyErr_Occurred()) SWIG_fail;
19160 }
19161 {
19162 resultobj = wxPyMake_wxObject(result, 0);
19163 }
19164 return resultobj;
19165 fail:
19166 return NULL;
19167 }
19168
19169
19170 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19171 PyObject *resultobj = 0;
19172 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19173 wxWindow *result = 0 ;
19174 void *argp1 = 0 ;
19175 int res1 = 0 ;
19176 PyObject *swig_obj[1] ;
19177
19178 if (!args) SWIG_fail;
19179 swig_obj[0] = args;
19180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19181 if (!SWIG_IsOK(res1)) {
19182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19183 }
19184 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19185 {
19186 PyThreadState* __tstate = wxPyBeginAllowThreads();
19187 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19188 wxPyEndAllowThreads(__tstate);
19189 if (PyErr_Occurred()) SWIG_fail;
19190 }
19191 {
19192 resultobj = wxPyMake_wxObject(result, 0);
19193 }
19194 return resultobj;
19195 fail:
19196 return NULL;
19197 }
19198
19199
19200 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19201 PyObject *resultobj = 0;
19202 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19203 int result;
19204 void *argp1 = 0 ;
19205 int res1 = 0 ;
19206 PyObject *swig_obj[1] ;
19207
19208 if (!args) SWIG_fail;
19209 swig_obj[0] = args;
19210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19211 if (!SWIG_IsOK(res1)) {
19212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19213 }
19214 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 resultobj = SWIG_From_int(static_cast< int >(result));
19222 return resultobj;
19223 fail:
19224 return NULL;
19225 }
19226
19227
19228 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19229 PyObject *resultobj = 0;
19230 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19231 size_t arg2 ;
19232 wxString *arg3 = 0 ;
19233 bool result;
19234 void *argp1 = 0 ;
19235 int res1 = 0 ;
19236 size_t val2 ;
19237 int ecode2 = 0 ;
19238 bool temp3 = false ;
19239 PyObject * obj0 = 0 ;
19240 PyObject * obj1 = 0 ;
19241 PyObject * obj2 = 0 ;
19242 char * kwnames[] = {
19243 (char *) "self",(char *) "n",(char *) "strText", NULL
19244 };
19245
19246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19248 if (!SWIG_IsOK(res1)) {
19249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19250 }
19251 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19252 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19253 if (!SWIG_IsOK(ecode2)) {
19254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19255 }
19256 arg2 = static_cast< size_t >(val2);
19257 {
19258 arg3 = wxString_in_helper(obj2);
19259 if (arg3 == NULL) SWIG_fail;
19260 temp3 = true;
19261 }
19262 {
19263 PyThreadState* __tstate = wxPyBeginAllowThreads();
19264 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19265 wxPyEndAllowThreads(__tstate);
19266 if (PyErr_Occurred()) SWIG_fail;
19267 }
19268 {
19269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19270 }
19271 {
19272 if (temp3)
19273 delete arg3;
19274 }
19275 return resultobj;
19276 fail:
19277 {
19278 if (temp3)
19279 delete arg3;
19280 }
19281 return NULL;
19282 }
19283
19284
19285 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19286 PyObject *resultobj = 0;
19287 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19288 size_t arg2 ;
19289 wxString result;
19290 void *argp1 = 0 ;
19291 int res1 = 0 ;
19292 size_t val2 ;
19293 int ecode2 = 0 ;
19294 PyObject * obj0 = 0 ;
19295 PyObject * obj1 = 0 ;
19296 char * kwnames[] = {
19297 (char *) "self",(char *) "n", NULL
19298 };
19299
19300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19302 if (!SWIG_IsOK(res1)) {
19303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19304 }
19305 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19306 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19307 if (!SWIG_IsOK(ecode2)) {
19308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19309 }
19310 arg2 = static_cast< size_t >(val2);
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
19317 {
19318 #if wxUSE_UNICODE
19319 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19320 #else
19321 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19322 #endif
19323 }
19324 return resultobj;
19325 fail:
19326 return NULL;
19327 }
19328
19329
19330 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19331 PyObject *resultobj = 0;
19332 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19333 wxImageList *arg2 = (wxImageList *) 0 ;
19334 void *argp1 = 0 ;
19335 int res1 = 0 ;
19336 void *argp2 = 0 ;
19337 int res2 = 0 ;
19338 PyObject * obj0 = 0 ;
19339 PyObject * obj1 = 0 ;
19340 char * kwnames[] = {
19341 (char *) "self",(char *) "imageList", NULL
19342 };
19343
19344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19346 if (!SWIG_IsOK(res1)) {
19347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19348 }
19349 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19350 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19351 if (!SWIG_IsOK(res2)) {
19352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19353 }
19354 arg2 = reinterpret_cast< wxImageList * >(argp2);
19355 {
19356 PyThreadState* __tstate = wxPyBeginAllowThreads();
19357 (arg1)->SetImageList(arg2);
19358 wxPyEndAllowThreads(__tstate);
19359 if (PyErr_Occurred()) SWIG_fail;
19360 }
19361 resultobj = SWIG_Py_Void();
19362 return resultobj;
19363 fail:
19364 return NULL;
19365 }
19366
19367
19368 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19369 PyObject *resultobj = 0;
19370 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19371 wxImageList *arg2 = (wxImageList *) 0 ;
19372 void *argp1 = 0 ;
19373 int res1 = 0 ;
19374 int res2 = 0 ;
19375 PyObject * obj0 = 0 ;
19376 PyObject * obj1 = 0 ;
19377 char * kwnames[] = {
19378 (char *) "self",(char *) "imageList", NULL
19379 };
19380
19381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19383 if (!SWIG_IsOK(res1)) {
19384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19385 }
19386 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19387 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19388 if (!SWIG_IsOK(res2)) {
19389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19390 }
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 (arg1)->AssignImageList(arg2);
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 resultobj = SWIG_Py_Void();
19398 return resultobj;
19399 fail:
19400 return NULL;
19401 }
19402
19403
19404 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19405 PyObject *resultobj = 0;
19406 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19407 wxImageList *result = 0 ;
19408 void *argp1 = 0 ;
19409 int res1 = 0 ;
19410 PyObject *swig_obj[1] ;
19411
19412 if (!args) SWIG_fail;
19413 swig_obj[0] = args;
19414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19415 if (!SWIG_IsOK(res1)) {
19416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19417 }
19418 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 {
19426 resultobj = wxPyMake_wxObject(result, (bool)0);
19427 }
19428 return resultobj;
19429 fail:
19430 return NULL;
19431 }
19432
19433
19434 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj = 0;
19436 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19437 size_t arg2 ;
19438 int result;
19439 void *argp1 = 0 ;
19440 int res1 = 0 ;
19441 size_t val2 ;
19442 int ecode2 = 0 ;
19443 PyObject * obj0 = 0 ;
19444 PyObject * obj1 = 0 ;
19445 char * kwnames[] = {
19446 (char *) "self",(char *) "n", NULL
19447 };
19448
19449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19451 if (!SWIG_IsOK(res1)) {
19452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19453 }
19454 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19455 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19456 if (!SWIG_IsOK(ecode2)) {
19457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19458 }
19459 arg2 = static_cast< size_t >(val2);
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19463 wxPyEndAllowThreads(__tstate);
19464 if (PyErr_Occurred()) SWIG_fail;
19465 }
19466 resultobj = SWIG_From_int(static_cast< int >(result));
19467 return resultobj;
19468 fail:
19469 return NULL;
19470 }
19471
19472
19473 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19474 PyObject *resultobj = 0;
19475 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19476 size_t arg2 ;
19477 int arg3 ;
19478 bool result;
19479 void *argp1 = 0 ;
19480 int res1 = 0 ;
19481 size_t val2 ;
19482 int ecode2 = 0 ;
19483 int val3 ;
19484 int ecode3 = 0 ;
19485 PyObject * obj0 = 0 ;
19486 PyObject * obj1 = 0 ;
19487 PyObject * obj2 = 0 ;
19488 char * kwnames[] = {
19489 (char *) "self",(char *) "n",(char *) "imageId", NULL
19490 };
19491
19492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19494 if (!SWIG_IsOK(res1)) {
19495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19496 }
19497 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19498 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19499 if (!SWIG_IsOK(ecode2)) {
19500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19501 }
19502 arg2 = static_cast< size_t >(val2);
19503 ecode3 = SWIG_AsVal_int(obj2, &val3);
19504 if (!SWIG_IsOK(ecode3)) {
19505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19506 }
19507 arg3 = static_cast< int >(val3);
19508 {
19509 PyThreadState* __tstate = wxPyBeginAllowThreads();
19510 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19511 wxPyEndAllowThreads(__tstate);
19512 if (PyErr_Occurred()) SWIG_fail;
19513 }
19514 {
19515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19516 }
19517 return resultobj;
19518 fail:
19519 return NULL;
19520 }
19521
19522
19523 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19524 PyObject *resultobj = 0;
19525 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19526 wxSize *arg2 = 0 ;
19527 void *argp1 = 0 ;
19528 int res1 = 0 ;
19529 wxSize temp2 ;
19530 PyObject * obj0 = 0 ;
19531 PyObject * obj1 = 0 ;
19532 char * kwnames[] = {
19533 (char *) "self",(char *) "size", NULL
19534 };
19535
19536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19540 }
19541 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19542 {
19543 arg2 = &temp2;
19544 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19545 }
19546 {
19547 PyThreadState* __tstate = wxPyBeginAllowThreads();
19548 (arg1)->SetPageSize((wxSize const &)*arg2);
19549 wxPyEndAllowThreads(__tstate);
19550 if (PyErr_Occurred()) SWIG_fail;
19551 }
19552 resultobj = SWIG_Py_Void();
19553 return resultobj;
19554 fail:
19555 return NULL;
19556 }
19557
19558
19559 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19560 PyObject *resultobj = 0;
19561 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19562 wxSize *arg2 = 0 ;
19563 wxSize result;
19564 void *argp1 = 0 ;
19565 int res1 = 0 ;
19566 wxSize temp2 ;
19567 PyObject * obj0 = 0 ;
19568 PyObject * obj1 = 0 ;
19569 char * kwnames[] = {
19570 (char *) "self",(char *) "sizePage", NULL
19571 };
19572
19573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19577 }
19578 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19579 {
19580 arg2 = &temp2;
19581 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19582 }
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19590 return resultobj;
19591 fail:
19592 return NULL;
19593 }
19594
19595
19596 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19597 PyObject *resultobj = 0;
19598 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19599 unsigned int result;
19600 void *argp1 = 0 ;
19601 int res1 = 0 ;
19602 PyObject *swig_obj[1] ;
19603
19604 if (!args) SWIG_fail;
19605 swig_obj[0] = args;
19606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19607 if (!SWIG_IsOK(res1)) {
19608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19609 }
19610 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19611 {
19612 PyThreadState* __tstate = wxPyBeginAllowThreads();
19613 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19614 wxPyEndAllowThreads(__tstate);
19615 if (PyErr_Occurred()) SWIG_fail;
19616 }
19617 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19618 return resultobj;
19619 fail:
19620 return NULL;
19621 }
19622
19623
19624 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19625 PyObject *resultobj = 0;
19626 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19627 unsigned int arg2 ;
19628 void *argp1 = 0 ;
19629 int res1 = 0 ;
19630 unsigned int val2 ;
19631 int ecode2 = 0 ;
19632 PyObject * obj0 = 0 ;
19633 PyObject * obj1 = 0 ;
19634 char * kwnames[] = {
19635 (char *) "self",(char *) "internalBorder", NULL
19636 };
19637
19638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19640 if (!SWIG_IsOK(res1)) {
19641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19642 }
19643 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19644 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19645 if (!SWIG_IsOK(ecode2)) {
19646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19647 }
19648 arg2 = static_cast< unsigned int >(val2);
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 (arg1)->SetInternalBorder(arg2);
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 resultobj = SWIG_Py_Void();
19656 return resultobj;
19657 fail:
19658 return NULL;
19659 }
19660
19661
19662 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19663 PyObject *resultobj = 0;
19664 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19665 bool result;
19666 void *argp1 = 0 ;
19667 int res1 = 0 ;
19668 PyObject *swig_obj[1] ;
19669
19670 if (!args) SWIG_fail;
19671 swig_obj[0] = args;
19672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19673 if (!SWIG_IsOK(res1)) {
19674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19675 }
19676 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19680 wxPyEndAllowThreads(__tstate);
19681 if (PyErr_Occurred()) SWIG_fail;
19682 }
19683 {
19684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19685 }
19686 return resultobj;
19687 fail:
19688 return NULL;
19689 }
19690
19691
19692 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19693 PyObject *resultobj = 0;
19694 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19695 int arg2 ;
19696 void *argp1 = 0 ;
19697 int res1 = 0 ;
19698 int val2 ;
19699 int ecode2 = 0 ;
19700 PyObject * obj0 = 0 ;
19701 PyObject * obj1 = 0 ;
19702 char * kwnames[] = {
19703 (char *) "self",(char *) "margin", NULL
19704 };
19705
19706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19708 if (!SWIG_IsOK(res1)) {
19709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19710 }
19711 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19712 ecode2 = SWIG_AsVal_int(obj1, &val2);
19713 if (!SWIG_IsOK(ecode2)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19715 }
19716 arg2 = static_cast< int >(val2);
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 (arg1)->SetControlMargin(arg2);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 resultobj = SWIG_Py_Void();
19724 return resultobj;
19725 fail:
19726 return NULL;
19727 }
19728
19729
19730 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19731 PyObject *resultobj = 0;
19732 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19733 int result;
19734 void *argp1 = 0 ;
19735 int res1 = 0 ;
19736 PyObject *swig_obj[1] ;
19737
19738 if (!args) SWIG_fail;
19739 swig_obj[0] = args;
19740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19741 if (!SWIG_IsOK(res1)) {
19742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19743 }
19744 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19745 {
19746 PyThreadState* __tstate = wxPyBeginAllowThreads();
19747 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 resultobj = SWIG_From_int(static_cast< int >(result));
19752 return resultobj;
19753 fail:
19754 return NULL;
19755 }
19756
19757
19758 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj = 0;
19760 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19761 bool arg2 ;
19762 void *argp1 = 0 ;
19763 int res1 = 0 ;
19764 bool val2 ;
19765 int ecode2 = 0 ;
19766 PyObject * obj0 = 0 ;
19767 PyObject * obj1 = 0 ;
19768 char * kwnames[] = {
19769 (char *) "self",(char *) "fit", NULL
19770 };
19771
19772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19774 if (!SWIG_IsOK(res1)) {
19775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19776 }
19777 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19778 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19779 if (!SWIG_IsOK(ecode2)) {
19780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19781 }
19782 arg2 = static_cast< bool >(val2);
19783 {
19784 PyThreadState* __tstate = wxPyBeginAllowThreads();
19785 (arg1)->SetFitToCurrentPage(arg2);
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 resultobj = SWIG_Py_Void();
19790 return resultobj;
19791 fail:
19792 return NULL;
19793 }
19794
19795
19796 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19797 PyObject *resultobj = 0;
19798 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19799 bool result;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 PyObject *swig_obj[1] ;
19803
19804 if (!args) SWIG_fail;
19805 swig_obj[0] = args;
19806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19807 if (!SWIG_IsOK(res1)) {
19808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19809 }
19810 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 {
19818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19819 }
19820 return resultobj;
19821 fail:
19822 return NULL;
19823 }
19824
19825
19826 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19827 PyObject *resultobj = 0;
19828 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19829 wxSizer *result = 0 ;
19830 void *argp1 = 0 ;
19831 int res1 = 0 ;
19832 PyObject *swig_obj[1] ;
19833
19834 if (!args) SWIG_fail;
19835 swig_obj[0] = args;
19836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19837 if (!SWIG_IsOK(res1)) {
19838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19839 }
19840 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19841 {
19842 PyThreadState* __tstate = wxPyBeginAllowThreads();
19843 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
19847 {
19848 resultobj = wxPyMake_wxObject(result, (bool)0);
19849 }
19850 return resultobj;
19851 fail:
19852 return NULL;
19853 }
19854
19855
19856 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19857 PyObject *resultobj = 0;
19858 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19859 size_t arg2 ;
19860 bool result;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 size_t val2 ;
19864 int ecode2 = 0 ;
19865 PyObject * obj0 = 0 ;
19866 PyObject * obj1 = 0 ;
19867 char * kwnames[] = {
19868 (char *) "self",(char *) "n", NULL
19869 };
19870
19871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19873 if (!SWIG_IsOK(res1)) {
19874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19875 }
19876 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19877 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19878 if (!SWIG_IsOK(ecode2)) {
19879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19880 }
19881 arg2 = static_cast< size_t >(val2);
19882 {
19883 PyThreadState* __tstate = wxPyBeginAllowThreads();
19884 result = (bool)(arg1)->DeletePage(arg2);
19885 wxPyEndAllowThreads(__tstate);
19886 if (PyErr_Occurred()) SWIG_fail;
19887 }
19888 {
19889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19890 }
19891 return resultobj;
19892 fail:
19893 return NULL;
19894 }
19895
19896
19897 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19898 PyObject *resultobj = 0;
19899 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19900 size_t arg2 ;
19901 bool result;
19902 void *argp1 = 0 ;
19903 int res1 = 0 ;
19904 size_t val2 ;
19905 int ecode2 = 0 ;
19906 PyObject * obj0 = 0 ;
19907 PyObject * obj1 = 0 ;
19908 char * kwnames[] = {
19909 (char *) "self",(char *) "n", NULL
19910 };
19911
19912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19914 if (!SWIG_IsOK(res1)) {
19915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19916 }
19917 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19918 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19919 if (!SWIG_IsOK(ecode2)) {
19920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19921 }
19922 arg2 = static_cast< size_t >(val2);
19923 {
19924 PyThreadState* __tstate = wxPyBeginAllowThreads();
19925 result = (bool)(arg1)->RemovePage(arg2);
19926 wxPyEndAllowThreads(__tstate);
19927 if (PyErr_Occurred()) SWIG_fail;
19928 }
19929 {
19930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19931 }
19932 return resultobj;
19933 fail:
19934 return NULL;
19935 }
19936
19937
19938 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19939 PyObject *resultobj = 0;
19940 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19941 bool result;
19942 void *argp1 = 0 ;
19943 int res1 = 0 ;
19944 PyObject *swig_obj[1] ;
19945
19946 if (!args) SWIG_fail;
19947 swig_obj[0] = args;
19948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19949 if (!SWIG_IsOK(res1)) {
19950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19951 }
19952 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 result = (bool)(arg1)->DeleteAllPages();
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 {
19960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19961 }
19962 return resultobj;
19963 fail:
19964 return NULL;
19965 }
19966
19967
19968 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19969 PyObject *resultobj = 0;
19970 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19971 wxWindow *arg2 = (wxWindow *) 0 ;
19972 wxString *arg3 = 0 ;
19973 bool arg4 = (bool) false ;
19974 int arg5 = (int) -1 ;
19975 bool result;
19976 void *argp1 = 0 ;
19977 int res1 = 0 ;
19978 void *argp2 = 0 ;
19979 int res2 = 0 ;
19980 bool temp3 = false ;
19981 bool val4 ;
19982 int ecode4 = 0 ;
19983 int val5 ;
19984 int ecode5 = 0 ;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 PyObject * obj2 = 0 ;
19988 PyObject * obj3 = 0 ;
19989 PyObject * obj4 = 0 ;
19990 char * kwnames[] = {
19991 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19992 };
19993
19994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19996 if (!SWIG_IsOK(res1)) {
19997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19998 }
19999 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20001 if (!SWIG_IsOK(res2)) {
20002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20003 }
20004 arg2 = reinterpret_cast< wxWindow * >(argp2);
20005 {
20006 arg3 = wxString_in_helper(obj2);
20007 if (arg3 == NULL) SWIG_fail;
20008 temp3 = true;
20009 }
20010 if (obj3) {
20011 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20012 if (!SWIG_IsOK(ecode4)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20014 }
20015 arg4 = static_cast< bool >(val4);
20016 }
20017 if (obj4) {
20018 ecode5 = SWIG_AsVal_int(obj4, &val5);
20019 if (!SWIG_IsOK(ecode5)) {
20020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20021 }
20022 arg5 = static_cast< int >(val5);
20023 }
20024 {
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 {
20031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20032 }
20033 {
20034 if (temp3)
20035 delete arg3;
20036 }
20037 return resultobj;
20038 fail:
20039 {
20040 if (temp3)
20041 delete arg3;
20042 }
20043 return NULL;
20044 }
20045
20046
20047 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20048 PyObject *resultobj = 0;
20049 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20050 size_t arg2 ;
20051 wxWindow *arg3 = (wxWindow *) 0 ;
20052 wxString *arg4 = 0 ;
20053 bool arg5 = (bool) false ;
20054 int arg6 = (int) -1 ;
20055 bool result;
20056 void *argp1 = 0 ;
20057 int res1 = 0 ;
20058 size_t val2 ;
20059 int ecode2 = 0 ;
20060 void *argp3 = 0 ;
20061 int res3 = 0 ;
20062 bool temp4 = false ;
20063 bool val5 ;
20064 int ecode5 = 0 ;
20065 int val6 ;
20066 int ecode6 = 0 ;
20067 PyObject * obj0 = 0 ;
20068 PyObject * obj1 = 0 ;
20069 PyObject * obj2 = 0 ;
20070 PyObject * obj3 = 0 ;
20071 PyObject * obj4 = 0 ;
20072 PyObject * obj5 = 0 ;
20073 char * kwnames[] = {
20074 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20075 };
20076
20077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20079 if (!SWIG_IsOK(res1)) {
20080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20081 }
20082 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20083 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20084 if (!SWIG_IsOK(ecode2)) {
20085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20086 }
20087 arg2 = static_cast< size_t >(val2);
20088 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20089 if (!SWIG_IsOK(res3)) {
20090 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20091 }
20092 arg3 = reinterpret_cast< wxWindow * >(argp3);
20093 {
20094 arg4 = wxString_in_helper(obj3);
20095 if (arg4 == NULL) SWIG_fail;
20096 temp4 = true;
20097 }
20098 if (obj4) {
20099 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20100 if (!SWIG_IsOK(ecode5)) {
20101 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20102 }
20103 arg5 = static_cast< bool >(val5);
20104 }
20105 if (obj5) {
20106 ecode6 = SWIG_AsVal_int(obj5, &val6);
20107 if (!SWIG_IsOK(ecode6)) {
20108 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20109 }
20110 arg6 = static_cast< int >(val6);
20111 }
20112 {
20113 PyThreadState* __tstate = wxPyBeginAllowThreads();
20114 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20115 wxPyEndAllowThreads(__tstate);
20116 if (PyErr_Occurred()) SWIG_fail;
20117 }
20118 {
20119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20120 }
20121 {
20122 if (temp4)
20123 delete arg4;
20124 }
20125 return resultobj;
20126 fail:
20127 {
20128 if (temp4)
20129 delete arg4;
20130 }
20131 return NULL;
20132 }
20133
20134
20135 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20136 PyObject *resultobj = 0;
20137 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20138 size_t arg2 ;
20139 int result;
20140 void *argp1 = 0 ;
20141 int res1 = 0 ;
20142 size_t val2 ;
20143 int ecode2 = 0 ;
20144 PyObject * obj0 = 0 ;
20145 PyObject * obj1 = 0 ;
20146 char * kwnames[] = {
20147 (char *) "self",(char *) "n", NULL
20148 };
20149
20150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20152 if (!SWIG_IsOK(res1)) {
20153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20154 }
20155 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20156 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20157 if (!SWIG_IsOK(ecode2)) {
20158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20159 }
20160 arg2 = static_cast< size_t >(val2);
20161 {
20162 PyThreadState* __tstate = wxPyBeginAllowThreads();
20163 result = (int)(arg1)->SetSelection(arg2);
20164 wxPyEndAllowThreads(__tstate);
20165 if (PyErr_Occurred()) SWIG_fail;
20166 }
20167 resultobj = SWIG_From_int(static_cast< int >(result));
20168 return resultobj;
20169 fail:
20170 return NULL;
20171 }
20172
20173
20174 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20175 PyObject *resultobj = 0;
20176 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20177 bool arg2 = (bool) true ;
20178 void *argp1 = 0 ;
20179 int res1 = 0 ;
20180 bool val2 ;
20181 int ecode2 = 0 ;
20182 PyObject * obj0 = 0 ;
20183 PyObject * obj1 = 0 ;
20184 char * kwnames[] = {
20185 (char *) "self",(char *) "forward", NULL
20186 };
20187
20188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20190 if (!SWIG_IsOK(res1)) {
20191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20192 }
20193 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20194 if (obj1) {
20195 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20196 if (!SWIG_IsOK(ecode2)) {
20197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20198 }
20199 arg2 = static_cast< bool >(val2);
20200 }
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 (arg1)->AdvanceSelection(arg2);
20204 wxPyEndAllowThreads(__tstate);
20205 if (PyErr_Occurred()) SWIG_fail;
20206 }
20207 resultobj = SWIG_Py_Void();
20208 return resultobj;
20209 fail:
20210 return NULL;
20211 }
20212
20213
20214 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj = 0;
20216 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20217 wxPoint *arg2 = 0 ;
20218 long *arg3 = (long *) 0 ;
20219 int result;
20220 void *argp1 = 0 ;
20221 int res1 = 0 ;
20222 wxPoint temp2 ;
20223 long temp3 ;
20224 int res3 = SWIG_TMPOBJ ;
20225 PyObject * obj0 = 0 ;
20226 PyObject * obj1 = 0 ;
20227 char * kwnames[] = {
20228 (char *) "self",(char *) "pt", NULL
20229 };
20230
20231 arg3 = &temp3;
20232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20234 if (!SWIG_IsOK(res1)) {
20235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20236 }
20237 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20238 {
20239 arg2 = &temp2;
20240 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20241 }
20242 {
20243 PyThreadState* __tstate = wxPyBeginAllowThreads();
20244 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 resultobj = SWIG_From_int(static_cast< int >(result));
20249 if (SWIG_IsTmpObj(res3)) {
20250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20251 } else {
20252 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20254 }
20255 return resultobj;
20256 fail:
20257 return NULL;
20258 }
20259
20260
20261 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20262 PyObject *resultobj = 0;
20263 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20264 SwigValueWrapper<wxVisualAttributes > result;
20265 int val1 ;
20266 int ecode1 = 0 ;
20267 PyObject * obj0 = 0 ;
20268 char * kwnames[] = {
20269 (char *) "variant", NULL
20270 };
20271
20272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20273 if (obj0) {
20274 ecode1 = SWIG_AsVal_int(obj0, &val1);
20275 if (!SWIG_IsOK(ecode1)) {
20276 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20277 }
20278 arg1 = static_cast< wxWindowVariant >(val1);
20279 }
20280 {
20281 if (!wxPyCheckForApp()) SWIG_fail;
20282 PyThreadState* __tstate = wxPyBeginAllowThreads();
20283 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20288 return resultobj;
20289 fail:
20290 return NULL;
20291 }
20292
20293
20294 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20295 PyObject *obj;
20296 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20297 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20298 return SWIG_Py_Void();
20299 }
20300
20301 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20302 PyObject *resultobj = 0;
20303 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20304 int arg2 = (int) 0 ;
20305 int arg3 = (int) -1 ;
20306 int arg4 = (int) -1 ;
20307 wxBookCtrlBaseEvent *result = 0 ;
20308 int val1 ;
20309 int ecode1 = 0 ;
20310 int val2 ;
20311 int ecode2 = 0 ;
20312 int val3 ;
20313 int ecode3 = 0 ;
20314 int val4 ;
20315 int ecode4 = 0 ;
20316 PyObject * obj0 = 0 ;
20317 PyObject * obj1 = 0 ;
20318 PyObject * obj2 = 0 ;
20319 PyObject * obj3 = 0 ;
20320 char * kwnames[] = {
20321 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20322 };
20323
20324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20325 if (obj0) {
20326 ecode1 = SWIG_AsVal_int(obj0, &val1);
20327 if (!SWIG_IsOK(ecode1)) {
20328 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20329 }
20330 arg1 = static_cast< wxEventType >(val1);
20331 }
20332 if (obj1) {
20333 ecode2 = SWIG_AsVal_int(obj1, &val2);
20334 if (!SWIG_IsOK(ecode2)) {
20335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20336 }
20337 arg2 = static_cast< int >(val2);
20338 }
20339 if (obj2) {
20340 ecode3 = SWIG_AsVal_int(obj2, &val3);
20341 if (!SWIG_IsOK(ecode3)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20343 }
20344 arg3 = static_cast< int >(val3);
20345 }
20346 if (obj3) {
20347 ecode4 = SWIG_AsVal_int(obj3, &val4);
20348 if (!SWIG_IsOK(ecode4)) {
20349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20350 }
20351 arg4 = static_cast< int >(val4);
20352 }
20353 {
20354 PyThreadState* __tstate = wxPyBeginAllowThreads();
20355 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20360 return resultobj;
20361 fail:
20362 return NULL;
20363 }
20364
20365
20366 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20367 PyObject *resultobj = 0;
20368 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20369 int result;
20370 void *argp1 = 0 ;
20371 int res1 = 0 ;
20372 PyObject *swig_obj[1] ;
20373
20374 if (!args) SWIG_fail;
20375 swig_obj[0] = args;
20376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20377 if (!SWIG_IsOK(res1)) {
20378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20379 }
20380 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20381 {
20382 PyThreadState* __tstate = wxPyBeginAllowThreads();
20383 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 resultobj = SWIG_From_int(static_cast< int >(result));
20388 return resultobj;
20389 fail:
20390 return NULL;
20391 }
20392
20393
20394 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20395 PyObject *resultobj = 0;
20396 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20397 int arg2 ;
20398 void *argp1 = 0 ;
20399 int res1 = 0 ;
20400 int val2 ;
20401 int ecode2 = 0 ;
20402 PyObject * obj0 = 0 ;
20403 PyObject * obj1 = 0 ;
20404 char * kwnames[] = {
20405 (char *) "self",(char *) "nSel", NULL
20406 };
20407
20408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20410 if (!SWIG_IsOK(res1)) {
20411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20412 }
20413 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20414 ecode2 = SWIG_AsVal_int(obj1, &val2);
20415 if (!SWIG_IsOK(ecode2)) {
20416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20417 }
20418 arg2 = static_cast< int >(val2);
20419 {
20420 PyThreadState* __tstate = wxPyBeginAllowThreads();
20421 (arg1)->SetSelection(arg2);
20422 wxPyEndAllowThreads(__tstate);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 }
20425 resultobj = SWIG_Py_Void();
20426 return resultobj;
20427 fail:
20428 return NULL;
20429 }
20430
20431
20432 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20433 PyObject *resultobj = 0;
20434 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20435 int result;
20436 void *argp1 = 0 ;
20437 int res1 = 0 ;
20438 PyObject *swig_obj[1] ;
20439
20440 if (!args) SWIG_fail;
20441 swig_obj[0] = args;
20442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20443 if (!SWIG_IsOK(res1)) {
20444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20445 }
20446 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20447 {
20448 PyThreadState* __tstate = wxPyBeginAllowThreads();
20449 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20450 wxPyEndAllowThreads(__tstate);
20451 if (PyErr_Occurred()) SWIG_fail;
20452 }
20453 resultobj = SWIG_From_int(static_cast< int >(result));
20454 return resultobj;
20455 fail:
20456 return NULL;
20457 }
20458
20459
20460 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20461 PyObject *resultobj = 0;
20462 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20463 int arg2 ;
20464 void *argp1 = 0 ;
20465 int res1 = 0 ;
20466 int val2 ;
20467 int ecode2 = 0 ;
20468 PyObject * obj0 = 0 ;
20469 PyObject * obj1 = 0 ;
20470 char * kwnames[] = {
20471 (char *) "self",(char *) "nOldSel", NULL
20472 };
20473
20474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20476 if (!SWIG_IsOK(res1)) {
20477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20478 }
20479 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20480 ecode2 = SWIG_AsVal_int(obj1, &val2);
20481 if (!SWIG_IsOK(ecode2)) {
20482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20483 }
20484 arg2 = static_cast< int >(val2);
20485 {
20486 PyThreadState* __tstate = wxPyBeginAllowThreads();
20487 (arg1)->SetOldSelection(arg2);
20488 wxPyEndAllowThreads(__tstate);
20489 if (PyErr_Occurred()) SWIG_fail;
20490 }
20491 resultobj = SWIG_Py_Void();
20492 return resultobj;
20493 fail:
20494 return NULL;
20495 }
20496
20497
20498 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20499 PyObject *obj;
20500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20501 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20502 return SWIG_Py_Void();
20503 }
20504
20505 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20506 return SWIG_Python_InitShadowInstance(args);
20507 }
20508
20509 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20510 PyObject *resultobj = 0;
20511 wxWindow *arg1 = (wxWindow *) 0 ;
20512 int arg2 = (int) -1 ;
20513 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20514 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20515 wxSize const &arg4_defvalue = wxDefaultSize ;
20516 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20517 long arg5 = (long) 0 ;
20518 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20519 wxString *arg6 = (wxString *) &arg6_defvalue ;
20520 wxNotebook *result = 0 ;
20521 void *argp1 = 0 ;
20522 int res1 = 0 ;
20523 int val2 ;
20524 int ecode2 = 0 ;
20525 wxPoint temp3 ;
20526 wxSize temp4 ;
20527 long val5 ;
20528 int ecode5 = 0 ;
20529 bool temp6 = false ;
20530 PyObject * obj0 = 0 ;
20531 PyObject * obj1 = 0 ;
20532 PyObject * obj2 = 0 ;
20533 PyObject * obj3 = 0 ;
20534 PyObject * obj4 = 0 ;
20535 PyObject * obj5 = 0 ;
20536 char * kwnames[] = {
20537 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20538 };
20539
20540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20544 }
20545 arg1 = reinterpret_cast< wxWindow * >(argp1);
20546 if (obj1) {
20547 ecode2 = SWIG_AsVal_int(obj1, &val2);
20548 if (!SWIG_IsOK(ecode2)) {
20549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20550 }
20551 arg2 = static_cast< int >(val2);
20552 }
20553 if (obj2) {
20554 {
20555 arg3 = &temp3;
20556 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20557 }
20558 }
20559 if (obj3) {
20560 {
20561 arg4 = &temp4;
20562 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20563 }
20564 }
20565 if (obj4) {
20566 ecode5 = SWIG_AsVal_long(obj4, &val5);
20567 if (!SWIG_IsOK(ecode5)) {
20568 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20569 }
20570 arg5 = static_cast< long >(val5);
20571 }
20572 if (obj5) {
20573 {
20574 arg6 = wxString_in_helper(obj5);
20575 if (arg6 == NULL) SWIG_fail;
20576 temp6 = true;
20577 }
20578 }
20579 {
20580 if (!wxPyCheckForApp()) SWIG_fail;
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20587 {
20588 if (temp6)
20589 delete arg6;
20590 }
20591 return resultobj;
20592 fail:
20593 {
20594 if (temp6)
20595 delete arg6;
20596 }
20597 return NULL;
20598 }
20599
20600
20601 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20602 PyObject *resultobj = 0;
20603 wxNotebook *result = 0 ;
20604
20605 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20606 {
20607 if (!wxPyCheckForApp()) SWIG_fail;
20608 PyThreadState* __tstate = wxPyBeginAllowThreads();
20609 result = (wxNotebook *)new wxNotebook();
20610 wxPyEndAllowThreads(__tstate);
20611 if (PyErr_Occurred()) SWIG_fail;
20612 }
20613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20614 return resultobj;
20615 fail:
20616 return NULL;
20617 }
20618
20619
20620 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20621 PyObject *resultobj = 0;
20622 wxNotebook *arg1 = (wxNotebook *) 0 ;
20623 wxWindow *arg2 = (wxWindow *) 0 ;
20624 int arg3 = (int) -1 ;
20625 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20626 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20627 wxSize const &arg5_defvalue = wxDefaultSize ;
20628 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20629 long arg6 = (long) 0 ;
20630 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20631 wxString *arg7 = (wxString *) &arg7_defvalue ;
20632 bool result;
20633 void *argp1 = 0 ;
20634 int res1 = 0 ;
20635 void *argp2 = 0 ;
20636 int res2 = 0 ;
20637 int val3 ;
20638 int ecode3 = 0 ;
20639 wxPoint temp4 ;
20640 wxSize temp5 ;
20641 long val6 ;
20642 int ecode6 = 0 ;
20643 bool temp7 = false ;
20644 PyObject * obj0 = 0 ;
20645 PyObject * obj1 = 0 ;
20646 PyObject * obj2 = 0 ;
20647 PyObject * obj3 = 0 ;
20648 PyObject * obj4 = 0 ;
20649 PyObject * obj5 = 0 ;
20650 PyObject * obj6 = 0 ;
20651 char * kwnames[] = {
20652 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20653 };
20654
20655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20657 if (!SWIG_IsOK(res1)) {
20658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20659 }
20660 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20662 if (!SWIG_IsOK(res2)) {
20663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20664 }
20665 arg2 = reinterpret_cast< wxWindow * >(argp2);
20666 if (obj2) {
20667 ecode3 = SWIG_AsVal_int(obj2, &val3);
20668 if (!SWIG_IsOK(ecode3)) {
20669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20670 }
20671 arg3 = static_cast< int >(val3);
20672 }
20673 if (obj3) {
20674 {
20675 arg4 = &temp4;
20676 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20677 }
20678 }
20679 if (obj4) {
20680 {
20681 arg5 = &temp5;
20682 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20683 }
20684 }
20685 if (obj5) {
20686 ecode6 = SWIG_AsVal_long(obj5, &val6);
20687 if (!SWIG_IsOK(ecode6)) {
20688 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20689 }
20690 arg6 = static_cast< long >(val6);
20691 }
20692 if (obj6) {
20693 {
20694 arg7 = wxString_in_helper(obj6);
20695 if (arg7 == NULL) SWIG_fail;
20696 temp7 = true;
20697 }
20698 }
20699 {
20700 PyThreadState* __tstate = wxPyBeginAllowThreads();
20701 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20702 wxPyEndAllowThreads(__tstate);
20703 if (PyErr_Occurred()) SWIG_fail;
20704 }
20705 {
20706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20707 }
20708 {
20709 if (temp7)
20710 delete arg7;
20711 }
20712 return resultobj;
20713 fail:
20714 {
20715 if (temp7)
20716 delete arg7;
20717 }
20718 return NULL;
20719 }
20720
20721
20722 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20723 PyObject *resultobj = 0;
20724 wxNotebook *arg1 = (wxNotebook *) 0 ;
20725 int result;
20726 void *argp1 = 0 ;
20727 int res1 = 0 ;
20728 PyObject *swig_obj[1] ;
20729
20730 if (!args) SWIG_fail;
20731 swig_obj[0] = args;
20732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20733 if (!SWIG_IsOK(res1)) {
20734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20735 }
20736 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20737 {
20738 PyThreadState* __tstate = wxPyBeginAllowThreads();
20739 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20740 wxPyEndAllowThreads(__tstate);
20741 if (PyErr_Occurred()) SWIG_fail;
20742 }
20743 resultobj = SWIG_From_int(static_cast< int >(result));
20744 return resultobj;
20745 fail:
20746 return NULL;
20747 }
20748
20749
20750 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20751 PyObject *resultobj = 0;
20752 wxNotebook *arg1 = (wxNotebook *) 0 ;
20753 wxSize *arg2 = 0 ;
20754 void *argp1 = 0 ;
20755 int res1 = 0 ;
20756 wxSize temp2 ;
20757 PyObject * obj0 = 0 ;
20758 PyObject * obj1 = 0 ;
20759 char * kwnames[] = {
20760 (char *) "self",(char *) "padding", NULL
20761 };
20762
20763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20765 if (!SWIG_IsOK(res1)) {
20766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20767 }
20768 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20769 {
20770 arg2 = &temp2;
20771 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20772 }
20773 {
20774 PyThreadState* __tstate = wxPyBeginAllowThreads();
20775 (arg1)->SetPadding((wxSize const &)*arg2);
20776 wxPyEndAllowThreads(__tstate);
20777 if (PyErr_Occurred()) SWIG_fail;
20778 }
20779 resultobj = SWIG_Py_Void();
20780 return resultobj;
20781 fail:
20782 return NULL;
20783 }
20784
20785
20786 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20787 PyObject *resultobj = 0;
20788 wxNotebook *arg1 = (wxNotebook *) 0 ;
20789 wxSize *arg2 = 0 ;
20790 void *argp1 = 0 ;
20791 int res1 = 0 ;
20792 wxSize temp2 ;
20793 PyObject * obj0 = 0 ;
20794 PyObject * obj1 = 0 ;
20795 char * kwnames[] = {
20796 (char *) "self",(char *) "sz", NULL
20797 };
20798
20799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20801 if (!SWIG_IsOK(res1)) {
20802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20803 }
20804 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20805 {
20806 arg2 = &temp2;
20807 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20808 }
20809 {
20810 PyThreadState* __tstate = wxPyBeginAllowThreads();
20811 (arg1)->SetTabSize((wxSize const &)*arg2);
20812 wxPyEndAllowThreads(__tstate);
20813 if (PyErr_Occurred()) SWIG_fail;
20814 }
20815 resultobj = SWIG_Py_Void();
20816 return resultobj;
20817 fail:
20818 return NULL;
20819 }
20820
20821
20822 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20823 PyObject *resultobj = 0;
20824 wxNotebook *arg1 = (wxNotebook *) 0 ;
20825 wxColour result;
20826 void *argp1 = 0 ;
20827 int res1 = 0 ;
20828 PyObject *swig_obj[1] ;
20829
20830 if (!args) SWIG_fail;
20831 swig_obj[0] = args;
20832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20833 if (!SWIG_IsOK(res1)) {
20834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20835 }
20836 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20840 wxPyEndAllowThreads(__tstate);
20841 if (PyErr_Occurred()) SWIG_fail;
20842 }
20843 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20844 return resultobj;
20845 fail:
20846 return NULL;
20847 }
20848
20849
20850 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20853 SwigValueWrapper<wxVisualAttributes > result;
20854 int val1 ;
20855 int ecode1 = 0 ;
20856 PyObject * obj0 = 0 ;
20857 char * kwnames[] = {
20858 (char *) "variant", NULL
20859 };
20860
20861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20862 if (obj0) {
20863 ecode1 = SWIG_AsVal_int(obj0, &val1);
20864 if (!SWIG_IsOK(ecode1)) {
20865 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20866 }
20867 arg1 = static_cast< wxWindowVariant >(val1);
20868 }
20869 {
20870 if (!wxPyCheckForApp()) SWIG_fail;
20871 PyThreadState* __tstate = wxPyBeginAllowThreads();
20872 result = wxNotebook::GetClassDefaultAttributes(arg1);
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20877 return resultobj;
20878 fail:
20879 return NULL;
20880 }
20881
20882
20883 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20884 PyObject *obj;
20885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20886 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20887 return SWIG_Py_Void();
20888 }
20889
20890 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20891 return SWIG_Python_InitShadowInstance(args);
20892 }
20893
20894 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20895 PyObject *resultobj = 0;
20896 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20897 int arg2 = (int) 0 ;
20898 int arg3 = (int) -1 ;
20899 int arg4 = (int) -1 ;
20900 wxNotebookEvent *result = 0 ;
20901 int val1 ;
20902 int ecode1 = 0 ;
20903 int val2 ;
20904 int ecode2 = 0 ;
20905 int val3 ;
20906 int ecode3 = 0 ;
20907 int val4 ;
20908 int ecode4 = 0 ;
20909 PyObject * obj0 = 0 ;
20910 PyObject * obj1 = 0 ;
20911 PyObject * obj2 = 0 ;
20912 PyObject * obj3 = 0 ;
20913 char * kwnames[] = {
20914 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20915 };
20916
20917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20918 if (obj0) {
20919 ecode1 = SWIG_AsVal_int(obj0, &val1);
20920 if (!SWIG_IsOK(ecode1)) {
20921 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20922 }
20923 arg1 = static_cast< wxEventType >(val1);
20924 }
20925 if (obj1) {
20926 ecode2 = SWIG_AsVal_int(obj1, &val2);
20927 if (!SWIG_IsOK(ecode2)) {
20928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20929 }
20930 arg2 = static_cast< int >(val2);
20931 }
20932 if (obj2) {
20933 ecode3 = SWIG_AsVal_int(obj2, &val3);
20934 if (!SWIG_IsOK(ecode3)) {
20935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20936 }
20937 arg3 = static_cast< int >(val3);
20938 }
20939 if (obj3) {
20940 ecode4 = SWIG_AsVal_int(obj3, &val4);
20941 if (!SWIG_IsOK(ecode4)) {
20942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20943 }
20944 arg4 = static_cast< int >(val4);
20945 }
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20953 return resultobj;
20954 fail:
20955 return NULL;
20956 }
20957
20958
20959 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20960 PyObject *obj;
20961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20962 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20963 return SWIG_Py_Void();
20964 }
20965
20966 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20967 return SWIG_Python_InitShadowInstance(args);
20968 }
20969
20970 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20971 PyObject *resultobj = 0;
20972 wxWindow *arg1 = (wxWindow *) 0 ;
20973 int arg2 = (int) -1 ;
20974 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20975 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20976 wxSize const &arg4_defvalue = wxDefaultSize ;
20977 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20978 long arg5 = (long) 0 ;
20979 wxString const &arg6_defvalue = wxPyEmptyString ;
20980 wxString *arg6 = (wxString *) &arg6_defvalue ;
20981 wxListbook *result = 0 ;
20982 void *argp1 = 0 ;
20983 int res1 = 0 ;
20984 int val2 ;
20985 int ecode2 = 0 ;
20986 wxPoint temp3 ;
20987 wxSize temp4 ;
20988 long val5 ;
20989 int ecode5 = 0 ;
20990 bool temp6 = false ;
20991 PyObject * obj0 = 0 ;
20992 PyObject * obj1 = 0 ;
20993 PyObject * obj2 = 0 ;
20994 PyObject * obj3 = 0 ;
20995 PyObject * obj4 = 0 ;
20996 PyObject * obj5 = 0 ;
20997 char * kwnames[] = {
20998 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20999 };
21000
21001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21003 if (!SWIG_IsOK(res1)) {
21004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21005 }
21006 arg1 = reinterpret_cast< wxWindow * >(argp1);
21007 if (obj1) {
21008 ecode2 = SWIG_AsVal_int(obj1, &val2);
21009 if (!SWIG_IsOK(ecode2)) {
21010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21011 }
21012 arg2 = static_cast< int >(val2);
21013 }
21014 if (obj2) {
21015 {
21016 arg3 = &temp3;
21017 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21018 }
21019 }
21020 if (obj3) {
21021 {
21022 arg4 = &temp4;
21023 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21024 }
21025 }
21026 if (obj4) {
21027 ecode5 = SWIG_AsVal_long(obj4, &val5);
21028 if (!SWIG_IsOK(ecode5)) {
21029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21030 }
21031 arg5 = static_cast< long >(val5);
21032 }
21033 if (obj5) {
21034 {
21035 arg6 = wxString_in_helper(obj5);
21036 if (arg6 == NULL) SWIG_fail;
21037 temp6 = true;
21038 }
21039 }
21040 {
21041 if (!wxPyCheckForApp()) SWIG_fail;
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21048 {
21049 if (temp6)
21050 delete arg6;
21051 }
21052 return resultobj;
21053 fail:
21054 {
21055 if (temp6)
21056 delete arg6;
21057 }
21058 return NULL;
21059 }
21060
21061
21062 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21063 PyObject *resultobj = 0;
21064 wxListbook *result = 0 ;
21065
21066 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21067 {
21068 if (!wxPyCheckForApp()) SWIG_fail;
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 result = (wxListbook *)new wxListbook();
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21075 return resultobj;
21076 fail:
21077 return NULL;
21078 }
21079
21080
21081 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj = 0;
21083 wxListbook *arg1 = (wxListbook *) 0 ;
21084 wxWindow *arg2 = (wxWindow *) 0 ;
21085 int arg3 = (int) -1 ;
21086 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21087 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21088 wxSize const &arg5_defvalue = wxDefaultSize ;
21089 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21090 long arg6 = (long) 0 ;
21091 wxString const &arg7_defvalue = wxPyEmptyString ;
21092 wxString *arg7 = (wxString *) &arg7_defvalue ;
21093 bool result;
21094 void *argp1 = 0 ;
21095 int res1 = 0 ;
21096 void *argp2 = 0 ;
21097 int res2 = 0 ;
21098 int val3 ;
21099 int ecode3 = 0 ;
21100 wxPoint temp4 ;
21101 wxSize temp5 ;
21102 long val6 ;
21103 int ecode6 = 0 ;
21104 bool temp7 = false ;
21105 PyObject * obj0 = 0 ;
21106 PyObject * obj1 = 0 ;
21107 PyObject * obj2 = 0 ;
21108 PyObject * obj3 = 0 ;
21109 PyObject * obj4 = 0 ;
21110 PyObject * obj5 = 0 ;
21111 PyObject * obj6 = 0 ;
21112 char * kwnames[] = {
21113 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21114 };
21115
21116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21118 if (!SWIG_IsOK(res1)) {
21119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21120 }
21121 arg1 = reinterpret_cast< wxListbook * >(argp1);
21122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21123 if (!SWIG_IsOK(res2)) {
21124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21125 }
21126 arg2 = reinterpret_cast< wxWindow * >(argp2);
21127 if (obj2) {
21128 ecode3 = SWIG_AsVal_int(obj2, &val3);
21129 if (!SWIG_IsOK(ecode3)) {
21130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21131 }
21132 arg3 = static_cast< int >(val3);
21133 }
21134 if (obj3) {
21135 {
21136 arg4 = &temp4;
21137 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21138 }
21139 }
21140 if (obj4) {
21141 {
21142 arg5 = &temp5;
21143 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21144 }
21145 }
21146 if (obj5) {
21147 ecode6 = SWIG_AsVal_long(obj5, &val6);
21148 if (!SWIG_IsOK(ecode6)) {
21149 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21150 }
21151 arg6 = static_cast< long >(val6);
21152 }
21153 if (obj6) {
21154 {
21155 arg7 = wxString_in_helper(obj6);
21156 if (arg7 == NULL) SWIG_fail;
21157 temp7 = true;
21158 }
21159 }
21160 {
21161 PyThreadState* __tstate = wxPyBeginAllowThreads();
21162 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21163 wxPyEndAllowThreads(__tstate);
21164 if (PyErr_Occurred()) SWIG_fail;
21165 }
21166 {
21167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21168 }
21169 {
21170 if (temp7)
21171 delete arg7;
21172 }
21173 return resultobj;
21174 fail:
21175 {
21176 if (temp7)
21177 delete arg7;
21178 }
21179 return NULL;
21180 }
21181
21182
21183 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21184 PyObject *resultobj = 0;
21185 wxListbook *arg1 = (wxListbook *) 0 ;
21186 wxListView *result = 0 ;
21187 void *argp1 = 0 ;
21188 int res1 = 0 ;
21189 PyObject *swig_obj[1] ;
21190
21191 if (!args) SWIG_fail;
21192 swig_obj[0] = args;
21193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21194 if (!SWIG_IsOK(res1)) {
21195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21196 }
21197 arg1 = reinterpret_cast< wxListbook * >(argp1);
21198 {
21199 PyThreadState* __tstate = wxPyBeginAllowThreads();
21200 result = (wxListView *)(arg1)->GetListView();
21201 wxPyEndAllowThreads(__tstate);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21205 return resultobj;
21206 fail:
21207 return NULL;
21208 }
21209
21210
21211 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21212 PyObject *obj;
21213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21214 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21215 return SWIG_Py_Void();
21216 }
21217
21218 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21219 return SWIG_Python_InitShadowInstance(args);
21220 }
21221
21222 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21223 PyObject *resultobj = 0;
21224 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21225 int arg2 = (int) 0 ;
21226 int arg3 = (int) -1 ;
21227 int arg4 = (int) -1 ;
21228 wxListbookEvent *result = 0 ;
21229 int val1 ;
21230 int ecode1 = 0 ;
21231 int val2 ;
21232 int ecode2 = 0 ;
21233 int val3 ;
21234 int ecode3 = 0 ;
21235 int val4 ;
21236 int ecode4 = 0 ;
21237 PyObject * obj0 = 0 ;
21238 PyObject * obj1 = 0 ;
21239 PyObject * obj2 = 0 ;
21240 PyObject * obj3 = 0 ;
21241 char * kwnames[] = {
21242 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21243 };
21244
21245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21246 if (obj0) {
21247 ecode1 = SWIG_AsVal_int(obj0, &val1);
21248 if (!SWIG_IsOK(ecode1)) {
21249 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21250 }
21251 arg1 = static_cast< wxEventType >(val1);
21252 }
21253 if (obj1) {
21254 ecode2 = SWIG_AsVal_int(obj1, &val2);
21255 if (!SWIG_IsOK(ecode2)) {
21256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21257 }
21258 arg2 = static_cast< int >(val2);
21259 }
21260 if (obj2) {
21261 ecode3 = SWIG_AsVal_int(obj2, &val3);
21262 if (!SWIG_IsOK(ecode3)) {
21263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21264 }
21265 arg3 = static_cast< int >(val3);
21266 }
21267 if (obj3) {
21268 ecode4 = SWIG_AsVal_int(obj3, &val4);
21269 if (!SWIG_IsOK(ecode4)) {
21270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21271 }
21272 arg4 = static_cast< int >(val4);
21273 }
21274 {
21275 PyThreadState* __tstate = wxPyBeginAllowThreads();
21276 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21281 return resultobj;
21282 fail:
21283 return NULL;
21284 }
21285
21286
21287 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21288 PyObject *obj;
21289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21290 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21291 return SWIG_Py_Void();
21292 }
21293
21294 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21295 return SWIG_Python_InitShadowInstance(args);
21296 }
21297
21298 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21299 PyObject *resultobj = 0;
21300 wxWindow *arg1 = (wxWindow *) 0 ;
21301 int arg2 ;
21302 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21303 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21304 wxSize const &arg4_defvalue = wxDefaultSize ;
21305 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21306 long arg5 = (long) 0 ;
21307 wxString const &arg6_defvalue = wxPyEmptyString ;
21308 wxString *arg6 = (wxString *) &arg6_defvalue ;
21309 wxChoicebook *result = 0 ;
21310 void *argp1 = 0 ;
21311 int res1 = 0 ;
21312 int val2 ;
21313 int ecode2 = 0 ;
21314 wxPoint temp3 ;
21315 wxSize temp4 ;
21316 long val5 ;
21317 int ecode5 = 0 ;
21318 bool temp6 = false ;
21319 PyObject * obj0 = 0 ;
21320 PyObject * obj1 = 0 ;
21321 PyObject * obj2 = 0 ;
21322 PyObject * obj3 = 0 ;
21323 PyObject * obj4 = 0 ;
21324 PyObject * obj5 = 0 ;
21325 char * kwnames[] = {
21326 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21327 };
21328
21329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21331 if (!SWIG_IsOK(res1)) {
21332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21333 }
21334 arg1 = reinterpret_cast< wxWindow * >(argp1);
21335 ecode2 = SWIG_AsVal_int(obj1, &val2);
21336 if (!SWIG_IsOK(ecode2)) {
21337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21338 }
21339 arg2 = static_cast< int >(val2);
21340 if (obj2) {
21341 {
21342 arg3 = &temp3;
21343 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21344 }
21345 }
21346 if (obj3) {
21347 {
21348 arg4 = &temp4;
21349 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21350 }
21351 }
21352 if (obj4) {
21353 ecode5 = SWIG_AsVal_long(obj4, &val5);
21354 if (!SWIG_IsOK(ecode5)) {
21355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21356 }
21357 arg5 = static_cast< long >(val5);
21358 }
21359 if (obj5) {
21360 {
21361 arg6 = wxString_in_helper(obj5);
21362 if (arg6 == NULL) SWIG_fail;
21363 temp6 = true;
21364 }
21365 }
21366 {
21367 if (!wxPyCheckForApp()) SWIG_fail;
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21374 {
21375 if (temp6)
21376 delete arg6;
21377 }
21378 return resultobj;
21379 fail:
21380 {
21381 if (temp6)
21382 delete arg6;
21383 }
21384 return NULL;
21385 }
21386
21387
21388 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21389 PyObject *resultobj = 0;
21390 wxChoicebook *result = 0 ;
21391
21392 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21393 {
21394 if (!wxPyCheckForApp()) SWIG_fail;
21395 PyThreadState* __tstate = wxPyBeginAllowThreads();
21396 result = (wxChoicebook *)new wxChoicebook();
21397 wxPyEndAllowThreads(__tstate);
21398 if (PyErr_Occurred()) SWIG_fail;
21399 }
21400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21401 return resultobj;
21402 fail:
21403 return NULL;
21404 }
21405
21406
21407 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21408 PyObject *resultobj = 0;
21409 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21410 wxWindow *arg2 = (wxWindow *) 0 ;
21411 int arg3 ;
21412 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21413 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21414 wxSize const &arg5_defvalue = wxDefaultSize ;
21415 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21416 long arg6 = (long) 0 ;
21417 wxString const &arg7_defvalue = wxPyEmptyString ;
21418 wxString *arg7 = (wxString *) &arg7_defvalue ;
21419 bool result;
21420 void *argp1 = 0 ;
21421 int res1 = 0 ;
21422 void *argp2 = 0 ;
21423 int res2 = 0 ;
21424 int val3 ;
21425 int ecode3 = 0 ;
21426 wxPoint temp4 ;
21427 wxSize temp5 ;
21428 long val6 ;
21429 int ecode6 = 0 ;
21430 bool temp7 = false ;
21431 PyObject * obj0 = 0 ;
21432 PyObject * obj1 = 0 ;
21433 PyObject * obj2 = 0 ;
21434 PyObject * obj3 = 0 ;
21435 PyObject * obj4 = 0 ;
21436 PyObject * obj5 = 0 ;
21437 PyObject * obj6 = 0 ;
21438 char * kwnames[] = {
21439 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21440 };
21441
21442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21444 if (!SWIG_IsOK(res1)) {
21445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21446 }
21447 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21448 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21449 if (!SWIG_IsOK(res2)) {
21450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21451 }
21452 arg2 = reinterpret_cast< wxWindow * >(argp2);
21453 ecode3 = SWIG_AsVal_int(obj2, &val3);
21454 if (!SWIG_IsOK(ecode3)) {
21455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21456 }
21457 arg3 = static_cast< int >(val3);
21458 if (obj3) {
21459 {
21460 arg4 = &temp4;
21461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21462 }
21463 }
21464 if (obj4) {
21465 {
21466 arg5 = &temp5;
21467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21468 }
21469 }
21470 if (obj5) {
21471 ecode6 = SWIG_AsVal_long(obj5, &val6);
21472 if (!SWIG_IsOK(ecode6)) {
21473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21474 }
21475 arg6 = static_cast< long >(val6);
21476 }
21477 if (obj6) {
21478 {
21479 arg7 = wxString_in_helper(obj6);
21480 if (arg7 == NULL) SWIG_fail;
21481 temp7 = true;
21482 }
21483 }
21484 {
21485 PyThreadState* __tstate = wxPyBeginAllowThreads();
21486 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21487 wxPyEndAllowThreads(__tstate);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 }
21490 {
21491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21492 }
21493 {
21494 if (temp7)
21495 delete arg7;
21496 }
21497 return resultobj;
21498 fail:
21499 {
21500 if (temp7)
21501 delete arg7;
21502 }
21503 return NULL;
21504 }
21505
21506
21507 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21508 PyObject *resultobj = 0;
21509 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21510 wxChoice *result = 0 ;
21511 void *argp1 = 0 ;
21512 int res1 = 0 ;
21513 PyObject *swig_obj[1] ;
21514
21515 if (!args) SWIG_fail;
21516 swig_obj[0] = args;
21517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21518 if (!SWIG_IsOK(res1)) {
21519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21520 }
21521 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21522 {
21523 PyThreadState* __tstate = wxPyBeginAllowThreads();
21524 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21525 wxPyEndAllowThreads(__tstate);
21526 if (PyErr_Occurred()) SWIG_fail;
21527 }
21528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21529 return resultobj;
21530 fail:
21531 return NULL;
21532 }
21533
21534
21535 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21536 PyObject *obj;
21537 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21538 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21539 return SWIG_Py_Void();
21540 }
21541
21542 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21543 return SWIG_Python_InitShadowInstance(args);
21544 }
21545
21546 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21547 PyObject *resultobj = 0;
21548 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21549 int arg2 = (int) 0 ;
21550 int arg3 = (int) -1 ;
21551 int arg4 = (int) -1 ;
21552 wxChoicebookEvent *result = 0 ;
21553 int val1 ;
21554 int ecode1 = 0 ;
21555 int val2 ;
21556 int ecode2 = 0 ;
21557 int val3 ;
21558 int ecode3 = 0 ;
21559 int val4 ;
21560 int ecode4 = 0 ;
21561 PyObject * obj0 = 0 ;
21562 PyObject * obj1 = 0 ;
21563 PyObject * obj2 = 0 ;
21564 PyObject * obj3 = 0 ;
21565 char * kwnames[] = {
21566 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21567 };
21568
21569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21570 if (obj0) {
21571 ecode1 = SWIG_AsVal_int(obj0, &val1);
21572 if (!SWIG_IsOK(ecode1)) {
21573 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21574 }
21575 arg1 = static_cast< wxEventType >(val1);
21576 }
21577 if (obj1) {
21578 ecode2 = SWIG_AsVal_int(obj1, &val2);
21579 if (!SWIG_IsOK(ecode2)) {
21580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21581 }
21582 arg2 = static_cast< int >(val2);
21583 }
21584 if (obj2) {
21585 ecode3 = SWIG_AsVal_int(obj2, &val3);
21586 if (!SWIG_IsOK(ecode3)) {
21587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21588 }
21589 arg3 = static_cast< int >(val3);
21590 }
21591 if (obj3) {
21592 ecode4 = SWIG_AsVal_int(obj3, &val4);
21593 if (!SWIG_IsOK(ecode4)) {
21594 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21595 }
21596 arg4 = static_cast< int >(val4);
21597 }
21598 {
21599 PyThreadState* __tstate = wxPyBeginAllowThreads();
21600 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21601 wxPyEndAllowThreads(__tstate);
21602 if (PyErr_Occurred()) SWIG_fail;
21603 }
21604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21605 return resultobj;
21606 fail:
21607 return NULL;
21608 }
21609
21610
21611 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21612 PyObject *obj;
21613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21614 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21615 return SWIG_Py_Void();
21616 }
21617
21618 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21619 return SWIG_Python_InitShadowInstance(args);
21620 }
21621
21622 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21623 PyObject *resultobj = 0;
21624 wxWindow *arg1 = (wxWindow *) 0 ;
21625 int arg2 ;
21626 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21627 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21628 wxSize const &arg4_defvalue = wxDefaultSize ;
21629 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21630 long arg5 = (long) wxBK_DEFAULT ;
21631 wxString const &arg6_defvalue = wxPyEmptyString ;
21632 wxString *arg6 = (wxString *) &arg6_defvalue ;
21633 wxTreebook *result = 0 ;
21634 void *argp1 = 0 ;
21635 int res1 = 0 ;
21636 int val2 ;
21637 int ecode2 = 0 ;
21638 wxPoint temp3 ;
21639 wxSize temp4 ;
21640 long val5 ;
21641 int ecode5 = 0 ;
21642 bool temp6 = false ;
21643 PyObject * obj0 = 0 ;
21644 PyObject * obj1 = 0 ;
21645 PyObject * obj2 = 0 ;
21646 PyObject * obj3 = 0 ;
21647 PyObject * obj4 = 0 ;
21648 PyObject * obj5 = 0 ;
21649 char * kwnames[] = {
21650 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21651 };
21652
21653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21655 if (!SWIG_IsOK(res1)) {
21656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21657 }
21658 arg1 = reinterpret_cast< wxWindow * >(argp1);
21659 ecode2 = SWIG_AsVal_int(obj1, &val2);
21660 if (!SWIG_IsOK(ecode2)) {
21661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21662 }
21663 arg2 = static_cast< int >(val2);
21664 if (obj2) {
21665 {
21666 arg3 = &temp3;
21667 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21668 }
21669 }
21670 if (obj3) {
21671 {
21672 arg4 = &temp4;
21673 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21674 }
21675 }
21676 if (obj4) {
21677 ecode5 = SWIG_AsVal_long(obj4, &val5);
21678 if (!SWIG_IsOK(ecode5)) {
21679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21680 }
21681 arg5 = static_cast< long >(val5);
21682 }
21683 if (obj5) {
21684 {
21685 arg6 = wxString_in_helper(obj5);
21686 if (arg6 == NULL) SWIG_fail;
21687 temp6 = true;
21688 }
21689 }
21690 {
21691 if (!wxPyCheckForApp()) SWIG_fail;
21692 PyThreadState* __tstate = wxPyBeginAllowThreads();
21693 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21694 wxPyEndAllowThreads(__tstate);
21695 if (PyErr_Occurred()) SWIG_fail;
21696 }
21697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21698 {
21699 if (temp6)
21700 delete arg6;
21701 }
21702 return resultobj;
21703 fail:
21704 {
21705 if (temp6)
21706 delete arg6;
21707 }
21708 return NULL;
21709 }
21710
21711
21712 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21713 PyObject *resultobj = 0;
21714 wxTreebook *result = 0 ;
21715
21716 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21717 {
21718 if (!wxPyCheckForApp()) SWIG_fail;
21719 PyThreadState* __tstate = wxPyBeginAllowThreads();
21720 result = (wxTreebook *)new wxTreebook();
21721 wxPyEndAllowThreads(__tstate);
21722 if (PyErr_Occurred()) SWIG_fail;
21723 }
21724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21725 return resultobj;
21726 fail:
21727 return NULL;
21728 }
21729
21730
21731 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21732 PyObject *resultobj = 0;
21733 wxTreebook *arg1 = (wxTreebook *) 0 ;
21734 wxWindow *arg2 = (wxWindow *) 0 ;
21735 int arg3 ;
21736 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21737 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21738 wxSize const &arg5_defvalue = wxDefaultSize ;
21739 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21740 long arg6 = (long) wxBK_DEFAULT ;
21741 wxString const &arg7_defvalue = wxPyEmptyString ;
21742 wxString *arg7 = (wxString *) &arg7_defvalue ;
21743 bool result;
21744 void *argp1 = 0 ;
21745 int res1 = 0 ;
21746 void *argp2 = 0 ;
21747 int res2 = 0 ;
21748 int val3 ;
21749 int ecode3 = 0 ;
21750 wxPoint temp4 ;
21751 wxSize temp5 ;
21752 long val6 ;
21753 int ecode6 = 0 ;
21754 bool temp7 = false ;
21755 PyObject * obj0 = 0 ;
21756 PyObject * obj1 = 0 ;
21757 PyObject * obj2 = 0 ;
21758 PyObject * obj3 = 0 ;
21759 PyObject * obj4 = 0 ;
21760 PyObject * obj5 = 0 ;
21761 PyObject * obj6 = 0 ;
21762 char * kwnames[] = {
21763 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21764 };
21765
21766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21768 if (!SWIG_IsOK(res1)) {
21769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21770 }
21771 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21773 if (!SWIG_IsOK(res2)) {
21774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21775 }
21776 arg2 = reinterpret_cast< wxWindow * >(argp2);
21777 ecode3 = SWIG_AsVal_int(obj2, &val3);
21778 if (!SWIG_IsOK(ecode3)) {
21779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21780 }
21781 arg3 = static_cast< int >(val3);
21782 if (obj3) {
21783 {
21784 arg4 = &temp4;
21785 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21786 }
21787 }
21788 if (obj4) {
21789 {
21790 arg5 = &temp5;
21791 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21792 }
21793 }
21794 if (obj5) {
21795 ecode6 = SWIG_AsVal_long(obj5, &val6);
21796 if (!SWIG_IsOK(ecode6)) {
21797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21798 }
21799 arg6 = static_cast< long >(val6);
21800 }
21801 if (obj6) {
21802 {
21803 arg7 = wxString_in_helper(obj6);
21804 if (arg7 == NULL) SWIG_fail;
21805 temp7 = true;
21806 }
21807 }
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 {
21815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21816 }
21817 {
21818 if (temp7)
21819 delete arg7;
21820 }
21821 return resultobj;
21822 fail:
21823 {
21824 if (temp7)
21825 delete arg7;
21826 }
21827 return NULL;
21828 }
21829
21830
21831 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21832 PyObject *resultobj = 0;
21833 wxTreebook *arg1 = (wxTreebook *) 0 ;
21834 size_t arg2 ;
21835 wxWindow *arg3 = (wxWindow *) 0 ;
21836 wxString *arg4 = 0 ;
21837 bool arg5 = (bool) false ;
21838 int arg6 = (int) wxNOT_FOUND ;
21839 bool result;
21840 void *argp1 = 0 ;
21841 int res1 = 0 ;
21842 size_t val2 ;
21843 int ecode2 = 0 ;
21844 void *argp3 = 0 ;
21845 int res3 = 0 ;
21846 bool temp4 = false ;
21847 bool val5 ;
21848 int ecode5 = 0 ;
21849 int val6 ;
21850 int ecode6 = 0 ;
21851 PyObject * obj0 = 0 ;
21852 PyObject * obj1 = 0 ;
21853 PyObject * obj2 = 0 ;
21854 PyObject * obj3 = 0 ;
21855 PyObject * obj4 = 0 ;
21856 PyObject * obj5 = 0 ;
21857 char * kwnames[] = {
21858 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21859 };
21860
21861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21863 if (!SWIG_IsOK(res1)) {
21864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21865 }
21866 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21867 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21868 if (!SWIG_IsOK(ecode2)) {
21869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21870 }
21871 arg2 = static_cast< size_t >(val2);
21872 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21873 if (!SWIG_IsOK(res3)) {
21874 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21875 }
21876 arg3 = reinterpret_cast< wxWindow * >(argp3);
21877 {
21878 arg4 = wxString_in_helper(obj3);
21879 if (arg4 == NULL) SWIG_fail;
21880 temp4 = true;
21881 }
21882 if (obj4) {
21883 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21884 if (!SWIG_IsOK(ecode5)) {
21885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21886 }
21887 arg5 = static_cast< bool >(val5);
21888 }
21889 if (obj5) {
21890 ecode6 = SWIG_AsVal_int(obj5, &val6);
21891 if (!SWIG_IsOK(ecode6)) {
21892 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21893 }
21894 arg6 = static_cast< int >(val6);
21895 }
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
21898 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21899 wxPyEndAllowThreads(__tstate);
21900 if (PyErr_Occurred()) SWIG_fail;
21901 }
21902 {
21903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21904 }
21905 {
21906 if (temp4)
21907 delete arg4;
21908 }
21909 return resultobj;
21910 fail:
21911 {
21912 if (temp4)
21913 delete arg4;
21914 }
21915 return NULL;
21916 }
21917
21918
21919 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21920 PyObject *resultobj = 0;
21921 wxTreebook *arg1 = (wxTreebook *) 0 ;
21922 wxWindow *arg2 = (wxWindow *) 0 ;
21923 wxString *arg3 = 0 ;
21924 bool arg4 = (bool) false ;
21925 int arg5 = (int) wxNOT_FOUND ;
21926 bool result;
21927 void *argp1 = 0 ;
21928 int res1 = 0 ;
21929 void *argp2 = 0 ;
21930 int res2 = 0 ;
21931 bool temp3 = false ;
21932 bool val4 ;
21933 int ecode4 = 0 ;
21934 int val5 ;
21935 int ecode5 = 0 ;
21936 PyObject * obj0 = 0 ;
21937 PyObject * obj1 = 0 ;
21938 PyObject * obj2 = 0 ;
21939 PyObject * obj3 = 0 ;
21940 PyObject * obj4 = 0 ;
21941 char * kwnames[] = {
21942 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21943 };
21944
21945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21947 if (!SWIG_IsOK(res1)) {
21948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21949 }
21950 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21952 if (!SWIG_IsOK(res2)) {
21953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21954 }
21955 arg2 = reinterpret_cast< wxWindow * >(argp2);
21956 {
21957 arg3 = wxString_in_helper(obj2);
21958 if (arg3 == NULL) SWIG_fail;
21959 temp3 = true;
21960 }
21961 if (obj3) {
21962 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21963 if (!SWIG_IsOK(ecode4)) {
21964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21965 }
21966 arg4 = static_cast< bool >(val4);
21967 }
21968 if (obj4) {
21969 ecode5 = SWIG_AsVal_int(obj4, &val5);
21970 if (!SWIG_IsOK(ecode5)) {
21971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21972 }
21973 arg5 = static_cast< int >(val5);
21974 }
21975 {
21976 PyThreadState* __tstate = wxPyBeginAllowThreads();
21977 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 {
21982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21983 }
21984 {
21985 if (temp3)
21986 delete arg3;
21987 }
21988 return resultobj;
21989 fail:
21990 {
21991 if (temp3)
21992 delete arg3;
21993 }
21994 return NULL;
21995 }
21996
21997
21998 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21999 PyObject *resultobj = 0;
22000 wxTreebook *arg1 = (wxTreebook *) 0 ;
22001 size_t arg2 ;
22002 bool result;
22003 void *argp1 = 0 ;
22004 int res1 = 0 ;
22005 size_t val2 ;
22006 int ecode2 = 0 ;
22007 PyObject * obj0 = 0 ;
22008 PyObject * obj1 = 0 ;
22009 char * kwnames[] = {
22010 (char *) "self",(char *) "pos", NULL
22011 };
22012
22013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22015 if (!SWIG_IsOK(res1)) {
22016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22017 }
22018 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22019 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22020 if (!SWIG_IsOK(ecode2)) {
22021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22022 }
22023 arg2 = static_cast< size_t >(val2);
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 {
22031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22032 }
22033 return resultobj;
22034 fail:
22035 return NULL;
22036 }
22037
22038
22039 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22040 PyObject *resultobj = 0;
22041 wxTreebook *arg1 = (wxTreebook *) 0 ;
22042 size_t arg2 ;
22043 bool arg3 = (bool) true ;
22044 bool result;
22045 void *argp1 = 0 ;
22046 int res1 = 0 ;
22047 size_t val2 ;
22048 int ecode2 = 0 ;
22049 bool val3 ;
22050 int ecode3 = 0 ;
22051 PyObject * obj0 = 0 ;
22052 PyObject * obj1 = 0 ;
22053 PyObject * obj2 = 0 ;
22054 char * kwnames[] = {
22055 (char *) "self",(char *) "pos",(char *) "expand", NULL
22056 };
22057
22058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22060 if (!SWIG_IsOK(res1)) {
22061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22062 }
22063 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22064 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22065 if (!SWIG_IsOK(ecode2)) {
22066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22067 }
22068 arg2 = static_cast< size_t >(val2);
22069 if (obj2) {
22070 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22071 if (!SWIG_IsOK(ecode3)) {
22072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22073 }
22074 arg3 = static_cast< bool >(val3);
22075 }
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22079 wxPyEndAllowThreads(__tstate);
22080 if (PyErr_Occurred()) SWIG_fail;
22081 }
22082 {
22083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22084 }
22085 return resultobj;
22086 fail:
22087 return NULL;
22088 }
22089
22090
22091 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22092 PyObject *resultobj = 0;
22093 wxTreebook *arg1 = (wxTreebook *) 0 ;
22094 size_t arg2 ;
22095 bool result;
22096 void *argp1 = 0 ;
22097 int res1 = 0 ;
22098 size_t val2 ;
22099 int ecode2 = 0 ;
22100 PyObject * obj0 = 0 ;
22101 PyObject * obj1 = 0 ;
22102 char * kwnames[] = {
22103 (char *) "self",(char *) "pos", NULL
22104 };
22105
22106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22108 if (!SWIG_IsOK(res1)) {
22109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22110 }
22111 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22112 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22113 if (!SWIG_IsOK(ecode2)) {
22114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22115 }
22116 arg2 = static_cast< size_t >(val2);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = (bool)(arg1)->CollapseNode(arg2);
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 {
22124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22125 }
22126 return resultobj;
22127 fail:
22128 return NULL;
22129 }
22130
22131
22132 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22133 PyObject *resultobj = 0;
22134 wxTreebook *arg1 = (wxTreebook *) 0 ;
22135 size_t arg2 ;
22136 int result;
22137 void *argp1 = 0 ;
22138 int res1 = 0 ;
22139 size_t val2 ;
22140 int ecode2 = 0 ;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 char * kwnames[] = {
22144 (char *) "self",(char *) "pos", NULL
22145 };
22146
22147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22149 if (!SWIG_IsOK(res1)) {
22150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22151 }
22152 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22153 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22154 if (!SWIG_IsOK(ecode2)) {
22155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22156 }
22157 arg2 = static_cast< size_t >(val2);
22158 {
22159 PyThreadState* __tstate = wxPyBeginAllowThreads();
22160 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22161 wxPyEndAllowThreads(__tstate);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 resultobj = SWIG_From_int(static_cast< int >(result));
22165 return resultobj;
22166 fail:
22167 return NULL;
22168 }
22169
22170
22171 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22172 PyObject *resultobj = 0;
22173 wxTreebook *arg1 = (wxTreebook *) 0 ;
22174 wxTreeCtrl *result = 0 ;
22175 void *argp1 = 0 ;
22176 int res1 = 0 ;
22177 PyObject *swig_obj[1] ;
22178
22179 if (!args) SWIG_fail;
22180 swig_obj[0] = args;
22181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22182 if (!SWIG_IsOK(res1)) {
22183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22184 }
22185 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22186 {
22187 PyThreadState* __tstate = wxPyBeginAllowThreads();
22188 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22189 wxPyEndAllowThreads(__tstate);
22190 if (PyErr_Occurred()) SWIG_fail;
22191 }
22192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22193 return resultobj;
22194 fail:
22195 return NULL;
22196 }
22197
22198
22199 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22200 PyObject *obj;
22201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22202 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22203 return SWIG_Py_Void();
22204 }
22205
22206 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22207 return SWIG_Python_InitShadowInstance(args);
22208 }
22209
22210 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22211 PyObject *resultobj = 0;
22212 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22213 int arg2 = (int) 0 ;
22214 int arg3 = (int) wxNOT_FOUND ;
22215 int arg4 = (int) wxNOT_FOUND ;
22216 wxTreebookEvent *result = 0 ;
22217 int val1 ;
22218 int ecode1 = 0 ;
22219 int val2 ;
22220 int ecode2 = 0 ;
22221 int val3 ;
22222 int ecode3 = 0 ;
22223 int val4 ;
22224 int ecode4 = 0 ;
22225 PyObject * obj0 = 0 ;
22226 PyObject * obj1 = 0 ;
22227 PyObject * obj2 = 0 ;
22228 PyObject * obj3 = 0 ;
22229 char * kwnames[] = {
22230 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22231 };
22232
22233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22234 if (obj0) {
22235 ecode1 = SWIG_AsVal_int(obj0, &val1);
22236 if (!SWIG_IsOK(ecode1)) {
22237 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22238 }
22239 arg1 = static_cast< wxEventType >(val1);
22240 }
22241 if (obj1) {
22242 ecode2 = SWIG_AsVal_int(obj1, &val2);
22243 if (!SWIG_IsOK(ecode2)) {
22244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22245 }
22246 arg2 = static_cast< int >(val2);
22247 }
22248 if (obj2) {
22249 ecode3 = SWIG_AsVal_int(obj2, &val3);
22250 if (!SWIG_IsOK(ecode3)) {
22251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22252 }
22253 arg3 = static_cast< int >(val3);
22254 }
22255 if (obj3) {
22256 ecode4 = SWIG_AsVal_int(obj3, &val4);
22257 if (!SWIG_IsOK(ecode4)) {
22258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22259 }
22260 arg4 = static_cast< int >(val4);
22261 }
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22265 wxPyEndAllowThreads(__tstate);
22266 if (PyErr_Occurred()) SWIG_fail;
22267 }
22268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22269 return resultobj;
22270 fail:
22271 return NULL;
22272 }
22273
22274
22275 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22276 PyObject *obj;
22277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22278 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22279 return SWIG_Py_Void();
22280 }
22281
22282 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22283 return SWIG_Python_InitShadowInstance(args);
22284 }
22285
22286 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj = 0;
22288 wxWindow *arg1 = (wxWindow *) 0 ;
22289 int arg2 ;
22290 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22291 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22292 wxSize const &arg4_defvalue = wxDefaultSize ;
22293 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22294 long arg5 = (long) wxBK_DEFAULT ;
22295 wxString const &arg6_defvalue = wxPyEmptyString ;
22296 wxString *arg6 = (wxString *) &arg6_defvalue ;
22297 wxToolbook *result = 0 ;
22298 void *argp1 = 0 ;
22299 int res1 = 0 ;
22300 int val2 ;
22301 int ecode2 = 0 ;
22302 wxPoint temp3 ;
22303 wxSize temp4 ;
22304 long val5 ;
22305 int ecode5 = 0 ;
22306 bool temp6 = false ;
22307 PyObject * obj0 = 0 ;
22308 PyObject * obj1 = 0 ;
22309 PyObject * obj2 = 0 ;
22310 PyObject * obj3 = 0 ;
22311 PyObject * obj4 = 0 ;
22312 PyObject * obj5 = 0 ;
22313 char * kwnames[] = {
22314 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22315 };
22316
22317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22321 }
22322 arg1 = reinterpret_cast< wxWindow * >(argp1);
22323 ecode2 = SWIG_AsVal_int(obj1, &val2);
22324 if (!SWIG_IsOK(ecode2)) {
22325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22326 }
22327 arg2 = static_cast< int >(val2);
22328 if (obj2) {
22329 {
22330 arg3 = &temp3;
22331 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22332 }
22333 }
22334 if (obj3) {
22335 {
22336 arg4 = &temp4;
22337 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22338 }
22339 }
22340 if (obj4) {
22341 ecode5 = SWIG_AsVal_long(obj4, &val5);
22342 if (!SWIG_IsOK(ecode5)) {
22343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22344 }
22345 arg5 = static_cast< long >(val5);
22346 }
22347 if (obj5) {
22348 {
22349 arg6 = wxString_in_helper(obj5);
22350 if (arg6 == NULL) SWIG_fail;
22351 temp6 = true;
22352 }
22353 }
22354 {
22355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22356 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22357 wxPyEndAllowThreads(__tstate);
22358 if (PyErr_Occurred()) SWIG_fail;
22359 }
22360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22361 {
22362 if (temp6)
22363 delete arg6;
22364 }
22365 return resultobj;
22366 fail:
22367 {
22368 if (temp6)
22369 delete arg6;
22370 }
22371 return NULL;
22372 }
22373
22374
22375 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22376 PyObject *resultobj = 0;
22377 wxToolbook *result = 0 ;
22378
22379 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 result = (wxToolbook *)new wxToolbook();
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22387 return resultobj;
22388 fail:
22389 return NULL;
22390 }
22391
22392
22393 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22394 PyObject *resultobj = 0;
22395 wxToolbook *arg1 = (wxToolbook *) 0 ;
22396 wxWindow *arg2 = (wxWindow *) 0 ;
22397 int arg3 ;
22398 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22399 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22400 wxSize const &arg5_defvalue = wxDefaultSize ;
22401 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22402 long arg6 = (long) 0 ;
22403 wxString const &arg7_defvalue = wxEmptyString ;
22404 wxString *arg7 = (wxString *) &arg7_defvalue ;
22405 bool result;
22406 void *argp1 = 0 ;
22407 int res1 = 0 ;
22408 void *argp2 = 0 ;
22409 int res2 = 0 ;
22410 int val3 ;
22411 int ecode3 = 0 ;
22412 wxPoint temp4 ;
22413 wxSize temp5 ;
22414 long val6 ;
22415 int ecode6 = 0 ;
22416 bool temp7 = false ;
22417 PyObject * obj0 = 0 ;
22418 PyObject * obj1 = 0 ;
22419 PyObject * obj2 = 0 ;
22420 PyObject * obj3 = 0 ;
22421 PyObject * obj4 = 0 ;
22422 PyObject * obj5 = 0 ;
22423 PyObject * obj6 = 0 ;
22424 char * kwnames[] = {
22425 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22426 };
22427
22428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22430 if (!SWIG_IsOK(res1)) {
22431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22432 }
22433 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22434 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22435 if (!SWIG_IsOK(res2)) {
22436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22437 }
22438 arg2 = reinterpret_cast< wxWindow * >(argp2);
22439 ecode3 = SWIG_AsVal_int(obj2, &val3);
22440 if (!SWIG_IsOK(ecode3)) {
22441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22442 }
22443 arg3 = static_cast< int >(val3);
22444 if (obj3) {
22445 {
22446 arg4 = &temp4;
22447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22448 }
22449 }
22450 if (obj4) {
22451 {
22452 arg5 = &temp5;
22453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22454 }
22455 }
22456 if (obj5) {
22457 ecode6 = SWIG_AsVal_long(obj5, &val6);
22458 if (!SWIG_IsOK(ecode6)) {
22459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22460 }
22461 arg6 = static_cast< long >(val6);
22462 }
22463 if (obj6) {
22464 {
22465 arg7 = wxString_in_helper(obj6);
22466 if (arg7 == NULL) SWIG_fail;
22467 temp7 = true;
22468 }
22469 }
22470 {
22471 PyThreadState* __tstate = wxPyBeginAllowThreads();
22472 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22473 wxPyEndAllowThreads(__tstate);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 }
22476 {
22477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22478 }
22479 {
22480 if (temp7)
22481 delete arg7;
22482 }
22483 return resultobj;
22484 fail:
22485 {
22486 if (temp7)
22487 delete arg7;
22488 }
22489 return NULL;
22490 }
22491
22492
22493 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22494 PyObject *resultobj = 0;
22495 wxToolbook *arg1 = (wxToolbook *) 0 ;
22496 wxToolBarBase *result = 0 ;
22497 void *argp1 = 0 ;
22498 int res1 = 0 ;
22499 PyObject *swig_obj[1] ;
22500
22501 if (!args) SWIG_fail;
22502 swig_obj[0] = args;
22503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22504 if (!SWIG_IsOK(res1)) {
22505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22506 }
22507 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
22510 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22511 wxPyEndAllowThreads(__tstate);
22512 if (PyErr_Occurred()) SWIG_fail;
22513 }
22514 {
22515 resultobj = wxPyMake_wxObject(result, (bool)0);
22516 }
22517 return resultobj;
22518 fail:
22519 return NULL;
22520 }
22521
22522
22523 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22524 PyObject *resultobj = 0;
22525 wxToolbook *arg1 = (wxToolbook *) 0 ;
22526 void *argp1 = 0 ;
22527 int res1 = 0 ;
22528 PyObject *swig_obj[1] ;
22529
22530 if (!args) SWIG_fail;
22531 swig_obj[0] = args;
22532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22535 }
22536 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 (arg1)->Realize();
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_Py_Void();
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22551 PyObject *obj;
22552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22553 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22554 return SWIG_Py_Void();
22555 }
22556
22557 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22558 return SWIG_Python_InitShadowInstance(args);
22559 }
22560
22561 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22562 PyObject *resultobj = 0;
22563 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22564 int arg2 = (int) 0 ;
22565 int arg3 = (int) wxNOT_FOUND ;
22566 int arg4 = (int) wxNOT_FOUND ;
22567 wxToolbookEvent *result = 0 ;
22568 int val1 ;
22569 int ecode1 = 0 ;
22570 int val2 ;
22571 int ecode2 = 0 ;
22572 int val3 ;
22573 int ecode3 = 0 ;
22574 int val4 ;
22575 int ecode4 = 0 ;
22576 PyObject * obj0 = 0 ;
22577 PyObject * obj1 = 0 ;
22578 PyObject * obj2 = 0 ;
22579 PyObject * obj3 = 0 ;
22580 char * kwnames[] = {
22581 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22582 };
22583
22584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22585 if (obj0) {
22586 ecode1 = SWIG_AsVal_int(obj0, &val1);
22587 if (!SWIG_IsOK(ecode1)) {
22588 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22589 }
22590 arg1 = static_cast< wxEventType >(val1);
22591 }
22592 if (obj1) {
22593 ecode2 = SWIG_AsVal_int(obj1, &val2);
22594 if (!SWIG_IsOK(ecode2)) {
22595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22596 }
22597 arg2 = static_cast< int >(val2);
22598 }
22599 if (obj2) {
22600 ecode3 = SWIG_AsVal_int(obj2, &val3);
22601 if (!SWIG_IsOK(ecode3)) {
22602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22603 }
22604 arg3 = static_cast< int >(val3);
22605 }
22606 if (obj3) {
22607 ecode4 = SWIG_AsVal_int(obj3, &val4);
22608 if (!SWIG_IsOK(ecode4)) {
22609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22610 }
22611 arg4 = static_cast< int >(val4);
22612 }
22613 {
22614 PyThreadState* __tstate = wxPyBeginAllowThreads();
22615 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22620 return resultobj;
22621 fail:
22622 return NULL;
22623 }
22624
22625
22626 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22627 PyObject *obj;
22628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22629 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22630 return SWIG_Py_Void();
22631 }
22632
22633 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 return SWIG_Python_InitShadowInstance(args);
22635 }
22636
22637 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22638 PyObject *resultobj = 0;
22639 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22640 int result;
22641 void *argp1 = 0 ;
22642 int res1 = 0 ;
22643 PyObject *swig_obj[1] ;
22644
22645 if (!args) SWIG_fail;
22646 swig_obj[0] = args;
22647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22648 if (!SWIG_IsOK(res1)) {
22649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22650 }
22651 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22652 {
22653 PyThreadState* __tstate = wxPyBeginAllowThreads();
22654 result = (int)(arg1)->GetId();
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 resultobj = SWIG_From_int(static_cast< int >(result));
22659 return resultobj;
22660 fail:
22661 return NULL;
22662 }
22663
22664
22665 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22666 PyObject *resultobj = 0;
22667 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22668 wxControl *result = 0 ;
22669 void *argp1 = 0 ;
22670 int res1 = 0 ;
22671 PyObject *swig_obj[1] ;
22672
22673 if (!args) SWIG_fail;
22674 swig_obj[0] = args;
22675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22676 if (!SWIG_IsOK(res1)) {
22677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22678 }
22679 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22680 {
22681 PyThreadState* __tstate = wxPyBeginAllowThreads();
22682 result = (wxControl *)(arg1)->GetControl();
22683 wxPyEndAllowThreads(__tstate);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 }
22686 {
22687 resultobj = wxPyMake_wxObject(result, 0);
22688 }
22689 return resultobj;
22690 fail:
22691 return NULL;
22692 }
22693
22694
22695 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22696 PyObject *resultobj = 0;
22697 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22698 wxToolBarBase *result = 0 ;
22699 void *argp1 = 0 ;
22700 int res1 = 0 ;
22701 PyObject *swig_obj[1] ;
22702
22703 if (!args) SWIG_fail;
22704 swig_obj[0] = args;
22705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22706 if (!SWIG_IsOK(res1)) {
22707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22708 }
22709 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22710 {
22711 PyThreadState* __tstate = wxPyBeginAllowThreads();
22712 result = (wxToolBarBase *)(arg1)->GetToolBar();
22713 wxPyEndAllowThreads(__tstate);
22714 if (PyErr_Occurred()) SWIG_fail;
22715 }
22716 {
22717 resultobj = wxPyMake_wxObject(result, (bool)0);
22718 }
22719 return resultobj;
22720 fail:
22721 return NULL;
22722 }
22723
22724
22725 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22726 PyObject *resultobj = 0;
22727 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22728 int result;
22729 void *argp1 = 0 ;
22730 int res1 = 0 ;
22731 PyObject *swig_obj[1] ;
22732
22733 if (!args) SWIG_fail;
22734 swig_obj[0] = args;
22735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22736 if (!SWIG_IsOK(res1)) {
22737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22738 }
22739 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 result = (int)(arg1)->IsButton();
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 resultobj = SWIG_From_int(static_cast< int >(result));
22747 return resultobj;
22748 fail:
22749 return NULL;
22750 }
22751
22752
22753 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22754 PyObject *resultobj = 0;
22755 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22756 int result;
22757 void *argp1 = 0 ;
22758 int res1 = 0 ;
22759 PyObject *swig_obj[1] ;
22760
22761 if (!args) SWIG_fail;
22762 swig_obj[0] = args;
22763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22764 if (!SWIG_IsOK(res1)) {
22765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22766 }
22767 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22768 {
22769 PyThreadState* __tstate = wxPyBeginAllowThreads();
22770 result = (int)(arg1)->IsControl();
22771 wxPyEndAllowThreads(__tstate);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 }
22774 resultobj = SWIG_From_int(static_cast< int >(result));
22775 return resultobj;
22776 fail:
22777 return NULL;
22778 }
22779
22780
22781 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22782 PyObject *resultobj = 0;
22783 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22784 int result;
22785 void *argp1 = 0 ;
22786 int res1 = 0 ;
22787 PyObject *swig_obj[1] ;
22788
22789 if (!args) SWIG_fail;
22790 swig_obj[0] = args;
22791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22792 if (!SWIG_IsOK(res1)) {
22793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22794 }
22795 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22796 {
22797 PyThreadState* __tstate = wxPyBeginAllowThreads();
22798 result = (int)(arg1)->IsSeparator();
22799 wxPyEndAllowThreads(__tstate);
22800 if (PyErr_Occurred()) SWIG_fail;
22801 }
22802 resultobj = SWIG_From_int(static_cast< int >(result));
22803 return resultobj;
22804 fail:
22805 return NULL;
22806 }
22807
22808
22809 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22810 PyObject *resultobj = 0;
22811 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22812 int result;
22813 void *argp1 = 0 ;
22814 int res1 = 0 ;
22815 PyObject *swig_obj[1] ;
22816
22817 if (!args) SWIG_fail;
22818 swig_obj[0] = args;
22819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22820 if (!SWIG_IsOK(res1)) {
22821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22822 }
22823 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22824 {
22825 PyThreadState* __tstate = wxPyBeginAllowThreads();
22826 result = (int)(arg1)->GetStyle();
22827 wxPyEndAllowThreads(__tstate);
22828 if (PyErr_Occurred()) SWIG_fail;
22829 }
22830 resultobj = SWIG_From_int(static_cast< int >(result));
22831 return resultobj;
22832 fail:
22833 return NULL;
22834 }
22835
22836
22837 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22838 PyObject *resultobj = 0;
22839 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22840 wxItemKind result;
22841 void *argp1 = 0 ;
22842 int res1 = 0 ;
22843 PyObject *swig_obj[1] ;
22844
22845 if (!args) SWIG_fail;
22846 swig_obj[0] = args;
22847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22848 if (!SWIG_IsOK(res1)) {
22849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22850 }
22851 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22852 {
22853 PyThreadState* __tstate = wxPyBeginAllowThreads();
22854 result = (wxItemKind)(arg1)->GetKind();
22855 wxPyEndAllowThreads(__tstate);
22856 if (PyErr_Occurred()) SWIG_fail;
22857 }
22858 resultobj = SWIG_From_int(static_cast< int >(result));
22859 return resultobj;
22860 fail:
22861 return NULL;
22862 }
22863
22864
22865 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22866 PyObject *resultobj = 0;
22867 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22868 bool result;
22869 void *argp1 = 0 ;
22870 int res1 = 0 ;
22871 PyObject *swig_obj[1] ;
22872
22873 if (!args) SWIG_fail;
22874 swig_obj[0] = args;
22875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22878 }
22879 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22880 {
22881 PyThreadState* __tstate = wxPyBeginAllowThreads();
22882 result = (bool)(arg1)->IsEnabled();
22883 wxPyEndAllowThreads(__tstate);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 }
22886 {
22887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22888 }
22889 return resultobj;
22890 fail:
22891 return NULL;
22892 }
22893
22894
22895 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22896 PyObject *resultobj = 0;
22897 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22898 bool result;
22899 void *argp1 = 0 ;
22900 int res1 = 0 ;
22901 PyObject *swig_obj[1] ;
22902
22903 if (!args) SWIG_fail;
22904 swig_obj[0] = args;
22905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22906 if (!SWIG_IsOK(res1)) {
22907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22908 }
22909 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22910 {
22911 PyThreadState* __tstate = wxPyBeginAllowThreads();
22912 result = (bool)(arg1)->IsToggled();
22913 wxPyEndAllowThreads(__tstate);
22914 if (PyErr_Occurred()) SWIG_fail;
22915 }
22916 {
22917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22918 }
22919 return resultobj;
22920 fail:
22921 return NULL;
22922 }
22923
22924
22925 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22926 PyObject *resultobj = 0;
22927 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22928 bool result;
22929 void *argp1 = 0 ;
22930 int res1 = 0 ;
22931 PyObject *swig_obj[1] ;
22932
22933 if (!args) SWIG_fail;
22934 swig_obj[0] = args;
22935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22936 if (!SWIG_IsOK(res1)) {
22937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22938 }
22939 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22940 {
22941 PyThreadState* __tstate = wxPyBeginAllowThreads();
22942 result = (bool)(arg1)->CanBeToggled();
22943 wxPyEndAllowThreads(__tstate);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 }
22946 {
22947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22948 }
22949 return resultobj;
22950 fail:
22951 return NULL;
22952 }
22953
22954
22955 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22956 PyObject *resultobj = 0;
22957 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22958 wxBitmap *result = 0 ;
22959 void *argp1 = 0 ;
22960 int res1 = 0 ;
22961 PyObject *swig_obj[1] ;
22962
22963 if (!args) SWIG_fail;
22964 swig_obj[0] = args;
22965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22966 if (!SWIG_IsOK(res1)) {
22967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22968 }
22969 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22970 {
22971 PyThreadState* __tstate = wxPyBeginAllowThreads();
22972 {
22973 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22974 result = (wxBitmap *) &_result_ref;
22975 }
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 {
22980 wxBitmap* resultptr = new wxBitmap(*result);
22981 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22982 }
22983 return resultobj;
22984 fail:
22985 return NULL;
22986 }
22987
22988
22989 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22990 PyObject *resultobj = 0;
22991 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22992 wxBitmap *result = 0 ;
22993 void *argp1 = 0 ;
22994 int res1 = 0 ;
22995 PyObject *swig_obj[1] ;
22996
22997 if (!args) SWIG_fail;
22998 swig_obj[0] = args;
22999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23000 if (!SWIG_IsOK(res1)) {
23001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23002 }
23003 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 {
23007 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23008 result = (wxBitmap *) &_result_ref;
23009 }
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 {
23014 wxBitmap* resultptr = new wxBitmap(*result);
23015 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23016 }
23017 return resultobj;
23018 fail:
23019 return NULL;
23020 }
23021
23022
23023 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23024 PyObject *resultobj = 0;
23025 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23026 wxBitmap result;
23027 void *argp1 = 0 ;
23028 int res1 = 0 ;
23029 PyObject *swig_obj[1] ;
23030
23031 if (!args) SWIG_fail;
23032 swig_obj[0] = args;
23033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23034 if (!SWIG_IsOK(res1)) {
23035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23036 }
23037 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23038 {
23039 PyThreadState* __tstate = wxPyBeginAllowThreads();
23040 result = (arg1)->GetBitmap();
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23045 return resultobj;
23046 fail:
23047 return NULL;
23048 }
23049
23050
23051 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23052 PyObject *resultobj = 0;
23053 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23054 wxString result;
23055 void *argp1 = 0 ;
23056 int res1 = 0 ;
23057 PyObject *swig_obj[1] ;
23058
23059 if (!args) SWIG_fail;
23060 swig_obj[0] = args;
23061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23062 if (!SWIG_IsOK(res1)) {
23063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23064 }
23065 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 result = (arg1)->GetLabel();
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 {
23073 #if wxUSE_UNICODE
23074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23075 #else
23076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23077 #endif
23078 }
23079 return resultobj;
23080 fail:
23081 return NULL;
23082 }
23083
23084
23085 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *resultobj = 0;
23087 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23088 wxString result;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 PyObject *swig_obj[1] ;
23092
23093 if (!args) SWIG_fail;
23094 swig_obj[0] = args;
23095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23098 }
23099 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 result = (arg1)->GetShortHelp();
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 {
23107 #if wxUSE_UNICODE
23108 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23109 #else
23110 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23111 #endif
23112 }
23113 return resultobj;
23114 fail:
23115 return NULL;
23116 }
23117
23118
23119 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23120 PyObject *resultobj = 0;
23121 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23122 wxString result;
23123 void *argp1 = 0 ;
23124 int res1 = 0 ;
23125 PyObject *swig_obj[1] ;
23126
23127 if (!args) SWIG_fail;
23128 swig_obj[0] = args;
23129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23130 if (!SWIG_IsOK(res1)) {
23131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23132 }
23133 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 result = (arg1)->GetLongHelp();
23137 wxPyEndAllowThreads(__tstate);
23138 if (PyErr_Occurred()) SWIG_fail;
23139 }
23140 {
23141 #if wxUSE_UNICODE
23142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23143 #else
23144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23145 #endif
23146 }
23147 return resultobj;
23148 fail:
23149 return NULL;
23150 }
23151
23152
23153 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23154 PyObject *resultobj = 0;
23155 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23156 bool arg2 ;
23157 bool result;
23158 void *argp1 = 0 ;
23159 int res1 = 0 ;
23160 bool val2 ;
23161 int ecode2 = 0 ;
23162 PyObject * obj0 = 0 ;
23163 PyObject * obj1 = 0 ;
23164 char * kwnames[] = {
23165 (char *) "self",(char *) "enable", NULL
23166 };
23167
23168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23170 if (!SWIG_IsOK(res1)) {
23171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23172 }
23173 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23174 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23175 if (!SWIG_IsOK(ecode2)) {
23176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23177 }
23178 arg2 = static_cast< bool >(val2);
23179 {
23180 PyThreadState* __tstate = wxPyBeginAllowThreads();
23181 result = (bool)(arg1)->Enable(arg2);
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 {
23186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23187 }
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23195 PyObject *resultobj = 0;
23196 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23197 void *argp1 = 0 ;
23198 int res1 = 0 ;
23199 PyObject *swig_obj[1] ;
23200
23201 if (!args) SWIG_fail;
23202 swig_obj[0] = args;
23203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23204 if (!SWIG_IsOK(res1)) {
23205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23206 }
23207 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23208 {
23209 PyThreadState* __tstate = wxPyBeginAllowThreads();
23210 (arg1)->Toggle();
23211 wxPyEndAllowThreads(__tstate);
23212 if (PyErr_Occurred()) SWIG_fail;
23213 }
23214 resultobj = SWIG_Py_Void();
23215 return resultobj;
23216 fail:
23217 return NULL;
23218 }
23219
23220
23221 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23222 PyObject *resultobj = 0;
23223 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23224 bool arg2 ;
23225 bool result;
23226 void *argp1 = 0 ;
23227 int res1 = 0 ;
23228 bool val2 ;
23229 int ecode2 = 0 ;
23230 PyObject * obj0 = 0 ;
23231 PyObject * obj1 = 0 ;
23232 char * kwnames[] = {
23233 (char *) "self",(char *) "toggle", NULL
23234 };
23235
23236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23238 if (!SWIG_IsOK(res1)) {
23239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23240 }
23241 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23242 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23243 if (!SWIG_IsOK(ecode2)) {
23244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23245 }
23246 arg2 = static_cast< bool >(val2);
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 result = (bool)(arg1)->SetToggle(arg2);
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 {
23254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23255 }
23256 return resultobj;
23257 fail:
23258 return NULL;
23259 }
23260
23261
23262 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23263 PyObject *resultobj = 0;
23264 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23265 wxString *arg2 = 0 ;
23266 bool result;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 bool temp2 = false ;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj1 = 0 ;
23272 char * kwnames[] = {
23273 (char *) "self",(char *) "help", NULL
23274 };
23275
23276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23280 }
23281 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23282 {
23283 arg2 = wxString_in_helper(obj1);
23284 if (arg2 == NULL) SWIG_fail;
23285 temp2 = true;
23286 }
23287 {
23288 PyThreadState* __tstate = wxPyBeginAllowThreads();
23289 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23290 wxPyEndAllowThreads(__tstate);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 }
23293 {
23294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23295 }
23296 {
23297 if (temp2)
23298 delete arg2;
23299 }
23300 return resultobj;
23301 fail:
23302 {
23303 if (temp2)
23304 delete arg2;
23305 }
23306 return NULL;
23307 }
23308
23309
23310 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj = 0;
23312 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23313 wxString *arg2 = 0 ;
23314 bool result;
23315 void *argp1 = 0 ;
23316 int res1 = 0 ;
23317 bool temp2 = false ;
23318 PyObject * obj0 = 0 ;
23319 PyObject * obj1 = 0 ;
23320 char * kwnames[] = {
23321 (char *) "self",(char *) "help", NULL
23322 };
23323
23324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23326 if (!SWIG_IsOK(res1)) {
23327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23328 }
23329 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23330 {
23331 arg2 = wxString_in_helper(obj1);
23332 if (arg2 == NULL) SWIG_fail;
23333 temp2 = true;
23334 }
23335 {
23336 PyThreadState* __tstate = wxPyBeginAllowThreads();
23337 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23338 wxPyEndAllowThreads(__tstate);
23339 if (PyErr_Occurred()) SWIG_fail;
23340 }
23341 {
23342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23343 }
23344 {
23345 if (temp2)
23346 delete arg2;
23347 }
23348 return resultobj;
23349 fail:
23350 {
23351 if (temp2)
23352 delete arg2;
23353 }
23354 return NULL;
23355 }
23356
23357
23358 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23359 PyObject *resultobj = 0;
23360 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23361 wxBitmap *arg2 = 0 ;
23362 void *argp1 = 0 ;
23363 int res1 = 0 ;
23364 void *argp2 = 0 ;
23365 int res2 = 0 ;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23368 char * kwnames[] = {
23369 (char *) "self",(char *) "bmp", NULL
23370 };
23371
23372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23376 }
23377 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23379 if (!SWIG_IsOK(res2)) {
23380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23381 }
23382 if (!argp2) {
23383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23384 }
23385 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23386 {
23387 PyThreadState* __tstate = wxPyBeginAllowThreads();
23388 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 resultobj = SWIG_Py_Void();
23393 return resultobj;
23394 fail:
23395 return NULL;
23396 }
23397
23398
23399 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23400 PyObject *resultobj = 0;
23401 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23402 wxBitmap *arg2 = 0 ;
23403 void *argp1 = 0 ;
23404 int res1 = 0 ;
23405 void *argp2 = 0 ;
23406 int res2 = 0 ;
23407 PyObject * obj0 = 0 ;
23408 PyObject * obj1 = 0 ;
23409 char * kwnames[] = {
23410 (char *) "self",(char *) "bmp", NULL
23411 };
23412
23413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23415 if (!SWIG_IsOK(res1)) {
23416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23417 }
23418 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23420 if (!SWIG_IsOK(res2)) {
23421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23422 }
23423 if (!argp2) {
23424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23425 }
23426 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23427 {
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 resultobj = SWIG_Py_Void();
23434 return resultobj;
23435 fail:
23436 return NULL;
23437 }
23438
23439
23440 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj = 0;
23442 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23443 wxString *arg2 = 0 ;
23444 void *argp1 = 0 ;
23445 int res1 = 0 ;
23446 bool temp2 = false ;
23447 PyObject * obj0 = 0 ;
23448 PyObject * obj1 = 0 ;
23449 char * kwnames[] = {
23450 (char *) "self",(char *) "label", NULL
23451 };
23452
23453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23455 if (!SWIG_IsOK(res1)) {
23456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23457 }
23458 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23459 {
23460 arg2 = wxString_in_helper(obj1);
23461 if (arg2 == NULL) SWIG_fail;
23462 temp2 = true;
23463 }
23464 {
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 (arg1)->SetLabel((wxString const &)*arg2);
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_Py_Void();
23471 {
23472 if (temp2)
23473 delete arg2;
23474 }
23475 return resultobj;
23476 fail:
23477 {
23478 if (temp2)
23479 delete arg2;
23480 }
23481 return NULL;
23482 }
23483
23484
23485 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23486 PyObject *resultobj = 0;
23487 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23488 void *argp1 = 0 ;
23489 int res1 = 0 ;
23490 PyObject *swig_obj[1] ;
23491
23492 if (!args) SWIG_fail;
23493 swig_obj[0] = args;
23494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23495 if (!SWIG_IsOK(res1)) {
23496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23497 }
23498 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23499 {
23500 PyThreadState* __tstate = wxPyBeginAllowThreads();
23501 (arg1)->Detach();
23502 wxPyEndAllowThreads(__tstate);
23503 if (PyErr_Occurred()) SWIG_fail;
23504 }
23505 resultobj = SWIG_Py_Void();
23506 return resultobj;
23507 fail:
23508 return NULL;
23509 }
23510
23511
23512 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23513 PyObject *resultobj = 0;
23514 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23515 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23516 void *argp1 = 0 ;
23517 int res1 = 0 ;
23518 void *argp2 = 0 ;
23519 int res2 = 0 ;
23520 PyObject * obj0 = 0 ;
23521 PyObject * obj1 = 0 ;
23522 char * kwnames[] = {
23523 (char *) "self",(char *) "tbar", NULL
23524 };
23525
23526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23528 if (!SWIG_IsOK(res1)) {
23529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23530 }
23531 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23533 if (!SWIG_IsOK(res2)) {
23534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23535 }
23536 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23537 {
23538 PyThreadState* __tstate = wxPyBeginAllowThreads();
23539 (arg1)->Attach(arg2);
23540 wxPyEndAllowThreads(__tstate);
23541 if (PyErr_Occurred()) SWIG_fail;
23542 }
23543 resultobj = SWIG_Py_Void();
23544 return resultobj;
23545 fail:
23546 return NULL;
23547 }
23548
23549
23550 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23551 PyObject *resultobj = 0;
23552 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23553 PyObject *result = 0 ;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 PyObject *swig_obj[1] ;
23557
23558 if (!args) SWIG_fail;
23559 swig_obj[0] = args;
23560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23561 if (!SWIG_IsOK(res1)) {
23562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23563 }
23564 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23565 {
23566 PyThreadState* __tstate = wxPyBeginAllowThreads();
23567 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23568 wxPyEndAllowThreads(__tstate);
23569 if (PyErr_Occurred()) SWIG_fail;
23570 }
23571 resultobj = result;
23572 return resultobj;
23573 fail:
23574 return NULL;
23575 }
23576
23577
23578 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23579 PyObject *resultobj = 0;
23580 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23581 PyObject *arg2 = (PyObject *) 0 ;
23582 void *argp1 = 0 ;
23583 int res1 = 0 ;
23584 PyObject * obj0 = 0 ;
23585 PyObject * obj1 = 0 ;
23586 char * kwnames[] = {
23587 (char *) "self",(char *) "clientData", NULL
23588 };
23589
23590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23592 if (!SWIG_IsOK(res1)) {
23593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23594 }
23595 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23596 arg2 = obj1;
23597 {
23598 PyThreadState* __tstate = wxPyBeginAllowThreads();
23599 wxToolBarToolBase_SetClientData(arg1,arg2);
23600 wxPyEndAllowThreads(__tstate);
23601 if (PyErr_Occurred()) SWIG_fail;
23602 }
23603 resultobj = SWIG_Py_Void();
23604 return resultobj;
23605 fail:
23606 return NULL;
23607 }
23608
23609
23610 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23611 PyObject *obj;
23612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23613 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23614 return SWIG_Py_Void();
23615 }
23616
23617 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23618 PyObject *resultobj = 0;
23619 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23620 int arg2 ;
23621 wxString *arg3 = 0 ;
23622 wxBitmap *arg4 = 0 ;
23623 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23624 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23625 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23626 wxString const &arg7_defvalue = wxPyEmptyString ;
23627 wxString *arg7 = (wxString *) &arg7_defvalue ;
23628 wxString const &arg8_defvalue = wxPyEmptyString ;
23629 wxString *arg8 = (wxString *) &arg8_defvalue ;
23630 PyObject *arg9 = (PyObject *) NULL ;
23631 wxToolBarToolBase *result = 0 ;
23632 void *argp1 = 0 ;
23633 int res1 = 0 ;
23634 int val2 ;
23635 int ecode2 = 0 ;
23636 bool temp3 = false ;
23637 void *argp4 = 0 ;
23638 int res4 = 0 ;
23639 void *argp5 = 0 ;
23640 int res5 = 0 ;
23641 int val6 ;
23642 int ecode6 = 0 ;
23643 bool temp7 = false ;
23644 bool temp8 = false ;
23645 PyObject * obj0 = 0 ;
23646 PyObject * obj1 = 0 ;
23647 PyObject * obj2 = 0 ;
23648 PyObject * obj3 = 0 ;
23649 PyObject * obj4 = 0 ;
23650 PyObject * obj5 = 0 ;
23651 PyObject * obj6 = 0 ;
23652 PyObject * obj7 = 0 ;
23653 PyObject * obj8 = 0 ;
23654 char * kwnames[] = {
23655 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23656 };
23657
23658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23660 if (!SWIG_IsOK(res1)) {
23661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23662 }
23663 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23664 ecode2 = SWIG_AsVal_int(obj1, &val2);
23665 if (!SWIG_IsOK(ecode2)) {
23666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23667 }
23668 arg2 = static_cast< int >(val2);
23669 {
23670 arg3 = wxString_in_helper(obj2);
23671 if (arg3 == NULL) SWIG_fail;
23672 temp3 = true;
23673 }
23674 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23675 if (!SWIG_IsOK(res4)) {
23676 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23677 }
23678 if (!argp4) {
23679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23680 }
23681 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23682 if (obj4) {
23683 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23684 if (!SWIG_IsOK(res5)) {
23685 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23686 }
23687 if (!argp5) {
23688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23689 }
23690 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23691 }
23692 if (obj5) {
23693 ecode6 = SWIG_AsVal_int(obj5, &val6);
23694 if (!SWIG_IsOK(ecode6)) {
23695 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23696 }
23697 arg6 = static_cast< wxItemKind >(val6);
23698 }
23699 if (obj6) {
23700 {
23701 arg7 = wxString_in_helper(obj6);
23702 if (arg7 == NULL) SWIG_fail;
23703 temp7 = true;
23704 }
23705 }
23706 if (obj7) {
23707 {
23708 arg8 = wxString_in_helper(obj7);
23709 if (arg8 == NULL) SWIG_fail;
23710 temp8 = true;
23711 }
23712 }
23713 if (obj8) {
23714 arg9 = obj8;
23715 }
23716 {
23717 PyThreadState* __tstate = wxPyBeginAllowThreads();
23718 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 {
23723 resultobj = wxPyMake_wxObject(result, (bool)0);
23724 }
23725 {
23726 if (temp3)
23727 delete arg3;
23728 }
23729 {
23730 if (temp7)
23731 delete arg7;
23732 }
23733 {
23734 if (temp8)
23735 delete arg8;
23736 }
23737 return resultobj;
23738 fail:
23739 {
23740 if (temp3)
23741 delete arg3;
23742 }
23743 {
23744 if (temp7)
23745 delete arg7;
23746 }
23747 {
23748 if (temp8)
23749 delete arg8;
23750 }
23751 return NULL;
23752 }
23753
23754
23755 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23756 PyObject *resultobj = 0;
23757 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23758 size_t arg2 ;
23759 int arg3 ;
23760 wxString *arg4 = 0 ;
23761 wxBitmap *arg5 = 0 ;
23762 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23763 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23764 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23765 wxString const &arg8_defvalue = wxPyEmptyString ;
23766 wxString *arg8 = (wxString *) &arg8_defvalue ;
23767 wxString const &arg9_defvalue = wxPyEmptyString ;
23768 wxString *arg9 = (wxString *) &arg9_defvalue ;
23769 PyObject *arg10 = (PyObject *) NULL ;
23770 wxToolBarToolBase *result = 0 ;
23771 void *argp1 = 0 ;
23772 int res1 = 0 ;
23773 size_t val2 ;
23774 int ecode2 = 0 ;
23775 int val3 ;
23776 int ecode3 = 0 ;
23777 bool temp4 = false ;
23778 void *argp5 = 0 ;
23779 int res5 = 0 ;
23780 void *argp6 = 0 ;
23781 int res6 = 0 ;
23782 int val7 ;
23783 int ecode7 = 0 ;
23784 bool temp8 = false ;
23785 bool temp9 = false ;
23786 PyObject * obj0 = 0 ;
23787 PyObject * obj1 = 0 ;
23788 PyObject * obj2 = 0 ;
23789 PyObject * obj3 = 0 ;
23790 PyObject * obj4 = 0 ;
23791 PyObject * obj5 = 0 ;
23792 PyObject * obj6 = 0 ;
23793 PyObject * obj7 = 0 ;
23794 PyObject * obj8 = 0 ;
23795 PyObject * obj9 = 0 ;
23796 char * kwnames[] = {
23797 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23798 };
23799
23800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23802 if (!SWIG_IsOK(res1)) {
23803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23804 }
23805 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23806 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23807 if (!SWIG_IsOK(ecode2)) {
23808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23809 }
23810 arg2 = static_cast< size_t >(val2);
23811 ecode3 = SWIG_AsVal_int(obj2, &val3);
23812 if (!SWIG_IsOK(ecode3)) {
23813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23814 }
23815 arg3 = static_cast< int >(val3);
23816 {
23817 arg4 = wxString_in_helper(obj3);
23818 if (arg4 == NULL) SWIG_fail;
23819 temp4 = true;
23820 }
23821 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23822 if (!SWIG_IsOK(res5)) {
23823 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23824 }
23825 if (!argp5) {
23826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23827 }
23828 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23829 if (obj5) {
23830 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23831 if (!SWIG_IsOK(res6)) {
23832 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23833 }
23834 if (!argp6) {
23835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23836 }
23837 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23838 }
23839 if (obj6) {
23840 ecode7 = SWIG_AsVal_int(obj6, &val7);
23841 if (!SWIG_IsOK(ecode7)) {
23842 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23843 }
23844 arg7 = static_cast< wxItemKind >(val7);
23845 }
23846 if (obj7) {
23847 {
23848 arg8 = wxString_in_helper(obj7);
23849 if (arg8 == NULL) SWIG_fail;
23850 temp8 = true;
23851 }
23852 }
23853 if (obj8) {
23854 {
23855 arg9 = wxString_in_helper(obj8);
23856 if (arg9 == NULL) SWIG_fail;
23857 temp9 = true;
23858 }
23859 }
23860 if (obj9) {
23861 arg10 = obj9;
23862 }
23863 {
23864 PyThreadState* __tstate = wxPyBeginAllowThreads();
23865 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23866 wxPyEndAllowThreads(__tstate);
23867 if (PyErr_Occurred()) SWIG_fail;
23868 }
23869 {
23870 resultobj = wxPyMake_wxObject(result, (bool)0);
23871 }
23872 {
23873 if (temp4)
23874 delete arg4;
23875 }
23876 {
23877 if (temp8)
23878 delete arg8;
23879 }
23880 {
23881 if (temp9)
23882 delete arg9;
23883 }
23884 return resultobj;
23885 fail:
23886 {
23887 if (temp4)
23888 delete arg4;
23889 }
23890 {
23891 if (temp8)
23892 delete arg8;
23893 }
23894 {
23895 if (temp9)
23896 delete arg9;
23897 }
23898 return NULL;
23899 }
23900
23901
23902 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23903 PyObject *resultobj = 0;
23904 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23905 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23906 wxToolBarToolBase *result = 0 ;
23907 void *argp1 = 0 ;
23908 int res1 = 0 ;
23909 void *argp2 = 0 ;
23910 int res2 = 0 ;
23911 PyObject * obj0 = 0 ;
23912 PyObject * obj1 = 0 ;
23913 char * kwnames[] = {
23914 (char *) "self",(char *) "tool", NULL
23915 };
23916
23917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23919 if (!SWIG_IsOK(res1)) {
23920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23921 }
23922 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23924 if (!SWIG_IsOK(res2)) {
23925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23926 }
23927 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23928 {
23929 PyThreadState* __tstate = wxPyBeginAllowThreads();
23930 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23931 wxPyEndAllowThreads(__tstate);
23932 if (PyErr_Occurred()) SWIG_fail;
23933 }
23934 {
23935 resultobj = wxPyMake_wxObject(result, (bool)0);
23936 }
23937 return resultobj;
23938 fail:
23939 return NULL;
23940 }
23941
23942
23943 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23944 PyObject *resultobj = 0;
23945 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23946 size_t arg2 ;
23947 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23948 wxToolBarToolBase *result = 0 ;
23949 void *argp1 = 0 ;
23950 int res1 = 0 ;
23951 size_t val2 ;
23952 int ecode2 = 0 ;
23953 void *argp3 = 0 ;
23954 int res3 = 0 ;
23955 PyObject * obj0 = 0 ;
23956 PyObject * obj1 = 0 ;
23957 PyObject * obj2 = 0 ;
23958 char * kwnames[] = {
23959 (char *) "self",(char *) "pos",(char *) "tool", NULL
23960 };
23961
23962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23964 if (!SWIG_IsOK(res1)) {
23965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23966 }
23967 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23968 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23969 if (!SWIG_IsOK(ecode2)) {
23970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23971 }
23972 arg2 = static_cast< size_t >(val2);
23973 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23974 if (!SWIG_IsOK(res3)) {
23975 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23976 }
23977 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23978 {
23979 PyThreadState* __tstate = wxPyBeginAllowThreads();
23980 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 {
23985 resultobj = wxPyMake_wxObject(result, (bool)0);
23986 }
23987 return resultobj;
23988 fail:
23989 return NULL;
23990 }
23991
23992
23993 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23994 PyObject *resultobj = 0;
23995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23996 wxControl *arg2 = (wxControl *) 0 ;
23997 wxToolBarToolBase *result = 0 ;
23998 void *argp1 = 0 ;
23999 int res1 = 0 ;
24000 void *argp2 = 0 ;
24001 int res2 = 0 ;
24002 PyObject * obj0 = 0 ;
24003 PyObject * obj1 = 0 ;
24004 char * kwnames[] = {
24005 (char *) "self",(char *) "control", NULL
24006 };
24007
24008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24010 if (!SWIG_IsOK(res1)) {
24011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24012 }
24013 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24015 if (!SWIG_IsOK(res2)) {
24016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24017 }
24018 arg2 = reinterpret_cast< wxControl * >(argp2);
24019 {
24020 PyThreadState* __tstate = wxPyBeginAllowThreads();
24021 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24022 wxPyEndAllowThreads(__tstate);
24023 if (PyErr_Occurred()) SWIG_fail;
24024 }
24025 {
24026 resultobj = wxPyMake_wxObject(result, (bool)0);
24027 }
24028 return resultobj;
24029 fail:
24030 return NULL;
24031 }
24032
24033
24034 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24035 PyObject *resultobj = 0;
24036 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24037 size_t arg2 ;
24038 wxControl *arg3 = (wxControl *) 0 ;
24039 wxToolBarToolBase *result = 0 ;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 size_t val2 ;
24043 int ecode2 = 0 ;
24044 void *argp3 = 0 ;
24045 int res3 = 0 ;
24046 PyObject * obj0 = 0 ;
24047 PyObject * obj1 = 0 ;
24048 PyObject * obj2 = 0 ;
24049 char * kwnames[] = {
24050 (char *) "self",(char *) "pos",(char *) "control", NULL
24051 };
24052
24053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24055 if (!SWIG_IsOK(res1)) {
24056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24057 }
24058 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24059 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24060 if (!SWIG_IsOK(ecode2)) {
24061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24062 }
24063 arg2 = static_cast< size_t >(val2);
24064 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24065 if (!SWIG_IsOK(res3)) {
24066 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24067 }
24068 arg3 = reinterpret_cast< wxControl * >(argp3);
24069 {
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 {
24076 resultobj = wxPyMake_wxObject(result, (bool)0);
24077 }
24078 return resultobj;
24079 fail:
24080 return NULL;
24081 }
24082
24083
24084 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24085 PyObject *resultobj = 0;
24086 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24087 int arg2 ;
24088 wxControl *result = 0 ;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 int val2 ;
24092 int ecode2 = 0 ;
24093 PyObject * obj0 = 0 ;
24094 PyObject * obj1 = 0 ;
24095 char * kwnames[] = {
24096 (char *) "self",(char *) "id", NULL
24097 };
24098
24099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24101 if (!SWIG_IsOK(res1)) {
24102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24103 }
24104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24105 ecode2 = SWIG_AsVal_int(obj1, &val2);
24106 if (!SWIG_IsOK(ecode2)) {
24107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24108 }
24109 arg2 = static_cast< int >(val2);
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (wxControl *)(arg1)->FindControl(arg2);
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 {
24117 resultobj = wxPyMake_wxObject(result, 0);
24118 }
24119 return resultobj;
24120 fail:
24121 return NULL;
24122 }
24123
24124
24125 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24126 PyObject *resultobj = 0;
24127 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24128 wxToolBarToolBase *result = 0 ;
24129 void *argp1 = 0 ;
24130 int res1 = 0 ;
24131 PyObject *swig_obj[1] ;
24132
24133 if (!args) SWIG_fail;
24134 swig_obj[0] = args;
24135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24136 if (!SWIG_IsOK(res1)) {
24137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24138 }
24139 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24140 {
24141 PyThreadState* __tstate = wxPyBeginAllowThreads();
24142 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24143 wxPyEndAllowThreads(__tstate);
24144 if (PyErr_Occurred()) SWIG_fail;
24145 }
24146 {
24147 resultobj = wxPyMake_wxObject(result, (bool)0);
24148 }
24149 return resultobj;
24150 fail:
24151 return NULL;
24152 }
24153
24154
24155 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24156 PyObject *resultobj = 0;
24157 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24158 size_t arg2 ;
24159 wxToolBarToolBase *result = 0 ;
24160 void *argp1 = 0 ;
24161 int res1 = 0 ;
24162 size_t val2 ;
24163 int ecode2 = 0 ;
24164 PyObject * obj0 = 0 ;
24165 PyObject * obj1 = 0 ;
24166 char * kwnames[] = {
24167 (char *) "self",(char *) "pos", NULL
24168 };
24169
24170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24172 if (!SWIG_IsOK(res1)) {
24173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24174 }
24175 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24176 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24177 if (!SWIG_IsOK(ecode2)) {
24178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24179 }
24180 arg2 = static_cast< size_t >(val2);
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 {
24188 resultobj = wxPyMake_wxObject(result, (bool)0);
24189 }
24190 return resultobj;
24191 fail:
24192 return NULL;
24193 }
24194
24195
24196 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj = 0;
24198 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24199 int arg2 ;
24200 wxToolBarToolBase *result = 0 ;
24201 void *argp1 = 0 ;
24202 int res1 = 0 ;
24203 int val2 ;
24204 int ecode2 = 0 ;
24205 PyObject * obj0 = 0 ;
24206 PyObject * obj1 = 0 ;
24207 char * kwnames[] = {
24208 (char *) "self",(char *) "id", NULL
24209 };
24210
24211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24213 if (!SWIG_IsOK(res1)) {
24214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24215 }
24216 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24217 ecode2 = SWIG_AsVal_int(obj1, &val2);
24218 if (!SWIG_IsOK(ecode2)) {
24219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24220 }
24221 arg2 = static_cast< int >(val2);
24222 {
24223 PyThreadState* __tstate = wxPyBeginAllowThreads();
24224 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24225 wxPyEndAllowThreads(__tstate);
24226 if (PyErr_Occurred()) SWIG_fail;
24227 }
24228 {
24229 resultobj = wxPyMake_wxObject(result, (bool)0);
24230 }
24231 return resultobj;
24232 fail:
24233 return NULL;
24234 }
24235
24236
24237 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj = 0;
24239 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24240 size_t arg2 ;
24241 bool result;
24242 void *argp1 = 0 ;
24243 int res1 = 0 ;
24244 size_t val2 ;
24245 int ecode2 = 0 ;
24246 PyObject * obj0 = 0 ;
24247 PyObject * obj1 = 0 ;
24248 char * kwnames[] = {
24249 (char *) "self",(char *) "pos", NULL
24250 };
24251
24252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24254 if (!SWIG_IsOK(res1)) {
24255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24256 }
24257 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24258 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24259 if (!SWIG_IsOK(ecode2)) {
24260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24261 }
24262 arg2 = static_cast< size_t >(val2);
24263 {
24264 PyThreadState* __tstate = wxPyBeginAllowThreads();
24265 result = (bool)(arg1)->DeleteToolByPos(arg2);
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 {
24270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24271 }
24272 return resultobj;
24273 fail:
24274 return NULL;
24275 }
24276
24277
24278 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj = 0;
24280 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24281 int arg2 ;
24282 bool result;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 int val2 ;
24286 int ecode2 = 0 ;
24287 PyObject * obj0 = 0 ;
24288 PyObject * obj1 = 0 ;
24289 char * kwnames[] = {
24290 (char *) "self",(char *) "id", NULL
24291 };
24292
24293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24295 if (!SWIG_IsOK(res1)) {
24296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24297 }
24298 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24299 ecode2 = SWIG_AsVal_int(obj1, &val2);
24300 if (!SWIG_IsOK(ecode2)) {
24301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24302 }
24303 arg2 = static_cast< int >(val2);
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 result = (bool)(arg1)->DeleteTool(arg2);
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 {
24311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24312 }
24313 return resultobj;
24314 fail:
24315 return NULL;
24316 }
24317
24318
24319 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24320 PyObject *resultobj = 0;
24321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24322 void *argp1 = 0 ;
24323 int res1 = 0 ;
24324 PyObject *swig_obj[1] ;
24325
24326 if (!args) SWIG_fail;
24327 swig_obj[0] = args;
24328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24329 if (!SWIG_IsOK(res1)) {
24330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24331 }
24332 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24333 {
24334 PyThreadState* __tstate = wxPyBeginAllowThreads();
24335 (arg1)->ClearTools();
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 resultobj = SWIG_Py_Void();
24340 return resultobj;
24341 fail:
24342 return NULL;
24343 }
24344
24345
24346 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24347 PyObject *resultobj = 0;
24348 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24349 bool result;
24350 void *argp1 = 0 ;
24351 int res1 = 0 ;
24352 PyObject *swig_obj[1] ;
24353
24354 if (!args) SWIG_fail;
24355 swig_obj[0] = args;
24356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24357 if (!SWIG_IsOK(res1)) {
24358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24359 }
24360 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 result = (bool)(arg1)->Realize();
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 {
24368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24369 }
24370 return resultobj;
24371 fail:
24372 return NULL;
24373 }
24374
24375
24376 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24377 PyObject *resultobj = 0;
24378 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24379 int arg2 ;
24380 bool arg3 ;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 int val2 ;
24384 int ecode2 = 0 ;
24385 bool val3 ;
24386 int ecode3 = 0 ;
24387 PyObject * obj0 = 0 ;
24388 PyObject * obj1 = 0 ;
24389 PyObject * obj2 = 0 ;
24390 char * kwnames[] = {
24391 (char *) "self",(char *) "id",(char *) "enable", NULL
24392 };
24393
24394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24398 }
24399 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24400 ecode2 = SWIG_AsVal_int(obj1, &val2);
24401 if (!SWIG_IsOK(ecode2)) {
24402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24403 }
24404 arg2 = static_cast< int >(val2);
24405 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24406 if (!SWIG_IsOK(ecode3)) {
24407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24408 }
24409 arg3 = static_cast< bool >(val3);
24410 {
24411 PyThreadState* __tstate = wxPyBeginAllowThreads();
24412 (arg1)->EnableTool(arg2,arg3);
24413 wxPyEndAllowThreads(__tstate);
24414 if (PyErr_Occurred()) SWIG_fail;
24415 }
24416 resultobj = SWIG_Py_Void();
24417 return resultobj;
24418 fail:
24419 return NULL;
24420 }
24421
24422
24423 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24424 PyObject *resultobj = 0;
24425 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24426 int arg2 ;
24427 bool arg3 ;
24428 void *argp1 = 0 ;
24429 int res1 = 0 ;
24430 int val2 ;
24431 int ecode2 = 0 ;
24432 bool val3 ;
24433 int ecode3 = 0 ;
24434 PyObject * obj0 = 0 ;
24435 PyObject * obj1 = 0 ;
24436 PyObject * obj2 = 0 ;
24437 char * kwnames[] = {
24438 (char *) "self",(char *) "id",(char *) "toggle", NULL
24439 };
24440
24441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24443 if (!SWIG_IsOK(res1)) {
24444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24445 }
24446 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24447 ecode2 = SWIG_AsVal_int(obj1, &val2);
24448 if (!SWIG_IsOK(ecode2)) {
24449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24450 }
24451 arg2 = static_cast< int >(val2);
24452 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24453 if (!SWIG_IsOK(ecode3)) {
24454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24455 }
24456 arg3 = static_cast< bool >(val3);
24457 {
24458 PyThreadState* __tstate = wxPyBeginAllowThreads();
24459 (arg1)->ToggleTool(arg2,arg3);
24460 wxPyEndAllowThreads(__tstate);
24461 if (PyErr_Occurred()) SWIG_fail;
24462 }
24463 resultobj = SWIG_Py_Void();
24464 return resultobj;
24465 fail:
24466 return NULL;
24467 }
24468
24469
24470 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24473 int arg2 ;
24474 bool arg3 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 int val2 ;
24478 int ecode2 = 0 ;
24479 bool val3 ;
24480 int ecode3 = 0 ;
24481 PyObject * obj0 = 0 ;
24482 PyObject * obj1 = 0 ;
24483 PyObject * obj2 = 0 ;
24484 char * kwnames[] = {
24485 (char *) "self",(char *) "id",(char *) "toggle", NULL
24486 };
24487
24488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24490 if (!SWIG_IsOK(res1)) {
24491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24492 }
24493 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24494 ecode2 = SWIG_AsVal_int(obj1, &val2);
24495 if (!SWIG_IsOK(ecode2)) {
24496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24497 }
24498 arg2 = static_cast< int >(val2);
24499 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24500 if (!SWIG_IsOK(ecode3)) {
24501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24502 }
24503 arg3 = static_cast< bool >(val3);
24504 {
24505 PyThreadState* __tstate = wxPyBeginAllowThreads();
24506 (arg1)->SetToggle(arg2,arg3);
24507 wxPyEndAllowThreads(__tstate);
24508 if (PyErr_Occurred()) SWIG_fail;
24509 }
24510 resultobj = SWIG_Py_Void();
24511 return resultobj;
24512 fail:
24513 return NULL;
24514 }
24515
24516
24517 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj = 0;
24519 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24520 int arg2 ;
24521 PyObject *result = 0 ;
24522 void *argp1 = 0 ;
24523 int res1 = 0 ;
24524 int val2 ;
24525 int ecode2 = 0 ;
24526 PyObject * obj0 = 0 ;
24527 PyObject * obj1 = 0 ;
24528 char * kwnames[] = {
24529 (char *) "self",(char *) "id", NULL
24530 };
24531
24532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24534 if (!SWIG_IsOK(res1)) {
24535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24536 }
24537 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24538 ecode2 = SWIG_AsVal_int(obj1, &val2);
24539 if (!SWIG_IsOK(ecode2)) {
24540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24541 }
24542 arg2 = static_cast< int >(val2);
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24546 wxPyEndAllowThreads(__tstate);
24547 if (PyErr_Occurred()) SWIG_fail;
24548 }
24549 resultobj = result;
24550 return resultobj;
24551 fail:
24552 return NULL;
24553 }
24554
24555
24556 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24557 PyObject *resultobj = 0;
24558 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24559 int arg2 ;
24560 PyObject *arg3 = (PyObject *) 0 ;
24561 void *argp1 = 0 ;
24562 int res1 = 0 ;
24563 int val2 ;
24564 int ecode2 = 0 ;
24565 PyObject * obj0 = 0 ;
24566 PyObject * obj1 = 0 ;
24567 PyObject * obj2 = 0 ;
24568 char * kwnames[] = {
24569 (char *) "self",(char *) "id",(char *) "clientData", NULL
24570 };
24571
24572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24574 if (!SWIG_IsOK(res1)) {
24575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24576 }
24577 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24578 ecode2 = SWIG_AsVal_int(obj1, &val2);
24579 if (!SWIG_IsOK(ecode2)) {
24580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24581 }
24582 arg2 = static_cast< int >(val2);
24583 arg3 = obj2;
24584 {
24585 PyThreadState* __tstate = wxPyBeginAllowThreads();
24586 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24587 wxPyEndAllowThreads(__tstate);
24588 if (PyErr_Occurred()) SWIG_fail;
24589 }
24590 resultobj = SWIG_Py_Void();
24591 return resultobj;
24592 fail:
24593 return NULL;
24594 }
24595
24596
24597 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24598 PyObject *resultobj = 0;
24599 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24600 int arg2 ;
24601 int result;
24602 void *argp1 = 0 ;
24603 int res1 = 0 ;
24604 int val2 ;
24605 int ecode2 = 0 ;
24606 PyObject * obj0 = 0 ;
24607 PyObject * obj1 = 0 ;
24608 char * kwnames[] = {
24609 (char *) "self",(char *) "id", NULL
24610 };
24611
24612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24614 if (!SWIG_IsOK(res1)) {
24615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24616 }
24617 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24618 ecode2 = SWIG_AsVal_int(obj1, &val2);
24619 if (!SWIG_IsOK(ecode2)) {
24620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24621 }
24622 arg2 = static_cast< int >(val2);
24623 {
24624 PyThreadState* __tstate = wxPyBeginAllowThreads();
24625 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24626 wxPyEndAllowThreads(__tstate);
24627 if (PyErr_Occurred()) SWIG_fail;
24628 }
24629 resultobj = SWIG_From_int(static_cast< int >(result));
24630 return resultobj;
24631 fail:
24632 return NULL;
24633 }
24634
24635
24636 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24637 PyObject *resultobj = 0;
24638 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24639 int arg2 ;
24640 bool result;
24641 void *argp1 = 0 ;
24642 int res1 = 0 ;
24643 int val2 ;
24644 int ecode2 = 0 ;
24645 PyObject * obj0 = 0 ;
24646 PyObject * obj1 = 0 ;
24647 char * kwnames[] = {
24648 (char *) "self",(char *) "id", NULL
24649 };
24650
24651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24653 if (!SWIG_IsOK(res1)) {
24654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24655 }
24656 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24657 ecode2 = SWIG_AsVal_int(obj1, &val2);
24658 if (!SWIG_IsOK(ecode2)) {
24659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24660 }
24661 arg2 = static_cast< int >(val2);
24662 {
24663 PyThreadState* __tstate = wxPyBeginAllowThreads();
24664 result = (bool)(arg1)->GetToolState(arg2);
24665 wxPyEndAllowThreads(__tstate);
24666 if (PyErr_Occurred()) SWIG_fail;
24667 }
24668 {
24669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24670 }
24671 return resultobj;
24672 fail:
24673 return NULL;
24674 }
24675
24676
24677 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24678 PyObject *resultobj = 0;
24679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24680 int arg2 ;
24681 bool result;
24682 void *argp1 = 0 ;
24683 int res1 = 0 ;
24684 int val2 ;
24685 int ecode2 = 0 ;
24686 PyObject * obj0 = 0 ;
24687 PyObject * obj1 = 0 ;
24688 char * kwnames[] = {
24689 (char *) "self",(char *) "id", NULL
24690 };
24691
24692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24694 if (!SWIG_IsOK(res1)) {
24695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24696 }
24697 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24698 ecode2 = SWIG_AsVal_int(obj1, &val2);
24699 if (!SWIG_IsOK(ecode2)) {
24700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24701 }
24702 arg2 = static_cast< int >(val2);
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 result = (bool)(arg1)->GetToolEnabled(arg2);
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 {
24710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24711 }
24712 return resultobj;
24713 fail:
24714 return NULL;
24715 }
24716
24717
24718 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24719 PyObject *resultobj = 0;
24720 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24721 int arg2 ;
24722 wxString *arg3 = 0 ;
24723 void *argp1 = 0 ;
24724 int res1 = 0 ;
24725 int val2 ;
24726 int ecode2 = 0 ;
24727 bool temp3 = false ;
24728 PyObject * obj0 = 0 ;
24729 PyObject * obj1 = 0 ;
24730 PyObject * obj2 = 0 ;
24731 char * kwnames[] = {
24732 (char *) "self",(char *) "id",(char *) "helpString", NULL
24733 };
24734
24735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24737 if (!SWIG_IsOK(res1)) {
24738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24739 }
24740 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24741 ecode2 = SWIG_AsVal_int(obj1, &val2);
24742 if (!SWIG_IsOK(ecode2)) {
24743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24744 }
24745 arg2 = static_cast< int >(val2);
24746 {
24747 arg3 = wxString_in_helper(obj2);
24748 if (arg3 == NULL) SWIG_fail;
24749 temp3 = true;
24750 }
24751 {
24752 PyThreadState* __tstate = wxPyBeginAllowThreads();
24753 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 resultobj = SWIG_Py_Void();
24758 {
24759 if (temp3)
24760 delete arg3;
24761 }
24762 return resultobj;
24763 fail:
24764 {
24765 if (temp3)
24766 delete arg3;
24767 }
24768 return NULL;
24769 }
24770
24771
24772 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj = 0;
24774 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24775 int arg2 ;
24776 wxString result;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 int val2 ;
24780 int ecode2 = 0 ;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 char * kwnames[] = {
24784 (char *) "self",(char *) "id", NULL
24785 };
24786
24787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24789 if (!SWIG_IsOK(res1)) {
24790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24791 }
24792 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24793 ecode2 = SWIG_AsVal_int(obj1, &val2);
24794 if (!SWIG_IsOK(ecode2)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24796 }
24797 arg2 = static_cast< int >(val2);
24798 {
24799 PyThreadState* __tstate = wxPyBeginAllowThreads();
24800 result = (arg1)->GetToolShortHelp(arg2);
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 {
24805 #if wxUSE_UNICODE
24806 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24807 #else
24808 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24809 #endif
24810 }
24811 return resultobj;
24812 fail:
24813 return NULL;
24814 }
24815
24816
24817 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24818 PyObject *resultobj = 0;
24819 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24820 int arg2 ;
24821 wxString *arg3 = 0 ;
24822 void *argp1 = 0 ;
24823 int res1 = 0 ;
24824 int val2 ;
24825 int ecode2 = 0 ;
24826 bool temp3 = false ;
24827 PyObject * obj0 = 0 ;
24828 PyObject * obj1 = 0 ;
24829 PyObject * obj2 = 0 ;
24830 char * kwnames[] = {
24831 (char *) "self",(char *) "id",(char *) "helpString", NULL
24832 };
24833
24834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24836 if (!SWIG_IsOK(res1)) {
24837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24838 }
24839 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24840 ecode2 = SWIG_AsVal_int(obj1, &val2);
24841 if (!SWIG_IsOK(ecode2)) {
24842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24843 }
24844 arg2 = static_cast< int >(val2);
24845 {
24846 arg3 = wxString_in_helper(obj2);
24847 if (arg3 == NULL) SWIG_fail;
24848 temp3 = true;
24849 }
24850 {
24851 PyThreadState* __tstate = wxPyBeginAllowThreads();
24852 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24853 wxPyEndAllowThreads(__tstate);
24854 if (PyErr_Occurred()) SWIG_fail;
24855 }
24856 resultobj = SWIG_Py_Void();
24857 {
24858 if (temp3)
24859 delete arg3;
24860 }
24861 return resultobj;
24862 fail:
24863 {
24864 if (temp3)
24865 delete arg3;
24866 }
24867 return NULL;
24868 }
24869
24870
24871 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24872 PyObject *resultobj = 0;
24873 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24874 int arg2 ;
24875 wxString result;
24876 void *argp1 = 0 ;
24877 int res1 = 0 ;
24878 int val2 ;
24879 int ecode2 = 0 ;
24880 PyObject * obj0 = 0 ;
24881 PyObject * obj1 = 0 ;
24882 char * kwnames[] = {
24883 (char *) "self",(char *) "id", NULL
24884 };
24885
24886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24888 if (!SWIG_IsOK(res1)) {
24889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24890 }
24891 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24892 ecode2 = SWIG_AsVal_int(obj1, &val2);
24893 if (!SWIG_IsOK(ecode2)) {
24894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24895 }
24896 arg2 = static_cast< int >(val2);
24897 {
24898 PyThreadState* __tstate = wxPyBeginAllowThreads();
24899 result = (arg1)->GetToolLongHelp(arg2);
24900 wxPyEndAllowThreads(__tstate);
24901 if (PyErr_Occurred()) SWIG_fail;
24902 }
24903 {
24904 #if wxUSE_UNICODE
24905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24906 #else
24907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24908 #endif
24909 }
24910 return resultobj;
24911 fail:
24912 return NULL;
24913 }
24914
24915
24916 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24917 PyObject *resultobj = 0;
24918 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24919 int arg2 ;
24920 int arg3 ;
24921 void *argp1 = 0 ;
24922 int res1 = 0 ;
24923 int val2 ;
24924 int ecode2 = 0 ;
24925 int val3 ;
24926 int ecode3 = 0 ;
24927 PyObject * obj0 = 0 ;
24928 PyObject * obj1 = 0 ;
24929 PyObject * obj2 = 0 ;
24930 char * kwnames[] = {
24931 (char *) "self",(char *) "x",(char *) "y", NULL
24932 };
24933
24934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24936 if (!SWIG_IsOK(res1)) {
24937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24938 }
24939 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24940 ecode2 = SWIG_AsVal_int(obj1, &val2);
24941 if (!SWIG_IsOK(ecode2)) {
24942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24943 }
24944 arg2 = static_cast< int >(val2);
24945 ecode3 = SWIG_AsVal_int(obj2, &val3);
24946 if (!SWIG_IsOK(ecode3)) {
24947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24948 }
24949 arg3 = static_cast< int >(val3);
24950 {
24951 PyThreadState* __tstate = wxPyBeginAllowThreads();
24952 (arg1)->SetMargins(arg2,arg3);
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 resultobj = SWIG_Py_Void();
24957 return resultobj;
24958 fail:
24959 return NULL;
24960 }
24961
24962
24963 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24964 PyObject *resultobj = 0;
24965 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24966 wxSize *arg2 = 0 ;
24967 void *argp1 = 0 ;
24968 int res1 = 0 ;
24969 wxSize temp2 ;
24970 PyObject * obj0 = 0 ;
24971 PyObject * obj1 = 0 ;
24972 char * kwnames[] = {
24973 (char *) "self",(char *) "size", NULL
24974 };
24975
24976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24978 if (!SWIG_IsOK(res1)) {
24979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24980 }
24981 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24982 {
24983 arg2 = &temp2;
24984 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24985 }
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 (arg1)->SetMargins((wxSize const &)*arg2);
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_Py_Void();
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj = 0;
25001 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25002 int arg2 ;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 int val2 ;
25006 int ecode2 = 0 ;
25007 PyObject * obj0 = 0 ;
25008 PyObject * obj1 = 0 ;
25009 char * kwnames[] = {
25010 (char *) "self",(char *) "packing", NULL
25011 };
25012
25013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25015 if (!SWIG_IsOK(res1)) {
25016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25017 }
25018 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25019 ecode2 = SWIG_AsVal_int(obj1, &val2);
25020 if (!SWIG_IsOK(ecode2)) {
25021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25022 }
25023 arg2 = static_cast< int >(val2);
25024 {
25025 PyThreadState* __tstate = wxPyBeginAllowThreads();
25026 (arg1)->SetToolPacking(arg2);
25027 wxPyEndAllowThreads(__tstate);
25028 if (PyErr_Occurred()) SWIG_fail;
25029 }
25030 resultobj = SWIG_Py_Void();
25031 return resultobj;
25032 fail:
25033 return NULL;
25034 }
25035
25036
25037 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj = 0;
25039 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25040 int arg2 ;
25041 void *argp1 = 0 ;
25042 int res1 = 0 ;
25043 int val2 ;
25044 int ecode2 = 0 ;
25045 PyObject * obj0 = 0 ;
25046 PyObject * obj1 = 0 ;
25047 char * kwnames[] = {
25048 (char *) "self",(char *) "separation", NULL
25049 };
25050
25051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25053 if (!SWIG_IsOK(res1)) {
25054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25055 }
25056 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25057 ecode2 = SWIG_AsVal_int(obj1, &val2);
25058 if (!SWIG_IsOK(ecode2)) {
25059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25060 }
25061 arg2 = static_cast< int >(val2);
25062 {
25063 PyThreadState* __tstate = wxPyBeginAllowThreads();
25064 (arg1)->SetToolSeparation(arg2);
25065 wxPyEndAllowThreads(__tstate);
25066 if (PyErr_Occurred()) SWIG_fail;
25067 }
25068 resultobj = SWIG_Py_Void();
25069 return resultobj;
25070 fail:
25071 return NULL;
25072 }
25073
25074
25075 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25076 PyObject *resultobj = 0;
25077 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25078 wxSize result;
25079 void *argp1 = 0 ;
25080 int res1 = 0 ;
25081 PyObject *swig_obj[1] ;
25082
25083 if (!args) SWIG_fail;
25084 swig_obj[0] = args;
25085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25086 if (!SWIG_IsOK(res1)) {
25087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25088 }
25089 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25090 {
25091 PyThreadState* __tstate = wxPyBeginAllowThreads();
25092 result = (arg1)->GetToolMargins();
25093 wxPyEndAllowThreads(__tstate);
25094 if (PyErr_Occurred()) SWIG_fail;
25095 }
25096 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25097 return resultobj;
25098 fail:
25099 return NULL;
25100 }
25101
25102
25103 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25104 PyObject *resultobj = 0;
25105 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25106 wxSize result;
25107 void *argp1 = 0 ;
25108 int res1 = 0 ;
25109 PyObject *swig_obj[1] ;
25110
25111 if (!args) SWIG_fail;
25112 swig_obj[0] = args;
25113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25114 if (!SWIG_IsOK(res1)) {
25115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25116 }
25117 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25118 {
25119 PyThreadState* __tstate = wxPyBeginAllowThreads();
25120 result = (arg1)->GetMargins();
25121 wxPyEndAllowThreads(__tstate);
25122 if (PyErr_Occurred()) SWIG_fail;
25123 }
25124 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25125 return resultobj;
25126 fail:
25127 return NULL;
25128 }
25129
25130
25131 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25132 PyObject *resultobj = 0;
25133 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25134 int result;
25135 void *argp1 = 0 ;
25136 int res1 = 0 ;
25137 PyObject *swig_obj[1] ;
25138
25139 if (!args) SWIG_fail;
25140 swig_obj[0] = args;
25141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25142 if (!SWIG_IsOK(res1)) {
25143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25144 }
25145 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25146 {
25147 PyThreadState* __tstate = wxPyBeginAllowThreads();
25148 result = (int)(arg1)->GetToolPacking();
25149 wxPyEndAllowThreads(__tstate);
25150 if (PyErr_Occurred()) SWIG_fail;
25151 }
25152 resultobj = SWIG_From_int(static_cast< int >(result));
25153 return resultobj;
25154 fail:
25155 return NULL;
25156 }
25157
25158
25159 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25160 PyObject *resultobj = 0;
25161 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25162 int result;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 PyObject *swig_obj[1] ;
25166
25167 if (!args) SWIG_fail;
25168 swig_obj[0] = args;
25169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25170 if (!SWIG_IsOK(res1)) {
25171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25172 }
25173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = (int)(arg1)->GetToolSeparation();
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_From_int(static_cast< int >(result));
25181 return resultobj;
25182 fail:
25183 return NULL;
25184 }
25185
25186
25187 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25188 PyObject *resultobj = 0;
25189 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25190 int arg2 ;
25191 void *argp1 = 0 ;
25192 int res1 = 0 ;
25193 int val2 ;
25194 int ecode2 = 0 ;
25195 PyObject * obj0 = 0 ;
25196 PyObject * obj1 = 0 ;
25197 char * kwnames[] = {
25198 (char *) "self",(char *) "nRows", NULL
25199 };
25200
25201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25203 if (!SWIG_IsOK(res1)) {
25204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25205 }
25206 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25207 ecode2 = SWIG_AsVal_int(obj1, &val2);
25208 if (!SWIG_IsOK(ecode2)) {
25209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25210 }
25211 arg2 = static_cast< int >(val2);
25212 {
25213 PyThreadState* __tstate = wxPyBeginAllowThreads();
25214 (arg1)->SetRows(arg2);
25215 wxPyEndAllowThreads(__tstate);
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_Py_Void();
25219 return resultobj;
25220 fail:
25221 return NULL;
25222 }
25223
25224
25225 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25226 PyObject *resultobj = 0;
25227 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25228 int arg2 ;
25229 int arg3 ;
25230 void *argp1 = 0 ;
25231 int res1 = 0 ;
25232 int val2 ;
25233 int ecode2 = 0 ;
25234 int val3 ;
25235 int ecode3 = 0 ;
25236 PyObject * obj0 = 0 ;
25237 PyObject * obj1 = 0 ;
25238 PyObject * obj2 = 0 ;
25239 char * kwnames[] = {
25240 (char *) "self",(char *) "rows",(char *) "cols", NULL
25241 };
25242
25243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25245 if (!SWIG_IsOK(res1)) {
25246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25247 }
25248 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25249 ecode2 = SWIG_AsVal_int(obj1, &val2);
25250 if (!SWIG_IsOK(ecode2)) {
25251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25252 }
25253 arg2 = static_cast< int >(val2);
25254 ecode3 = SWIG_AsVal_int(obj2, &val3);
25255 if (!SWIG_IsOK(ecode3)) {
25256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25257 }
25258 arg3 = static_cast< int >(val3);
25259 {
25260 PyThreadState* __tstate = wxPyBeginAllowThreads();
25261 (arg1)->SetMaxRowsCols(arg2,arg3);
25262 wxPyEndAllowThreads(__tstate);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_Py_Void();
25266 return resultobj;
25267 fail:
25268 return NULL;
25269 }
25270
25271
25272 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25273 PyObject *resultobj = 0;
25274 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25275 int result;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 PyObject *swig_obj[1] ;
25279
25280 if (!args) SWIG_fail;
25281 swig_obj[0] = args;
25282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25283 if (!SWIG_IsOK(res1)) {
25284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25285 }
25286 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25287 {
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 result = (int)(arg1)->GetMaxRows();
25290 wxPyEndAllowThreads(__tstate);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 resultobj = SWIG_From_int(static_cast< int >(result));
25294 return resultobj;
25295 fail:
25296 return NULL;
25297 }
25298
25299
25300 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25301 PyObject *resultobj = 0;
25302 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25303 int result;
25304 void *argp1 = 0 ;
25305 int res1 = 0 ;
25306 PyObject *swig_obj[1] ;
25307
25308 if (!args) SWIG_fail;
25309 swig_obj[0] = args;
25310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25311 if (!SWIG_IsOK(res1)) {
25312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25313 }
25314 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25315 {
25316 PyThreadState* __tstate = wxPyBeginAllowThreads();
25317 result = (int)(arg1)->GetMaxCols();
25318 wxPyEndAllowThreads(__tstate);
25319 if (PyErr_Occurred()) SWIG_fail;
25320 }
25321 resultobj = SWIG_From_int(static_cast< int >(result));
25322 return resultobj;
25323 fail:
25324 return NULL;
25325 }
25326
25327
25328 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25329 PyObject *resultobj = 0;
25330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25331 wxSize *arg2 = 0 ;
25332 void *argp1 = 0 ;
25333 int res1 = 0 ;
25334 wxSize temp2 ;
25335 PyObject * obj0 = 0 ;
25336 PyObject * obj1 = 0 ;
25337 char * kwnames[] = {
25338 (char *) "self",(char *) "size", NULL
25339 };
25340
25341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25343 if (!SWIG_IsOK(res1)) {
25344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25345 }
25346 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25347 {
25348 arg2 = &temp2;
25349 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25350 }
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25354 wxPyEndAllowThreads(__tstate);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 resultobj = SWIG_Py_Void();
25358 return resultobj;
25359 fail:
25360 return NULL;
25361 }
25362
25363
25364 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25365 PyObject *resultobj = 0;
25366 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25367 wxSize result;
25368 void *argp1 = 0 ;
25369 int res1 = 0 ;
25370 PyObject *swig_obj[1] ;
25371
25372 if (!args) SWIG_fail;
25373 swig_obj[0] = args;
25374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25375 if (!SWIG_IsOK(res1)) {
25376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25377 }
25378 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25379 {
25380 PyThreadState* __tstate = wxPyBeginAllowThreads();
25381 result = (arg1)->GetToolBitmapSize();
25382 wxPyEndAllowThreads(__tstate);
25383 if (PyErr_Occurred()) SWIG_fail;
25384 }
25385 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25386 return resultobj;
25387 fail:
25388 return NULL;
25389 }
25390
25391
25392 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25393 PyObject *resultobj = 0;
25394 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25395 wxSize result;
25396 void *argp1 = 0 ;
25397 int res1 = 0 ;
25398 PyObject *swig_obj[1] ;
25399
25400 if (!args) SWIG_fail;
25401 swig_obj[0] = args;
25402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25403 if (!SWIG_IsOK(res1)) {
25404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25405 }
25406 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25407 {
25408 PyThreadState* __tstate = wxPyBeginAllowThreads();
25409 result = (arg1)->GetToolSize();
25410 wxPyEndAllowThreads(__tstate);
25411 if (PyErr_Occurred()) SWIG_fail;
25412 }
25413 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25414 return resultobj;
25415 fail:
25416 return NULL;
25417 }
25418
25419
25420 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25421 PyObject *resultobj = 0;
25422 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25423 int arg2 ;
25424 int arg3 ;
25425 wxToolBarToolBase *result = 0 ;
25426 void *argp1 = 0 ;
25427 int res1 = 0 ;
25428 int val2 ;
25429 int ecode2 = 0 ;
25430 int val3 ;
25431 int ecode3 = 0 ;
25432 PyObject * obj0 = 0 ;
25433 PyObject * obj1 = 0 ;
25434 PyObject * obj2 = 0 ;
25435 char * kwnames[] = {
25436 (char *) "self",(char *) "x",(char *) "y", NULL
25437 };
25438
25439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25441 if (!SWIG_IsOK(res1)) {
25442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25443 }
25444 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25445 ecode2 = SWIG_AsVal_int(obj1, &val2);
25446 if (!SWIG_IsOK(ecode2)) {
25447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25448 }
25449 arg2 = static_cast< int >(val2);
25450 ecode3 = SWIG_AsVal_int(obj2, &val3);
25451 if (!SWIG_IsOK(ecode3)) {
25452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25453 }
25454 arg3 = static_cast< int >(val3);
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 {
25462 resultobj = wxPyMake_wxObject(result, (bool)0);
25463 }
25464 return resultobj;
25465 fail:
25466 return NULL;
25467 }
25468
25469
25470 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25471 PyObject *resultobj = 0;
25472 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25473 int arg2 ;
25474 wxToolBarToolBase *result = 0 ;
25475 void *argp1 = 0 ;
25476 int res1 = 0 ;
25477 int val2 ;
25478 int ecode2 = 0 ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 char * kwnames[] = {
25482 (char *) "self",(char *) "toolid", NULL
25483 };
25484
25485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25487 if (!SWIG_IsOK(res1)) {
25488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25489 }
25490 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25491 ecode2 = SWIG_AsVal_int(obj1, &val2);
25492 if (!SWIG_IsOK(ecode2)) {
25493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25494 }
25495 arg2 = static_cast< int >(val2);
25496 {
25497 PyThreadState* __tstate = wxPyBeginAllowThreads();
25498 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25499 wxPyEndAllowThreads(__tstate);
25500 if (PyErr_Occurred()) SWIG_fail;
25501 }
25502 {
25503 resultobj = wxPyMake_wxObject(result, (bool)0);
25504 }
25505 return resultobj;
25506 fail:
25507 return NULL;
25508 }
25509
25510
25511 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25512 PyObject *resultobj = 0;
25513 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25514 bool result;
25515 void *argp1 = 0 ;
25516 int res1 = 0 ;
25517 PyObject *swig_obj[1] ;
25518
25519 if (!args) SWIG_fail;
25520 swig_obj[0] = args;
25521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25522 if (!SWIG_IsOK(res1)) {
25523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25524 }
25525 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25526 {
25527 PyThreadState* __tstate = wxPyBeginAllowThreads();
25528 result = (bool)(arg1)->IsVertical();
25529 wxPyEndAllowThreads(__tstate);
25530 if (PyErr_Occurred()) SWIG_fail;
25531 }
25532 {
25533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25534 }
25535 return resultobj;
25536 fail:
25537 return NULL;
25538 }
25539
25540
25541 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 PyObject *resultobj = 0;
25543 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25544 size_t result;
25545 void *argp1 = 0 ;
25546 int res1 = 0 ;
25547 PyObject *swig_obj[1] ;
25548
25549 if (!args) SWIG_fail;
25550 swig_obj[0] = args;
25551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25552 if (!SWIG_IsOK(res1)) {
25553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25554 }
25555 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25556 {
25557 PyThreadState* __tstate = wxPyBeginAllowThreads();
25558 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25559 wxPyEndAllowThreads(__tstate);
25560 if (PyErr_Occurred()) SWIG_fail;
25561 }
25562 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25563 return resultobj;
25564 fail:
25565 return NULL;
25566 }
25567
25568
25569 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25570 PyObject *obj;
25571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25572 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25573 return SWIG_Py_Void();
25574 }
25575
25576 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25577 PyObject *resultobj = 0;
25578 wxWindow *arg1 = (wxWindow *) 0 ;
25579 int arg2 = (int) -1 ;
25580 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25581 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25582 wxSize const &arg4_defvalue = wxDefaultSize ;
25583 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25584 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25585 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25586 wxString *arg6 = (wxString *) &arg6_defvalue ;
25587 wxToolBar *result = 0 ;
25588 void *argp1 = 0 ;
25589 int res1 = 0 ;
25590 int val2 ;
25591 int ecode2 = 0 ;
25592 wxPoint temp3 ;
25593 wxSize temp4 ;
25594 long val5 ;
25595 int ecode5 = 0 ;
25596 bool temp6 = false ;
25597 PyObject * obj0 = 0 ;
25598 PyObject * obj1 = 0 ;
25599 PyObject * obj2 = 0 ;
25600 PyObject * obj3 = 0 ;
25601 PyObject * obj4 = 0 ;
25602 PyObject * obj5 = 0 ;
25603 char * kwnames[] = {
25604 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25605 };
25606
25607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25609 if (!SWIG_IsOK(res1)) {
25610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25611 }
25612 arg1 = reinterpret_cast< wxWindow * >(argp1);
25613 if (obj1) {
25614 ecode2 = SWIG_AsVal_int(obj1, &val2);
25615 if (!SWIG_IsOK(ecode2)) {
25616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25617 }
25618 arg2 = static_cast< int >(val2);
25619 }
25620 if (obj2) {
25621 {
25622 arg3 = &temp3;
25623 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25624 }
25625 }
25626 if (obj3) {
25627 {
25628 arg4 = &temp4;
25629 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25630 }
25631 }
25632 if (obj4) {
25633 ecode5 = SWIG_AsVal_long(obj4, &val5);
25634 if (!SWIG_IsOK(ecode5)) {
25635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25636 }
25637 arg5 = static_cast< long >(val5);
25638 }
25639 if (obj5) {
25640 {
25641 arg6 = wxString_in_helper(obj5);
25642 if (arg6 == NULL) SWIG_fail;
25643 temp6 = true;
25644 }
25645 }
25646 {
25647 if (!wxPyCheckForApp()) SWIG_fail;
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25650 wxPyEndAllowThreads(__tstate);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
25653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25654 {
25655 if (temp6)
25656 delete arg6;
25657 }
25658 return resultobj;
25659 fail:
25660 {
25661 if (temp6)
25662 delete arg6;
25663 }
25664 return NULL;
25665 }
25666
25667
25668 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25669 PyObject *resultobj = 0;
25670 wxToolBar *result = 0 ;
25671
25672 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25673 {
25674 if (!wxPyCheckForApp()) SWIG_fail;
25675 PyThreadState* __tstate = wxPyBeginAllowThreads();
25676 result = (wxToolBar *)new wxToolBar();
25677 wxPyEndAllowThreads(__tstate);
25678 if (PyErr_Occurred()) SWIG_fail;
25679 }
25680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25681 return resultobj;
25682 fail:
25683 return NULL;
25684 }
25685
25686
25687 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25688 PyObject *resultobj = 0;
25689 wxToolBar *arg1 = (wxToolBar *) 0 ;
25690 wxWindow *arg2 = (wxWindow *) 0 ;
25691 int arg3 = (int) -1 ;
25692 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25693 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25694 wxSize const &arg5_defvalue = wxDefaultSize ;
25695 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25696 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25697 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25698 wxString *arg7 = (wxString *) &arg7_defvalue ;
25699 bool result;
25700 void *argp1 = 0 ;
25701 int res1 = 0 ;
25702 void *argp2 = 0 ;
25703 int res2 = 0 ;
25704 int val3 ;
25705 int ecode3 = 0 ;
25706 wxPoint temp4 ;
25707 wxSize temp5 ;
25708 long val6 ;
25709 int ecode6 = 0 ;
25710 bool temp7 = false ;
25711 PyObject * obj0 = 0 ;
25712 PyObject * obj1 = 0 ;
25713 PyObject * obj2 = 0 ;
25714 PyObject * obj3 = 0 ;
25715 PyObject * obj4 = 0 ;
25716 PyObject * obj5 = 0 ;
25717 PyObject * obj6 = 0 ;
25718 char * kwnames[] = {
25719 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25720 };
25721
25722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25724 if (!SWIG_IsOK(res1)) {
25725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25726 }
25727 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25729 if (!SWIG_IsOK(res2)) {
25730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25731 }
25732 arg2 = reinterpret_cast< wxWindow * >(argp2);
25733 if (obj2) {
25734 ecode3 = SWIG_AsVal_int(obj2, &val3);
25735 if (!SWIG_IsOK(ecode3)) {
25736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25737 }
25738 arg3 = static_cast< int >(val3);
25739 }
25740 if (obj3) {
25741 {
25742 arg4 = &temp4;
25743 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25744 }
25745 }
25746 if (obj4) {
25747 {
25748 arg5 = &temp5;
25749 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25750 }
25751 }
25752 if (obj5) {
25753 ecode6 = SWIG_AsVal_long(obj5, &val6);
25754 if (!SWIG_IsOK(ecode6)) {
25755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25756 }
25757 arg6 = static_cast< long >(val6);
25758 }
25759 if (obj6) {
25760 {
25761 arg7 = wxString_in_helper(obj6);
25762 if (arg7 == NULL) SWIG_fail;
25763 temp7 = true;
25764 }
25765 }
25766 {
25767 PyThreadState* __tstate = wxPyBeginAllowThreads();
25768 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25769 wxPyEndAllowThreads(__tstate);
25770 if (PyErr_Occurred()) SWIG_fail;
25771 }
25772 {
25773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25774 }
25775 {
25776 if (temp7)
25777 delete arg7;
25778 }
25779 return resultobj;
25780 fail:
25781 {
25782 if (temp7)
25783 delete arg7;
25784 }
25785 return NULL;
25786 }
25787
25788
25789 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25790 PyObject *resultobj = 0;
25791 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25792 SwigValueWrapper<wxVisualAttributes > result;
25793 int val1 ;
25794 int ecode1 = 0 ;
25795 PyObject * obj0 = 0 ;
25796 char * kwnames[] = {
25797 (char *) "variant", NULL
25798 };
25799
25800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25801 if (obj0) {
25802 ecode1 = SWIG_AsVal_int(obj0, &val1);
25803 if (!SWIG_IsOK(ecode1)) {
25804 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25805 }
25806 arg1 = static_cast< wxWindowVariant >(val1);
25807 }
25808 {
25809 if (!wxPyCheckForApp()) SWIG_fail;
25810 PyThreadState* __tstate = wxPyBeginAllowThreads();
25811 result = wxToolBar::GetClassDefaultAttributes(arg1);
25812 wxPyEndAllowThreads(__tstate);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25816 return resultobj;
25817 fail:
25818 return NULL;
25819 }
25820
25821
25822 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25823 PyObject *obj;
25824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25825 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25826 return SWIG_Py_Void();
25827 }
25828
25829 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25830 return SWIG_Python_InitShadowInstance(args);
25831 }
25832
25833 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25834 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25835 return 1;
25836 }
25837
25838
25839 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25840 PyObject *pyobj = 0;
25841
25842 {
25843 #if wxUSE_UNICODE
25844 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25845 #else
25846 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25847 #endif
25848 }
25849 return pyobj;
25850 }
25851
25852
25853 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25854 PyObject *resultobj = 0;
25855 wxColour const &arg1_defvalue = wxNullColour ;
25856 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25857 wxColour const &arg2_defvalue = wxNullColour ;
25858 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25859 wxFont const &arg3_defvalue = wxNullFont ;
25860 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25861 wxListItemAttr *result = 0 ;
25862 wxColour temp1 ;
25863 wxColour temp2 ;
25864 void *argp3 = 0 ;
25865 int res3 = 0 ;
25866 PyObject * obj0 = 0 ;
25867 PyObject * obj1 = 0 ;
25868 PyObject * obj2 = 0 ;
25869 char * kwnames[] = {
25870 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25871 };
25872
25873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25874 if (obj0) {
25875 {
25876 arg1 = &temp1;
25877 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25878 }
25879 }
25880 if (obj1) {
25881 {
25882 arg2 = &temp2;
25883 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25884 }
25885 }
25886 if (obj2) {
25887 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25888 if (!SWIG_IsOK(res3)) {
25889 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25890 }
25891 if (!argp3) {
25892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25893 }
25894 arg3 = reinterpret_cast< wxFont * >(argp3);
25895 }
25896 {
25897 PyThreadState* __tstate = wxPyBeginAllowThreads();
25898 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25899 wxPyEndAllowThreads(__tstate);
25900 if (PyErr_Occurred()) SWIG_fail;
25901 }
25902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25903 return resultobj;
25904 fail:
25905 return NULL;
25906 }
25907
25908
25909 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25910 PyObject *resultobj = 0;
25911 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25912 void *argp1 = 0 ;
25913 int res1 = 0 ;
25914 PyObject *swig_obj[1] ;
25915
25916 if (!args) SWIG_fail;
25917 swig_obj[0] = args;
25918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25919 if (!SWIG_IsOK(res1)) {
25920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25921 }
25922 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25923 {
25924 PyThreadState* __tstate = wxPyBeginAllowThreads();
25925 delete arg1;
25926
25927 wxPyEndAllowThreads(__tstate);
25928 if (PyErr_Occurred()) SWIG_fail;
25929 }
25930 resultobj = SWIG_Py_Void();
25931 return resultobj;
25932 fail:
25933 return NULL;
25934 }
25935
25936
25937 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25938 PyObject *resultobj = 0;
25939 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25940 wxColour *arg2 = 0 ;
25941 void *argp1 = 0 ;
25942 int res1 = 0 ;
25943 wxColour temp2 ;
25944 PyObject * obj0 = 0 ;
25945 PyObject * obj1 = 0 ;
25946 char * kwnames[] = {
25947 (char *) "self",(char *) "colText", NULL
25948 };
25949
25950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25952 if (!SWIG_IsOK(res1)) {
25953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25954 }
25955 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25956 {
25957 arg2 = &temp2;
25958 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25959 }
25960 {
25961 PyThreadState* __tstate = wxPyBeginAllowThreads();
25962 (arg1)->SetTextColour((wxColour const &)*arg2);
25963 wxPyEndAllowThreads(__tstate);
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 resultobj = SWIG_Py_Void();
25967 return resultobj;
25968 fail:
25969 return NULL;
25970 }
25971
25972
25973 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25974 PyObject *resultobj = 0;
25975 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25976 wxColour *arg2 = 0 ;
25977 void *argp1 = 0 ;
25978 int res1 = 0 ;
25979 wxColour temp2 ;
25980 PyObject * obj0 = 0 ;
25981 PyObject * obj1 = 0 ;
25982 char * kwnames[] = {
25983 (char *) "self",(char *) "colBack", NULL
25984 };
25985
25986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25988 if (!SWIG_IsOK(res1)) {
25989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25990 }
25991 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25992 {
25993 arg2 = &temp2;
25994 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25995 }
25996 {
25997 PyThreadState* __tstate = wxPyBeginAllowThreads();
25998 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25999 wxPyEndAllowThreads(__tstate);
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 resultobj = SWIG_Py_Void();
26003 return resultobj;
26004 fail:
26005 return NULL;
26006 }
26007
26008
26009 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26010 PyObject *resultobj = 0;
26011 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26012 wxFont *arg2 = 0 ;
26013 void *argp1 = 0 ;
26014 int res1 = 0 ;
26015 void *argp2 = 0 ;
26016 int res2 = 0 ;
26017 PyObject * obj0 = 0 ;
26018 PyObject * obj1 = 0 ;
26019 char * kwnames[] = {
26020 (char *) "self",(char *) "font", NULL
26021 };
26022
26023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26025 if (!SWIG_IsOK(res1)) {
26026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26027 }
26028 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26030 if (!SWIG_IsOK(res2)) {
26031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26032 }
26033 if (!argp2) {
26034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26035 }
26036 arg2 = reinterpret_cast< wxFont * >(argp2);
26037 {
26038 PyThreadState* __tstate = wxPyBeginAllowThreads();
26039 (arg1)->SetFont((wxFont const &)*arg2);
26040 wxPyEndAllowThreads(__tstate);
26041 if (PyErr_Occurred()) SWIG_fail;
26042 }
26043 resultobj = SWIG_Py_Void();
26044 return resultobj;
26045 fail:
26046 return NULL;
26047 }
26048
26049
26050 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26051 PyObject *resultobj = 0;
26052 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26053 bool result;
26054 void *argp1 = 0 ;
26055 int res1 = 0 ;
26056 PyObject *swig_obj[1] ;
26057
26058 if (!args) SWIG_fail;
26059 swig_obj[0] = args;
26060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26061 if (!SWIG_IsOK(res1)) {
26062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26063 }
26064 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 result = (bool)(arg1)->HasTextColour();
26068 wxPyEndAllowThreads(__tstate);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 }
26071 {
26072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26073 }
26074 return resultobj;
26075 fail:
26076 return NULL;
26077 }
26078
26079
26080 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26081 PyObject *resultobj = 0;
26082 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26083 bool result;
26084 void *argp1 = 0 ;
26085 int res1 = 0 ;
26086 PyObject *swig_obj[1] ;
26087
26088 if (!args) SWIG_fail;
26089 swig_obj[0] = args;
26090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26091 if (!SWIG_IsOK(res1)) {
26092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26093 }
26094 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26095 {
26096 PyThreadState* __tstate = wxPyBeginAllowThreads();
26097 result = (bool)(arg1)->HasBackgroundColour();
26098 wxPyEndAllowThreads(__tstate);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 {
26102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26103 }
26104 return resultobj;
26105 fail:
26106 return NULL;
26107 }
26108
26109
26110 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26111 PyObject *resultobj = 0;
26112 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26113 bool result;
26114 void *argp1 = 0 ;
26115 int res1 = 0 ;
26116 PyObject *swig_obj[1] ;
26117
26118 if (!args) SWIG_fail;
26119 swig_obj[0] = args;
26120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26121 if (!SWIG_IsOK(res1)) {
26122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26123 }
26124 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26125 {
26126 PyThreadState* __tstate = wxPyBeginAllowThreads();
26127 result = (bool)(arg1)->HasFont();
26128 wxPyEndAllowThreads(__tstate);
26129 if (PyErr_Occurred()) SWIG_fail;
26130 }
26131 {
26132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26133 }
26134 return resultobj;
26135 fail:
26136 return NULL;
26137 }
26138
26139
26140 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26141 PyObject *resultobj = 0;
26142 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26143 wxColour result;
26144 void *argp1 = 0 ;
26145 int res1 = 0 ;
26146 PyObject *swig_obj[1] ;
26147
26148 if (!args) SWIG_fail;
26149 swig_obj[0] = args;
26150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26151 if (!SWIG_IsOK(res1)) {
26152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26153 }
26154 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26155 {
26156 PyThreadState* __tstate = wxPyBeginAllowThreads();
26157 result = (arg1)->GetTextColour();
26158 wxPyEndAllowThreads(__tstate);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26162 return resultobj;
26163 fail:
26164 return NULL;
26165 }
26166
26167
26168 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26169 PyObject *resultobj = 0;
26170 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26171 wxColour result;
26172 void *argp1 = 0 ;
26173 int res1 = 0 ;
26174 PyObject *swig_obj[1] ;
26175
26176 if (!args) SWIG_fail;
26177 swig_obj[0] = args;
26178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26179 if (!SWIG_IsOK(res1)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26181 }
26182 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26183 {
26184 PyThreadState* __tstate = wxPyBeginAllowThreads();
26185 result = (arg1)->GetBackgroundColour();
26186 wxPyEndAllowThreads(__tstate);
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26190 return resultobj;
26191 fail:
26192 return NULL;
26193 }
26194
26195
26196 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26197 PyObject *resultobj = 0;
26198 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26199 wxFont result;
26200 void *argp1 = 0 ;
26201 int res1 = 0 ;
26202 PyObject *swig_obj[1] ;
26203
26204 if (!args) SWIG_fail;
26205 swig_obj[0] = args;
26206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26207 if (!SWIG_IsOK(res1)) {
26208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26209 }
26210 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26211 {
26212 PyThreadState* __tstate = wxPyBeginAllowThreads();
26213 result = (arg1)->GetFont();
26214 wxPyEndAllowThreads(__tstate);
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
26217 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26218 return resultobj;
26219 fail:
26220 return NULL;
26221 }
26222
26223
26224 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26225 PyObject *resultobj = 0;
26226 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26227 wxListItemAttr *arg2 = 0 ;
26228 void *argp1 = 0 ;
26229 int res1 = 0 ;
26230 void *argp2 = 0 ;
26231 int res2 = 0 ;
26232 PyObject * obj0 = 0 ;
26233 PyObject * obj1 = 0 ;
26234 char * kwnames[] = {
26235 (char *) "self",(char *) "source", NULL
26236 };
26237
26238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26242 }
26243 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26244 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26245 if (!SWIG_IsOK(res2)) {
26246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26247 }
26248 if (!argp2) {
26249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26250 }
26251 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26252 {
26253 PyThreadState* __tstate = wxPyBeginAllowThreads();
26254 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26255 wxPyEndAllowThreads(__tstate);
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 resultobj = SWIG_Py_Void();
26259 return resultobj;
26260 fail:
26261 return NULL;
26262 }
26263
26264
26265 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26266 PyObject *resultobj = 0;
26267 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26268 void *argp1 = 0 ;
26269 int res1 = 0 ;
26270 PyObject *swig_obj[1] ;
26271
26272 if (!args) SWIG_fail;
26273 swig_obj[0] = args;
26274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26275 if (!SWIG_IsOK(res1)) {
26276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26277 }
26278 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26279 {
26280 PyThreadState* __tstate = wxPyBeginAllowThreads();
26281 wxListItemAttr_Destroy(arg1);
26282 wxPyEndAllowThreads(__tstate);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 resultobj = SWIG_Py_Void();
26286 return resultobj;
26287 fail:
26288 return NULL;
26289 }
26290
26291
26292 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26293 PyObject *obj;
26294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26295 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26296 return SWIG_Py_Void();
26297 }
26298
26299 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26300 return SWIG_Python_InitShadowInstance(args);
26301 }
26302
26303 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26304 PyObject *resultobj = 0;
26305 wxListItem *result = 0 ;
26306
26307 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26308 {
26309 PyThreadState* __tstate = wxPyBeginAllowThreads();
26310 result = (wxListItem *)new wxListItem();
26311 wxPyEndAllowThreads(__tstate);
26312 if (PyErr_Occurred()) SWIG_fail;
26313 }
26314 {
26315 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26316 }
26317 return resultobj;
26318 fail:
26319 return NULL;
26320 }
26321
26322
26323 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26324 PyObject *resultobj = 0;
26325 wxListItem *arg1 = (wxListItem *) 0 ;
26326 void *argp1 = 0 ;
26327 int res1 = 0 ;
26328 PyObject *swig_obj[1] ;
26329
26330 if (!args) SWIG_fail;
26331 swig_obj[0] = args;
26332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26333 if (!SWIG_IsOK(res1)) {
26334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26335 }
26336 arg1 = reinterpret_cast< wxListItem * >(argp1);
26337 {
26338 PyThreadState* __tstate = wxPyBeginAllowThreads();
26339 delete arg1;
26340
26341 wxPyEndAllowThreads(__tstate);
26342 if (PyErr_Occurred()) SWIG_fail;
26343 }
26344 resultobj = SWIG_Py_Void();
26345 return resultobj;
26346 fail:
26347 return NULL;
26348 }
26349
26350
26351 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26352 PyObject *resultobj = 0;
26353 wxListItem *arg1 = (wxListItem *) 0 ;
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
26356 PyObject *swig_obj[1] ;
26357
26358 if (!args) SWIG_fail;
26359 swig_obj[0] = args;
26360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26361 if (!SWIG_IsOK(res1)) {
26362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26363 }
26364 arg1 = reinterpret_cast< wxListItem * >(argp1);
26365 {
26366 PyThreadState* __tstate = wxPyBeginAllowThreads();
26367 (arg1)->Clear();
26368 wxPyEndAllowThreads(__tstate);
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
26371 resultobj = SWIG_Py_Void();
26372 return resultobj;
26373 fail:
26374 return NULL;
26375 }
26376
26377
26378 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26379 PyObject *resultobj = 0;
26380 wxListItem *arg1 = (wxListItem *) 0 ;
26381 void *argp1 = 0 ;
26382 int res1 = 0 ;
26383 PyObject *swig_obj[1] ;
26384
26385 if (!args) SWIG_fail;
26386 swig_obj[0] = args;
26387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26388 if (!SWIG_IsOK(res1)) {
26389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26390 }
26391 arg1 = reinterpret_cast< wxListItem * >(argp1);
26392 {
26393 PyThreadState* __tstate = wxPyBeginAllowThreads();
26394 (arg1)->ClearAttributes();
26395 wxPyEndAllowThreads(__tstate);
26396 if (PyErr_Occurred()) SWIG_fail;
26397 }
26398 resultobj = SWIG_Py_Void();
26399 return resultobj;
26400 fail:
26401 return NULL;
26402 }
26403
26404
26405 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26406 PyObject *resultobj = 0;
26407 wxListItem *arg1 = (wxListItem *) 0 ;
26408 long arg2 ;
26409 void *argp1 = 0 ;
26410 int res1 = 0 ;
26411 long val2 ;
26412 int ecode2 = 0 ;
26413 PyObject * obj0 = 0 ;
26414 PyObject * obj1 = 0 ;
26415 char * kwnames[] = {
26416 (char *) "self",(char *) "mask", NULL
26417 };
26418
26419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26421 if (!SWIG_IsOK(res1)) {
26422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26423 }
26424 arg1 = reinterpret_cast< wxListItem * >(argp1);
26425 ecode2 = SWIG_AsVal_long(obj1, &val2);
26426 if (!SWIG_IsOK(ecode2)) {
26427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26428 }
26429 arg2 = static_cast< long >(val2);
26430 {
26431 PyThreadState* __tstate = wxPyBeginAllowThreads();
26432 (arg1)->SetMask(arg2);
26433 wxPyEndAllowThreads(__tstate);
26434 if (PyErr_Occurred()) SWIG_fail;
26435 }
26436 resultobj = SWIG_Py_Void();
26437 return resultobj;
26438 fail:
26439 return NULL;
26440 }
26441
26442
26443 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26444 PyObject *resultobj = 0;
26445 wxListItem *arg1 = (wxListItem *) 0 ;
26446 long arg2 ;
26447 void *argp1 = 0 ;
26448 int res1 = 0 ;
26449 long val2 ;
26450 int ecode2 = 0 ;
26451 PyObject * obj0 = 0 ;
26452 PyObject * obj1 = 0 ;
26453 char * kwnames[] = {
26454 (char *) "self",(char *) "id", NULL
26455 };
26456
26457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26459 if (!SWIG_IsOK(res1)) {
26460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26461 }
26462 arg1 = reinterpret_cast< wxListItem * >(argp1);
26463 ecode2 = SWIG_AsVal_long(obj1, &val2);
26464 if (!SWIG_IsOK(ecode2)) {
26465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26466 }
26467 arg2 = static_cast< long >(val2);
26468 {
26469 PyThreadState* __tstate = wxPyBeginAllowThreads();
26470 (arg1)->SetId(arg2);
26471 wxPyEndAllowThreads(__tstate);
26472 if (PyErr_Occurred()) SWIG_fail;
26473 }
26474 resultobj = SWIG_Py_Void();
26475 return resultobj;
26476 fail:
26477 return NULL;
26478 }
26479
26480
26481 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26482 PyObject *resultobj = 0;
26483 wxListItem *arg1 = (wxListItem *) 0 ;
26484 int arg2 ;
26485 void *argp1 = 0 ;
26486 int res1 = 0 ;
26487 int val2 ;
26488 int ecode2 = 0 ;
26489 PyObject * obj0 = 0 ;
26490 PyObject * obj1 = 0 ;
26491 char * kwnames[] = {
26492 (char *) "self",(char *) "col", NULL
26493 };
26494
26495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26497 if (!SWIG_IsOK(res1)) {
26498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26499 }
26500 arg1 = reinterpret_cast< wxListItem * >(argp1);
26501 ecode2 = SWIG_AsVal_int(obj1, &val2);
26502 if (!SWIG_IsOK(ecode2)) {
26503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26504 }
26505 arg2 = static_cast< int >(val2);
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 (arg1)->SetColumn(arg2);
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_Py_Void();
26513 return resultobj;
26514 fail:
26515 return NULL;
26516 }
26517
26518
26519 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj = 0;
26521 wxListItem *arg1 = (wxListItem *) 0 ;
26522 long arg2 ;
26523 void *argp1 = 0 ;
26524 int res1 = 0 ;
26525 long val2 ;
26526 int ecode2 = 0 ;
26527 PyObject * obj0 = 0 ;
26528 PyObject * obj1 = 0 ;
26529 char * kwnames[] = {
26530 (char *) "self",(char *) "state", NULL
26531 };
26532
26533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26535 if (!SWIG_IsOK(res1)) {
26536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26537 }
26538 arg1 = reinterpret_cast< wxListItem * >(argp1);
26539 ecode2 = SWIG_AsVal_long(obj1, &val2);
26540 if (!SWIG_IsOK(ecode2)) {
26541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26542 }
26543 arg2 = static_cast< long >(val2);
26544 {
26545 PyThreadState* __tstate = wxPyBeginAllowThreads();
26546 (arg1)->SetState(arg2);
26547 wxPyEndAllowThreads(__tstate);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 }
26550 resultobj = SWIG_Py_Void();
26551 return resultobj;
26552 fail:
26553 return NULL;
26554 }
26555
26556
26557 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26558 PyObject *resultobj = 0;
26559 wxListItem *arg1 = (wxListItem *) 0 ;
26560 long arg2 ;
26561 void *argp1 = 0 ;
26562 int res1 = 0 ;
26563 long val2 ;
26564 int ecode2 = 0 ;
26565 PyObject * obj0 = 0 ;
26566 PyObject * obj1 = 0 ;
26567 char * kwnames[] = {
26568 (char *) "self",(char *) "stateMask", NULL
26569 };
26570
26571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26573 if (!SWIG_IsOK(res1)) {
26574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26575 }
26576 arg1 = reinterpret_cast< wxListItem * >(argp1);
26577 ecode2 = SWIG_AsVal_long(obj1, &val2);
26578 if (!SWIG_IsOK(ecode2)) {
26579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26580 }
26581 arg2 = static_cast< long >(val2);
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 (arg1)->SetStateMask(arg2);
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_Py_Void();
26589 return resultobj;
26590 fail:
26591 return NULL;
26592 }
26593
26594
26595 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj = 0;
26597 wxListItem *arg1 = (wxListItem *) 0 ;
26598 wxString *arg2 = 0 ;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 bool temp2 = false ;
26602 PyObject * obj0 = 0 ;
26603 PyObject * obj1 = 0 ;
26604 char * kwnames[] = {
26605 (char *) "self",(char *) "text", NULL
26606 };
26607
26608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26610 if (!SWIG_IsOK(res1)) {
26611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26612 }
26613 arg1 = reinterpret_cast< wxListItem * >(argp1);
26614 {
26615 arg2 = wxString_in_helper(obj1);
26616 if (arg2 == NULL) SWIG_fail;
26617 temp2 = true;
26618 }
26619 {
26620 PyThreadState* __tstate = wxPyBeginAllowThreads();
26621 (arg1)->SetText((wxString const &)*arg2);
26622 wxPyEndAllowThreads(__tstate);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 resultobj = SWIG_Py_Void();
26626 {
26627 if (temp2)
26628 delete arg2;
26629 }
26630 return resultobj;
26631 fail:
26632 {
26633 if (temp2)
26634 delete arg2;
26635 }
26636 return NULL;
26637 }
26638
26639
26640 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26641 PyObject *resultobj = 0;
26642 wxListItem *arg1 = (wxListItem *) 0 ;
26643 int arg2 ;
26644 void *argp1 = 0 ;
26645 int res1 = 0 ;
26646 int val2 ;
26647 int ecode2 = 0 ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char * kwnames[] = {
26651 (char *) "self",(char *) "image", NULL
26652 };
26653
26654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26656 if (!SWIG_IsOK(res1)) {
26657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26658 }
26659 arg1 = reinterpret_cast< wxListItem * >(argp1);
26660 ecode2 = SWIG_AsVal_int(obj1, &val2);
26661 if (!SWIG_IsOK(ecode2)) {
26662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26663 }
26664 arg2 = static_cast< int >(val2);
26665 {
26666 PyThreadState* __tstate = wxPyBeginAllowThreads();
26667 (arg1)->SetImage(arg2);
26668 wxPyEndAllowThreads(__tstate);
26669 if (PyErr_Occurred()) SWIG_fail;
26670 }
26671 resultobj = SWIG_Py_Void();
26672 return resultobj;
26673 fail:
26674 return NULL;
26675 }
26676
26677
26678 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26679 PyObject *resultobj = 0;
26680 wxListItem *arg1 = (wxListItem *) 0 ;
26681 long arg2 ;
26682 void *argp1 = 0 ;
26683 int res1 = 0 ;
26684 long val2 ;
26685 int ecode2 = 0 ;
26686 PyObject * obj0 = 0 ;
26687 PyObject * obj1 = 0 ;
26688 char * kwnames[] = {
26689 (char *) "self",(char *) "data", NULL
26690 };
26691
26692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26694 if (!SWIG_IsOK(res1)) {
26695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26696 }
26697 arg1 = reinterpret_cast< wxListItem * >(argp1);
26698 ecode2 = SWIG_AsVal_long(obj1, &val2);
26699 if (!SWIG_IsOK(ecode2)) {
26700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26701 }
26702 arg2 = static_cast< long >(val2);
26703 {
26704 PyThreadState* __tstate = wxPyBeginAllowThreads();
26705 (arg1)->SetData(arg2);
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 resultobj = SWIG_Py_Void();
26710 return resultobj;
26711 fail:
26712 return NULL;
26713 }
26714
26715
26716 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj = 0;
26718 wxListItem *arg1 = (wxListItem *) 0 ;
26719 int arg2 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 int val2 ;
26723 int ecode2 = 0 ;
26724 PyObject * obj0 = 0 ;
26725 PyObject * obj1 = 0 ;
26726 char * kwnames[] = {
26727 (char *) "self",(char *) "width", NULL
26728 };
26729
26730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26732 if (!SWIG_IsOK(res1)) {
26733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26734 }
26735 arg1 = reinterpret_cast< wxListItem * >(argp1);
26736 ecode2 = SWIG_AsVal_int(obj1, &val2);
26737 if (!SWIG_IsOK(ecode2)) {
26738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26739 }
26740 arg2 = static_cast< int >(val2);
26741 {
26742 PyThreadState* __tstate = wxPyBeginAllowThreads();
26743 (arg1)->SetWidth(arg2);
26744 wxPyEndAllowThreads(__tstate);
26745 if (PyErr_Occurred()) SWIG_fail;
26746 }
26747 resultobj = SWIG_Py_Void();
26748 return resultobj;
26749 fail:
26750 return NULL;
26751 }
26752
26753
26754 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26755 PyObject *resultobj = 0;
26756 wxListItem *arg1 = (wxListItem *) 0 ;
26757 wxListColumnFormat arg2 ;
26758 void *argp1 = 0 ;
26759 int res1 = 0 ;
26760 int val2 ;
26761 int ecode2 = 0 ;
26762 PyObject * obj0 = 0 ;
26763 PyObject * obj1 = 0 ;
26764 char * kwnames[] = {
26765 (char *) "self",(char *) "align", NULL
26766 };
26767
26768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26770 if (!SWIG_IsOK(res1)) {
26771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26772 }
26773 arg1 = reinterpret_cast< wxListItem * >(argp1);
26774 ecode2 = SWIG_AsVal_int(obj1, &val2);
26775 if (!SWIG_IsOK(ecode2)) {
26776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26777 }
26778 arg2 = static_cast< wxListColumnFormat >(val2);
26779 {
26780 PyThreadState* __tstate = wxPyBeginAllowThreads();
26781 (arg1)->SetAlign(arg2);
26782 wxPyEndAllowThreads(__tstate);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 }
26785 resultobj = SWIG_Py_Void();
26786 return resultobj;
26787 fail:
26788 return NULL;
26789 }
26790
26791
26792 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26793 PyObject *resultobj = 0;
26794 wxListItem *arg1 = (wxListItem *) 0 ;
26795 wxColour *arg2 = 0 ;
26796 void *argp1 = 0 ;
26797 int res1 = 0 ;
26798 wxColour temp2 ;
26799 PyObject * obj0 = 0 ;
26800 PyObject * obj1 = 0 ;
26801 char * kwnames[] = {
26802 (char *) "self",(char *) "colText", NULL
26803 };
26804
26805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26807 if (!SWIG_IsOK(res1)) {
26808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26809 }
26810 arg1 = reinterpret_cast< wxListItem * >(argp1);
26811 {
26812 arg2 = &temp2;
26813 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26814 }
26815 {
26816 PyThreadState* __tstate = wxPyBeginAllowThreads();
26817 (arg1)->SetTextColour((wxColour const &)*arg2);
26818 wxPyEndAllowThreads(__tstate);
26819 if (PyErr_Occurred()) SWIG_fail;
26820 }
26821 resultobj = SWIG_Py_Void();
26822 return resultobj;
26823 fail:
26824 return NULL;
26825 }
26826
26827
26828 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26829 PyObject *resultobj = 0;
26830 wxListItem *arg1 = (wxListItem *) 0 ;
26831 wxColour *arg2 = 0 ;
26832 void *argp1 = 0 ;
26833 int res1 = 0 ;
26834 wxColour temp2 ;
26835 PyObject * obj0 = 0 ;
26836 PyObject * obj1 = 0 ;
26837 char * kwnames[] = {
26838 (char *) "self",(char *) "colBack", NULL
26839 };
26840
26841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26843 if (!SWIG_IsOK(res1)) {
26844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26845 }
26846 arg1 = reinterpret_cast< wxListItem * >(argp1);
26847 {
26848 arg2 = &temp2;
26849 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26850 }
26851 {
26852 PyThreadState* __tstate = wxPyBeginAllowThreads();
26853 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 resultobj = SWIG_Py_Void();
26858 return resultobj;
26859 fail:
26860 return NULL;
26861 }
26862
26863
26864 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26865 PyObject *resultobj = 0;
26866 wxListItem *arg1 = (wxListItem *) 0 ;
26867 wxFont *arg2 = 0 ;
26868 void *argp1 = 0 ;
26869 int res1 = 0 ;
26870 void *argp2 = 0 ;
26871 int res2 = 0 ;
26872 PyObject * obj0 = 0 ;
26873 PyObject * obj1 = 0 ;
26874 char * kwnames[] = {
26875 (char *) "self",(char *) "font", NULL
26876 };
26877
26878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26880 if (!SWIG_IsOK(res1)) {
26881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26882 }
26883 arg1 = reinterpret_cast< wxListItem * >(argp1);
26884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26885 if (!SWIG_IsOK(res2)) {
26886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26887 }
26888 if (!argp2) {
26889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26890 }
26891 arg2 = reinterpret_cast< wxFont * >(argp2);
26892 {
26893 PyThreadState* __tstate = wxPyBeginAllowThreads();
26894 (arg1)->SetFont((wxFont const &)*arg2);
26895 wxPyEndAllowThreads(__tstate);
26896 if (PyErr_Occurred()) SWIG_fail;
26897 }
26898 resultobj = SWIG_Py_Void();
26899 return resultobj;
26900 fail:
26901 return NULL;
26902 }
26903
26904
26905 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26906 PyObject *resultobj = 0;
26907 wxListItem *arg1 = (wxListItem *) 0 ;
26908 long result;
26909 void *argp1 = 0 ;
26910 int res1 = 0 ;
26911 PyObject *swig_obj[1] ;
26912
26913 if (!args) SWIG_fail;
26914 swig_obj[0] = args;
26915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26916 if (!SWIG_IsOK(res1)) {
26917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26918 }
26919 arg1 = reinterpret_cast< wxListItem * >(argp1);
26920 {
26921 PyThreadState* __tstate = wxPyBeginAllowThreads();
26922 result = (long)(arg1)->GetMask();
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_From_long(static_cast< long >(result));
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26934 PyObject *resultobj = 0;
26935 wxListItem *arg1 = (wxListItem *) 0 ;
26936 long result;
26937 void *argp1 = 0 ;
26938 int res1 = 0 ;
26939 PyObject *swig_obj[1] ;
26940
26941 if (!args) SWIG_fail;
26942 swig_obj[0] = args;
26943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26946 }
26947 arg1 = reinterpret_cast< wxListItem * >(argp1);
26948 {
26949 PyThreadState* __tstate = wxPyBeginAllowThreads();
26950 result = (long)(arg1)->GetId();
26951 wxPyEndAllowThreads(__tstate);
26952 if (PyErr_Occurred()) SWIG_fail;
26953 }
26954 resultobj = SWIG_From_long(static_cast< long >(result));
26955 return resultobj;
26956 fail:
26957 return NULL;
26958 }
26959
26960
26961 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26962 PyObject *resultobj = 0;
26963 wxListItem *arg1 = (wxListItem *) 0 ;
26964 int result;
26965 void *argp1 = 0 ;
26966 int res1 = 0 ;
26967 PyObject *swig_obj[1] ;
26968
26969 if (!args) SWIG_fail;
26970 swig_obj[0] = args;
26971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26972 if (!SWIG_IsOK(res1)) {
26973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26974 }
26975 arg1 = reinterpret_cast< wxListItem * >(argp1);
26976 {
26977 PyThreadState* __tstate = wxPyBeginAllowThreads();
26978 result = (int)(arg1)->GetColumn();
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 resultobj = SWIG_From_int(static_cast< int >(result));
26983 return resultobj;
26984 fail:
26985 return NULL;
26986 }
26987
26988
26989 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26990 PyObject *resultobj = 0;
26991 wxListItem *arg1 = (wxListItem *) 0 ;
26992 long result;
26993 void *argp1 = 0 ;
26994 int res1 = 0 ;
26995 PyObject *swig_obj[1] ;
26996
26997 if (!args) SWIG_fail;
26998 swig_obj[0] = args;
26999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27000 if (!SWIG_IsOK(res1)) {
27001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27002 }
27003 arg1 = reinterpret_cast< wxListItem * >(argp1);
27004 {
27005 PyThreadState* __tstate = wxPyBeginAllowThreads();
27006 result = (long)(arg1)->GetState();
27007 wxPyEndAllowThreads(__tstate);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 }
27010 resultobj = SWIG_From_long(static_cast< long >(result));
27011 return resultobj;
27012 fail:
27013 return NULL;
27014 }
27015
27016
27017 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27018 PyObject *resultobj = 0;
27019 wxListItem *arg1 = (wxListItem *) 0 ;
27020 wxString *result = 0 ;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 PyObject *swig_obj[1] ;
27024
27025 if (!args) SWIG_fail;
27026 swig_obj[0] = args;
27027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27028 if (!SWIG_IsOK(res1)) {
27029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27030 }
27031 arg1 = reinterpret_cast< wxListItem * >(argp1);
27032 {
27033 PyThreadState* __tstate = wxPyBeginAllowThreads();
27034 {
27035 wxString const &_result_ref = (arg1)->GetText();
27036 result = (wxString *) &_result_ref;
27037 }
27038 wxPyEndAllowThreads(__tstate);
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 {
27042 #if wxUSE_UNICODE
27043 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27044 #else
27045 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27046 #endif
27047 }
27048 return resultobj;
27049 fail:
27050 return NULL;
27051 }
27052
27053
27054 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 int result;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 PyObject *swig_obj[1] ;
27061
27062 if (!args) SWIG_fail;
27063 swig_obj[0] = args;
27064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27065 if (!SWIG_IsOK(res1)) {
27066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27067 }
27068 arg1 = reinterpret_cast< wxListItem * >(argp1);
27069 {
27070 PyThreadState* __tstate = wxPyBeginAllowThreads();
27071 result = (int)(arg1)->GetImage();
27072 wxPyEndAllowThreads(__tstate);
27073 if (PyErr_Occurred()) SWIG_fail;
27074 }
27075 resultobj = SWIG_From_int(static_cast< int >(result));
27076 return resultobj;
27077 fail:
27078 return NULL;
27079 }
27080
27081
27082 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27083 PyObject *resultobj = 0;
27084 wxListItem *arg1 = (wxListItem *) 0 ;
27085 long result;
27086 void *argp1 = 0 ;
27087 int res1 = 0 ;
27088 PyObject *swig_obj[1] ;
27089
27090 if (!args) SWIG_fail;
27091 swig_obj[0] = args;
27092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27093 if (!SWIG_IsOK(res1)) {
27094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27095 }
27096 arg1 = reinterpret_cast< wxListItem * >(argp1);
27097 {
27098 PyThreadState* __tstate = wxPyBeginAllowThreads();
27099 result = (long)(arg1)->GetData();
27100 wxPyEndAllowThreads(__tstate);
27101 if (PyErr_Occurred()) SWIG_fail;
27102 }
27103 resultobj = SWIG_From_long(static_cast< long >(result));
27104 return resultobj;
27105 fail:
27106 return NULL;
27107 }
27108
27109
27110 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27111 PyObject *resultobj = 0;
27112 wxListItem *arg1 = (wxListItem *) 0 ;
27113 int result;
27114 void *argp1 = 0 ;
27115 int res1 = 0 ;
27116 PyObject *swig_obj[1] ;
27117
27118 if (!args) SWIG_fail;
27119 swig_obj[0] = args;
27120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27121 if (!SWIG_IsOK(res1)) {
27122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27123 }
27124 arg1 = reinterpret_cast< wxListItem * >(argp1);
27125 {
27126 PyThreadState* __tstate = wxPyBeginAllowThreads();
27127 result = (int)(arg1)->GetWidth();
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 resultobj = SWIG_From_int(static_cast< int >(result));
27132 return resultobj;
27133 fail:
27134 return NULL;
27135 }
27136
27137
27138 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27139 PyObject *resultobj = 0;
27140 wxListItem *arg1 = (wxListItem *) 0 ;
27141 wxListColumnFormat result;
27142 void *argp1 = 0 ;
27143 int res1 = 0 ;
27144 PyObject *swig_obj[1] ;
27145
27146 if (!args) SWIG_fail;
27147 swig_obj[0] = args;
27148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27149 if (!SWIG_IsOK(res1)) {
27150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27151 }
27152 arg1 = reinterpret_cast< wxListItem * >(argp1);
27153 {
27154 PyThreadState* __tstate = wxPyBeginAllowThreads();
27155 result = (wxListColumnFormat)(arg1)->GetAlign();
27156 wxPyEndAllowThreads(__tstate);
27157 if (PyErr_Occurred()) SWIG_fail;
27158 }
27159 resultobj = SWIG_From_int(static_cast< int >(result));
27160 return resultobj;
27161 fail:
27162 return NULL;
27163 }
27164
27165
27166 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27167 PyObject *resultobj = 0;
27168 wxListItem *arg1 = (wxListItem *) 0 ;
27169 wxListItemAttr *result = 0 ;
27170 void *argp1 = 0 ;
27171 int res1 = 0 ;
27172 PyObject *swig_obj[1] ;
27173
27174 if (!args) SWIG_fail;
27175 swig_obj[0] = args;
27176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27177 if (!SWIG_IsOK(res1)) {
27178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27179 }
27180 arg1 = reinterpret_cast< wxListItem * >(argp1);
27181 {
27182 PyThreadState* __tstate = wxPyBeginAllowThreads();
27183 result = (wxListItemAttr *)(arg1)->GetAttributes();
27184 wxPyEndAllowThreads(__tstate);
27185 if (PyErr_Occurred()) SWIG_fail;
27186 }
27187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27188 return resultobj;
27189 fail:
27190 return NULL;
27191 }
27192
27193
27194 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27195 PyObject *resultobj = 0;
27196 wxListItem *arg1 = (wxListItem *) 0 ;
27197 bool result;
27198 void *argp1 = 0 ;
27199 int res1 = 0 ;
27200 PyObject *swig_obj[1] ;
27201
27202 if (!args) SWIG_fail;
27203 swig_obj[0] = args;
27204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27205 if (!SWIG_IsOK(res1)) {
27206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27207 }
27208 arg1 = reinterpret_cast< wxListItem * >(argp1);
27209 {
27210 PyThreadState* __tstate = wxPyBeginAllowThreads();
27211 result = (bool)(arg1)->HasAttributes();
27212 wxPyEndAllowThreads(__tstate);
27213 if (PyErr_Occurred()) SWIG_fail;
27214 }
27215 {
27216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27217 }
27218 return resultobj;
27219 fail:
27220 return NULL;
27221 }
27222
27223
27224 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27225 PyObject *resultobj = 0;
27226 wxListItem *arg1 = (wxListItem *) 0 ;
27227 wxColour result;
27228 void *argp1 = 0 ;
27229 int res1 = 0 ;
27230 PyObject *swig_obj[1] ;
27231
27232 if (!args) SWIG_fail;
27233 swig_obj[0] = args;
27234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27235 if (!SWIG_IsOK(res1)) {
27236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27237 }
27238 arg1 = reinterpret_cast< wxListItem * >(argp1);
27239 {
27240 PyThreadState* __tstate = wxPyBeginAllowThreads();
27241 result = ((wxListItem const *)arg1)->GetTextColour();
27242 wxPyEndAllowThreads(__tstate);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 }
27245 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27246 return resultobj;
27247 fail:
27248 return NULL;
27249 }
27250
27251
27252 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27253 PyObject *resultobj = 0;
27254 wxListItem *arg1 = (wxListItem *) 0 ;
27255 wxColour result;
27256 void *argp1 = 0 ;
27257 int res1 = 0 ;
27258 PyObject *swig_obj[1] ;
27259
27260 if (!args) SWIG_fail;
27261 swig_obj[0] = args;
27262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27263 if (!SWIG_IsOK(res1)) {
27264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27265 }
27266 arg1 = reinterpret_cast< wxListItem * >(argp1);
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27270 wxPyEndAllowThreads(__tstate);
27271 if (PyErr_Occurred()) SWIG_fail;
27272 }
27273 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27274 return resultobj;
27275 fail:
27276 return NULL;
27277 }
27278
27279
27280 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27281 PyObject *resultobj = 0;
27282 wxListItem *arg1 = (wxListItem *) 0 ;
27283 wxFont result;
27284 void *argp1 = 0 ;
27285 int res1 = 0 ;
27286 PyObject *swig_obj[1] ;
27287
27288 if (!args) SWIG_fail;
27289 swig_obj[0] = args;
27290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27291 if (!SWIG_IsOK(res1)) {
27292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27293 }
27294 arg1 = reinterpret_cast< wxListItem * >(argp1);
27295 {
27296 PyThreadState* __tstate = wxPyBeginAllowThreads();
27297 result = ((wxListItem const *)arg1)->GetFont();
27298 wxPyEndAllowThreads(__tstate);
27299 if (PyErr_Occurred()) SWIG_fail;
27300 }
27301 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27302 return resultobj;
27303 fail:
27304 return NULL;
27305 }
27306
27307
27308 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27309 PyObject *resultobj = 0;
27310 wxListItem *arg1 = (wxListItem *) 0 ;
27311 long arg2 ;
27312 void *argp1 = 0 ;
27313 int res1 = 0 ;
27314 long val2 ;
27315 int ecode2 = 0 ;
27316 PyObject *swig_obj[2] ;
27317
27318 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27320 if (!SWIG_IsOK(res1)) {
27321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27322 }
27323 arg1 = reinterpret_cast< wxListItem * >(argp1);
27324 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27325 if (!SWIG_IsOK(ecode2)) {
27326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27327 }
27328 arg2 = static_cast< long >(val2);
27329 if (arg1) (arg1)->m_mask = arg2;
27330
27331 resultobj = SWIG_Py_Void();
27332 return resultobj;
27333 fail:
27334 return NULL;
27335 }
27336
27337
27338 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27339 PyObject *resultobj = 0;
27340 wxListItem *arg1 = (wxListItem *) 0 ;
27341 long result;
27342 void *argp1 = 0 ;
27343 int res1 = 0 ;
27344 PyObject *swig_obj[1] ;
27345
27346 if (!args) SWIG_fail;
27347 swig_obj[0] = args;
27348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27349 if (!SWIG_IsOK(res1)) {
27350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27351 }
27352 arg1 = reinterpret_cast< wxListItem * >(argp1);
27353 result = (long) ((arg1)->m_mask);
27354 resultobj = SWIG_From_long(static_cast< long >(result));
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27362 PyObject *resultobj = 0;
27363 wxListItem *arg1 = (wxListItem *) 0 ;
27364 long arg2 ;
27365 void *argp1 = 0 ;
27366 int res1 = 0 ;
27367 long val2 ;
27368 int ecode2 = 0 ;
27369 PyObject *swig_obj[2] ;
27370
27371 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27373 if (!SWIG_IsOK(res1)) {
27374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27375 }
27376 arg1 = reinterpret_cast< wxListItem * >(argp1);
27377 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27378 if (!SWIG_IsOK(ecode2)) {
27379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27380 }
27381 arg2 = static_cast< long >(val2);
27382 if (arg1) (arg1)->m_itemId = arg2;
27383
27384 resultobj = SWIG_Py_Void();
27385 return resultobj;
27386 fail:
27387 return NULL;
27388 }
27389
27390
27391 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27392 PyObject *resultobj = 0;
27393 wxListItem *arg1 = (wxListItem *) 0 ;
27394 long result;
27395 void *argp1 = 0 ;
27396 int res1 = 0 ;
27397 PyObject *swig_obj[1] ;
27398
27399 if (!args) SWIG_fail;
27400 swig_obj[0] = args;
27401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27402 if (!SWIG_IsOK(res1)) {
27403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27404 }
27405 arg1 = reinterpret_cast< wxListItem * >(argp1);
27406 result = (long) ((arg1)->m_itemId);
27407 resultobj = SWIG_From_long(static_cast< long >(result));
27408 return resultobj;
27409 fail:
27410 return NULL;
27411 }
27412
27413
27414 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27415 PyObject *resultobj = 0;
27416 wxListItem *arg1 = (wxListItem *) 0 ;
27417 int arg2 ;
27418 void *argp1 = 0 ;
27419 int res1 = 0 ;
27420 int val2 ;
27421 int ecode2 = 0 ;
27422 PyObject *swig_obj[2] ;
27423
27424 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27426 if (!SWIG_IsOK(res1)) {
27427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27428 }
27429 arg1 = reinterpret_cast< wxListItem * >(argp1);
27430 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27431 if (!SWIG_IsOK(ecode2)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27433 }
27434 arg2 = static_cast< int >(val2);
27435 if (arg1) (arg1)->m_col = arg2;
27436
27437 resultobj = SWIG_Py_Void();
27438 return resultobj;
27439 fail:
27440 return NULL;
27441 }
27442
27443
27444 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27445 PyObject *resultobj = 0;
27446 wxListItem *arg1 = (wxListItem *) 0 ;
27447 int result;
27448 void *argp1 = 0 ;
27449 int res1 = 0 ;
27450 PyObject *swig_obj[1] ;
27451
27452 if (!args) SWIG_fail;
27453 swig_obj[0] = args;
27454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27455 if (!SWIG_IsOK(res1)) {
27456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27457 }
27458 arg1 = reinterpret_cast< wxListItem * >(argp1);
27459 result = (int) ((arg1)->m_col);
27460 resultobj = SWIG_From_int(static_cast< int >(result));
27461 return resultobj;
27462 fail:
27463 return NULL;
27464 }
27465
27466
27467 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27468 PyObject *resultobj = 0;
27469 wxListItem *arg1 = (wxListItem *) 0 ;
27470 long arg2 ;
27471 void *argp1 = 0 ;
27472 int res1 = 0 ;
27473 long val2 ;
27474 int ecode2 = 0 ;
27475 PyObject *swig_obj[2] ;
27476
27477 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27479 if (!SWIG_IsOK(res1)) {
27480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27481 }
27482 arg1 = reinterpret_cast< wxListItem * >(argp1);
27483 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27484 if (!SWIG_IsOK(ecode2)) {
27485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27486 }
27487 arg2 = static_cast< long >(val2);
27488 if (arg1) (arg1)->m_state = arg2;
27489
27490 resultobj = SWIG_Py_Void();
27491 return resultobj;
27492 fail:
27493 return NULL;
27494 }
27495
27496
27497 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27498 PyObject *resultobj = 0;
27499 wxListItem *arg1 = (wxListItem *) 0 ;
27500 long result;
27501 void *argp1 = 0 ;
27502 int res1 = 0 ;
27503 PyObject *swig_obj[1] ;
27504
27505 if (!args) SWIG_fail;
27506 swig_obj[0] = args;
27507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27508 if (!SWIG_IsOK(res1)) {
27509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27510 }
27511 arg1 = reinterpret_cast< wxListItem * >(argp1);
27512 result = (long) ((arg1)->m_state);
27513 resultobj = SWIG_From_long(static_cast< long >(result));
27514 return resultobj;
27515 fail:
27516 return NULL;
27517 }
27518
27519
27520 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27521 PyObject *resultobj = 0;
27522 wxListItem *arg1 = (wxListItem *) 0 ;
27523 long arg2 ;
27524 void *argp1 = 0 ;
27525 int res1 = 0 ;
27526 long val2 ;
27527 int ecode2 = 0 ;
27528 PyObject *swig_obj[2] ;
27529
27530 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27534 }
27535 arg1 = reinterpret_cast< wxListItem * >(argp1);
27536 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27537 if (!SWIG_IsOK(ecode2)) {
27538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27539 }
27540 arg2 = static_cast< long >(val2);
27541 if (arg1) (arg1)->m_stateMask = arg2;
27542
27543 resultobj = SWIG_Py_Void();
27544 return resultobj;
27545 fail:
27546 return NULL;
27547 }
27548
27549
27550 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 PyObject *resultobj = 0;
27552 wxListItem *arg1 = (wxListItem *) 0 ;
27553 long result;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 PyObject *swig_obj[1] ;
27557
27558 if (!args) SWIG_fail;
27559 swig_obj[0] = args;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27563 }
27564 arg1 = reinterpret_cast< wxListItem * >(argp1);
27565 result = (long) ((arg1)->m_stateMask);
27566 resultobj = SWIG_From_long(static_cast< long >(result));
27567 return resultobj;
27568 fail:
27569 return NULL;
27570 }
27571
27572
27573 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27574 PyObject *resultobj = 0;
27575 wxListItem *arg1 = (wxListItem *) 0 ;
27576 wxString *arg2 = (wxString *) 0 ;
27577 void *argp1 = 0 ;
27578 int res1 = 0 ;
27579 bool temp2 = false ;
27580 PyObject *swig_obj[2] ;
27581
27582 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27584 if (!SWIG_IsOK(res1)) {
27585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27586 }
27587 arg1 = reinterpret_cast< wxListItem * >(argp1);
27588 {
27589 arg2 = wxString_in_helper(swig_obj[1]);
27590 if (arg2 == NULL) SWIG_fail;
27591 temp2 = true;
27592 }
27593 if (arg1) (arg1)->m_text = *arg2;
27594
27595 resultobj = SWIG_Py_Void();
27596 {
27597 if (temp2)
27598 delete arg2;
27599 }
27600 return resultobj;
27601 fail:
27602 {
27603 if (temp2)
27604 delete arg2;
27605 }
27606 return NULL;
27607 }
27608
27609
27610 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27611 PyObject *resultobj = 0;
27612 wxListItem *arg1 = (wxListItem *) 0 ;
27613 wxString *result = 0 ;
27614 void *argp1 = 0 ;
27615 int res1 = 0 ;
27616 PyObject *swig_obj[1] ;
27617
27618 if (!args) SWIG_fail;
27619 swig_obj[0] = args;
27620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27621 if (!SWIG_IsOK(res1)) {
27622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27623 }
27624 arg1 = reinterpret_cast< wxListItem * >(argp1);
27625 result = (wxString *)& ((arg1)->m_text);
27626 {
27627 #if wxUSE_UNICODE
27628 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27629 #else
27630 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27631 #endif
27632 }
27633 return resultobj;
27634 fail:
27635 return NULL;
27636 }
27637
27638
27639 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27640 PyObject *resultobj = 0;
27641 wxListItem *arg1 = (wxListItem *) 0 ;
27642 int arg2 ;
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 int val2 ;
27646 int ecode2 = 0 ;
27647 PyObject *swig_obj[2] ;
27648
27649 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27651 if (!SWIG_IsOK(res1)) {
27652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27653 }
27654 arg1 = reinterpret_cast< wxListItem * >(argp1);
27655 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27656 if (!SWIG_IsOK(ecode2)) {
27657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27658 }
27659 arg2 = static_cast< int >(val2);
27660 if (arg1) (arg1)->m_image = arg2;
27661
27662 resultobj = SWIG_Py_Void();
27663 return resultobj;
27664 fail:
27665 return NULL;
27666 }
27667
27668
27669 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27670 PyObject *resultobj = 0;
27671 wxListItem *arg1 = (wxListItem *) 0 ;
27672 int result;
27673 void *argp1 = 0 ;
27674 int res1 = 0 ;
27675 PyObject *swig_obj[1] ;
27676
27677 if (!args) SWIG_fail;
27678 swig_obj[0] = args;
27679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27680 if (!SWIG_IsOK(res1)) {
27681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27682 }
27683 arg1 = reinterpret_cast< wxListItem * >(argp1);
27684 result = (int) ((arg1)->m_image);
27685 resultobj = SWIG_From_int(static_cast< int >(result));
27686 return resultobj;
27687 fail:
27688 return NULL;
27689 }
27690
27691
27692 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27693 PyObject *resultobj = 0;
27694 wxListItem *arg1 = (wxListItem *) 0 ;
27695 long arg2 ;
27696 void *argp1 = 0 ;
27697 int res1 = 0 ;
27698 long val2 ;
27699 int ecode2 = 0 ;
27700 PyObject *swig_obj[2] ;
27701
27702 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27704 if (!SWIG_IsOK(res1)) {
27705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27706 }
27707 arg1 = reinterpret_cast< wxListItem * >(argp1);
27708 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27709 if (!SWIG_IsOK(ecode2)) {
27710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27711 }
27712 arg2 = static_cast< long >(val2);
27713 if (arg1) (arg1)->m_data = arg2;
27714
27715 resultobj = SWIG_Py_Void();
27716 return resultobj;
27717 fail:
27718 return NULL;
27719 }
27720
27721
27722 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27723 PyObject *resultobj = 0;
27724 wxListItem *arg1 = (wxListItem *) 0 ;
27725 long result;
27726 void *argp1 = 0 ;
27727 int res1 = 0 ;
27728 PyObject *swig_obj[1] ;
27729
27730 if (!args) SWIG_fail;
27731 swig_obj[0] = args;
27732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27733 if (!SWIG_IsOK(res1)) {
27734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27735 }
27736 arg1 = reinterpret_cast< wxListItem * >(argp1);
27737 result = (long) ((arg1)->m_data);
27738 resultobj = SWIG_From_long(static_cast< long >(result));
27739 return resultobj;
27740 fail:
27741 return NULL;
27742 }
27743
27744
27745 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27746 PyObject *resultobj = 0;
27747 wxListItem *arg1 = (wxListItem *) 0 ;
27748 int arg2 ;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 int val2 ;
27752 int ecode2 = 0 ;
27753 PyObject *swig_obj[2] ;
27754
27755 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27757 if (!SWIG_IsOK(res1)) {
27758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27759 }
27760 arg1 = reinterpret_cast< wxListItem * >(argp1);
27761 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27762 if (!SWIG_IsOK(ecode2)) {
27763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27764 }
27765 arg2 = static_cast< int >(val2);
27766 if (arg1) (arg1)->m_format = arg2;
27767
27768 resultobj = SWIG_Py_Void();
27769 return resultobj;
27770 fail:
27771 return NULL;
27772 }
27773
27774
27775 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27776 PyObject *resultobj = 0;
27777 wxListItem *arg1 = (wxListItem *) 0 ;
27778 int result;
27779 void *argp1 = 0 ;
27780 int res1 = 0 ;
27781 PyObject *swig_obj[1] ;
27782
27783 if (!args) SWIG_fail;
27784 swig_obj[0] = args;
27785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27786 if (!SWIG_IsOK(res1)) {
27787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27788 }
27789 arg1 = reinterpret_cast< wxListItem * >(argp1);
27790 result = (int) ((arg1)->m_format);
27791 resultobj = SWIG_From_int(static_cast< int >(result));
27792 return resultobj;
27793 fail:
27794 return NULL;
27795 }
27796
27797
27798 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27799 PyObject *resultobj = 0;
27800 wxListItem *arg1 = (wxListItem *) 0 ;
27801 int arg2 ;
27802 void *argp1 = 0 ;
27803 int res1 = 0 ;
27804 int val2 ;
27805 int ecode2 = 0 ;
27806 PyObject *swig_obj[2] ;
27807
27808 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27810 if (!SWIG_IsOK(res1)) {
27811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27812 }
27813 arg1 = reinterpret_cast< wxListItem * >(argp1);
27814 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27815 if (!SWIG_IsOK(ecode2)) {
27816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27817 }
27818 arg2 = static_cast< int >(val2);
27819 if (arg1) (arg1)->m_width = arg2;
27820
27821 resultobj = SWIG_Py_Void();
27822 return resultobj;
27823 fail:
27824 return NULL;
27825 }
27826
27827
27828 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27829 PyObject *resultobj = 0;
27830 wxListItem *arg1 = (wxListItem *) 0 ;
27831 int result;
27832 void *argp1 = 0 ;
27833 int res1 = 0 ;
27834 PyObject *swig_obj[1] ;
27835
27836 if (!args) SWIG_fail;
27837 swig_obj[0] = args;
27838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27839 if (!SWIG_IsOK(res1)) {
27840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27841 }
27842 arg1 = reinterpret_cast< wxListItem * >(argp1);
27843 result = (int) ((arg1)->m_width);
27844 resultobj = SWIG_From_int(static_cast< int >(result));
27845 return resultobj;
27846 fail:
27847 return NULL;
27848 }
27849
27850
27851 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27852 PyObject *obj;
27853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27854 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27855 return SWIG_Py_Void();
27856 }
27857
27858 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27859 return SWIG_Python_InitShadowInstance(args);
27860 }
27861
27862 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27863 PyObject *resultobj = 0;
27864 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27865 int arg2 = (int) 0 ;
27866 wxListEvent *result = 0 ;
27867 int val1 ;
27868 int ecode1 = 0 ;
27869 int val2 ;
27870 int ecode2 = 0 ;
27871 PyObject * obj0 = 0 ;
27872 PyObject * obj1 = 0 ;
27873 char * kwnames[] = {
27874 (char *) "commandType",(char *) "id", NULL
27875 };
27876
27877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27878 if (obj0) {
27879 ecode1 = SWIG_AsVal_int(obj0, &val1);
27880 if (!SWIG_IsOK(ecode1)) {
27881 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27882 }
27883 arg1 = static_cast< wxEventType >(val1);
27884 }
27885 if (obj1) {
27886 ecode2 = SWIG_AsVal_int(obj1, &val2);
27887 if (!SWIG_IsOK(ecode2)) {
27888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27889 }
27890 arg2 = static_cast< int >(val2);
27891 }
27892 {
27893 PyThreadState* __tstate = wxPyBeginAllowThreads();
27894 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27895 wxPyEndAllowThreads(__tstate);
27896 if (PyErr_Occurred()) SWIG_fail;
27897 }
27898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27899 return resultobj;
27900 fail:
27901 return NULL;
27902 }
27903
27904
27905 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27906 PyObject *resultobj = 0;
27907 wxListEvent *arg1 = (wxListEvent *) 0 ;
27908 int arg2 ;
27909 void *argp1 = 0 ;
27910 int res1 = 0 ;
27911 int val2 ;
27912 int ecode2 = 0 ;
27913 PyObject *swig_obj[2] ;
27914
27915 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27917 if (!SWIG_IsOK(res1)) {
27918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27919 }
27920 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27921 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27922 if (!SWIG_IsOK(ecode2)) {
27923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27924 }
27925 arg2 = static_cast< int >(val2);
27926 if (arg1) (arg1)->m_code = arg2;
27927
27928 resultobj = SWIG_Py_Void();
27929 return resultobj;
27930 fail:
27931 return NULL;
27932 }
27933
27934
27935 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27936 PyObject *resultobj = 0;
27937 wxListEvent *arg1 = (wxListEvent *) 0 ;
27938 int result;
27939 void *argp1 = 0 ;
27940 int res1 = 0 ;
27941 PyObject *swig_obj[1] ;
27942
27943 if (!args) SWIG_fail;
27944 swig_obj[0] = args;
27945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27946 if (!SWIG_IsOK(res1)) {
27947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27948 }
27949 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27950 result = (int) ((arg1)->m_code);
27951 resultobj = SWIG_From_int(static_cast< int >(result));
27952 return resultobj;
27953 fail:
27954 return NULL;
27955 }
27956
27957
27958 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27959 PyObject *resultobj = 0;
27960 wxListEvent *arg1 = (wxListEvent *) 0 ;
27961 long arg2 ;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 long val2 ;
27965 int ecode2 = 0 ;
27966 PyObject *swig_obj[2] ;
27967
27968 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27970 if (!SWIG_IsOK(res1)) {
27971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27972 }
27973 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27974 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27975 if (!SWIG_IsOK(ecode2)) {
27976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27977 }
27978 arg2 = static_cast< long >(val2);
27979 if (arg1) (arg1)->m_oldItemIndex = arg2;
27980
27981 resultobj = SWIG_Py_Void();
27982 return resultobj;
27983 fail:
27984 return NULL;
27985 }
27986
27987
27988 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 PyObject *resultobj = 0;
27990 wxListEvent *arg1 = (wxListEvent *) 0 ;
27991 long result;
27992 void *argp1 = 0 ;
27993 int res1 = 0 ;
27994 PyObject *swig_obj[1] ;
27995
27996 if (!args) SWIG_fail;
27997 swig_obj[0] = args;
27998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27999 if (!SWIG_IsOK(res1)) {
28000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28001 }
28002 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28003 result = (long) ((arg1)->m_oldItemIndex);
28004 resultobj = SWIG_From_long(static_cast< long >(result));
28005 return resultobj;
28006 fail:
28007 return NULL;
28008 }
28009
28010
28011 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28012 PyObject *resultobj = 0;
28013 wxListEvent *arg1 = (wxListEvent *) 0 ;
28014 long arg2 ;
28015 void *argp1 = 0 ;
28016 int res1 = 0 ;
28017 long val2 ;
28018 int ecode2 = 0 ;
28019 PyObject *swig_obj[2] ;
28020
28021 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28023 if (!SWIG_IsOK(res1)) {
28024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28025 }
28026 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28027 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28028 if (!SWIG_IsOK(ecode2)) {
28029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28030 }
28031 arg2 = static_cast< long >(val2);
28032 if (arg1) (arg1)->m_itemIndex = arg2;
28033
28034 resultobj = SWIG_Py_Void();
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *resultobj = 0;
28043 wxListEvent *arg1 = (wxListEvent *) 0 ;
28044 long result;
28045 void *argp1 = 0 ;
28046 int res1 = 0 ;
28047 PyObject *swig_obj[1] ;
28048
28049 if (!args) SWIG_fail;
28050 swig_obj[0] = args;
28051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28052 if (!SWIG_IsOK(res1)) {
28053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28054 }
28055 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28056 result = (long) ((arg1)->m_itemIndex);
28057 resultobj = SWIG_From_long(static_cast< long >(result));
28058 return resultobj;
28059 fail:
28060 return NULL;
28061 }
28062
28063
28064 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28065 PyObject *resultobj = 0;
28066 wxListEvent *arg1 = (wxListEvent *) 0 ;
28067 int arg2 ;
28068 void *argp1 = 0 ;
28069 int res1 = 0 ;
28070 int val2 ;
28071 int ecode2 = 0 ;
28072 PyObject *swig_obj[2] ;
28073
28074 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28076 if (!SWIG_IsOK(res1)) {
28077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28078 }
28079 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28080 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28081 if (!SWIG_IsOK(ecode2)) {
28082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28083 }
28084 arg2 = static_cast< int >(val2);
28085 if (arg1) (arg1)->m_col = arg2;
28086
28087 resultobj = SWIG_Py_Void();
28088 return resultobj;
28089 fail:
28090 return NULL;
28091 }
28092
28093
28094 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28095 PyObject *resultobj = 0;
28096 wxListEvent *arg1 = (wxListEvent *) 0 ;
28097 int result;
28098 void *argp1 = 0 ;
28099 int res1 = 0 ;
28100 PyObject *swig_obj[1] ;
28101
28102 if (!args) SWIG_fail;
28103 swig_obj[0] = args;
28104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28105 if (!SWIG_IsOK(res1)) {
28106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28107 }
28108 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28109 result = (int) ((arg1)->m_col);
28110 resultobj = SWIG_From_int(static_cast< int >(result));
28111 return resultobj;
28112 fail:
28113 return NULL;
28114 }
28115
28116
28117 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28118 PyObject *resultobj = 0;
28119 wxListEvent *arg1 = (wxListEvent *) 0 ;
28120 wxPoint *arg2 = (wxPoint *) 0 ;
28121 void *argp1 = 0 ;
28122 int res1 = 0 ;
28123 void *argp2 = 0 ;
28124 int res2 = 0 ;
28125 PyObject *swig_obj[2] ;
28126
28127 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28131 }
28132 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28133 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28134 if (!SWIG_IsOK(res2)) {
28135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28136 }
28137 arg2 = reinterpret_cast< wxPoint * >(argp2);
28138 if (arg1) (arg1)->m_pointDrag = *arg2;
28139
28140 resultobj = SWIG_Py_Void();
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28148 PyObject *resultobj = 0;
28149 wxListEvent *arg1 = (wxListEvent *) 0 ;
28150 wxPoint *result = 0 ;
28151 void *argp1 = 0 ;
28152 int res1 = 0 ;
28153 PyObject *swig_obj[1] ;
28154
28155 if (!args) SWIG_fail;
28156 swig_obj[0] = args;
28157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28158 if (!SWIG_IsOK(res1)) {
28159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28160 }
28161 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28162 result = (wxPoint *)& ((arg1)->m_pointDrag);
28163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28164 return resultobj;
28165 fail:
28166 return NULL;
28167 }
28168
28169
28170 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28171 PyObject *resultobj = 0;
28172 wxListEvent *arg1 = (wxListEvent *) 0 ;
28173 wxListItem *result = 0 ;
28174 void *argp1 = 0 ;
28175 int res1 = 0 ;
28176 PyObject *swig_obj[1] ;
28177
28178 if (!args) SWIG_fail;
28179 swig_obj[0] = args;
28180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28181 if (!SWIG_IsOK(res1)) {
28182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28183 }
28184 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28185 result = (wxListItem *)& ((arg1)->m_item);
28186 {
28187 resultobj = wxPyMake_wxObject(result, (bool)0);
28188 }
28189 return resultobj;
28190 fail:
28191 return NULL;
28192 }
28193
28194
28195 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28196 PyObject *resultobj = 0;
28197 wxListEvent *arg1 = (wxListEvent *) 0 ;
28198 int result;
28199 void *argp1 = 0 ;
28200 int res1 = 0 ;
28201 PyObject *swig_obj[1] ;
28202
28203 if (!args) SWIG_fail;
28204 swig_obj[0] = args;
28205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28206 if (!SWIG_IsOK(res1)) {
28207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28208 }
28209 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28210 {
28211 PyThreadState* __tstate = wxPyBeginAllowThreads();
28212 result = (int)(arg1)->GetKeyCode();
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 resultobj = SWIG_From_int(static_cast< int >(result));
28217 return resultobj;
28218 fail:
28219 return NULL;
28220 }
28221
28222
28223 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *resultobj = 0;
28225 wxListEvent *arg1 = (wxListEvent *) 0 ;
28226 long result;
28227 void *argp1 = 0 ;
28228 int res1 = 0 ;
28229 PyObject *swig_obj[1] ;
28230
28231 if (!args) SWIG_fail;
28232 swig_obj[0] = args;
28233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28234 if (!SWIG_IsOK(res1)) {
28235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28236 }
28237 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28238 {
28239 PyThreadState* __tstate = wxPyBeginAllowThreads();
28240 result = (long)(arg1)->GetIndex();
28241 wxPyEndAllowThreads(__tstate);
28242 if (PyErr_Occurred()) SWIG_fail;
28243 }
28244 resultobj = SWIG_From_long(static_cast< long >(result));
28245 return resultobj;
28246 fail:
28247 return NULL;
28248 }
28249
28250
28251 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28252 PyObject *resultobj = 0;
28253 wxListEvent *arg1 = (wxListEvent *) 0 ;
28254 int result;
28255 void *argp1 = 0 ;
28256 int res1 = 0 ;
28257 PyObject *swig_obj[1] ;
28258
28259 if (!args) SWIG_fail;
28260 swig_obj[0] = args;
28261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28262 if (!SWIG_IsOK(res1)) {
28263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28264 }
28265 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28266 {
28267 PyThreadState* __tstate = wxPyBeginAllowThreads();
28268 result = (int)(arg1)->GetColumn();
28269 wxPyEndAllowThreads(__tstate);
28270 if (PyErr_Occurred()) SWIG_fail;
28271 }
28272 resultobj = SWIG_From_int(static_cast< int >(result));
28273 return resultobj;
28274 fail:
28275 return NULL;
28276 }
28277
28278
28279 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28280 PyObject *resultobj = 0;
28281 wxListEvent *arg1 = (wxListEvent *) 0 ;
28282 wxPoint result;
28283 void *argp1 = 0 ;
28284 int res1 = 0 ;
28285 PyObject *swig_obj[1] ;
28286
28287 if (!args) SWIG_fail;
28288 swig_obj[0] = args;
28289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28290 if (!SWIG_IsOK(res1)) {
28291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28292 }
28293 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28294 {
28295 PyThreadState* __tstate = wxPyBeginAllowThreads();
28296 result = (arg1)->GetPoint();
28297 wxPyEndAllowThreads(__tstate);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28301 return resultobj;
28302 fail:
28303 return NULL;
28304 }
28305
28306
28307 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28308 PyObject *resultobj = 0;
28309 wxListEvent *arg1 = (wxListEvent *) 0 ;
28310 wxString *result = 0 ;
28311 void *argp1 = 0 ;
28312 int res1 = 0 ;
28313 PyObject *swig_obj[1] ;
28314
28315 if (!args) SWIG_fail;
28316 swig_obj[0] = args;
28317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28318 if (!SWIG_IsOK(res1)) {
28319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28320 }
28321 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28322 {
28323 PyThreadState* __tstate = wxPyBeginAllowThreads();
28324 {
28325 wxString const &_result_ref = (arg1)->GetLabel();
28326 result = (wxString *) &_result_ref;
28327 }
28328 wxPyEndAllowThreads(__tstate);
28329 if (PyErr_Occurred()) SWIG_fail;
28330 }
28331 {
28332 #if wxUSE_UNICODE
28333 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28334 #else
28335 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28336 #endif
28337 }
28338 return resultobj;
28339 fail:
28340 return NULL;
28341 }
28342
28343
28344 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28345 PyObject *resultobj = 0;
28346 wxListEvent *arg1 = (wxListEvent *) 0 ;
28347 wxString *result = 0 ;
28348 void *argp1 = 0 ;
28349 int res1 = 0 ;
28350 PyObject *swig_obj[1] ;
28351
28352 if (!args) SWIG_fail;
28353 swig_obj[0] = args;
28354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28355 if (!SWIG_IsOK(res1)) {
28356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28357 }
28358 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
28361 {
28362 wxString const &_result_ref = (arg1)->GetText();
28363 result = (wxString *) &_result_ref;
28364 }
28365 wxPyEndAllowThreads(__tstate);
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 {
28369 #if wxUSE_UNICODE
28370 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28371 #else
28372 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28373 #endif
28374 }
28375 return resultobj;
28376 fail:
28377 return NULL;
28378 }
28379
28380
28381 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28382 PyObject *resultobj = 0;
28383 wxListEvent *arg1 = (wxListEvent *) 0 ;
28384 int result;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 PyObject *swig_obj[1] ;
28388
28389 if (!args) SWIG_fail;
28390 swig_obj[0] = args;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28394 }
28395 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28396 {
28397 PyThreadState* __tstate = wxPyBeginAllowThreads();
28398 result = (int)(arg1)->GetImage();
28399 wxPyEndAllowThreads(__tstate);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_From_int(static_cast< int >(result));
28403 return resultobj;
28404 fail:
28405 return NULL;
28406 }
28407
28408
28409 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 PyObject *resultobj = 0;
28411 wxListEvent *arg1 = (wxListEvent *) 0 ;
28412 long result;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28422 }
28423 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (long)(arg1)->GetData();
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_From_long(static_cast< long >(result));
28431 return resultobj;
28432 fail:
28433 return NULL;
28434 }
28435
28436
28437 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28438 PyObject *resultobj = 0;
28439 wxListEvent *arg1 = (wxListEvent *) 0 ;
28440 long result;
28441 void *argp1 = 0 ;
28442 int res1 = 0 ;
28443 PyObject *swig_obj[1] ;
28444
28445 if (!args) SWIG_fail;
28446 swig_obj[0] = args;
28447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28448 if (!SWIG_IsOK(res1)) {
28449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28450 }
28451 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28452 {
28453 PyThreadState* __tstate = wxPyBeginAllowThreads();
28454 result = (long)(arg1)->GetMask();
28455 wxPyEndAllowThreads(__tstate);
28456 if (PyErr_Occurred()) SWIG_fail;
28457 }
28458 resultobj = SWIG_From_long(static_cast< long >(result));
28459 return resultobj;
28460 fail:
28461 return NULL;
28462 }
28463
28464
28465 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28466 PyObject *resultobj = 0;
28467 wxListEvent *arg1 = (wxListEvent *) 0 ;
28468 wxListItem *result = 0 ;
28469 void *argp1 = 0 ;
28470 int res1 = 0 ;
28471 PyObject *swig_obj[1] ;
28472
28473 if (!args) SWIG_fail;
28474 swig_obj[0] = args;
28475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28476 if (!SWIG_IsOK(res1)) {
28477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28478 }
28479 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28480 {
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
28482 {
28483 wxListItem const &_result_ref = (arg1)->GetItem();
28484 result = (wxListItem *) &_result_ref;
28485 }
28486 wxPyEndAllowThreads(__tstate);
28487 if (PyErr_Occurred()) SWIG_fail;
28488 }
28489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28490 return resultobj;
28491 fail:
28492 return NULL;
28493 }
28494
28495
28496 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28497 PyObject *resultobj = 0;
28498 wxListEvent *arg1 = (wxListEvent *) 0 ;
28499 long result;
28500 void *argp1 = 0 ;
28501 int res1 = 0 ;
28502 PyObject *swig_obj[1] ;
28503
28504 if (!args) SWIG_fail;
28505 swig_obj[0] = args;
28506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28507 if (!SWIG_IsOK(res1)) {
28508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28509 }
28510 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28511 {
28512 PyThreadState* __tstate = wxPyBeginAllowThreads();
28513 result = (long)(arg1)->GetCacheFrom();
28514 wxPyEndAllowThreads(__tstate);
28515 if (PyErr_Occurred()) SWIG_fail;
28516 }
28517 resultobj = SWIG_From_long(static_cast< long >(result));
28518 return resultobj;
28519 fail:
28520 return NULL;
28521 }
28522
28523
28524 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28525 PyObject *resultobj = 0;
28526 wxListEvent *arg1 = (wxListEvent *) 0 ;
28527 long result;
28528 void *argp1 = 0 ;
28529 int res1 = 0 ;
28530 PyObject *swig_obj[1] ;
28531
28532 if (!args) SWIG_fail;
28533 swig_obj[0] = args;
28534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28535 if (!SWIG_IsOK(res1)) {
28536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28537 }
28538 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28539 {
28540 PyThreadState* __tstate = wxPyBeginAllowThreads();
28541 result = (long)(arg1)->GetCacheTo();
28542 wxPyEndAllowThreads(__tstate);
28543 if (PyErr_Occurred()) SWIG_fail;
28544 }
28545 resultobj = SWIG_From_long(static_cast< long >(result));
28546 return resultobj;
28547 fail:
28548 return NULL;
28549 }
28550
28551
28552 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28553 PyObject *resultobj = 0;
28554 wxListEvent *arg1 = (wxListEvent *) 0 ;
28555 bool result;
28556 void *argp1 = 0 ;
28557 int res1 = 0 ;
28558 PyObject *swig_obj[1] ;
28559
28560 if (!args) SWIG_fail;
28561 swig_obj[0] = args;
28562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28563 if (!SWIG_IsOK(res1)) {
28564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28565 }
28566 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28567 {
28568 PyThreadState* __tstate = wxPyBeginAllowThreads();
28569 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28570 wxPyEndAllowThreads(__tstate);
28571 if (PyErr_Occurred()) SWIG_fail;
28572 }
28573 {
28574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28575 }
28576 return resultobj;
28577 fail:
28578 return NULL;
28579 }
28580
28581
28582 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28583 PyObject *resultobj = 0;
28584 wxListEvent *arg1 = (wxListEvent *) 0 ;
28585 bool arg2 ;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 bool val2 ;
28589 int ecode2 = 0 ;
28590 PyObject * obj0 = 0 ;
28591 PyObject * obj1 = 0 ;
28592 char * kwnames[] = {
28593 (char *) "self",(char *) "editCancelled", NULL
28594 };
28595
28596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28598 if (!SWIG_IsOK(res1)) {
28599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28600 }
28601 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28602 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28603 if (!SWIG_IsOK(ecode2)) {
28604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28605 }
28606 arg2 = static_cast< bool >(val2);
28607 {
28608 PyThreadState* __tstate = wxPyBeginAllowThreads();
28609 (arg1)->SetEditCanceled(arg2);
28610 wxPyEndAllowThreads(__tstate);
28611 if (PyErr_Occurred()) SWIG_fail;
28612 }
28613 resultobj = SWIG_Py_Void();
28614 return resultobj;
28615 fail:
28616 return NULL;
28617 }
28618
28619
28620 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28621 PyObject *obj;
28622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28623 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28624 return SWIG_Py_Void();
28625 }
28626
28627 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28628 return SWIG_Python_InitShadowInstance(args);
28629 }
28630
28631 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28632 PyObject *resultobj = 0;
28633 wxWindow *arg1 = (wxWindow *) 0 ;
28634 int arg2 = (int) -1 ;
28635 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28636 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28637 wxSize const &arg4_defvalue = wxDefaultSize ;
28638 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28639 long arg5 = (long) wxLC_ICON ;
28640 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28641 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28642 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28643 wxString *arg7 = (wxString *) &arg7_defvalue ;
28644 wxPyListCtrl *result = 0 ;
28645 void *argp1 = 0 ;
28646 int res1 = 0 ;
28647 int val2 ;
28648 int ecode2 = 0 ;
28649 wxPoint temp3 ;
28650 wxSize temp4 ;
28651 long val5 ;
28652 int ecode5 = 0 ;
28653 void *argp6 = 0 ;
28654 int res6 = 0 ;
28655 bool temp7 = false ;
28656 PyObject * obj0 = 0 ;
28657 PyObject * obj1 = 0 ;
28658 PyObject * obj2 = 0 ;
28659 PyObject * obj3 = 0 ;
28660 PyObject * obj4 = 0 ;
28661 PyObject * obj5 = 0 ;
28662 PyObject * obj6 = 0 ;
28663 char * kwnames[] = {
28664 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28665 };
28666
28667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28669 if (!SWIG_IsOK(res1)) {
28670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28671 }
28672 arg1 = reinterpret_cast< wxWindow * >(argp1);
28673 if (obj1) {
28674 ecode2 = SWIG_AsVal_int(obj1, &val2);
28675 if (!SWIG_IsOK(ecode2)) {
28676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28677 }
28678 arg2 = static_cast< int >(val2);
28679 }
28680 if (obj2) {
28681 {
28682 arg3 = &temp3;
28683 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28684 }
28685 }
28686 if (obj3) {
28687 {
28688 arg4 = &temp4;
28689 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28690 }
28691 }
28692 if (obj4) {
28693 ecode5 = SWIG_AsVal_long(obj4, &val5);
28694 if (!SWIG_IsOK(ecode5)) {
28695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28696 }
28697 arg5 = static_cast< long >(val5);
28698 }
28699 if (obj5) {
28700 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28701 if (!SWIG_IsOK(res6)) {
28702 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28703 }
28704 if (!argp6) {
28705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28706 }
28707 arg6 = reinterpret_cast< wxValidator * >(argp6);
28708 }
28709 if (obj6) {
28710 {
28711 arg7 = wxString_in_helper(obj6);
28712 if (arg7 == NULL) SWIG_fail;
28713 temp7 = true;
28714 }
28715 }
28716 {
28717 if (!wxPyCheckForApp()) SWIG_fail;
28718 PyThreadState* __tstate = wxPyBeginAllowThreads();
28719 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28720 wxPyEndAllowThreads(__tstate);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28724 {
28725 if (temp7)
28726 delete arg7;
28727 }
28728 return resultobj;
28729 fail:
28730 {
28731 if (temp7)
28732 delete arg7;
28733 }
28734 return NULL;
28735 }
28736
28737
28738 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28739 PyObject *resultobj = 0;
28740 wxPyListCtrl *result = 0 ;
28741
28742 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28743 {
28744 if (!wxPyCheckForApp()) SWIG_fail;
28745 PyThreadState* __tstate = wxPyBeginAllowThreads();
28746 result = (wxPyListCtrl *)new wxPyListCtrl();
28747 wxPyEndAllowThreads(__tstate);
28748 if (PyErr_Occurred()) SWIG_fail;
28749 }
28750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28751 return resultobj;
28752 fail:
28753 return NULL;
28754 }
28755
28756
28757 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28758 PyObject *resultobj = 0;
28759 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28760 wxWindow *arg2 = (wxWindow *) 0 ;
28761 int arg3 = (int) -1 ;
28762 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28763 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28764 wxSize const &arg5_defvalue = wxDefaultSize ;
28765 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28766 long arg6 = (long) wxLC_ICON ;
28767 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28768 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28769 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28770 wxString *arg8 = (wxString *) &arg8_defvalue ;
28771 bool result;
28772 void *argp1 = 0 ;
28773 int res1 = 0 ;
28774 void *argp2 = 0 ;
28775 int res2 = 0 ;
28776 int val3 ;
28777 int ecode3 = 0 ;
28778 wxPoint temp4 ;
28779 wxSize temp5 ;
28780 long val6 ;
28781 int ecode6 = 0 ;
28782 void *argp7 = 0 ;
28783 int res7 = 0 ;
28784 bool temp8 = false ;
28785 PyObject * obj0 = 0 ;
28786 PyObject * obj1 = 0 ;
28787 PyObject * obj2 = 0 ;
28788 PyObject * obj3 = 0 ;
28789 PyObject * obj4 = 0 ;
28790 PyObject * obj5 = 0 ;
28791 PyObject * obj6 = 0 ;
28792 PyObject * obj7 = 0 ;
28793 char * kwnames[] = {
28794 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28795 };
28796
28797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28799 if (!SWIG_IsOK(res1)) {
28800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28801 }
28802 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28804 if (!SWIG_IsOK(res2)) {
28805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28806 }
28807 arg2 = reinterpret_cast< wxWindow * >(argp2);
28808 if (obj2) {
28809 ecode3 = SWIG_AsVal_int(obj2, &val3);
28810 if (!SWIG_IsOK(ecode3)) {
28811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28812 }
28813 arg3 = static_cast< int >(val3);
28814 }
28815 if (obj3) {
28816 {
28817 arg4 = &temp4;
28818 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28819 }
28820 }
28821 if (obj4) {
28822 {
28823 arg5 = &temp5;
28824 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28825 }
28826 }
28827 if (obj5) {
28828 ecode6 = SWIG_AsVal_long(obj5, &val6);
28829 if (!SWIG_IsOK(ecode6)) {
28830 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28831 }
28832 arg6 = static_cast< long >(val6);
28833 }
28834 if (obj6) {
28835 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28836 if (!SWIG_IsOK(res7)) {
28837 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28838 }
28839 if (!argp7) {
28840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28841 }
28842 arg7 = reinterpret_cast< wxValidator * >(argp7);
28843 }
28844 if (obj7) {
28845 {
28846 arg8 = wxString_in_helper(obj7);
28847 if (arg8 == NULL) SWIG_fail;
28848 temp8 = true;
28849 }
28850 }
28851 {
28852 PyThreadState* __tstate = wxPyBeginAllowThreads();
28853 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28854 wxPyEndAllowThreads(__tstate);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 {
28858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28859 }
28860 {
28861 if (temp8)
28862 delete arg8;
28863 }
28864 return resultobj;
28865 fail:
28866 {
28867 if (temp8)
28868 delete arg8;
28869 }
28870 return NULL;
28871 }
28872
28873
28874 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28875 PyObject *resultobj = 0;
28876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28877 PyObject *arg2 = (PyObject *) 0 ;
28878 PyObject *arg3 = (PyObject *) 0 ;
28879 void *argp1 = 0 ;
28880 int res1 = 0 ;
28881 PyObject * obj0 = 0 ;
28882 PyObject * obj1 = 0 ;
28883 PyObject * obj2 = 0 ;
28884 char * kwnames[] = {
28885 (char *) "self",(char *) "self",(char *) "_class", NULL
28886 };
28887
28888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28890 if (!SWIG_IsOK(res1)) {
28891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28892 }
28893 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28894 arg2 = obj1;
28895 arg3 = obj2;
28896 {
28897 PyThreadState* __tstate = wxPyBeginAllowThreads();
28898 (arg1)->_setCallbackInfo(arg2,arg3);
28899 wxPyEndAllowThreads(__tstate);
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 resultobj = SWIG_Py_Void();
28903 return resultobj;
28904 fail:
28905 return NULL;
28906 }
28907
28908
28909 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28910 PyObject *resultobj = 0;
28911 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28912 int arg2 ;
28913 wxListItem *result = 0 ;
28914 void *argp1 = 0 ;
28915 int res1 = 0 ;
28916 int val2 ;
28917 int ecode2 = 0 ;
28918 PyObject * obj0 = 0 ;
28919 PyObject * obj1 = 0 ;
28920 char * kwnames[] = {
28921 (char *) "self",(char *) "col", NULL
28922 };
28923
28924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28926 if (!SWIG_IsOK(res1)) {
28927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28928 }
28929 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28930 ecode2 = SWIG_AsVal_int(obj1, &val2);
28931 if (!SWIG_IsOK(ecode2)) {
28932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28933 }
28934 arg2 = static_cast< int >(val2);
28935 {
28936 PyThreadState* __tstate = wxPyBeginAllowThreads();
28937 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28938 wxPyEndAllowThreads(__tstate);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 }
28941 {
28942 resultobj = wxPyMake_wxObject(result, (bool)0);
28943 }
28944 return resultobj;
28945 fail:
28946 return NULL;
28947 }
28948
28949
28950 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28951 PyObject *resultobj = 0;
28952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28953 int arg2 ;
28954 wxListItem *arg3 = 0 ;
28955 bool result;
28956 void *argp1 = 0 ;
28957 int res1 = 0 ;
28958 int val2 ;
28959 int ecode2 = 0 ;
28960 void *argp3 = 0 ;
28961 int res3 = 0 ;
28962 PyObject * obj0 = 0 ;
28963 PyObject * obj1 = 0 ;
28964 PyObject * obj2 = 0 ;
28965 char * kwnames[] = {
28966 (char *) "self",(char *) "col",(char *) "item", NULL
28967 };
28968
28969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28971 if (!SWIG_IsOK(res1)) {
28972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28973 }
28974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28975 ecode2 = SWIG_AsVal_int(obj1, &val2);
28976 if (!SWIG_IsOK(ecode2)) {
28977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28978 }
28979 arg2 = static_cast< int >(val2);
28980 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28981 if (!SWIG_IsOK(res3)) {
28982 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28983 }
28984 if (!argp3) {
28985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28986 }
28987 arg3 = reinterpret_cast< wxListItem * >(argp3);
28988 {
28989 PyThreadState* __tstate = wxPyBeginAllowThreads();
28990 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28991 wxPyEndAllowThreads(__tstate);
28992 if (PyErr_Occurred()) SWIG_fail;
28993 }
28994 {
28995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28996 }
28997 return resultobj;
28998 fail:
28999 return NULL;
29000 }
29001
29002
29003 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29004 PyObject *resultobj = 0;
29005 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29006 int arg2 ;
29007 int result;
29008 void *argp1 = 0 ;
29009 int res1 = 0 ;
29010 int val2 ;
29011 int ecode2 = 0 ;
29012 PyObject * obj0 = 0 ;
29013 PyObject * obj1 = 0 ;
29014 char * kwnames[] = {
29015 (char *) "self",(char *) "col", NULL
29016 };
29017
29018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29020 if (!SWIG_IsOK(res1)) {
29021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29022 }
29023 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29024 ecode2 = SWIG_AsVal_int(obj1, &val2);
29025 if (!SWIG_IsOK(ecode2)) {
29026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29027 }
29028 arg2 = static_cast< int >(val2);
29029 {
29030 PyThreadState* __tstate = wxPyBeginAllowThreads();
29031 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29032 wxPyEndAllowThreads(__tstate);
29033 if (PyErr_Occurred()) SWIG_fail;
29034 }
29035 resultobj = SWIG_From_int(static_cast< int >(result));
29036 return resultobj;
29037 fail:
29038 return NULL;
29039 }
29040
29041
29042 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29043 PyObject *resultobj = 0;
29044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29045 int arg2 ;
29046 int arg3 ;
29047 bool result;
29048 void *argp1 = 0 ;
29049 int res1 = 0 ;
29050 int val2 ;
29051 int ecode2 = 0 ;
29052 int val3 ;
29053 int ecode3 = 0 ;
29054 PyObject * obj0 = 0 ;
29055 PyObject * obj1 = 0 ;
29056 PyObject * obj2 = 0 ;
29057 char * kwnames[] = {
29058 (char *) "self",(char *) "col",(char *) "width", NULL
29059 };
29060
29061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29063 if (!SWIG_IsOK(res1)) {
29064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29065 }
29066 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29067 ecode2 = SWIG_AsVal_int(obj1, &val2);
29068 if (!SWIG_IsOK(ecode2)) {
29069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29070 }
29071 arg2 = static_cast< int >(val2);
29072 ecode3 = SWIG_AsVal_int(obj2, &val3);
29073 if (!SWIG_IsOK(ecode3)) {
29074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29075 }
29076 arg3 = static_cast< int >(val3);
29077 {
29078 PyThreadState* __tstate = wxPyBeginAllowThreads();
29079 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29080 wxPyEndAllowThreads(__tstate);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 {
29084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29085 }
29086 return resultobj;
29087 fail:
29088 return NULL;
29089 }
29090
29091
29092 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29093 PyObject *resultobj = 0;
29094 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29095 int result;
29096 void *argp1 = 0 ;
29097 int res1 = 0 ;
29098 PyObject *swig_obj[1] ;
29099
29100 if (!args) SWIG_fail;
29101 swig_obj[0] = args;
29102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29103 if (!SWIG_IsOK(res1)) {
29104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29105 }
29106 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29107 {
29108 PyThreadState* __tstate = wxPyBeginAllowThreads();
29109 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29110 wxPyEndAllowThreads(__tstate);
29111 if (PyErr_Occurred()) SWIG_fail;
29112 }
29113 resultobj = SWIG_From_int(static_cast< int >(result));
29114 return resultobj;
29115 fail:
29116 return NULL;
29117 }
29118
29119
29120 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29121 PyObject *resultobj = 0;
29122 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29123 wxRect result;
29124 void *argp1 = 0 ;
29125 int res1 = 0 ;
29126 PyObject *swig_obj[1] ;
29127
29128 if (!args) SWIG_fail;
29129 swig_obj[0] = args;
29130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29131 if (!SWIG_IsOK(res1)) {
29132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29133 }
29134 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29135 {
29136 PyThreadState* __tstate = wxPyBeginAllowThreads();
29137 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29138 wxPyEndAllowThreads(__tstate);
29139 if (PyErr_Occurred()) SWIG_fail;
29140 }
29141 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29142 return resultobj;
29143 fail:
29144 return NULL;
29145 }
29146
29147
29148 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29149 PyObject *resultobj = 0;
29150 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29151 wxTextCtrl *result = 0 ;
29152 void *argp1 = 0 ;
29153 int res1 = 0 ;
29154 PyObject *swig_obj[1] ;
29155
29156 if (!args) SWIG_fail;
29157 swig_obj[0] = args;
29158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29161 }
29162 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29163 {
29164 PyThreadState* __tstate = wxPyBeginAllowThreads();
29165 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29166 wxPyEndAllowThreads(__tstate);
29167 if (PyErr_Occurred()) SWIG_fail;
29168 }
29169 {
29170 resultobj = wxPyMake_wxObject(result, 0);
29171 }
29172 return resultobj;
29173 fail:
29174 return NULL;
29175 }
29176
29177
29178 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29179 PyObject *resultobj = 0;
29180 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29181 long arg2 ;
29182 int arg3 = (int) 0 ;
29183 wxListItem *result = 0 ;
29184 void *argp1 = 0 ;
29185 int res1 = 0 ;
29186 long val2 ;
29187 int ecode2 = 0 ;
29188 int val3 ;
29189 int ecode3 = 0 ;
29190 PyObject * obj0 = 0 ;
29191 PyObject * obj1 = 0 ;
29192 PyObject * obj2 = 0 ;
29193 char * kwnames[] = {
29194 (char *) "self",(char *) "itemId",(char *) "col", NULL
29195 };
29196
29197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29199 if (!SWIG_IsOK(res1)) {
29200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29201 }
29202 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29203 ecode2 = SWIG_AsVal_long(obj1, &val2);
29204 if (!SWIG_IsOK(ecode2)) {
29205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29206 }
29207 arg2 = static_cast< long >(val2);
29208 if (obj2) {
29209 ecode3 = SWIG_AsVal_int(obj2, &val3);
29210 if (!SWIG_IsOK(ecode3)) {
29211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29212 }
29213 arg3 = static_cast< int >(val3);
29214 }
29215 {
29216 PyThreadState* __tstate = wxPyBeginAllowThreads();
29217 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29218 wxPyEndAllowThreads(__tstate);
29219 if (PyErr_Occurred()) SWIG_fail;
29220 }
29221 {
29222 resultobj = wxPyMake_wxObject(result, (bool)0);
29223 }
29224 return resultobj;
29225 fail:
29226 return NULL;
29227 }
29228
29229
29230 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29231 PyObject *resultobj = 0;
29232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29233 wxListItem *arg2 = 0 ;
29234 bool result;
29235 void *argp1 = 0 ;
29236 int res1 = 0 ;
29237 void *argp2 = 0 ;
29238 int res2 = 0 ;
29239 PyObject * obj0 = 0 ;
29240 PyObject * obj1 = 0 ;
29241 char * kwnames[] = {
29242 (char *) "self",(char *) "info", NULL
29243 };
29244
29245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29247 if (!SWIG_IsOK(res1)) {
29248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29249 }
29250 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29252 if (!SWIG_IsOK(res2)) {
29253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29254 }
29255 if (!argp2) {
29256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29257 }
29258 arg2 = reinterpret_cast< wxListItem * >(argp2);
29259 {
29260 PyThreadState* __tstate = wxPyBeginAllowThreads();
29261 result = (bool)(arg1)->SetItem(*arg2);
29262 wxPyEndAllowThreads(__tstate);
29263 if (PyErr_Occurred()) SWIG_fail;
29264 }
29265 {
29266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29267 }
29268 return resultobj;
29269 fail:
29270 return NULL;
29271 }
29272
29273
29274 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29275 PyObject *resultobj = 0;
29276 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29277 long arg2 ;
29278 int arg3 ;
29279 wxString *arg4 = 0 ;
29280 int arg5 = (int) -1 ;
29281 long result;
29282 void *argp1 = 0 ;
29283 int res1 = 0 ;
29284 long val2 ;
29285 int ecode2 = 0 ;
29286 int val3 ;
29287 int ecode3 = 0 ;
29288 bool temp4 = false ;
29289 int val5 ;
29290 int ecode5 = 0 ;
29291 PyObject * obj0 = 0 ;
29292 PyObject * obj1 = 0 ;
29293 PyObject * obj2 = 0 ;
29294 PyObject * obj3 = 0 ;
29295 PyObject * obj4 = 0 ;
29296 char * kwnames[] = {
29297 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29298 };
29299
29300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29302 if (!SWIG_IsOK(res1)) {
29303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29304 }
29305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29306 ecode2 = SWIG_AsVal_long(obj1, &val2);
29307 if (!SWIG_IsOK(ecode2)) {
29308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29309 }
29310 arg2 = static_cast< long >(val2);
29311 ecode3 = SWIG_AsVal_int(obj2, &val3);
29312 if (!SWIG_IsOK(ecode3)) {
29313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29314 }
29315 arg3 = static_cast< int >(val3);
29316 {
29317 arg4 = wxString_in_helper(obj3);
29318 if (arg4 == NULL) SWIG_fail;
29319 temp4 = true;
29320 }
29321 if (obj4) {
29322 ecode5 = SWIG_AsVal_int(obj4, &val5);
29323 if (!SWIG_IsOK(ecode5)) {
29324 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29325 }
29326 arg5 = static_cast< int >(val5);
29327 }
29328 {
29329 PyThreadState* __tstate = wxPyBeginAllowThreads();
29330 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29331 wxPyEndAllowThreads(__tstate);
29332 if (PyErr_Occurred()) SWIG_fail;
29333 }
29334 resultobj = SWIG_From_long(static_cast< long >(result));
29335 {
29336 if (temp4)
29337 delete arg4;
29338 }
29339 return resultobj;
29340 fail:
29341 {
29342 if (temp4)
29343 delete arg4;
29344 }
29345 return NULL;
29346 }
29347
29348
29349 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29350 PyObject *resultobj = 0;
29351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29352 long arg2 ;
29353 long arg3 ;
29354 int result;
29355 void *argp1 = 0 ;
29356 int res1 = 0 ;
29357 long val2 ;
29358 int ecode2 = 0 ;
29359 long val3 ;
29360 int ecode3 = 0 ;
29361 PyObject * obj0 = 0 ;
29362 PyObject * obj1 = 0 ;
29363 PyObject * obj2 = 0 ;
29364 char * kwnames[] = {
29365 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29366 };
29367
29368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29370 if (!SWIG_IsOK(res1)) {
29371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29372 }
29373 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29374 ecode2 = SWIG_AsVal_long(obj1, &val2);
29375 if (!SWIG_IsOK(ecode2)) {
29376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29377 }
29378 arg2 = static_cast< long >(val2);
29379 ecode3 = SWIG_AsVal_long(obj2, &val3);
29380 if (!SWIG_IsOK(ecode3)) {
29381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29382 }
29383 arg3 = static_cast< long >(val3);
29384 {
29385 PyThreadState* __tstate = wxPyBeginAllowThreads();
29386 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29387 wxPyEndAllowThreads(__tstate);
29388 if (PyErr_Occurred()) SWIG_fail;
29389 }
29390 resultobj = SWIG_From_int(static_cast< int >(result));
29391 return resultobj;
29392 fail:
29393 return NULL;
29394 }
29395
29396
29397 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29398 PyObject *resultobj = 0;
29399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29400 long arg2 ;
29401 long arg3 ;
29402 long arg4 ;
29403 bool result;
29404 void *argp1 = 0 ;
29405 int res1 = 0 ;
29406 long val2 ;
29407 int ecode2 = 0 ;
29408 long val3 ;
29409 int ecode3 = 0 ;
29410 long val4 ;
29411 int ecode4 = 0 ;
29412 PyObject * obj0 = 0 ;
29413 PyObject * obj1 = 0 ;
29414 PyObject * obj2 = 0 ;
29415 PyObject * obj3 = 0 ;
29416 char * kwnames[] = {
29417 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29418 };
29419
29420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29422 if (!SWIG_IsOK(res1)) {
29423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29424 }
29425 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29426 ecode2 = SWIG_AsVal_long(obj1, &val2);
29427 if (!SWIG_IsOK(ecode2)) {
29428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29429 }
29430 arg2 = static_cast< long >(val2);
29431 ecode3 = SWIG_AsVal_long(obj2, &val3);
29432 if (!SWIG_IsOK(ecode3)) {
29433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29434 }
29435 arg3 = static_cast< long >(val3);
29436 ecode4 = SWIG_AsVal_long(obj3, &val4);
29437 if (!SWIG_IsOK(ecode4)) {
29438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29439 }
29440 arg4 = static_cast< long >(val4);
29441 {
29442 PyThreadState* __tstate = wxPyBeginAllowThreads();
29443 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29444 wxPyEndAllowThreads(__tstate);
29445 if (PyErr_Occurred()) SWIG_fail;
29446 }
29447 {
29448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29449 }
29450 return resultobj;
29451 fail:
29452 return NULL;
29453 }
29454
29455
29456 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29457 PyObject *resultobj = 0;
29458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29459 long arg2 ;
29460 int arg3 ;
29461 int arg4 = (int) -1 ;
29462 bool result;
29463 void *argp1 = 0 ;
29464 int res1 = 0 ;
29465 long val2 ;
29466 int ecode2 = 0 ;
29467 int val3 ;
29468 int ecode3 = 0 ;
29469 int val4 ;
29470 int ecode4 = 0 ;
29471 PyObject * obj0 = 0 ;
29472 PyObject * obj1 = 0 ;
29473 PyObject * obj2 = 0 ;
29474 PyObject * obj3 = 0 ;
29475 char * kwnames[] = {
29476 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29477 };
29478
29479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29481 if (!SWIG_IsOK(res1)) {
29482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29483 }
29484 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29485 ecode2 = SWIG_AsVal_long(obj1, &val2);
29486 if (!SWIG_IsOK(ecode2)) {
29487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29488 }
29489 arg2 = static_cast< long >(val2);
29490 ecode3 = SWIG_AsVal_int(obj2, &val3);
29491 if (!SWIG_IsOK(ecode3)) {
29492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29493 }
29494 arg3 = static_cast< int >(val3);
29495 if (obj3) {
29496 ecode4 = SWIG_AsVal_int(obj3, &val4);
29497 if (!SWIG_IsOK(ecode4)) {
29498 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29499 }
29500 arg4 = static_cast< int >(val4);
29501 }
29502 {
29503 PyThreadState* __tstate = wxPyBeginAllowThreads();
29504 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29505 wxPyEndAllowThreads(__tstate);
29506 if (PyErr_Occurred()) SWIG_fail;
29507 }
29508 {
29509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29510 }
29511 return resultobj;
29512 fail:
29513 return NULL;
29514 }
29515
29516
29517 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29518 PyObject *resultobj = 0;
29519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29520 long arg2 ;
29521 long arg3 ;
29522 int arg4 ;
29523 bool result;
29524 void *argp1 = 0 ;
29525 int res1 = 0 ;
29526 long val2 ;
29527 int ecode2 = 0 ;
29528 long val3 ;
29529 int ecode3 = 0 ;
29530 int val4 ;
29531 int ecode4 = 0 ;
29532 PyObject * obj0 = 0 ;
29533 PyObject * obj1 = 0 ;
29534 PyObject * obj2 = 0 ;
29535 PyObject * obj3 = 0 ;
29536 char * kwnames[] = {
29537 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29538 };
29539
29540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29542 if (!SWIG_IsOK(res1)) {
29543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29544 }
29545 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29546 ecode2 = SWIG_AsVal_long(obj1, &val2);
29547 if (!SWIG_IsOK(ecode2)) {
29548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29549 }
29550 arg2 = static_cast< long >(val2);
29551 ecode3 = SWIG_AsVal_long(obj2, &val3);
29552 if (!SWIG_IsOK(ecode3)) {
29553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29554 }
29555 arg3 = static_cast< long >(val3);
29556 ecode4 = SWIG_AsVal_int(obj3, &val4);
29557 if (!SWIG_IsOK(ecode4)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29559 }
29560 arg4 = static_cast< int >(val4);
29561 {
29562 PyThreadState* __tstate = wxPyBeginAllowThreads();
29563 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29564 wxPyEndAllowThreads(__tstate);
29565 if (PyErr_Occurred()) SWIG_fail;
29566 }
29567 {
29568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29569 }
29570 return resultobj;
29571 fail:
29572 return NULL;
29573 }
29574
29575
29576 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj = 0;
29578 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29579 long arg2 ;
29580 wxString result;
29581 void *argp1 = 0 ;
29582 int res1 = 0 ;
29583 long val2 ;
29584 int ecode2 = 0 ;
29585 PyObject * obj0 = 0 ;
29586 PyObject * obj1 = 0 ;
29587 char * kwnames[] = {
29588 (char *) "self",(char *) "item", NULL
29589 };
29590
29591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29593 if (!SWIG_IsOK(res1)) {
29594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29595 }
29596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29597 ecode2 = SWIG_AsVal_long(obj1, &val2);
29598 if (!SWIG_IsOK(ecode2)) {
29599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29600 }
29601 arg2 = static_cast< long >(val2);
29602 {
29603 PyThreadState* __tstate = wxPyBeginAllowThreads();
29604 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29605 wxPyEndAllowThreads(__tstate);
29606 if (PyErr_Occurred()) SWIG_fail;
29607 }
29608 {
29609 #if wxUSE_UNICODE
29610 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29611 #else
29612 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29613 #endif
29614 }
29615 return resultobj;
29616 fail:
29617 return NULL;
29618 }
29619
29620
29621 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29622 PyObject *resultobj = 0;
29623 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29624 long arg2 ;
29625 wxString *arg3 = 0 ;
29626 void *argp1 = 0 ;
29627 int res1 = 0 ;
29628 long val2 ;
29629 int ecode2 = 0 ;
29630 bool temp3 = false ;
29631 PyObject * obj0 = 0 ;
29632 PyObject * obj1 = 0 ;
29633 PyObject * obj2 = 0 ;
29634 char * kwnames[] = {
29635 (char *) "self",(char *) "item",(char *) "str", NULL
29636 };
29637
29638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29640 if (!SWIG_IsOK(res1)) {
29641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29642 }
29643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29644 ecode2 = SWIG_AsVal_long(obj1, &val2);
29645 if (!SWIG_IsOK(ecode2)) {
29646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29647 }
29648 arg2 = static_cast< long >(val2);
29649 {
29650 arg3 = wxString_in_helper(obj2);
29651 if (arg3 == NULL) SWIG_fail;
29652 temp3 = true;
29653 }
29654 {
29655 PyThreadState* __tstate = wxPyBeginAllowThreads();
29656 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29657 wxPyEndAllowThreads(__tstate);
29658 if (PyErr_Occurred()) SWIG_fail;
29659 }
29660 resultobj = SWIG_Py_Void();
29661 {
29662 if (temp3)
29663 delete arg3;
29664 }
29665 return resultobj;
29666 fail:
29667 {
29668 if (temp3)
29669 delete arg3;
29670 }
29671 return NULL;
29672 }
29673
29674
29675 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29676 PyObject *resultobj = 0;
29677 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29678 long arg2 ;
29679 long result;
29680 void *argp1 = 0 ;
29681 int res1 = 0 ;
29682 long val2 ;
29683 int ecode2 = 0 ;
29684 PyObject * obj0 = 0 ;
29685 PyObject * obj1 = 0 ;
29686 char * kwnames[] = {
29687 (char *) "self",(char *) "item", NULL
29688 };
29689
29690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29692 if (!SWIG_IsOK(res1)) {
29693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29694 }
29695 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29696 ecode2 = SWIG_AsVal_long(obj1, &val2);
29697 if (!SWIG_IsOK(ecode2)) {
29698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29699 }
29700 arg2 = static_cast< long >(val2);
29701 {
29702 PyThreadState* __tstate = wxPyBeginAllowThreads();
29703 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29704 wxPyEndAllowThreads(__tstate);
29705 if (PyErr_Occurred()) SWIG_fail;
29706 }
29707 resultobj = SWIG_From_long(static_cast< long >(result));
29708 return resultobj;
29709 fail:
29710 return NULL;
29711 }
29712
29713
29714 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29715 PyObject *resultobj = 0;
29716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29717 long arg2 ;
29718 long arg3 ;
29719 bool result;
29720 void *argp1 = 0 ;
29721 int res1 = 0 ;
29722 long val2 ;
29723 int ecode2 = 0 ;
29724 long val3 ;
29725 int ecode3 = 0 ;
29726 PyObject * obj0 = 0 ;
29727 PyObject * obj1 = 0 ;
29728 PyObject * obj2 = 0 ;
29729 char * kwnames[] = {
29730 (char *) "self",(char *) "item",(char *) "data", NULL
29731 };
29732
29733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29735 if (!SWIG_IsOK(res1)) {
29736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29737 }
29738 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29739 ecode2 = SWIG_AsVal_long(obj1, &val2);
29740 if (!SWIG_IsOK(ecode2)) {
29741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29742 }
29743 arg2 = static_cast< long >(val2);
29744 ecode3 = SWIG_AsVal_long(obj2, &val3);
29745 if (!SWIG_IsOK(ecode3)) {
29746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29747 }
29748 arg3 = static_cast< long >(val3);
29749 {
29750 PyThreadState* __tstate = wxPyBeginAllowThreads();
29751 result = (bool)(arg1)->SetItemData(arg2,arg3);
29752 wxPyEndAllowThreads(__tstate);
29753 if (PyErr_Occurred()) SWIG_fail;
29754 }
29755 {
29756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29757 }
29758 return resultobj;
29759 fail:
29760 return NULL;
29761 }
29762
29763
29764 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29765 PyObject *resultobj = 0;
29766 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29767 long arg2 ;
29768 wxPoint result;
29769 void *argp1 = 0 ;
29770 int res1 = 0 ;
29771 long val2 ;
29772 int ecode2 = 0 ;
29773 PyObject * obj0 = 0 ;
29774 PyObject * obj1 = 0 ;
29775 char * kwnames[] = {
29776 (char *) "self",(char *) "item", NULL
29777 };
29778
29779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29781 if (!SWIG_IsOK(res1)) {
29782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29783 }
29784 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29785 ecode2 = SWIG_AsVal_long(obj1, &val2);
29786 if (!SWIG_IsOK(ecode2)) {
29787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29788 }
29789 arg2 = static_cast< long >(val2);
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29793 wxPyEndAllowThreads(__tstate);
29794 if (PyErr_Occurred()) SWIG_fail;
29795 }
29796 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29797 return resultobj;
29798 fail:
29799 return NULL;
29800 }
29801
29802
29803 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29804 PyObject *resultobj = 0;
29805 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29806 long arg2 ;
29807 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29808 wxRect result;
29809 void *argp1 = 0 ;
29810 int res1 = 0 ;
29811 long val2 ;
29812 int ecode2 = 0 ;
29813 int val3 ;
29814 int ecode3 = 0 ;
29815 PyObject * obj0 = 0 ;
29816 PyObject * obj1 = 0 ;
29817 PyObject * obj2 = 0 ;
29818 char * kwnames[] = {
29819 (char *) "self",(char *) "item",(char *) "code", NULL
29820 };
29821
29822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29824 if (!SWIG_IsOK(res1)) {
29825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29826 }
29827 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29828 ecode2 = SWIG_AsVal_long(obj1, &val2);
29829 if (!SWIG_IsOK(ecode2)) {
29830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29831 }
29832 arg2 = static_cast< long >(val2);
29833 if (obj2) {
29834 ecode3 = SWIG_AsVal_int(obj2, &val3);
29835 if (!SWIG_IsOK(ecode3)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29837 }
29838 arg3 = static_cast< int >(val3);
29839 }
29840 {
29841 PyThreadState* __tstate = wxPyBeginAllowThreads();
29842 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29843 wxPyEndAllowThreads(__tstate);
29844 if (PyErr_Occurred()) SWIG_fail;
29845 }
29846 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29847 return resultobj;
29848 fail:
29849 return NULL;
29850 }
29851
29852
29853 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29854 PyObject *resultobj = 0;
29855 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29856 long arg2 ;
29857 wxPoint *arg3 = 0 ;
29858 bool result;
29859 void *argp1 = 0 ;
29860 int res1 = 0 ;
29861 long val2 ;
29862 int ecode2 = 0 ;
29863 wxPoint temp3 ;
29864 PyObject * obj0 = 0 ;
29865 PyObject * obj1 = 0 ;
29866 PyObject * obj2 = 0 ;
29867 char * kwnames[] = {
29868 (char *) "self",(char *) "item",(char *) "pos", NULL
29869 };
29870
29871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29875 }
29876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29877 ecode2 = SWIG_AsVal_long(obj1, &val2);
29878 if (!SWIG_IsOK(ecode2)) {
29879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29880 }
29881 arg2 = static_cast< long >(val2);
29882 {
29883 arg3 = &temp3;
29884 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29885 }
29886 {
29887 PyThreadState* __tstate = wxPyBeginAllowThreads();
29888 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29889 wxPyEndAllowThreads(__tstate);
29890 if (PyErr_Occurred()) SWIG_fail;
29891 }
29892 {
29893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29894 }
29895 return resultobj;
29896 fail:
29897 return NULL;
29898 }
29899
29900
29901 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29902 PyObject *resultobj = 0;
29903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29904 int result;
29905 void *argp1 = 0 ;
29906 int res1 = 0 ;
29907 PyObject *swig_obj[1] ;
29908
29909 if (!args) SWIG_fail;
29910 swig_obj[0] = args;
29911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29912 if (!SWIG_IsOK(res1)) {
29913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29914 }
29915 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29916 {
29917 PyThreadState* __tstate = wxPyBeginAllowThreads();
29918 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29919 wxPyEndAllowThreads(__tstate);
29920 if (PyErr_Occurred()) SWIG_fail;
29921 }
29922 resultobj = SWIG_From_int(static_cast< int >(result));
29923 return resultobj;
29924 fail:
29925 return NULL;
29926 }
29927
29928
29929 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29930 PyObject *resultobj = 0;
29931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29932 int result;
29933 void *argp1 = 0 ;
29934 int res1 = 0 ;
29935 PyObject *swig_obj[1] ;
29936
29937 if (!args) SWIG_fail;
29938 swig_obj[0] = args;
29939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29940 if (!SWIG_IsOK(res1)) {
29941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29942 }
29943 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29944 {
29945 PyThreadState* __tstate = wxPyBeginAllowThreads();
29946 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29947 wxPyEndAllowThreads(__tstate);
29948 if (PyErr_Occurred()) SWIG_fail;
29949 }
29950 resultobj = SWIG_From_int(static_cast< int >(result));
29951 return resultobj;
29952 fail:
29953 return NULL;
29954 }
29955
29956
29957 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29958 PyObject *resultobj = 0;
29959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29960 wxSize result;
29961 void *argp1 = 0 ;
29962 int res1 = 0 ;
29963 PyObject *swig_obj[1] ;
29964
29965 if (!args) SWIG_fail;
29966 swig_obj[0] = args;
29967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29968 if (!SWIG_IsOK(res1)) {
29969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29970 }
29971 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29972 {
29973 PyThreadState* __tstate = wxPyBeginAllowThreads();
29974 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29975 wxPyEndAllowThreads(__tstate);
29976 if (PyErr_Occurred()) SWIG_fail;
29977 }
29978 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29979 return resultobj;
29980 fail:
29981 return NULL;
29982 }
29983
29984
29985 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29986 PyObject *resultobj = 0;
29987 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29988 int result;
29989 void *argp1 = 0 ;
29990 int res1 = 0 ;
29991 PyObject *swig_obj[1] ;
29992
29993 if (!args) SWIG_fail;
29994 swig_obj[0] = args;
29995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29996 if (!SWIG_IsOK(res1)) {
29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29998 }
29999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30000 {
30001 PyThreadState* __tstate = wxPyBeginAllowThreads();
30002 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30003 wxPyEndAllowThreads(__tstate);
30004 if (PyErr_Occurred()) SWIG_fail;
30005 }
30006 resultobj = SWIG_From_int(static_cast< int >(result));
30007 return resultobj;
30008 fail:
30009 return NULL;
30010 }
30011
30012
30013 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30014 PyObject *resultobj = 0;
30015 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30016 wxColour result;
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 PyObject *swig_obj[1] ;
30020
30021 if (!args) SWIG_fail;
30022 swig_obj[0] = args;
30023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30024 if (!SWIG_IsOK(res1)) {
30025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30026 }
30027 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30028 {
30029 PyThreadState* __tstate = wxPyBeginAllowThreads();
30030 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30031 wxPyEndAllowThreads(__tstate);
30032 if (PyErr_Occurred()) SWIG_fail;
30033 }
30034 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30035 return resultobj;
30036 fail:
30037 return NULL;
30038 }
30039
30040
30041 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30042 PyObject *resultobj = 0;
30043 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30044 wxColour *arg2 = 0 ;
30045 void *argp1 = 0 ;
30046 int res1 = 0 ;
30047 wxColour temp2 ;
30048 PyObject * obj0 = 0 ;
30049 PyObject * obj1 = 0 ;
30050 char * kwnames[] = {
30051 (char *) "self",(char *) "col", NULL
30052 };
30053
30054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30056 if (!SWIG_IsOK(res1)) {
30057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30058 }
30059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30060 {
30061 arg2 = &temp2;
30062 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30063 }
30064 {
30065 PyThreadState* __tstate = wxPyBeginAllowThreads();
30066 (arg1)->SetTextColour((wxColour const &)*arg2);
30067 wxPyEndAllowThreads(__tstate);
30068 if (PyErr_Occurred()) SWIG_fail;
30069 }
30070 resultobj = SWIG_Py_Void();
30071 return resultobj;
30072 fail:
30073 return NULL;
30074 }
30075
30076
30077 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30078 PyObject *resultobj = 0;
30079 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30080 long result;
30081 void *argp1 = 0 ;
30082 int res1 = 0 ;
30083 PyObject *swig_obj[1] ;
30084
30085 if (!args) SWIG_fail;
30086 swig_obj[0] = args;
30087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30088 if (!SWIG_IsOK(res1)) {
30089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30090 }
30091 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30092 {
30093 PyThreadState* __tstate = wxPyBeginAllowThreads();
30094 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30095 wxPyEndAllowThreads(__tstate);
30096 if (PyErr_Occurred()) SWIG_fail;
30097 }
30098 resultobj = SWIG_From_long(static_cast< long >(result));
30099 return resultobj;
30100 fail:
30101 return NULL;
30102 }
30103
30104
30105 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30106 PyObject *resultobj = 0;
30107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30108 long arg2 ;
30109 bool arg3 = (bool) true ;
30110 void *argp1 = 0 ;
30111 int res1 = 0 ;
30112 long val2 ;
30113 int ecode2 = 0 ;
30114 bool val3 ;
30115 int ecode3 = 0 ;
30116 PyObject * obj0 = 0 ;
30117 PyObject * obj1 = 0 ;
30118 PyObject * obj2 = 0 ;
30119 char * kwnames[] = {
30120 (char *) "self",(char *) "style",(char *) "add", NULL
30121 };
30122
30123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30125 if (!SWIG_IsOK(res1)) {
30126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30127 }
30128 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30129 ecode2 = SWIG_AsVal_long(obj1, &val2);
30130 if (!SWIG_IsOK(ecode2)) {
30131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30132 }
30133 arg2 = static_cast< long >(val2);
30134 if (obj2) {
30135 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30136 if (!SWIG_IsOK(ecode3)) {
30137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30138 }
30139 arg3 = static_cast< bool >(val3);
30140 }
30141 {
30142 PyThreadState* __tstate = wxPyBeginAllowThreads();
30143 (arg1)->SetSingleStyle(arg2,arg3);
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 resultobj = SWIG_Py_Void();
30148 return resultobj;
30149 fail:
30150 return NULL;
30151 }
30152
30153
30154 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30155 PyObject *resultobj = 0;
30156 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30157 long arg2 ;
30158 int arg3 = (int) wxLIST_NEXT_ALL ;
30159 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30160 long result;
30161 void *argp1 = 0 ;
30162 int res1 = 0 ;
30163 long val2 ;
30164 int ecode2 = 0 ;
30165 int val3 ;
30166 int ecode3 = 0 ;
30167 int val4 ;
30168 int ecode4 = 0 ;
30169 PyObject * obj0 = 0 ;
30170 PyObject * obj1 = 0 ;
30171 PyObject * obj2 = 0 ;
30172 PyObject * obj3 = 0 ;
30173 char * kwnames[] = {
30174 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30175 };
30176
30177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30179 if (!SWIG_IsOK(res1)) {
30180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30181 }
30182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30183 ecode2 = SWIG_AsVal_long(obj1, &val2);
30184 if (!SWIG_IsOK(ecode2)) {
30185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30186 }
30187 arg2 = static_cast< long >(val2);
30188 if (obj2) {
30189 ecode3 = SWIG_AsVal_int(obj2, &val3);
30190 if (!SWIG_IsOK(ecode3)) {
30191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30192 }
30193 arg3 = static_cast< int >(val3);
30194 }
30195 if (obj3) {
30196 ecode4 = SWIG_AsVal_int(obj3, &val4);
30197 if (!SWIG_IsOK(ecode4)) {
30198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30199 }
30200 arg4 = static_cast< int >(val4);
30201 }
30202 {
30203 PyThreadState* __tstate = wxPyBeginAllowThreads();
30204 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30205 wxPyEndAllowThreads(__tstate);
30206 if (PyErr_Occurred()) SWIG_fail;
30207 }
30208 resultobj = SWIG_From_long(static_cast< long >(result));
30209 return resultobj;
30210 fail:
30211 return NULL;
30212 }
30213
30214
30215 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30216 PyObject *resultobj = 0;
30217 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30218 int arg2 ;
30219 wxImageList *result = 0 ;
30220 void *argp1 = 0 ;
30221 int res1 = 0 ;
30222 int val2 ;
30223 int ecode2 = 0 ;
30224 PyObject * obj0 = 0 ;
30225 PyObject * obj1 = 0 ;
30226 char * kwnames[] = {
30227 (char *) "self",(char *) "which", NULL
30228 };
30229
30230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30232 if (!SWIG_IsOK(res1)) {
30233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30234 }
30235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30236 ecode2 = SWIG_AsVal_int(obj1, &val2);
30237 if (!SWIG_IsOK(ecode2)) {
30238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30239 }
30240 arg2 = static_cast< int >(val2);
30241 {
30242 PyThreadState* __tstate = wxPyBeginAllowThreads();
30243 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30244 wxPyEndAllowThreads(__tstate);
30245 if (PyErr_Occurred()) SWIG_fail;
30246 }
30247 {
30248 resultobj = wxPyMake_wxObject(result, (bool)0);
30249 }
30250 return resultobj;
30251 fail:
30252 return NULL;
30253 }
30254
30255
30256 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30257 PyObject *resultobj = 0;
30258 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30259 wxImageList *arg2 = (wxImageList *) 0 ;
30260 int arg3 ;
30261 void *argp1 = 0 ;
30262 int res1 = 0 ;
30263 void *argp2 = 0 ;
30264 int res2 = 0 ;
30265 int val3 ;
30266 int ecode3 = 0 ;
30267 PyObject * obj0 = 0 ;
30268 PyObject * obj1 = 0 ;
30269 PyObject * obj2 = 0 ;
30270 char * kwnames[] = {
30271 (char *) "self",(char *) "imageList",(char *) "which", NULL
30272 };
30273
30274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30276 if (!SWIG_IsOK(res1)) {
30277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30278 }
30279 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30281 if (!SWIG_IsOK(res2)) {
30282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30283 }
30284 arg2 = reinterpret_cast< wxImageList * >(argp2);
30285 ecode3 = SWIG_AsVal_int(obj2, &val3);
30286 if (!SWIG_IsOK(ecode3)) {
30287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30288 }
30289 arg3 = static_cast< int >(val3);
30290 {
30291 PyThreadState* __tstate = wxPyBeginAllowThreads();
30292 (arg1)->SetImageList(arg2,arg3);
30293 wxPyEndAllowThreads(__tstate);
30294 if (PyErr_Occurred()) SWIG_fail;
30295 }
30296 resultobj = SWIG_Py_Void();
30297 return resultobj;
30298 fail:
30299 return NULL;
30300 }
30301
30302
30303 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30304 PyObject *resultobj = 0;
30305 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30306 wxImageList *arg2 = (wxImageList *) 0 ;
30307 int arg3 ;
30308 void *argp1 = 0 ;
30309 int res1 = 0 ;
30310 int res2 = 0 ;
30311 int val3 ;
30312 int ecode3 = 0 ;
30313 PyObject * obj0 = 0 ;
30314 PyObject * obj1 = 0 ;
30315 PyObject * obj2 = 0 ;
30316 char * kwnames[] = {
30317 (char *) "self",(char *) "imageList",(char *) "which", NULL
30318 };
30319
30320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30322 if (!SWIG_IsOK(res1)) {
30323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30324 }
30325 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30326 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30327 if (!SWIG_IsOK(res2)) {
30328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30329 }
30330 ecode3 = SWIG_AsVal_int(obj2, &val3);
30331 if (!SWIG_IsOK(ecode3)) {
30332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30333 }
30334 arg3 = static_cast< int >(val3);
30335 {
30336 PyThreadState* __tstate = wxPyBeginAllowThreads();
30337 (arg1)->AssignImageList(arg2,arg3);
30338 wxPyEndAllowThreads(__tstate);
30339 if (PyErr_Occurred()) SWIG_fail;
30340 }
30341 resultobj = SWIG_Py_Void();
30342 return resultobj;
30343 fail:
30344 return NULL;
30345 }
30346
30347
30348 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30349 PyObject *resultobj = 0;
30350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30351 bool result;
30352 void *argp1 = 0 ;
30353 int res1 = 0 ;
30354 PyObject *swig_obj[1] ;
30355
30356 if (!args) SWIG_fail;
30357 swig_obj[0] = args;
30358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30359 if (!SWIG_IsOK(res1)) {
30360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30361 }
30362 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30363 {
30364 PyThreadState* __tstate = wxPyBeginAllowThreads();
30365 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30366 wxPyEndAllowThreads(__tstate);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 {
30370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30371 }
30372 return resultobj;
30373 fail:
30374 return NULL;
30375 }
30376
30377
30378 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30379 PyObject *resultobj = 0;
30380 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30381 bool result;
30382 void *argp1 = 0 ;
30383 int res1 = 0 ;
30384 PyObject *swig_obj[1] ;
30385
30386 if (!args) SWIG_fail;
30387 swig_obj[0] = args;
30388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30389 if (!SWIG_IsOK(res1)) {
30390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30391 }
30392 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30393 {
30394 PyThreadState* __tstate = wxPyBeginAllowThreads();
30395 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30396 wxPyEndAllowThreads(__tstate);
30397 if (PyErr_Occurred()) SWIG_fail;
30398 }
30399 {
30400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30401 }
30402 return resultobj;
30403 fail:
30404 return NULL;
30405 }
30406
30407
30408 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30409 PyObject *resultobj = 0;
30410 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30411 long arg2 ;
30412 void *argp1 = 0 ;
30413 int res1 = 0 ;
30414 long val2 ;
30415 int ecode2 = 0 ;
30416 PyObject * obj0 = 0 ;
30417 PyObject * obj1 = 0 ;
30418 char * kwnames[] = {
30419 (char *) "self",(char *) "item", NULL
30420 };
30421
30422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30424 if (!SWIG_IsOK(res1)) {
30425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30426 }
30427 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30428 ecode2 = SWIG_AsVal_long(obj1, &val2);
30429 if (!SWIG_IsOK(ecode2)) {
30430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30431 }
30432 arg2 = static_cast< long >(val2);
30433 {
30434 PyThreadState* __tstate = wxPyBeginAllowThreads();
30435 (arg1)->RefreshItem(arg2);
30436 wxPyEndAllowThreads(__tstate);
30437 if (PyErr_Occurred()) SWIG_fail;
30438 }
30439 resultobj = SWIG_Py_Void();
30440 return resultobj;
30441 fail:
30442 return NULL;
30443 }
30444
30445
30446 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30447 PyObject *resultobj = 0;
30448 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30449 long arg2 ;
30450 long arg3 ;
30451 void *argp1 = 0 ;
30452 int res1 = 0 ;
30453 long val2 ;
30454 int ecode2 = 0 ;
30455 long val3 ;
30456 int ecode3 = 0 ;
30457 PyObject * obj0 = 0 ;
30458 PyObject * obj1 = 0 ;
30459 PyObject * obj2 = 0 ;
30460 char * kwnames[] = {
30461 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30462 };
30463
30464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30466 if (!SWIG_IsOK(res1)) {
30467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30468 }
30469 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30470 ecode2 = SWIG_AsVal_long(obj1, &val2);
30471 if (!SWIG_IsOK(ecode2)) {
30472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30473 }
30474 arg2 = static_cast< long >(val2);
30475 ecode3 = SWIG_AsVal_long(obj2, &val3);
30476 if (!SWIG_IsOK(ecode3)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30478 }
30479 arg3 = static_cast< long >(val3);
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 (arg1)->RefreshItems(arg2,arg3);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 resultobj = SWIG_Py_Void();
30487 return resultobj;
30488 fail:
30489 return NULL;
30490 }
30491
30492
30493 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30494 PyObject *resultobj = 0;
30495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30496 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30497 bool result;
30498 void *argp1 = 0 ;
30499 int res1 = 0 ;
30500 int val2 ;
30501 int ecode2 = 0 ;
30502 PyObject * obj0 = 0 ;
30503 PyObject * obj1 = 0 ;
30504 char * kwnames[] = {
30505 (char *) "self",(char *) "flag", NULL
30506 };
30507
30508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30510 if (!SWIG_IsOK(res1)) {
30511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30512 }
30513 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30514 if (obj1) {
30515 ecode2 = SWIG_AsVal_int(obj1, &val2);
30516 if (!SWIG_IsOK(ecode2)) {
30517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30518 }
30519 arg2 = static_cast< int >(val2);
30520 }
30521 {
30522 PyThreadState* __tstate = wxPyBeginAllowThreads();
30523 result = (bool)(arg1)->Arrange(arg2);
30524 wxPyEndAllowThreads(__tstate);
30525 if (PyErr_Occurred()) SWIG_fail;
30526 }
30527 {
30528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30529 }
30530 return resultobj;
30531 fail:
30532 return NULL;
30533 }
30534
30535
30536 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30537 PyObject *resultobj = 0;
30538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30539 long arg2 ;
30540 bool result;
30541 void *argp1 = 0 ;
30542 int res1 = 0 ;
30543 long val2 ;
30544 int ecode2 = 0 ;
30545 PyObject * obj0 = 0 ;
30546 PyObject * obj1 = 0 ;
30547 char * kwnames[] = {
30548 (char *) "self",(char *) "item", NULL
30549 };
30550
30551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30553 if (!SWIG_IsOK(res1)) {
30554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30555 }
30556 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30557 ecode2 = SWIG_AsVal_long(obj1, &val2);
30558 if (!SWIG_IsOK(ecode2)) {
30559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30560 }
30561 arg2 = static_cast< long >(val2);
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
30564 result = (bool)(arg1)->DeleteItem(arg2);
30565 wxPyEndAllowThreads(__tstate);
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 {
30569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30570 }
30571 return resultobj;
30572 fail:
30573 return NULL;
30574 }
30575
30576
30577 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30578 PyObject *resultobj = 0;
30579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30580 bool result;
30581 void *argp1 = 0 ;
30582 int res1 = 0 ;
30583 PyObject *swig_obj[1] ;
30584
30585 if (!args) SWIG_fail;
30586 swig_obj[0] = args;
30587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30588 if (!SWIG_IsOK(res1)) {
30589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30590 }
30591 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30592 {
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 result = (bool)(arg1)->DeleteAllItems();
30595 wxPyEndAllowThreads(__tstate);
30596 if (PyErr_Occurred()) SWIG_fail;
30597 }
30598 {
30599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30600 }
30601 return resultobj;
30602 fail:
30603 return NULL;
30604 }
30605
30606
30607 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30608 PyObject *resultobj = 0;
30609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30610 int arg2 ;
30611 bool result;
30612 void *argp1 = 0 ;
30613 int res1 = 0 ;
30614 int val2 ;
30615 int ecode2 = 0 ;
30616 PyObject * obj0 = 0 ;
30617 PyObject * obj1 = 0 ;
30618 char * kwnames[] = {
30619 (char *) "self",(char *) "col", NULL
30620 };
30621
30622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30624 if (!SWIG_IsOK(res1)) {
30625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30626 }
30627 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30628 ecode2 = SWIG_AsVal_int(obj1, &val2);
30629 if (!SWIG_IsOK(ecode2)) {
30630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30631 }
30632 arg2 = static_cast< int >(val2);
30633 {
30634 PyThreadState* __tstate = wxPyBeginAllowThreads();
30635 result = (bool)(arg1)->DeleteColumn(arg2);
30636 wxPyEndAllowThreads(__tstate);
30637 if (PyErr_Occurred()) SWIG_fail;
30638 }
30639 {
30640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30641 }
30642 return resultobj;
30643 fail:
30644 return NULL;
30645 }
30646
30647
30648 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30649 PyObject *resultobj = 0;
30650 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30651 bool result;
30652 void *argp1 = 0 ;
30653 int res1 = 0 ;
30654 PyObject *swig_obj[1] ;
30655
30656 if (!args) SWIG_fail;
30657 swig_obj[0] = args;
30658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30659 if (!SWIG_IsOK(res1)) {
30660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30661 }
30662 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30663 {
30664 PyThreadState* __tstate = wxPyBeginAllowThreads();
30665 result = (bool)(arg1)->DeleteAllColumns();
30666 wxPyEndAllowThreads(__tstate);
30667 if (PyErr_Occurred()) SWIG_fail;
30668 }
30669 {
30670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30671 }
30672 return resultobj;
30673 fail:
30674 return NULL;
30675 }
30676
30677
30678 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30679 PyObject *resultobj = 0;
30680 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30681 void *argp1 = 0 ;
30682 int res1 = 0 ;
30683 PyObject *swig_obj[1] ;
30684
30685 if (!args) SWIG_fail;
30686 swig_obj[0] = args;
30687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30688 if (!SWIG_IsOK(res1)) {
30689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30690 }
30691 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30692 {
30693 PyThreadState* __tstate = wxPyBeginAllowThreads();
30694 (arg1)->ClearAll();
30695 wxPyEndAllowThreads(__tstate);
30696 if (PyErr_Occurred()) SWIG_fail;
30697 }
30698 resultobj = SWIG_Py_Void();
30699 return resultobj;
30700 fail:
30701 return NULL;
30702 }
30703
30704
30705 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30706 PyObject *resultobj = 0;
30707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30708 long arg2 ;
30709 wxTextCtrl *result = 0 ;
30710 void *argp1 = 0 ;
30711 int res1 = 0 ;
30712 long val2 ;
30713 int ecode2 = 0 ;
30714 PyObject * obj0 = 0 ;
30715 PyObject * obj1 = 0 ;
30716 char * kwnames[] = {
30717 (char *) "self",(char *) "item", NULL
30718 };
30719
30720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30722 if (!SWIG_IsOK(res1)) {
30723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30724 }
30725 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30726 ecode2 = SWIG_AsVal_long(obj1, &val2);
30727 if (!SWIG_IsOK(ecode2)) {
30728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30729 }
30730 arg2 = static_cast< long >(val2);
30731 {
30732 PyThreadState* __tstate = wxPyBeginAllowThreads();
30733 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30734 wxPyEndAllowThreads(__tstate);
30735 if (PyErr_Occurred()) SWIG_fail;
30736 }
30737 {
30738 resultobj = wxPyMake_wxObject(result, 0);
30739 }
30740 return resultobj;
30741 fail:
30742 return NULL;
30743 }
30744
30745
30746 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30747 PyObject *resultobj = 0;
30748 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30749 bool arg2 ;
30750 bool result;
30751 void *argp1 = 0 ;
30752 int res1 = 0 ;
30753 bool val2 ;
30754 int ecode2 = 0 ;
30755 PyObject * obj0 = 0 ;
30756 PyObject * obj1 = 0 ;
30757 char * kwnames[] = {
30758 (char *) "self",(char *) "cancel", NULL
30759 };
30760
30761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30763 if (!SWIG_IsOK(res1)) {
30764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30765 }
30766 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30767 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30768 if (!SWIG_IsOK(ecode2)) {
30769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30770 }
30771 arg2 = static_cast< bool >(val2);
30772 {
30773 PyThreadState* __tstate = wxPyBeginAllowThreads();
30774 result = (bool)(arg1)->EndEditLabel(arg2);
30775 wxPyEndAllowThreads(__tstate);
30776 if (PyErr_Occurred()) SWIG_fail;
30777 }
30778 {
30779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30780 }
30781 return resultobj;
30782 fail:
30783 return NULL;
30784 }
30785
30786
30787 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30788 PyObject *resultobj = 0;
30789 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30790 long arg2 ;
30791 bool result;
30792 void *argp1 = 0 ;
30793 int res1 = 0 ;
30794 long val2 ;
30795 int ecode2 = 0 ;
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
30798 char * kwnames[] = {
30799 (char *) "self",(char *) "item", NULL
30800 };
30801
30802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30804 if (!SWIG_IsOK(res1)) {
30805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30806 }
30807 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30808 ecode2 = SWIG_AsVal_long(obj1, &val2);
30809 if (!SWIG_IsOK(ecode2)) {
30810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30811 }
30812 arg2 = static_cast< long >(val2);
30813 {
30814 PyThreadState* __tstate = wxPyBeginAllowThreads();
30815 result = (bool)(arg1)->EnsureVisible(arg2);
30816 wxPyEndAllowThreads(__tstate);
30817 if (PyErr_Occurred()) SWIG_fail;
30818 }
30819 {
30820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30821 }
30822 return resultobj;
30823 fail:
30824 return NULL;
30825 }
30826
30827
30828 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30829 PyObject *resultobj = 0;
30830 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30831 long arg2 ;
30832 wxString *arg3 = 0 ;
30833 bool arg4 = (bool) false ;
30834 long result;
30835 void *argp1 = 0 ;
30836 int res1 = 0 ;
30837 long val2 ;
30838 int ecode2 = 0 ;
30839 bool temp3 = false ;
30840 bool val4 ;
30841 int ecode4 = 0 ;
30842 PyObject * obj0 = 0 ;
30843 PyObject * obj1 = 0 ;
30844 PyObject * obj2 = 0 ;
30845 PyObject * obj3 = 0 ;
30846 char * kwnames[] = {
30847 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30848 };
30849
30850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30852 if (!SWIG_IsOK(res1)) {
30853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30854 }
30855 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30856 ecode2 = SWIG_AsVal_long(obj1, &val2);
30857 if (!SWIG_IsOK(ecode2)) {
30858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30859 }
30860 arg2 = static_cast< long >(val2);
30861 {
30862 arg3 = wxString_in_helper(obj2);
30863 if (arg3 == NULL) SWIG_fail;
30864 temp3 = true;
30865 }
30866 if (obj3) {
30867 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30868 if (!SWIG_IsOK(ecode4)) {
30869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30870 }
30871 arg4 = static_cast< bool >(val4);
30872 }
30873 {
30874 PyThreadState* __tstate = wxPyBeginAllowThreads();
30875 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30876 wxPyEndAllowThreads(__tstate);
30877 if (PyErr_Occurred()) SWIG_fail;
30878 }
30879 resultobj = SWIG_From_long(static_cast< long >(result));
30880 {
30881 if (temp3)
30882 delete arg3;
30883 }
30884 return resultobj;
30885 fail:
30886 {
30887 if (temp3)
30888 delete arg3;
30889 }
30890 return NULL;
30891 }
30892
30893
30894 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30895 PyObject *resultobj = 0;
30896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30897 long arg2 ;
30898 long arg3 ;
30899 long result;
30900 void *argp1 = 0 ;
30901 int res1 = 0 ;
30902 long val2 ;
30903 int ecode2 = 0 ;
30904 long val3 ;
30905 int ecode3 = 0 ;
30906 PyObject * obj0 = 0 ;
30907 PyObject * obj1 = 0 ;
30908 PyObject * obj2 = 0 ;
30909 char * kwnames[] = {
30910 (char *) "self",(char *) "start",(char *) "data", NULL
30911 };
30912
30913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30915 if (!SWIG_IsOK(res1)) {
30916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30917 }
30918 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30919 ecode2 = SWIG_AsVal_long(obj1, &val2);
30920 if (!SWIG_IsOK(ecode2)) {
30921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30922 }
30923 arg2 = static_cast< long >(val2);
30924 ecode3 = SWIG_AsVal_long(obj2, &val3);
30925 if (!SWIG_IsOK(ecode3)) {
30926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30927 }
30928 arg3 = static_cast< long >(val3);
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 result = (long)(arg1)->FindItem(arg2,arg3);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_From_long(static_cast< long >(result));
30936 return resultobj;
30937 fail:
30938 return NULL;
30939 }
30940
30941
30942 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30943 PyObject *resultobj = 0;
30944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30945 long arg2 ;
30946 wxPoint *arg3 = 0 ;
30947 int arg4 ;
30948 long result;
30949 void *argp1 = 0 ;
30950 int res1 = 0 ;
30951 long val2 ;
30952 int ecode2 = 0 ;
30953 wxPoint temp3 ;
30954 int val4 ;
30955 int ecode4 = 0 ;
30956 PyObject * obj0 = 0 ;
30957 PyObject * obj1 = 0 ;
30958 PyObject * obj2 = 0 ;
30959 PyObject * obj3 = 0 ;
30960 char * kwnames[] = {
30961 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30962 };
30963
30964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30966 if (!SWIG_IsOK(res1)) {
30967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30968 }
30969 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30970 ecode2 = SWIG_AsVal_long(obj1, &val2);
30971 if (!SWIG_IsOK(ecode2)) {
30972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30973 }
30974 arg2 = static_cast< long >(val2);
30975 {
30976 arg3 = &temp3;
30977 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30978 }
30979 ecode4 = SWIG_AsVal_int(obj3, &val4);
30980 if (!SWIG_IsOK(ecode4)) {
30981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30982 }
30983 arg4 = static_cast< int >(val4);
30984 {
30985 PyThreadState* __tstate = wxPyBeginAllowThreads();
30986 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30987 wxPyEndAllowThreads(__tstate);
30988 if (PyErr_Occurred()) SWIG_fail;
30989 }
30990 resultobj = SWIG_From_long(static_cast< long >(result));
30991 return resultobj;
30992 fail:
30993 return NULL;
30994 }
30995
30996
30997 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30998 PyObject *resultobj = 0;
30999 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31000 wxPoint *arg2 = 0 ;
31001 int *arg3 = 0 ;
31002 long result;
31003 void *argp1 = 0 ;
31004 int res1 = 0 ;
31005 wxPoint temp2 ;
31006 int temp3 ;
31007 int res3 = SWIG_TMPOBJ ;
31008 PyObject * obj0 = 0 ;
31009 PyObject * obj1 = 0 ;
31010 char * kwnames[] = {
31011 (char *) "self",(char *) "point", NULL
31012 };
31013
31014 arg3 = &temp3;
31015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31017 if (!SWIG_IsOK(res1)) {
31018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31019 }
31020 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31021 {
31022 arg2 = &temp2;
31023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31024 }
31025 {
31026 PyThreadState* __tstate = wxPyBeginAllowThreads();
31027 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31028 wxPyEndAllowThreads(__tstate);
31029 if (PyErr_Occurred()) SWIG_fail;
31030 }
31031 resultobj = SWIG_From_long(static_cast< long >(result));
31032 if (SWIG_IsTmpObj(res3)) {
31033 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31034 } else {
31035 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31037 }
31038 return resultobj;
31039 fail:
31040 return NULL;
31041 }
31042
31043
31044 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31045 PyObject *resultobj = 0;
31046 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31047 wxPoint *arg2 = 0 ;
31048 int *arg3 = 0 ;
31049 long *arg4 = (long *) 0 ;
31050 long result;
31051 void *argp1 = 0 ;
31052 int res1 = 0 ;
31053 wxPoint temp2 ;
31054 int temp3 ;
31055 int res3 = SWIG_TMPOBJ ;
31056 long temp4 ;
31057 int res4 = SWIG_TMPOBJ ;
31058 PyObject * obj0 = 0 ;
31059 PyObject * obj1 = 0 ;
31060 char * kwnames[] = {
31061 (char *) "self",(char *) "point", NULL
31062 };
31063
31064 arg3 = &temp3;
31065 arg4 = &temp4;
31066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31068 if (!SWIG_IsOK(res1)) {
31069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31070 }
31071 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31072 {
31073 arg2 = &temp2;
31074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31075 }
31076 {
31077 PyThreadState* __tstate = wxPyBeginAllowThreads();
31078 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31079 wxPyEndAllowThreads(__tstate);
31080 if (PyErr_Occurred()) SWIG_fail;
31081 }
31082 resultobj = SWIG_From_long(static_cast< long >(result));
31083 if (SWIG_IsTmpObj(res3)) {
31084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31085 } else {
31086 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31088 }
31089 if (SWIG_IsTmpObj(res4)) {
31090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31091 } else {
31092 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31094 }
31095 return resultobj;
31096 fail:
31097 return NULL;
31098 }
31099
31100
31101 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31102 PyObject *resultobj = 0;
31103 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31104 wxListItem *arg2 = 0 ;
31105 long result;
31106 void *argp1 = 0 ;
31107 int res1 = 0 ;
31108 void *argp2 = 0 ;
31109 int res2 = 0 ;
31110 PyObject * obj0 = 0 ;
31111 PyObject * obj1 = 0 ;
31112 char * kwnames[] = {
31113 (char *) "self",(char *) "info", NULL
31114 };
31115
31116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31118 if (!SWIG_IsOK(res1)) {
31119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31120 }
31121 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31123 if (!SWIG_IsOK(res2)) {
31124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31125 }
31126 if (!argp2) {
31127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31128 }
31129 arg2 = reinterpret_cast< wxListItem * >(argp2);
31130 {
31131 PyThreadState* __tstate = wxPyBeginAllowThreads();
31132 result = (long)(arg1)->InsertItem(*arg2);
31133 wxPyEndAllowThreads(__tstate);
31134 if (PyErr_Occurred()) SWIG_fail;
31135 }
31136 resultobj = SWIG_From_long(static_cast< long >(result));
31137 return resultobj;
31138 fail:
31139 return NULL;
31140 }
31141
31142
31143 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31144 PyObject *resultobj = 0;
31145 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31146 long arg2 ;
31147 wxString *arg3 = 0 ;
31148 int arg4 = (int) -1 ;
31149 long result;
31150 void *argp1 = 0 ;
31151 int res1 = 0 ;
31152 long val2 ;
31153 int ecode2 = 0 ;
31154 bool temp3 = false ;
31155 int val4 ;
31156 int ecode4 = 0 ;
31157 PyObject * obj0 = 0 ;
31158 PyObject * obj1 = 0 ;
31159 PyObject * obj2 = 0 ;
31160 PyObject * obj3 = 0 ;
31161 char * kwnames[] = {
31162 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31163 };
31164
31165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31167 if (!SWIG_IsOK(res1)) {
31168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31169 }
31170 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31171 ecode2 = SWIG_AsVal_long(obj1, &val2);
31172 if (!SWIG_IsOK(ecode2)) {
31173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31174 }
31175 arg2 = static_cast< long >(val2);
31176 {
31177 arg3 = wxString_in_helper(obj2);
31178 if (arg3 == NULL) SWIG_fail;
31179 temp3 = true;
31180 }
31181 if (obj3) {
31182 ecode4 = SWIG_AsVal_int(obj3, &val4);
31183 if (!SWIG_IsOK(ecode4)) {
31184 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31185 }
31186 arg4 = static_cast< int >(val4);
31187 }
31188 {
31189 PyThreadState* __tstate = wxPyBeginAllowThreads();
31190 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31191 wxPyEndAllowThreads(__tstate);
31192 if (PyErr_Occurred()) SWIG_fail;
31193 }
31194 resultobj = SWIG_From_long(static_cast< long >(result));
31195 {
31196 if (temp3)
31197 delete arg3;
31198 }
31199 return resultobj;
31200 fail:
31201 {
31202 if (temp3)
31203 delete arg3;
31204 }
31205 return NULL;
31206 }
31207
31208
31209 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj = 0;
31211 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31212 long arg2 ;
31213 int arg3 ;
31214 long result;
31215 void *argp1 = 0 ;
31216 int res1 = 0 ;
31217 long val2 ;
31218 int ecode2 = 0 ;
31219 int val3 ;
31220 int ecode3 = 0 ;
31221 PyObject * obj0 = 0 ;
31222 PyObject * obj1 = 0 ;
31223 PyObject * obj2 = 0 ;
31224 char * kwnames[] = {
31225 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31226 };
31227
31228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31230 if (!SWIG_IsOK(res1)) {
31231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31232 }
31233 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31234 ecode2 = SWIG_AsVal_long(obj1, &val2);
31235 if (!SWIG_IsOK(ecode2)) {
31236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31237 }
31238 arg2 = static_cast< long >(val2);
31239 ecode3 = SWIG_AsVal_int(obj2, &val3);
31240 if (!SWIG_IsOK(ecode3)) {
31241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31242 }
31243 arg3 = static_cast< int >(val3);
31244 {
31245 PyThreadState* __tstate = wxPyBeginAllowThreads();
31246 result = (long)(arg1)->InsertItem(arg2,arg3);
31247 wxPyEndAllowThreads(__tstate);
31248 if (PyErr_Occurred()) SWIG_fail;
31249 }
31250 resultobj = SWIG_From_long(static_cast< long >(result));
31251 return resultobj;
31252 fail:
31253 return NULL;
31254 }
31255
31256
31257 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31258 PyObject *resultobj = 0;
31259 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31260 long arg2 ;
31261 wxString *arg3 = 0 ;
31262 int arg4 ;
31263 long result;
31264 void *argp1 = 0 ;
31265 int res1 = 0 ;
31266 long val2 ;
31267 int ecode2 = 0 ;
31268 bool temp3 = false ;
31269 int val4 ;
31270 int ecode4 = 0 ;
31271 PyObject * obj0 = 0 ;
31272 PyObject * obj1 = 0 ;
31273 PyObject * obj2 = 0 ;
31274 PyObject * obj3 = 0 ;
31275 char * kwnames[] = {
31276 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31277 };
31278
31279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31281 if (!SWIG_IsOK(res1)) {
31282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31283 }
31284 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31285 ecode2 = SWIG_AsVal_long(obj1, &val2);
31286 if (!SWIG_IsOK(ecode2)) {
31287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31288 }
31289 arg2 = static_cast< long >(val2);
31290 {
31291 arg3 = wxString_in_helper(obj2);
31292 if (arg3 == NULL) SWIG_fail;
31293 temp3 = true;
31294 }
31295 ecode4 = SWIG_AsVal_int(obj3, &val4);
31296 if (!SWIG_IsOK(ecode4)) {
31297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31298 }
31299 arg4 = static_cast< int >(val4);
31300 {
31301 PyThreadState* __tstate = wxPyBeginAllowThreads();
31302 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31303 wxPyEndAllowThreads(__tstate);
31304 if (PyErr_Occurred()) SWIG_fail;
31305 }
31306 resultobj = SWIG_From_long(static_cast< long >(result));
31307 {
31308 if (temp3)
31309 delete arg3;
31310 }
31311 return resultobj;
31312 fail:
31313 {
31314 if (temp3)
31315 delete arg3;
31316 }
31317 return NULL;
31318 }
31319
31320
31321 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31322 PyObject *resultobj = 0;
31323 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31324 long arg2 ;
31325 wxListItem *arg3 = 0 ;
31326 long result;
31327 void *argp1 = 0 ;
31328 int res1 = 0 ;
31329 long val2 ;
31330 int ecode2 = 0 ;
31331 void *argp3 = 0 ;
31332 int res3 = 0 ;
31333 PyObject * obj0 = 0 ;
31334 PyObject * obj1 = 0 ;
31335 PyObject * obj2 = 0 ;
31336 char * kwnames[] = {
31337 (char *) "self",(char *) "col",(char *) "info", NULL
31338 };
31339
31340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31342 if (!SWIG_IsOK(res1)) {
31343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31344 }
31345 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31346 ecode2 = SWIG_AsVal_long(obj1, &val2);
31347 if (!SWIG_IsOK(ecode2)) {
31348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31349 }
31350 arg2 = static_cast< long >(val2);
31351 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31352 if (!SWIG_IsOK(res3)) {
31353 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31354 }
31355 if (!argp3) {
31356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31357 }
31358 arg3 = reinterpret_cast< wxListItem * >(argp3);
31359 {
31360 PyThreadState* __tstate = wxPyBeginAllowThreads();
31361 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31362 wxPyEndAllowThreads(__tstate);
31363 if (PyErr_Occurred()) SWIG_fail;
31364 }
31365 resultobj = SWIG_From_long(static_cast< long >(result));
31366 return resultobj;
31367 fail:
31368 return NULL;
31369 }
31370
31371
31372 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31373 PyObject *resultobj = 0;
31374 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31375 long arg2 ;
31376 wxString *arg3 = 0 ;
31377 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31378 int arg5 = (int) -1 ;
31379 long result;
31380 void *argp1 = 0 ;
31381 int res1 = 0 ;
31382 long val2 ;
31383 int ecode2 = 0 ;
31384 bool temp3 = false ;
31385 int val4 ;
31386 int ecode4 = 0 ;
31387 int val5 ;
31388 int ecode5 = 0 ;
31389 PyObject * obj0 = 0 ;
31390 PyObject * obj1 = 0 ;
31391 PyObject * obj2 = 0 ;
31392 PyObject * obj3 = 0 ;
31393 PyObject * obj4 = 0 ;
31394 char * kwnames[] = {
31395 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31396 };
31397
31398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31400 if (!SWIG_IsOK(res1)) {
31401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31402 }
31403 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31404 ecode2 = SWIG_AsVal_long(obj1, &val2);
31405 if (!SWIG_IsOK(ecode2)) {
31406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31407 }
31408 arg2 = static_cast< long >(val2);
31409 {
31410 arg3 = wxString_in_helper(obj2);
31411 if (arg3 == NULL) SWIG_fail;
31412 temp3 = true;
31413 }
31414 if (obj3) {
31415 ecode4 = SWIG_AsVal_int(obj3, &val4);
31416 if (!SWIG_IsOK(ecode4)) {
31417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31418 }
31419 arg4 = static_cast< int >(val4);
31420 }
31421 if (obj4) {
31422 ecode5 = SWIG_AsVal_int(obj4, &val5);
31423 if (!SWIG_IsOK(ecode5)) {
31424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31425 }
31426 arg5 = static_cast< int >(val5);
31427 }
31428 {
31429 PyThreadState* __tstate = wxPyBeginAllowThreads();
31430 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31431 wxPyEndAllowThreads(__tstate);
31432 if (PyErr_Occurred()) SWIG_fail;
31433 }
31434 resultobj = SWIG_From_long(static_cast< long >(result));
31435 {
31436 if (temp3)
31437 delete arg3;
31438 }
31439 return resultobj;
31440 fail:
31441 {
31442 if (temp3)
31443 delete arg3;
31444 }
31445 return NULL;
31446 }
31447
31448
31449 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31450 PyObject *resultobj = 0;
31451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31452 long arg2 ;
31453 void *argp1 = 0 ;
31454 int res1 = 0 ;
31455 long val2 ;
31456 int ecode2 = 0 ;
31457 PyObject * obj0 = 0 ;
31458 PyObject * obj1 = 0 ;
31459 char * kwnames[] = {
31460 (char *) "self",(char *) "count", NULL
31461 };
31462
31463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31465 if (!SWIG_IsOK(res1)) {
31466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31467 }
31468 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31469 ecode2 = SWIG_AsVal_long(obj1, &val2);
31470 if (!SWIG_IsOK(ecode2)) {
31471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31472 }
31473 arg2 = static_cast< long >(val2);
31474 {
31475 PyThreadState* __tstate = wxPyBeginAllowThreads();
31476 (arg1)->SetItemCount(arg2);
31477 wxPyEndAllowThreads(__tstate);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 resultobj = SWIG_Py_Void();
31481 return resultobj;
31482 fail:
31483 return NULL;
31484 }
31485
31486
31487 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31488 PyObject *resultobj = 0;
31489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31490 int arg2 ;
31491 int arg3 ;
31492 bool result;
31493 void *argp1 = 0 ;
31494 int res1 = 0 ;
31495 int val2 ;
31496 int ecode2 = 0 ;
31497 int val3 ;
31498 int ecode3 = 0 ;
31499 PyObject * obj0 = 0 ;
31500 PyObject * obj1 = 0 ;
31501 PyObject * obj2 = 0 ;
31502 char * kwnames[] = {
31503 (char *) "self",(char *) "dx",(char *) "dy", NULL
31504 };
31505
31506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31508 if (!SWIG_IsOK(res1)) {
31509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31510 }
31511 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31512 ecode2 = SWIG_AsVal_int(obj1, &val2);
31513 if (!SWIG_IsOK(ecode2)) {
31514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31515 }
31516 arg2 = static_cast< int >(val2);
31517 ecode3 = SWIG_AsVal_int(obj2, &val3);
31518 if (!SWIG_IsOK(ecode3)) {
31519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31520 }
31521 arg3 = static_cast< int >(val3);
31522 {
31523 PyThreadState* __tstate = wxPyBeginAllowThreads();
31524 result = (bool)(arg1)->ScrollList(arg2,arg3);
31525 wxPyEndAllowThreads(__tstate);
31526 if (PyErr_Occurred()) SWIG_fail;
31527 }
31528 {
31529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31530 }
31531 return resultobj;
31532 fail:
31533 return NULL;
31534 }
31535
31536
31537 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31538 PyObject *resultobj = 0;
31539 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31540 long arg2 ;
31541 wxColour *arg3 = 0 ;
31542 void *argp1 = 0 ;
31543 int res1 = 0 ;
31544 long val2 ;
31545 int ecode2 = 0 ;
31546 wxColour temp3 ;
31547 PyObject * obj0 = 0 ;
31548 PyObject * obj1 = 0 ;
31549 PyObject * obj2 = 0 ;
31550 char * kwnames[] = {
31551 (char *) "self",(char *) "item",(char *) "col", NULL
31552 };
31553
31554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31556 if (!SWIG_IsOK(res1)) {
31557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31558 }
31559 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31560 ecode2 = SWIG_AsVal_long(obj1, &val2);
31561 if (!SWIG_IsOK(ecode2)) {
31562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31563 }
31564 arg2 = static_cast< long >(val2);
31565 {
31566 arg3 = &temp3;
31567 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31568 }
31569 {
31570 PyThreadState* __tstate = wxPyBeginAllowThreads();
31571 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31572 wxPyEndAllowThreads(__tstate);
31573 if (PyErr_Occurred()) SWIG_fail;
31574 }
31575 resultobj = SWIG_Py_Void();
31576 return resultobj;
31577 fail:
31578 return NULL;
31579 }
31580
31581
31582 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31583 PyObject *resultobj = 0;
31584 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31585 long arg2 ;
31586 wxColour result;
31587 void *argp1 = 0 ;
31588 int res1 = 0 ;
31589 long val2 ;
31590 int ecode2 = 0 ;
31591 PyObject * obj0 = 0 ;
31592 PyObject * obj1 = 0 ;
31593 char * kwnames[] = {
31594 (char *) "self",(char *) "item", NULL
31595 };
31596
31597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31599 if (!SWIG_IsOK(res1)) {
31600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31601 }
31602 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31603 ecode2 = SWIG_AsVal_long(obj1, &val2);
31604 if (!SWIG_IsOK(ecode2)) {
31605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31606 }
31607 arg2 = static_cast< long >(val2);
31608 {
31609 PyThreadState* __tstate = wxPyBeginAllowThreads();
31610 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31611 wxPyEndAllowThreads(__tstate);
31612 if (PyErr_Occurred()) SWIG_fail;
31613 }
31614 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31615 return resultobj;
31616 fail:
31617 return NULL;
31618 }
31619
31620
31621 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31622 PyObject *resultobj = 0;
31623 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31624 long arg2 ;
31625 wxColour *arg3 = 0 ;
31626 void *argp1 = 0 ;
31627 int res1 = 0 ;
31628 long val2 ;
31629 int ecode2 = 0 ;
31630 wxColour temp3 ;
31631 PyObject * obj0 = 0 ;
31632 PyObject * obj1 = 0 ;
31633 PyObject * obj2 = 0 ;
31634 char * kwnames[] = {
31635 (char *) "self",(char *) "item",(char *) "col", NULL
31636 };
31637
31638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31640 if (!SWIG_IsOK(res1)) {
31641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31642 }
31643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31644 ecode2 = SWIG_AsVal_long(obj1, &val2);
31645 if (!SWIG_IsOK(ecode2)) {
31646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31647 }
31648 arg2 = static_cast< long >(val2);
31649 {
31650 arg3 = &temp3;
31651 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31652 }
31653 {
31654 PyThreadState* __tstate = wxPyBeginAllowThreads();
31655 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31656 wxPyEndAllowThreads(__tstate);
31657 if (PyErr_Occurred()) SWIG_fail;
31658 }
31659 resultobj = SWIG_Py_Void();
31660 return resultobj;
31661 fail:
31662 return NULL;
31663 }
31664
31665
31666 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31667 PyObject *resultobj = 0;
31668 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31669 long arg2 ;
31670 wxColour result;
31671 void *argp1 = 0 ;
31672 int res1 = 0 ;
31673 long val2 ;
31674 int ecode2 = 0 ;
31675 PyObject * obj0 = 0 ;
31676 PyObject * obj1 = 0 ;
31677 char * kwnames[] = {
31678 (char *) "self",(char *) "item", NULL
31679 };
31680
31681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31683 if (!SWIG_IsOK(res1)) {
31684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31685 }
31686 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31687 ecode2 = SWIG_AsVal_long(obj1, &val2);
31688 if (!SWIG_IsOK(ecode2)) {
31689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31690 }
31691 arg2 = static_cast< long >(val2);
31692 {
31693 PyThreadState* __tstate = wxPyBeginAllowThreads();
31694 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31695 wxPyEndAllowThreads(__tstate);
31696 if (PyErr_Occurred()) SWIG_fail;
31697 }
31698 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31699 return resultobj;
31700 fail:
31701 return NULL;
31702 }
31703
31704
31705 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31706 PyObject *resultobj = 0;
31707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31708 long arg2 ;
31709 wxFont *arg3 = 0 ;
31710 void *argp1 = 0 ;
31711 int res1 = 0 ;
31712 long val2 ;
31713 int ecode2 = 0 ;
31714 void *argp3 = 0 ;
31715 int res3 = 0 ;
31716 PyObject * obj0 = 0 ;
31717 PyObject * obj1 = 0 ;
31718 PyObject * obj2 = 0 ;
31719 char * kwnames[] = {
31720 (char *) "self",(char *) "item",(char *) "f", NULL
31721 };
31722
31723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31725 if (!SWIG_IsOK(res1)) {
31726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31727 }
31728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31729 ecode2 = SWIG_AsVal_long(obj1, &val2);
31730 if (!SWIG_IsOK(ecode2)) {
31731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31732 }
31733 arg2 = static_cast< long >(val2);
31734 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31735 if (!SWIG_IsOK(res3)) {
31736 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31737 }
31738 if (!argp3) {
31739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31740 }
31741 arg3 = reinterpret_cast< wxFont * >(argp3);
31742 {
31743 PyThreadState* __tstate = wxPyBeginAllowThreads();
31744 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31745 wxPyEndAllowThreads(__tstate);
31746 if (PyErr_Occurred()) SWIG_fail;
31747 }
31748 resultobj = SWIG_Py_Void();
31749 return resultobj;
31750 fail:
31751 return NULL;
31752 }
31753
31754
31755 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31756 PyObject *resultobj = 0;
31757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31758 long arg2 ;
31759 wxFont result;
31760 void *argp1 = 0 ;
31761 int res1 = 0 ;
31762 long val2 ;
31763 int ecode2 = 0 ;
31764 PyObject * obj0 = 0 ;
31765 PyObject * obj1 = 0 ;
31766 char * kwnames[] = {
31767 (char *) "self",(char *) "item", NULL
31768 };
31769
31770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31772 if (!SWIG_IsOK(res1)) {
31773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31774 }
31775 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31776 ecode2 = SWIG_AsVal_long(obj1, &val2);
31777 if (!SWIG_IsOK(ecode2)) {
31778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31779 }
31780 arg2 = static_cast< long >(val2);
31781 {
31782 PyThreadState* __tstate = wxPyBeginAllowThreads();
31783 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31784 wxPyEndAllowThreads(__tstate);
31785 if (PyErr_Occurred()) SWIG_fail;
31786 }
31787 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31788 return resultobj;
31789 fail:
31790 return NULL;
31791 }
31792
31793
31794 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31795 PyObject *resultobj = 0;
31796 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31797 PyObject *arg2 = (PyObject *) 0 ;
31798 bool result;
31799 void *argp1 = 0 ;
31800 int res1 = 0 ;
31801 PyObject * obj0 = 0 ;
31802 PyObject * obj1 = 0 ;
31803 char * kwnames[] = {
31804 (char *) "self",(char *) "func", NULL
31805 };
31806
31807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31809 if (!SWIG_IsOK(res1)) {
31810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31811 }
31812 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31813 arg2 = obj1;
31814 {
31815 PyThreadState* __tstate = wxPyBeginAllowThreads();
31816 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31817 wxPyEndAllowThreads(__tstate);
31818 if (PyErr_Occurred()) SWIG_fail;
31819 }
31820 {
31821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31822 }
31823 return resultobj;
31824 fail:
31825 return NULL;
31826 }
31827
31828
31829 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31830 PyObject *resultobj = 0;
31831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31832 wxWindow *result = 0 ;
31833 void *argp1 = 0 ;
31834 int res1 = 0 ;
31835 PyObject *swig_obj[1] ;
31836
31837 if (!args) SWIG_fail;
31838 swig_obj[0] = args;
31839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31840 if (!SWIG_IsOK(res1)) {
31841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31842 }
31843 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31844 {
31845 PyThreadState* __tstate = wxPyBeginAllowThreads();
31846 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31847 wxPyEndAllowThreads(__tstate);
31848 if (PyErr_Occurred()) SWIG_fail;
31849 }
31850 {
31851 resultobj = wxPyMake_wxObject(result, 0);
31852 }
31853 return resultobj;
31854 fail:
31855 return NULL;
31856 }
31857
31858
31859 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31860 PyObject *resultobj = 0;
31861 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31862 SwigValueWrapper<wxVisualAttributes > result;
31863 int val1 ;
31864 int ecode1 = 0 ;
31865 PyObject * obj0 = 0 ;
31866 char * kwnames[] = {
31867 (char *) "variant", NULL
31868 };
31869
31870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31871 if (obj0) {
31872 ecode1 = SWIG_AsVal_int(obj0, &val1);
31873 if (!SWIG_IsOK(ecode1)) {
31874 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31875 }
31876 arg1 = static_cast< wxWindowVariant >(val1);
31877 }
31878 {
31879 if (!wxPyCheckForApp()) SWIG_fail;
31880 PyThreadState* __tstate = wxPyBeginAllowThreads();
31881 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31882 wxPyEndAllowThreads(__tstate);
31883 if (PyErr_Occurred()) SWIG_fail;
31884 }
31885 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31886 return resultobj;
31887 fail:
31888 return NULL;
31889 }
31890
31891
31892 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31893 PyObject *obj;
31894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31895 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31896 return SWIG_Py_Void();
31897 }
31898
31899 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31900 return SWIG_Python_InitShadowInstance(args);
31901 }
31902
31903 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31904 PyObject *resultobj = 0;
31905 wxWindow *arg1 = (wxWindow *) 0 ;
31906 int arg2 = (int) -1 ;
31907 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31908 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31909 wxSize const &arg4_defvalue = wxDefaultSize ;
31910 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31911 long arg5 = (long) wxLC_REPORT ;
31912 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31913 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31914 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31915 wxString *arg7 = (wxString *) &arg7_defvalue ;
31916 wxListView *result = 0 ;
31917 void *argp1 = 0 ;
31918 int res1 = 0 ;
31919 int val2 ;
31920 int ecode2 = 0 ;
31921 wxPoint temp3 ;
31922 wxSize temp4 ;
31923 long val5 ;
31924 int ecode5 = 0 ;
31925 void *argp6 = 0 ;
31926 int res6 = 0 ;
31927 bool temp7 = false ;
31928 PyObject * obj0 = 0 ;
31929 PyObject * obj1 = 0 ;
31930 PyObject * obj2 = 0 ;
31931 PyObject * obj3 = 0 ;
31932 PyObject * obj4 = 0 ;
31933 PyObject * obj5 = 0 ;
31934 PyObject * obj6 = 0 ;
31935 char * kwnames[] = {
31936 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31937 };
31938
31939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31941 if (!SWIG_IsOK(res1)) {
31942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31943 }
31944 arg1 = reinterpret_cast< wxWindow * >(argp1);
31945 if (obj1) {
31946 ecode2 = SWIG_AsVal_int(obj1, &val2);
31947 if (!SWIG_IsOK(ecode2)) {
31948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31949 }
31950 arg2 = static_cast< int >(val2);
31951 }
31952 if (obj2) {
31953 {
31954 arg3 = &temp3;
31955 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31956 }
31957 }
31958 if (obj3) {
31959 {
31960 arg4 = &temp4;
31961 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31962 }
31963 }
31964 if (obj4) {
31965 ecode5 = SWIG_AsVal_long(obj4, &val5);
31966 if (!SWIG_IsOK(ecode5)) {
31967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31968 }
31969 arg5 = static_cast< long >(val5);
31970 }
31971 if (obj5) {
31972 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31973 if (!SWIG_IsOK(res6)) {
31974 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31975 }
31976 if (!argp6) {
31977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31978 }
31979 arg6 = reinterpret_cast< wxValidator * >(argp6);
31980 }
31981 if (obj6) {
31982 {
31983 arg7 = wxString_in_helper(obj6);
31984 if (arg7 == NULL) SWIG_fail;
31985 temp7 = true;
31986 }
31987 }
31988 {
31989 if (!wxPyCheckForApp()) SWIG_fail;
31990 PyThreadState* __tstate = wxPyBeginAllowThreads();
31991 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31992 wxPyEndAllowThreads(__tstate);
31993 if (PyErr_Occurred()) SWIG_fail;
31994 }
31995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31996 {
31997 if (temp7)
31998 delete arg7;
31999 }
32000 return resultobj;
32001 fail:
32002 {
32003 if (temp7)
32004 delete arg7;
32005 }
32006 return NULL;
32007 }
32008
32009
32010 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32011 PyObject *resultobj = 0;
32012 wxListView *result = 0 ;
32013
32014 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32015 {
32016 if (!wxPyCheckForApp()) SWIG_fail;
32017 PyThreadState* __tstate = wxPyBeginAllowThreads();
32018 result = (wxListView *)new wxListView();
32019 wxPyEndAllowThreads(__tstate);
32020 if (PyErr_Occurred()) SWIG_fail;
32021 }
32022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32023 return resultobj;
32024 fail:
32025 return NULL;
32026 }
32027
32028
32029 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32030 PyObject *resultobj = 0;
32031 wxListView *arg1 = (wxListView *) 0 ;
32032 wxWindow *arg2 = (wxWindow *) 0 ;
32033 int arg3 = (int) -1 ;
32034 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32035 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32036 wxSize const &arg5_defvalue = wxDefaultSize ;
32037 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32038 long arg6 = (long) wxLC_REPORT ;
32039 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32040 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32041 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32042 wxString *arg8 = (wxString *) &arg8_defvalue ;
32043 bool result;
32044 void *argp1 = 0 ;
32045 int res1 = 0 ;
32046 void *argp2 = 0 ;
32047 int res2 = 0 ;
32048 int val3 ;
32049 int ecode3 = 0 ;
32050 wxPoint temp4 ;
32051 wxSize temp5 ;
32052 long val6 ;
32053 int ecode6 = 0 ;
32054 void *argp7 = 0 ;
32055 int res7 = 0 ;
32056 bool temp8 = false ;
32057 PyObject * obj0 = 0 ;
32058 PyObject * obj1 = 0 ;
32059 PyObject * obj2 = 0 ;
32060 PyObject * obj3 = 0 ;
32061 PyObject * obj4 = 0 ;
32062 PyObject * obj5 = 0 ;
32063 PyObject * obj6 = 0 ;
32064 PyObject * obj7 = 0 ;
32065 char * kwnames[] = {
32066 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32067 };
32068
32069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32071 if (!SWIG_IsOK(res1)) {
32072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32073 }
32074 arg1 = reinterpret_cast< wxListView * >(argp1);
32075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32076 if (!SWIG_IsOK(res2)) {
32077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32078 }
32079 arg2 = reinterpret_cast< wxWindow * >(argp2);
32080 if (obj2) {
32081 ecode3 = SWIG_AsVal_int(obj2, &val3);
32082 if (!SWIG_IsOK(ecode3)) {
32083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32084 }
32085 arg3 = static_cast< int >(val3);
32086 }
32087 if (obj3) {
32088 {
32089 arg4 = &temp4;
32090 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32091 }
32092 }
32093 if (obj4) {
32094 {
32095 arg5 = &temp5;
32096 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32097 }
32098 }
32099 if (obj5) {
32100 ecode6 = SWIG_AsVal_long(obj5, &val6);
32101 if (!SWIG_IsOK(ecode6)) {
32102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32103 }
32104 arg6 = static_cast< long >(val6);
32105 }
32106 if (obj6) {
32107 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32108 if (!SWIG_IsOK(res7)) {
32109 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32110 }
32111 if (!argp7) {
32112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32113 }
32114 arg7 = reinterpret_cast< wxValidator * >(argp7);
32115 }
32116 if (obj7) {
32117 {
32118 arg8 = wxString_in_helper(obj7);
32119 if (arg8 == NULL) SWIG_fail;
32120 temp8 = true;
32121 }
32122 }
32123 {
32124 PyThreadState* __tstate = wxPyBeginAllowThreads();
32125 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32126 wxPyEndAllowThreads(__tstate);
32127 if (PyErr_Occurred()) SWIG_fail;
32128 }
32129 {
32130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32131 }
32132 {
32133 if (temp8)
32134 delete arg8;
32135 }
32136 return resultobj;
32137 fail:
32138 {
32139 if (temp8)
32140 delete arg8;
32141 }
32142 return NULL;
32143 }
32144
32145
32146 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32147 PyObject *resultobj = 0;
32148 wxListView *arg1 = (wxListView *) 0 ;
32149 long arg2 ;
32150 bool arg3 = (bool) true ;
32151 void *argp1 = 0 ;
32152 int res1 = 0 ;
32153 long val2 ;
32154 int ecode2 = 0 ;
32155 bool val3 ;
32156 int ecode3 = 0 ;
32157 PyObject * obj0 = 0 ;
32158 PyObject * obj1 = 0 ;
32159 PyObject * obj2 = 0 ;
32160 char * kwnames[] = {
32161 (char *) "self",(char *) "n",(char *) "on", NULL
32162 };
32163
32164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32166 if (!SWIG_IsOK(res1)) {
32167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32168 }
32169 arg1 = reinterpret_cast< wxListView * >(argp1);
32170 ecode2 = SWIG_AsVal_long(obj1, &val2);
32171 if (!SWIG_IsOK(ecode2)) {
32172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32173 }
32174 arg2 = static_cast< long >(val2);
32175 if (obj2) {
32176 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32177 if (!SWIG_IsOK(ecode3)) {
32178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32179 }
32180 arg3 = static_cast< bool >(val3);
32181 }
32182 {
32183 PyThreadState* __tstate = wxPyBeginAllowThreads();
32184 (arg1)->Select(arg2,arg3);
32185 wxPyEndAllowThreads(__tstate);
32186 if (PyErr_Occurred()) SWIG_fail;
32187 }
32188 resultobj = SWIG_Py_Void();
32189 return resultobj;
32190 fail:
32191 return NULL;
32192 }
32193
32194
32195 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32196 PyObject *resultobj = 0;
32197 wxListView *arg1 = (wxListView *) 0 ;
32198 long arg2 ;
32199 void *argp1 = 0 ;
32200 int res1 = 0 ;
32201 long val2 ;
32202 int ecode2 = 0 ;
32203 PyObject * obj0 = 0 ;
32204 PyObject * obj1 = 0 ;
32205 char * kwnames[] = {
32206 (char *) "self",(char *) "index", NULL
32207 };
32208
32209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32211 if (!SWIG_IsOK(res1)) {
32212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32213 }
32214 arg1 = reinterpret_cast< wxListView * >(argp1);
32215 ecode2 = SWIG_AsVal_long(obj1, &val2);
32216 if (!SWIG_IsOK(ecode2)) {
32217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32218 }
32219 arg2 = static_cast< long >(val2);
32220 {
32221 PyThreadState* __tstate = wxPyBeginAllowThreads();
32222 (arg1)->Focus(arg2);
32223 wxPyEndAllowThreads(__tstate);
32224 if (PyErr_Occurred()) SWIG_fail;
32225 }
32226 resultobj = SWIG_Py_Void();
32227 return resultobj;
32228 fail:
32229 return NULL;
32230 }
32231
32232
32233 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32234 PyObject *resultobj = 0;
32235 wxListView *arg1 = (wxListView *) 0 ;
32236 long result;
32237 void *argp1 = 0 ;
32238 int res1 = 0 ;
32239 PyObject *swig_obj[1] ;
32240
32241 if (!args) SWIG_fail;
32242 swig_obj[0] = args;
32243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32244 if (!SWIG_IsOK(res1)) {
32245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32246 }
32247 arg1 = reinterpret_cast< wxListView * >(argp1);
32248 {
32249 PyThreadState* __tstate = wxPyBeginAllowThreads();
32250 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32251 wxPyEndAllowThreads(__tstate);
32252 if (PyErr_Occurred()) SWIG_fail;
32253 }
32254 resultobj = SWIG_From_long(static_cast< long >(result));
32255 return resultobj;
32256 fail:
32257 return NULL;
32258 }
32259
32260
32261 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32262 PyObject *resultobj = 0;
32263 wxListView *arg1 = (wxListView *) 0 ;
32264 long arg2 ;
32265 long result;
32266 void *argp1 = 0 ;
32267 int res1 = 0 ;
32268 long val2 ;
32269 int ecode2 = 0 ;
32270 PyObject * obj0 = 0 ;
32271 PyObject * obj1 = 0 ;
32272 char * kwnames[] = {
32273 (char *) "self",(char *) "item", NULL
32274 };
32275
32276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32278 if (!SWIG_IsOK(res1)) {
32279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32280 }
32281 arg1 = reinterpret_cast< wxListView * >(argp1);
32282 ecode2 = SWIG_AsVal_long(obj1, &val2);
32283 if (!SWIG_IsOK(ecode2)) {
32284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32285 }
32286 arg2 = static_cast< long >(val2);
32287 {
32288 PyThreadState* __tstate = wxPyBeginAllowThreads();
32289 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32290 wxPyEndAllowThreads(__tstate);
32291 if (PyErr_Occurred()) SWIG_fail;
32292 }
32293 resultobj = SWIG_From_long(static_cast< long >(result));
32294 return resultobj;
32295 fail:
32296 return NULL;
32297 }
32298
32299
32300 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32301 PyObject *resultobj = 0;
32302 wxListView *arg1 = (wxListView *) 0 ;
32303 long result;
32304 void *argp1 = 0 ;
32305 int res1 = 0 ;
32306 PyObject *swig_obj[1] ;
32307
32308 if (!args) SWIG_fail;
32309 swig_obj[0] = args;
32310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32311 if (!SWIG_IsOK(res1)) {
32312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32313 }
32314 arg1 = reinterpret_cast< wxListView * >(argp1);
32315 {
32316 PyThreadState* __tstate = wxPyBeginAllowThreads();
32317 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32318 wxPyEndAllowThreads(__tstate);
32319 if (PyErr_Occurred()) SWIG_fail;
32320 }
32321 resultobj = SWIG_From_long(static_cast< long >(result));
32322 return resultobj;
32323 fail:
32324 return NULL;
32325 }
32326
32327
32328 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32329 PyObject *resultobj = 0;
32330 wxListView *arg1 = (wxListView *) 0 ;
32331 long arg2 ;
32332 bool result;
32333 void *argp1 = 0 ;
32334 int res1 = 0 ;
32335 long val2 ;
32336 int ecode2 = 0 ;
32337 PyObject * obj0 = 0 ;
32338 PyObject * obj1 = 0 ;
32339 char * kwnames[] = {
32340 (char *) "self",(char *) "index", NULL
32341 };
32342
32343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32345 if (!SWIG_IsOK(res1)) {
32346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32347 }
32348 arg1 = reinterpret_cast< wxListView * >(argp1);
32349 ecode2 = SWIG_AsVal_long(obj1, &val2);
32350 if (!SWIG_IsOK(ecode2)) {
32351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32352 }
32353 arg2 = static_cast< long >(val2);
32354 {
32355 PyThreadState* __tstate = wxPyBeginAllowThreads();
32356 result = (bool)(arg1)->IsSelected(arg2);
32357 wxPyEndAllowThreads(__tstate);
32358 if (PyErr_Occurred()) SWIG_fail;
32359 }
32360 {
32361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32362 }
32363 return resultobj;
32364 fail:
32365 return NULL;
32366 }
32367
32368
32369 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32370 PyObject *resultobj = 0;
32371 wxListView *arg1 = (wxListView *) 0 ;
32372 int arg2 ;
32373 int arg3 ;
32374 void *argp1 = 0 ;
32375 int res1 = 0 ;
32376 int val2 ;
32377 int ecode2 = 0 ;
32378 int val3 ;
32379 int ecode3 = 0 ;
32380 PyObject * obj0 = 0 ;
32381 PyObject * obj1 = 0 ;
32382 PyObject * obj2 = 0 ;
32383 char * kwnames[] = {
32384 (char *) "self",(char *) "col",(char *) "image", NULL
32385 };
32386
32387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32389 if (!SWIG_IsOK(res1)) {
32390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32391 }
32392 arg1 = reinterpret_cast< wxListView * >(argp1);
32393 ecode2 = SWIG_AsVal_int(obj1, &val2);
32394 if (!SWIG_IsOK(ecode2)) {
32395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32396 }
32397 arg2 = static_cast< int >(val2);
32398 ecode3 = SWIG_AsVal_int(obj2, &val3);
32399 if (!SWIG_IsOK(ecode3)) {
32400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32401 }
32402 arg3 = static_cast< int >(val3);
32403 {
32404 PyThreadState* __tstate = wxPyBeginAllowThreads();
32405 (arg1)->SetColumnImage(arg2,arg3);
32406 wxPyEndAllowThreads(__tstate);
32407 if (PyErr_Occurred()) SWIG_fail;
32408 }
32409 resultobj = SWIG_Py_Void();
32410 return resultobj;
32411 fail:
32412 return NULL;
32413 }
32414
32415
32416 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32417 PyObject *resultobj = 0;
32418 wxListView *arg1 = (wxListView *) 0 ;
32419 int arg2 ;
32420 void *argp1 = 0 ;
32421 int res1 = 0 ;
32422 int val2 ;
32423 int ecode2 = 0 ;
32424 PyObject * obj0 = 0 ;
32425 PyObject * obj1 = 0 ;
32426 char * kwnames[] = {
32427 (char *) "self",(char *) "col", NULL
32428 };
32429
32430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32432 if (!SWIG_IsOK(res1)) {
32433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32434 }
32435 arg1 = reinterpret_cast< wxListView * >(argp1);
32436 ecode2 = SWIG_AsVal_int(obj1, &val2);
32437 if (!SWIG_IsOK(ecode2)) {
32438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32439 }
32440 arg2 = static_cast< int >(val2);
32441 {
32442 PyThreadState* __tstate = wxPyBeginAllowThreads();
32443 (arg1)->ClearColumnImage(arg2);
32444 wxPyEndAllowThreads(__tstate);
32445 if (PyErr_Occurred()) SWIG_fail;
32446 }
32447 resultobj = SWIG_Py_Void();
32448 return resultobj;
32449 fail:
32450 return NULL;
32451 }
32452
32453
32454 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32455 PyObject *obj;
32456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32457 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32458 return SWIG_Py_Void();
32459 }
32460
32461 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32462 return SWIG_Python_InitShadowInstance(args);
32463 }
32464
32465 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32466 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32467 return 1;
32468 }
32469
32470
32471 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32472 PyObject *pyobj = 0;
32473
32474 {
32475 #if wxUSE_UNICODE
32476 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32477 #else
32478 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32479 #endif
32480 }
32481 return pyobj;
32482 }
32483
32484
32485 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32486 PyObject *resultobj = 0;
32487 wxTreeItemId *result = 0 ;
32488
32489 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 result = (wxTreeItemId *)new wxTreeItemId();
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32497 return resultobj;
32498 fail:
32499 return NULL;
32500 }
32501
32502
32503 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32504 PyObject *resultobj = 0;
32505 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32506 void *argp1 = 0 ;
32507 int res1 = 0 ;
32508 PyObject *swig_obj[1] ;
32509
32510 if (!args) SWIG_fail;
32511 swig_obj[0] = args;
32512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32513 if (!SWIG_IsOK(res1)) {
32514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32515 }
32516 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32517 {
32518 PyThreadState* __tstate = wxPyBeginAllowThreads();
32519 delete arg1;
32520
32521 wxPyEndAllowThreads(__tstate);
32522 if (PyErr_Occurred()) SWIG_fail;
32523 }
32524 resultobj = SWIG_Py_Void();
32525 return resultobj;
32526 fail:
32527 return NULL;
32528 }
32529
32530
32531 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32532 PyObject *resultobj = 0;
32533 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32534 bool result;
32535 void *argp1 = 0 ;
32536 int res1 = 0 ;
32537 PyObject *swig_obj[1] ;
32538
32539 if (!args) SWIG_fail;
32540 swig_obj[0] = args;
32541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32542 if (!SWIG_IsOK(res1)) {
32543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32544 }
32545 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32546 {
32547 PyThreadState* __tstate = wxPyBeginAllowThreads();
32548 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32549 wxPyEndAllowThreads(__tstate);
32550 if (PyErr_Occurred()) SWIG_fail;
32551 }
32552 {
32553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32554 }
32555 return resultobj;
32556 fail:
32557 return NULL;
32558 }
32559
32560
32561 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32562 PyObject *resultobj = 0;
32563 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32564 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32565 bool result;
32566 void *argp1 = 0 ;
32567 int res1 = 0 ;
32568 void *argp2 = 0 ;
32569 int res2 = 0 ;
32570 PyObject * obj0 = 0 ;
32571 PyObject * obj1 = 0 ;
32572 char * kwnames[] = {
32573 (char *) "self",(char *) "other", NULL
32574 };
32575
32576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32578 if (!SWIG_IsOK(res1)) {
32579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32580 }
32581 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32583 if (!SWIG_IsOK(res2)) {
32584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32585 }
32586 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32587 {
32588 PyThreadState* __tstate = wxPyBeginAllowThreads();
32589 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32590 wxPyEndAllowThreads(__tstate);
32591 if (PyErr_Occurred()) SWIG_fail;
32592 }
32593 {
32594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32595 }
32596 return resultobj;
32597 fail:
32598 return NULL;
32599 }
32600
32601
32602 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32603 PyObject *resultobj = 0;
32604 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32605 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32606 bool result;
32607 void *argp1 = 0 ;
32608 int res1 = 0 ;
32609 void *argp2 = 0 ;
32610 int res2 = 0 ;
32611 PyObject * obj0 = 0 ;
32612 PyObject * obj1 = 0 ;
32613 char * kwnames[] = {
32614 (char *) "self",(char *) "other", NULL
32615 };
32616
32617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32619 if (!SWIG_IsOK(res1)) {
32620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32621 }
32622 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32624 if (!SWIG_IsOK(res2)) {
32625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32626 }
32627 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32628 {
32629 PyThreadState* __tstate = wxPyBeginAllowThreads();
32630 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32631 wxPyEndAllowThreads(__tstate);
32632 if (PyErr_Occurred()) SWIG_fail;
32633 }
32634 {
32635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32636 }
32637 return resultobj;
32638 fail:
32639 return NULL;
32640 }
32641
32642
32643 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32644 PyObject *resultobj = 0;
32645 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32646 void *arg2 = (void *) 0 ;
32647 void *argp1 = 0 ;
32648 int res1 = 0 ;
32649 int res2 ;
32650 PyObject *swig_obj[2] ;
32651
32652 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32654 if (!SWIG_IsOK(res1)) {
32655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32656 }
32657 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32658 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32659 if (!SWIG_IsOK(res2)) {
32660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32661 }
32662 if (arg1) (arg1)->m_pItem = arg2;
32663
32664 resultobj = SWIG_Py_Void();
32665 return resultobj;
32666 fail:
32667 return NULL;
32668 }
32669
32670
32671 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32672 PyObject *resultobj = 0;
32673 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32674 void *result = 0 ;
32675 void *argp1 = 0 ;
32676 int res1 = 0 ;
32677 PyObject *swig_obj[1] ;
32678
32679 if (!args) SWIG_fail;
32680 swig_obj[0] = args;
32681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32682 if (!SWIG_IsOK(res1)) {
32683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32684 }
32685 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32686 result = (void *) ((arg1)->m_pItem);
32687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32688 return resultobj;
32689 fail:
32690 return NULL;
32691 }
32692
32693
32694 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32695 PyObject *obj;
32696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32697 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32698 return SWIG_Py_Void();
32699 }
32700
32701 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32702 return SWIG_Python_InitShadowInstance(args);
32703 }
32704
32705 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32706 PyObject *resultobj = 0;
32707 PyObject *arg1 = (PyObject *) NULL ;
32708 wxPyTreeItemData *result = 0 ;
32709 PyObject * obj0 = 0 ;
32710 char * kwnames[] = {
32711 (char *) "obj", NULL
32712 };
32713
32714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32715 if (obj0) {
32716 arg1 = obj0;
32717 }
32718 {
32719 PyThreadState* __tstate = wxPyBeginAllowThreads();
32720 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32721 wxPyEndAllowThreads(__tstate);
32722 if (PyErr_Occurred()) SWIG_fail;
32723 }
32724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32725 return resultobj;
32726 fail:
32727 return NULL;
32728 }
32729
32730
32731 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32732 PyObject *resultobj = 0;
32733 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32734 void *argp1 = 0 ;
32735 int res1 = 0 ;
32736 PyObject *swig_obj[1] ;
32737
32738 if (!args) SWIG_fail;
32739 swig_obj[0] = args;
32740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32741 if (!SWIG_IsOK(res1)) {
32742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32743 }
32744 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32745 {
32746 PyThreadState* __tstate = wxPyBeginAllowThreads();
32747 delete arg1;
32748
32749 wxPyEndAllowThreads(__tstate);
32750 if (PyErr_Occurred()) SWIG_fail;
32751 }
32752 resultobj = SWIG_Py_Void();
32753 return resultobj;
32754 fail:
32755 return NULL;
32756 }
32757
32758
32759 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32760 PyObject *resultobj = 0;
32761 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32762 PyObject *result = 0 ;
32763 void *argp1 = 0 ;
32764 int res1 = 0 ;
32765 PyObject *swig_obj[1] ;
32766
32767 if (!args) SWIG_fail;
32768 swig_obj[0] = args;
32769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32770 if (!SWIG_IsOK(res1)) {
32771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32772 }
32773 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32774 {
32775 PyThreadState* __tstate = wxPyBeginAllowThreads();
32776 result = (PyObject *)(arg1)->GetData();
32777 wxPyEndAllowThreads(__tstate);
32778 if (PyErr_Occurred()) SWIG_fail;
32779 }
32780 resultobj = result;
32781 return resultobj;
32782 fail:
32783 return NULL;
32784 }
32785
32786
32787 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32788 PyObject *resultobj = 0;
32789 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32790 PyObject *arg2 = (PyObject *) 0 ;
32791 void *argp1 = 0 ;
32792 int res1 = 0 ;
32793 PyObject * obj0 = 0 ;
32794 PyObject * obj1 = 0 ;
32795 char * kwnames[] = {
32796 (char *) "self",(char *) "obj", NULL
32797 };
32798
32799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32801 if (!SWIG_IsOK(res1)) {
32802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32803 }
32804 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32805 arg2 = obj1;
32806 {
32807 PyThreadState* __tstate = wxPyBeginAllowThreads();
32808 (arg1)->SetData(arg2);
32809 wxPyEndAllowThreads(__tstate);
32810 if (PyErr_Occurred()) SWIG_fail;
32811 }
32812 resultobj = SWIG_Py_Void();
32813 return resultobj;
32814 fail:
32815 return NULL;
32816 }
32817
32818
32819 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32820 PyObject *resultobj = 0;
32821 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32822 wxTreeItemId *result = 0 ;
32823 void *argp1 = 0 ;
32824 int res1 = 0 ;
32825 PyObject *swig_obj[1] ;
32826
32827 if (!args) SWIG_fail;
32828 swig_obj[0] = args;
32829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32830 if (!SWIG_IsOK(res1)) {
32831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32832 }
32833 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32834 {
32835 PyThreadState* __tstate = wxPyBeginAllowThreads();
32836 {
32837 wxTreeItemId const &_result_ref = (arg1)->GetId();
32838 result = (wxTreeItemId *) &_result_ref;
32839 }
32840 wxPyEndAllowThreads(__tstate);
32841 if (PyErr_Occurred()) SWIG_fail;
32842 }
32843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32844 return resultobj;
32845 fail:
32846 return NULL;
32847 }
32848
32849
32850 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32851 PyObject *resultobj = 0;
32852 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32853 wxTreeItemId *arg2 = 0 ;
32854 void *argp1 = 0 ;
32855 int res1 = 0 ;
32856 void *argp2 = 0 ;
32857 int res2 = 0 ;
32858 PyObject * obj0 = 0 ;
32859 PyObject * obj1 = 0 ;
32860 char * kwnames[] = {
32861 (char *) "self",(char *) "id", NULL
32862 };
32863
32864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32866 if (!SWIG_IsOK(res1)) {
32867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32868 }
32869 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32871 if (!SWIG_IsOK(res2)) {
32872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32873 }
32874 if (!argp2) {
32875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32876 }
32877 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32878 {
32879 PyThreadState* __tstate = wxPyBeginAllowThreads();
32880 (arg1)->SetId((wxTreeItemId const &)*arg2);
32881 wxPyEndAllowThreads(__tstate);
32882 if (PyErr_Occurred()) SWIG_fail;
32883 }
32884 resultobj = SWIG_Py_Void();
32885 return resultobj;
32886 fail:
32887 return NULL;
32888 }
32889
32890
32891 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32892 PyObject *resultobj = 0;
32893 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32894 void *argp1 = 0 ;
32895 int res1 = 0 ;
32896 PyObject *swig_obj[1] ;
32897
32898 if (!args) SWIG_fail;
32899 swig_obj[0] = args;
32900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32901 if (!SWIG_IsOK(res1)) {
32902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32903 }
32904 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32905 {
32906 PyThreadState* __tstate = wxPyBeginAllowThreads();
32907 wxPyTreeItemData_Destroy(arg1);
32908 wxPyEndAllowThreads(__tstate);
32909 if (PyErr_Occurred()) SWIG_fail;
32910 }
32911 resultobj = SWIG_Py_Void();
32912 return resultobj;
32913 fail:
32914 return NULL;
32915 }
32916
32917
32918 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32919 PyObject *obj;
32920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32921 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32922 return SWIG_Py_Void();
32923 }
32924
32925 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32926 return SWIG_Python_InitShadowInstance(args);
32927 }
32928
32929 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32930 {
32931 void *argp = 0;
32932 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32933 if (!SWIG_IsOK(res)) {
32934 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32935 }
32936 if (!argp) {
32937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32938 } else {
32939 wxTreeItemId * temp;
32940 temp = reinterpret_cast< wxTreeItemId * >(argp);
32941 wxNullTreeItemId = *temp;
32942 if (SWIG_IsNewObj(res)) delete temp;
32943 }
32944 }
32945 return 0;
32946 fail:
32947 return 1;
32948 }
32949
32950
32951 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32952 PyObject *pyobj = 0;
32953
32954 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32955 return pyobj;
32956 }
32957
32958
32959 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32960 PyObject *resultobj = 0;
32961 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32962 int arg2 = (int) 0 ;
32963 wxTreeEvent *result = 0 ;
32964 int val1 ;
32965 int ecode1 = 0 ;
32966 int val2 ;
32967 int ecode2 = 0 ;
32968
32969 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32970 if (swig_obj[0]) {
32971 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32972 if (!SWIG_IsOK(ecode1)) {
32973 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32974 }
32975 arg1 = static_cast< wxEventType >(val1);
32976 }
32977 if (swig_obj[1]) {
32978 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32979 if (!SWIG_IsOK(ecode2)) {
32980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32981 }
32982 arg2 = static_cast< int >(val2);
32983 }
32984 {
32985 PyThreadState* __tstate = wxPyBeginAllowThreads();
32986 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32987 wxPyEndAllowThreads(__tstate);
32988 if (PyErr_Occurred()) SWIG_fail;
32989 }
32990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32991 return resultobj;
32992 fail:
32993 return NULL;
32994 }
32995
32996
32997 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32998 PyObject *resultobj = 0;
32999 wxEventType arg1 ;
33000 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33001 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33002 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33003 wxTreeEvent *result = 0 ;
33004 int val1 ;
33005 int ecode1 = 0 ;
33006 void *argp2 = 0 ;
33007 int res2 = 0 ;
33008 void *argp3 = 0 ;
33009 int res3 = 0 ;
33010
33011 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33012 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33013 if (!SWIG_IsOK(ecode1)) {
33014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33015 }
33016 arg1 = static_cast< wxEventType >(val1);
33017 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33018 if (!SWIG_IsOK(res2)) {
33019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33020 }
33021 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33022 if (swig_obj[2]) {
33023 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33024 if (!SWIG_IsOK(res3)) {
33025 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33026 }
33027 if (!argp3) {
33028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33029 }
33030 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33031 }
33032 {
33033 PyThreadState* __tstate = wxPyBeginAllowThreads();
33034 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33035 wxPyEndAllowThreads(__tstate);
33036 if (PyErr_Occurred()) SWIG_fail;
33037 }
33038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33039 return resultobj;
33040 fail:
33041 return NULL;
33042 }
33043
33044
33045 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33046 int argc;
33047 PyObject *argv[4];
33048
33049 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33050 --argc;
33051 if ((argc >= 0) && (argc <= 2)) {
33052 int _v = 0;
33053 if (argc > 1) {
33054 {
33055 {
33056 int res = SWIG_AsVal_int(argv[1], NULL);
33057 _v = SWIG_CheckState(res);
33058 }
33059 }
33060 if (!_v) goto check_1;
33061 }
33062 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33063 }
33064 check_1:
33065
33066 if ((argc >= 2) && (argc <= 3)) {
33067 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33068 }
33069
33070 fail:
33071 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33072 return NULL;
33073 }
33074
33075
33076 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33077 PyObject *resultobj = 0;
33078 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33079 wxTreeItemId result;
33080 void *argp1 = 0 ;
33081 int res1 = 0 ;
33082 PyObject *swig_obj[1] ;
33083
33084 if (!args) SWIG_fail;
33085 swig_obj[0] = args;
33086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33087 if (!SWIG_IsOK(res1)) {
33088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33089 }
33090 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 result = ((wxTreeEvent const *)arg1)->GetItem();
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33098 return resultobj;
33099 fail:
33100 return NULL;
33101 }
33102
33103
33104 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33105 PyObject *resultobj = 0;
33106 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33107 wxTreeItemId *arg2 = 0 ;
33108 void *argp1 = 0 ;
33109 int res1 = 0 ;
33110 void *argp2 = 0 ;
33111 int res2 = 0 ;
33112 PyObject * obj0 = 0 ;
33113 PyObject * obj1 = 0 ;
33114 char * kwnames[] = {
33115 (char *) "self",(char *) "item", NULL
33116 };
33117
33118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33120 if (!SWIG_IsOK(res1)) {
33121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33122 }
33123 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33125 if (!SWIG_IsOK(res2)) {
33126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33127 }
33128 if (!argp2) {
33129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33130 }
33131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33132 {
33133 PyThreadState* __tstate = wxPyBeginAllowThreads();
33134 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33135 wxPyEndAllowThreads(__tstate);
33136 if (PyErr_Occurred()) SWIG_fail;
33137 }
33138 resultobj = SWIG_Py_Void();
33139 return resultobj;
33140 fail:
33141 return NULL;
33142 }
33143
33144
33145 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33146 PyObject *resultobj = 0;
33147 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33148 wxTreeItemId result;
33149 void *argp1 = 0 ;
33150 int res1 = 0 ;
33151 PyObject *swig_obj[1] ;
33152
33153 if (!args) SWIG_fail;
33154 swig_obj[0] = args;
33155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33156 if (!SWIG_IsOK(res1)) {
33157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33158 }
33159 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33160 {
33161 PyThreadState* __tstate = wxPyBeginAllowThreads();
33162 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33163 wxPyEndAllowThreads(__tstate);
33164 if (PyErr_Occurred()) SWIG_fail;
33165 }
33166 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33167 return resultobj;
33168 fail:
33169 return NULL;
33170 }
33171
33172
33173 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33174 PyObject *resultobj = 0;
33175 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33176 wxTreeItemId *arg2 = 0 ;
33177 void *argp1 = 0 ;
33178 int res1 = 0 ;
33179 void *argp2 = 0 ;
33180 int res2 = 0 ;
33181 PyObject * obj0 = 0 ;
33182 PyObject * obj1 = 0 ;
33183 char * kwnames[] = {
33184 (char *) "self",(char *) "item", NULL
33185 };
33186
33187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33189 if (!SWIG_IsOK(res1)) {
33190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33191 }
33192 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33194 if (!SWIG_IsOK(res2)) {
33195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33196 }
33197 if (!argp2) {
33198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33199 }
33200 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33201 {
33202 PyThreadState* __tstate = wxPyBeginAllowThreads();
33203 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33204 wxPyEndAllowThreads(__tstate);
33205 if (PyErr_Occurred()) SWIG_fail;
33206 }
33207 resultobj = SWIG_Py_Void();
33208 return resultobj;
33209 fail:
33210 return NULL;
33211 }
33212
33213
33214 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33215 PyObject *resultobj = 0;
33216 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33217 wxPoint result;
33218 void *argp1 = 0 ;
33219 int res1 = 0 ;
33220 PyObject *swig_obj[1] ;
33221
33222 if (!args) SWIG_fail;
33223 swig_obj[0] = args;
33224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33225 if (!SWIG_IsOK(res1)) {
33226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33227 }
33228 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33229 {
33230 PyThreadState* __tstate = wxPyBeginAllowThreads();
33231 result = ((wxTreeEvent const *)arg1)->GetPoint();
33232 wxPyEndAllowThreads(__tstate);
33233 if (PyErr_Occurred()) SWIG_fail;
33234 }
33235 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33236 return resultobj;
33237 fail:
33238 return NULL;
33239 }
33240
33241
33242 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33243 PyObject *resultobj = 0;
33244 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33245 wxPoint *arg2 = 0 ;
33246 void *argp1 = 0 ;
33247 int res1 = 0 ;
33248 wxPoint temp2 ;
33249 PyObject * obj0 = 0 ;
33250 PyObject * obj1 = 0 ;
33251 char * kwnames[] = {
33252 (char *) "self",(char *) "pt", NULL
33253 };
33254
33255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33257 if (!SWIG_IsOK(res1)) {
33258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33259 }
33260 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33261 {
33262 arg2 = &temp2;
33263 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33264 }
33265 {
33266 PyThreadState* __tstate = wxPyBeginAllowThreads();
33267 (arg1)->SetPoint((wxPoint const &)*arg2);
33268 wxPyEndAllowThreads(__tstate);
33269 if (PyErr_Occurred()) SWIG_fail;
33270 }
33271 resultobj = SWIG_Py_Void();
33272 return resultobj;
33273 fail:
33274 return NULL;
33275 }
33276
33277
33278 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33279 PyObject *resultobj = 0;
33280 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33281 wxKeyEvent *result = 0 ;
33282 void *argp1 = 0 ;
33283 int res1 = 0 ;
33284 PyObject *swig_obj[1] ;
33285
33286 if (!args) SWIG_fail;
33287 swig_obj[0] = args;
33288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33291 }
33292 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33293 {
33294 PyThreadState* __tstate = wxPyBeginAllowThreads();
33295 {
33296 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33297 result = (wxKeyEvent *) &_result_ref;
33298 }
33299 wxPyEndAllowThreads(__tstate);
33300 if (PyErr_Occurred()) SWIG_fail;
33301 }
33302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33303 return resultobj;
33304 fail:
33305 return NULL;
33306 }
33307
33308
33309 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33310 PyObject *resultobj = 0;
33311 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33312 int result;
33313 void *argp1 = 0 ;
33314 int res1 = 0 ;
33315 PyObject *swig_obj[1] ;
33316
33317 if (!args) SWIG_fail;
33318 swig_obj[0] = args;
33319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33320 if (!SWIG_IsOK(res1)) {
33321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33322 }
33323 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33324 {
33325 PyThreadState* __tstate = wxPyBeginAllowThreads();
33326 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33327 wxPyEndAllowThreads(__tstate);
33328 if (PyErr_Occurred()) SWIG_fail;
33329 }
33330 resultobj = SWIG_From_int(static_cast< int >(result));
33331 return resultobj;
33332 fail:
33333 return NULL;
33334 }
33335
33336
33337 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33338 PyObject *resultobj = 0;
33339 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33340 wxKeyEvent *arg2 = 0 ;
33341 void *argp1 = 0 ;
33342 int res1 = 0 ;
33343 void *argp2 = 0 ;
33344 int res2 = 0 ;
33345 PyObject * obj0 = 0 ;
33346 PyObject * obj1 = 0 ;
33347 char * kwnames[] = {
33348 (char *) "self",(char *) "evt", NULL
33349 };
33350
33351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33353 if (!SWIG_IsOK(res1)) {
33354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33355 }
33356 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33358 if (!SWIG_IsOK(res2)) {
33359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33360 }
33361 if (!argp2) {
33362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33363 }
33364 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33365 {
33366 PyThreadState* __tstate = wxPyBeginAllowThreads();
33367 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33368 wxPyEndAllowThreads(__tstate);
33369 if (PyErr_Occurred()) SWIG_fail;
33370 }
33371 resultobj = SWIG_Py_Void();
33372 return resultobj;
33373 fail:
33374 return NULL;
33375 }
33376
33377
33378 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33379 PyObject *resultobj = 0;
33380 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33381 wxString *result = 0 ;
33382 void *argp1 = 0 ;
33383 int res1 = 0 ;
33384 PyObject *swig_obj[1] ;
33385
33386 if (!args) SWIG_fail;
33387 swig_obj[0] = args;
33388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33389 if (!SWIG_IsOK(res1)) {
33390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33391 }
33392 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33393 {
33394 PyThreadState* __tstate = wxPyBeginAllowThreads();
33395 {
33396 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33397 result = (wxString *) &_result_ref;
33398 }
33399 wxPyEndAllowThreads(__tstate);
33400 if (PyErr_Occurred()) SWIG_fail;
33401 }
33402 {
33403 #if wxUSE_UNICODE
33404 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33405 #else
33406 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33407 #endif
33408 }
33409 return resultobj;
33410 fail:
33411 return NULL;
33412 }
33413
33414
33415 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33416 PyObject *resultobj = 0;
33417 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33418 wxString *arg2 = 0 ;
33419 void *argp1 = 0 ;
33420 int res1 = 0 ;
33421 bool temp2 = false ;
33422 PyObject * obj0 = 0 ;
33423 PyObject * obj1 = 0 ;
33424 char * kwnames[] = {
33425 (char *) "self",(char *) "label", NULL
33426 };
33427
33428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33430 if (!SWIG_IsOK(res1)) {
33431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33432 }
33433 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33434 {
33435 arg2 = wxString_in_helper(obj1);
33436 if (arg2 == NULL) SWIG_fail;
33437 temp2 = true;
33438 }
33439 {
33440 PyThreadState* __tstate = wxPyBeginAllowThreads();
33441 (arg1)->SetLabel((wxString const &)*arg2);
33442 wxPyEndAllowThreads(__tstate);
33443 if (PyErr_Occurred()) SWIG_fail;
33444 }
33445 resultobj = SWIG_Py_Void();
33446 {
33447 if (temp2)
33448 delete arg2;
33449 }
33450 return resultobj;
33451 fail:
33452 {
33453 if (temp2)
33454 delete arg2;
33455 }
33456 return NULL;
33457 }
33458
33459
33460 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33461 PyObject *resultobj = 0;
33462 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33463 bool result;
33464 void *argp1 = 0 ;
33465 int res1 = 0 ;
33466 PyObject *swig_obj[1] ;
33467
33468 if (!args) SWIG_fail;
33469 swig_obj[0] = args;
33470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33471 if (!SWIG_IsOK(res1)) {
33472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33473 }
33474 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33475 {
33476 PyThreadState* __tstate = wxPyBeginAllowThreads();
33477 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33478 wxPyEndAllowThreads(__tstate);
33479 if (PyErr_Occurred()) SWIG_fail;
33480 }
33481 {
33482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33483 }
33484 return resultobj;
33485 fail:
33486 return NULL;
33487 }
33488
33489
33490 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33491 PyObject *resultobj = 0;
33492 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33493 bool arg2 ;
33494 void *argp1 = 0 ;
33495 int res1 = 0 ;
33496 bool val2 ;
33497 int ecode2 = 0 ;
33498 PyObject * obj0 = 0 ;
33499 PyObject * obj1 = 0 ;
33500 char * kwnames[] = {
33501 (char *) "self",(char *) "editCancelled", NULL
33502 };
33503
33504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33506 if (!SWIG_IsOK(res1)) {
33507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33508 }
33509 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33510 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33511 if (!SWIG_IsOK(ecode2)) {
33512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33513 }
33514 arg2 = static_cast< bool >(val2);
33515 {
33516 PyThreadState* __tstate = wxPyBeginAllowThreads();
33517 (arg1)->SetEditCanceled(arg2);
33518 wxPyEndAllowThreads(__tstate);
33519 if (PyErr_Occurred()) SWIG_fail;
33520 }
33521 resultobj = SWIG_Py_Void();
33522 return resultobj;
33523 fail:
33524 return NULL;
33525 }
33526
33527
33528 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33529 PyObject *resultobj = 0;
33530 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33531 wxString *arg2 = 0 ;
33532 void *argp1 = 0 ;
33533 int res1 = 0 ;
33534 bool temp2 = false ;
33535 PyObject * obj0 = 0 ;
33536 PyObject * obj1 = 0 ;
33537 char * kwnames[] = {
33538 (char *) "self",(char *) "toolTip", NULL
33539 };
33540
33541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33543 if (!SWIG_IsOK(res1)) {
33544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33545 }
33546 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33547 {
33548 arg2 = wxString_in_helper(obj1);
33549 if (arg2 == NULL) SWIG_fail;
33550 temp2 = true;
33551 }
33552 {
33553 PyThreadState* __tstate = wxPyBeginAllowThreads();
33554 (arg1)->SetToolTip((wxString const &)*arg2);
33555 wxPyEndAllowThreads(__tstate);
33556 if (PyErr_Occurred()) SWIG_fail;
33557 }
33558 resultobj = SWIG_Py_Void();
33559 {
33560 if (temp2)
33561 delete arg2;
33562 }
33563 return resultobj;
33564 fail:
33565 {
33566 if (temp2)
33567 delete arg2;
33568 }
33569 return NULL;
33570 }
33571
33572
33573 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33574 PyObject *resultobj = 0;
33575 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33576 wxString result;
33577 void *argp1 = 0 ;
33578 int res1 = 0 ;
33579 PyObject *swig_obj[1] ;
33580
33581 if (!args) SWIG_fail;
33582 swig_obj[0] = args;
33583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33584 if (!SWIG_IsOK(res1)) {
33585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33586 }
33587 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 result = (arg1)->GetToolTip();
33591 wxPyEndAllowThreads(__tstate);
33592 if (PyErr_Occurred()) SWIG_fail;
33593 }
33594 {
33595 #if wxUSE_UNICODE
33596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33597 #else
33598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33599 #endif
33600 }
33601 return resultobj;
33602 fail:
33603 return NULL;
33604 }
33605
33606
33607 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33608 PyObject *obj;
33609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33610 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33611 return SWIG_Py_Void();
33612 }
33613
33614 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33615 return SWIG_Python_InitShadowInstance(args);
33616 }
33617
33618 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33619 PyObject *resultobj = 0;
33620 wxWindow *arg1 = (wxWindow *) 0 ;
33621 int arg2 = (int) -1 ;
33622 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33623 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33624 wxSize const &arg4_defvalue = wxDefaultSize ;
33625 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33626 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33627 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33628 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33629 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33630 wxString *arg7 = (wxString *) &arg7_defvalue ;
33631 wxPyTreeCtrl *result = 0 ;
33632 void *argp1 = 0 ;
33633 int res1 = 0 ;
33634 int val2 ;
33635 int ecode2 = 0 ;
33636 wxPoint temp3 ;
33637 wxSize temp4 ;
33638 long val5 ;
33639 int ecode5 = 0 ;
33640 void *argp6 = 0 ;
33641 int res6 = 0 ;
33642 bool temp7 = false ;
33643 PyObject * obj0 = 0 ;
33644 PyObject * obj1 = 0 ;
33645 PyObject * obj2 = 0 ;
33646 PyObject * obj3 = 0 ;
33647 PyObject * obj4 = 0 ;
33648 PyObject * obj5 = 0 ;
33649 PyObject * obj6 = 0 ;
33650 char * kwnames[] = {
33651 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33652 };
33653
33654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33656 if (!SWIG_IsOK(res1)) {
33657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33658 }
33659 arg1 = reinterpret_cast< wxWindow * >(argp1);
33660 if (obj1) {
33661 ecode2 = SWIG_AsVal_int(obj1, &val2);
33662 if (!SWIG_IsOK(ecode2)) {
33663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33664 }
33665 arg2 = static_cast< int >(val2);
33666 }
33667 if (obj2) {
33668 {
33669 arg3 = &temp3;
33670 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33671 }
33672 }
33673 if (obj3) {
33674 {
33675 arg4 = &temp4;
33676 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33677 }
33678 }
33679 if (obj4) {
33680 ecode5 = SWIG_AsVal_long(obj4, &val5);
33681 if (!SWIG_IsOK(ecode5)) {
33682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33683 }
33684 arg5 = static_cast< long >(val5);
33685 }
33686 if (obj5) {
33687 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33688 if (!SWIG_IsOK(res6)) {
33689 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33690 }
33691 if (!argp6) {
33692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33693 }
33694 arg6 = reinterpret_cast< wxValidator * >(argp6);
33695 }
33696 if (obj6) {
33697 {
33698 arg7 = wxString_in_helper(obj6);
33699 if (arg7 == NULL) SWIG_fail;
33700 temp7 = true;
33701 }
33702 }
33703 {
33704 if (!wxPyCheckForApp()) SWIG_fail;
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33711 {
33712 if (temp7)
33713 delete arg7;
33714 }
33715 return resultobj;
33716 fail:
33717 {
33718 if (temp7)
33719 delete arg7;
33720 }
33721 return NULL;
33722 }
33723
33724
33725 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33726 PyObject *resultobj = 0;
33727 wxPyTreeCtrl *result = 0 ;
33728
33729 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33730 {
33731 if (!wxPyCheckForApp()) SWIG_fail;
33732 PyThreadState* __tstate = wxPyBeginAllowThreads();
33733 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33734 wxPyEndAllowThreads(__tstate);
33735 if (PyErr_Occurred()) SWIG_fail;
33736 }
33737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33738 return resultobj;
33739 fail:
33740 return NULL;
33741 }
33742
33743
33744 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33745 PyObject *resultobj = 0;
33746 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33747 wxWindow *arg2 = (wxWindow *) 0 ;
33748 int arg3 = (int) -1 ;
33749 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33750 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33751 wxSize const &arg5_defvalue = wxDefaultSize ;
33752 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33753 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33754 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33755 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33756 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33757 wxString *arg8 = (wxString *) &arg8_defvalue ;
33758 bool result;
33759 void *argp1 = 0 ;
33760 int res1 = 0 ;
33761 void *argp2 = 0 ;
33762 int res2 = 0 ;
33763 int val3 ;
33764 int ecode3 = 0 ;
33765 wxPoint temp4 ;
33766 wxSize temp5 ;
33767 long val6 ;
33768 int ecode6 = 0 ;
33769 void *argp7 = 0 ;
33770 int res7 = 0 ;
33771 bool temp8 = false ;
33772 PyObject * obj0 = 0 ;
33773 PyObject * obj1 = 0 ;
33774 PyObject * obj2 = 0 ;
33775 PyObject * obj3 = 0 ;
33776 PyObject * obj4 = 0 ;
33777 PyObject * obj5 = 0 ;
33778 PyObject * obj6 = 0 ;
33779 PyObject * obj7 = 0 ;
33780 char * kwnames[] = {
33781 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33782 };
33783
33784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33786 if (!SWIG_IsOK(res1)) {
33787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33788 }
33789 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33790 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33791 if (!SWIG_IsOK(res2)) {
33792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33793 }
33794 arg2 = reinterpret_cast< wxWindow * >(argp2);
33795 if (obj2) {
33796 ecode3 = SWIG_AsVal_int(obj2, &val3);
33797 if (!SWIG_IsOK(ecode3)) {
33798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33799 }
33800 arg3 = static_cast< int >(val3);
33801 }
33802 if (obj3) {
33803 {
33804 arg4 = &temp4;
33805 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33806 }
33807 }
33808 if (obj4) {
33809 {
33810 arg5 = &temp5;
33811 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33812 }
33813 }
33814 if (obj5) {
33815 ecode6 = SWIG_AsVal_long(obj5, &val6);
33816 if (!SWIG_IsOK(ecode6)) {
33817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33818 }
33819 arg6 = static_cast< long >(val6);
33820 }
33821 if (obj6) {
33822 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33823 if (!SWIG_IsOK(res7)) {
33824 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33825 }
33826 if (!argp7) {
33827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33828 }
33829 arg7 = reinterpret_cast< wxValidator * >(argp7);
33830 }
33831 if (obj7) {
33832 {
33833 arg8 = wxString_in_helper(obj7);
33834 if (arg8 == NULL) SWIG_fail;
33835 temp8 = true;
33836 }
33837 }
33838 {
33839 PyThreadState* __tstate = wxPyBeginAllowThreads();
33840 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33841 wxPyEndAllowThreads(__tstate);
33842 if (PyErr_Occurred()) SWIG_fail;
33843 }
33844 {
33845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33846 }
33847 {
33848 if (temp8)
33849 delete arg8;
33850 }
33851 return resultobj;
33852 fail:
33853 {
33854 if (temp8)
33855 delete arg8;
33856 }
33857 return NULL;
33858 }
33859
33860
33861 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33862 PyObject *resultobj = 0;
33863 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33864 PyObject *arg2 = (PyObject *) 0 ;
33865 PyObject *arg3 = (PyObject *) 0 ;
33866 void *argp1 = 0 ;
33867 int res1 = 0 ;
33868 PyObject * obj0 = 0 ;
33869 PyObject * obj1 = 0 ;
33870 PyObject * obj2 = 0 ;
33871 char * kwnames[] = {
33872 (char *) "self",(char *) "self",(char *) "_class", NULL
33873 };
33874
33875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33877 if (!SWIG_IsOK(res1)) {
33878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33879 }
33880 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33881 arg2 = obj1;
33882 arg3 = obj2;
33883 {
33884 PyThreadState* __tstate = wxPyBeginAllowThreads();
33885 (arg1)->_setCallbackInfo(arg2,arg3);
33886 wxPyEndAllowThreads(__tstate);
33887 if (PyErr_Occurred()) SWIG_fail;
33888 }
33889 resultobj = SWIG_Py_Void();
33890 return resultobj;
33891 fail:
33892 return NULL;
33893 }
33894
33895
33896 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33897 PyObject *resultobj = 0;
33898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33899 unsigned int result;
33900 void *argp1 = 0 ;
33901 int res1 = 0 ;
33902 PyObject *swig_obj[1] ;
33903
33904 if (!args) SWIG_fail;
33905 swig_obj[0] = args;
33906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33907 if (!SWIG_IsOK(res1)) {
33908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33909 }
33910 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33911 {
33912 PyThreadState* __tstate = wxPyBeginAllowThreads();
33913 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33914 wxPyEndAllowThreads(__tstate);
33915 if (PyErr_Occurred()) SWIG_fail;
33916 }
33917 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33918 return resultobj;
33919 fail:
33920 return NULL;
33921 }
33922
33923
33924 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33925 PyObject *resultobj = 0;
33926 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33927 unsigned int result;
33928 void *argp1 = 0 ;
33929 int res1 = 0 ;
33930 PyObject *swig_obj[1] ;
33931
33932 if (!args) SWIG_fail;
33933 swig_obj[0] = args;
33934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33935 if (!SWIG_IsOK(res1)) {
33936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33937 }
33938 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33939 {
33940 PyThreadState* __tstate = wxPyBeginAllowThreads();
33941 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33942 wxPyEndAllowThreads(__tstate);
33943 if (PyErr_Occurred()) SWIG_fail;
33944 }
33945 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33946 return resultobj;
33947 fail:
33948 return NULL;
33949 }
33950
33951
33952 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33953 PyObject *resultobj = 0;
33954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33955 unsigned int arg2 ;
33956 void *argp1 = 0 ;
33957 int res1 = 0 ;
33958 unsigned int val2 ;
33959 int ecode2 = 0 ;
33960 PyObject * obj0 = 0 ;
33961 PyObject * obj1 = 0 ;
33962 char * kwnames[] = {
33963 (char *) "self",(char *) "indent", NULL
33964 };
33965
33966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33968 if (!SWIG_IsOK(res1)) {
33969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33970 }
33971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33972 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33973 if (!SWIG_IsOK(ecode2)) {
33974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33975 }
33976 arg2 = static_cast< unsigned int >(val2);
33977 {
33978 PyThreadState* __tstate = wxPyBeginAllowThreads();
33979 (arg1)->SetIndent(arg2);
33980 wxPyEndAllowThreads(__tstate);
33981 if (PyErr_Occurred()) SWIG_fail;
33982 }
33983 resultobj = SWIG_Py_Void();
33984 return resultobj;
33985 fail:
33986 return NULL;
33987 }
33988
33989
33990 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33991 PyObject *resultobj = 0;
33992 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33993 unsigned int result;
33994 void *argp1 = 0 ;
33995 int res1 = 0 ;
33996 PyObject *swig_obj[1] ;
33997
33998 if (!args) SWIG_fail;
33999 swig_obj[0] = args;
34000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34001 if (!SWIG_IsOK(res1)) {
34002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34003 }
34004 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34005 {
34006 PyThreadState* __tstate = wxPyBeginAllowThreads();
34007 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34008 wxPyEndAllowThreads(__tstate);
34009 if (PyErr_Occurred()) SWIG_fail;
34010 }
34011 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34012 return resultobj;
34013 fail:
34014 return NULL;
34015 }
34016
34017
34018 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34019 PyObject *resultobj = 0;
34020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34021 unsigned int arg2 ;
34022 void *argp1 = 0 ;
34023 int res1 = 0 ;
34024 unsigned int val2 ;
34025 int ecode2 = 0 ;
34026 PyObject * obj0 = 0 ;
34027 PyObject * obj1 = 0 ;
34028 char * kwnames[] = {
34029 (char *) "self",(char *) "spacing", NULL
34030 };
34031
34032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34034 if (!SWIG_IsOK(res1)) {
34035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34036 }
34037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34038 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34039 if (!SWIG_IsOK(ecode2)) {
34040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34041 }
34042 arg2 = static_cast< unsigned int >(val2);
34043 {
34044 PyThreadState* __tstate = wxPyBeginAllowThreads();
34045 (arg1)->SetSpacing(arg2);
34046 wxPyEndAllowThreads(__tstate);
34047 if (PyErr_Occurred()) SWIG_fail;
34048 }
34049 resultobj = SWIG_Py_Void();
34050 return resultobj;
34051 fail:
34052 return NULL;
34053 }
34054
34055
34056 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34057 PyObject *resultobj = 0;
34058 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34059 wxImageList *result = 0 ;
34060 void *argp1 = 0 ;
34061 int res1 = 0 ;
34062 PyObject *swig_obj[1] ;
34063
34064 if (!args) SWIG_fail;
34065 swig_obj[0] = args;
34066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34067 if (!SWIG_IsOK(res1)) {
34068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34069 }
34070 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34071 {
34072 PyThreadState* __tstate = wxPyBeginAllowThreads();
34073 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34074 wxPyEndAllowThreads(__tstate);
34075 if (PyErr_Occurred()) SWIG_fail;
34076 }
34077 {
34078 resultobj = wxPyMake_wxObject(result, (bool)0);
34079 }
34080 return resultobj;
34081 fail:
34082 return NULL;
34083 }
34084
34085
34086 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34087 PyObject *resultobj = 0;
34088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34089 wxImageList *result = 0 ;
34090 void *argp1 = 0 ;
34091 int res1 = 0 ;
34092 PyObject *swig_obj[1] ;
34093
34094 if (!args) SWIG_fail;
34095 swig_obj[0] = args;
34096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34097 if (!SWIG_IsOK(res1)) {
34098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34099 }
34100 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34101 {
34102 PyThreadState* __tstate = wxPyBeginAllowThreads();
34103 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34104 wxPyEndAllowThreads(__tstate);
34105 if (PyErr_Occurred()) SWIG_fail;
34106 }
34107 {
34108 resultobj = wxPyMake_wxObject(result, (bool)0);
34109 }
34110 return resultobj;
34111 fail:
34112 return NULL;
34113 }
34114
34115
34116 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34117 PyObject *resultobj = 0;
34118 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34119 wxImageList *arg2 = (wxImageList *) 0 ;
34120 void *argp1 = 0 ;
34121 int res1 = 0 ;
34122 void *argp2 = 0 ;
34123 int res2 = 0 ;
34124 PyObject * obj0 = 0 ;
34125 PyObject * obj1 = 0 ;
34126 char * kwnames[] = {
34127 (char *) "self",(char *) "imageList", NULL
34128 };
34129
34130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34132 if (!SWIG_IsOK(res1)) {
34133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34134 }
34135 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34137 if (!SWIG_IsOK(res2)) {
34138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34139 }
34140 arg2 = reinterpret_cast< wxImageList * >(argp2);
34141 {
34142 PyThreadState* __tstate = wxPyBeginAllowThreads();
34143 (arg1)->SetImageList(arg2);
34144 wxPyEndAllowThreads(__tstate);
34145 if (PyErr_Occurred()) SWIG_fail;
34146 }
34147 resultobj = SWIG_Py_Void();
34148 return resultobj;
34149 fail:
34150 return NULL;
34151 }
34152
34153
34154 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34155 PyObject *resultobj = 0;
34156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34157 wxImageList *arg2 = (wxImageList *) 0 ;
34158 void *argp1 = 0 ;
34159 int res1 = 0 ;
34160 void *argp2 = 0 ;
34161 int res2 = 0 ;
34162 PyObject * obj0 = 0 ;
34163 PyObject * obj1 = 0 ;
34164 char * kwnames[] = {
34165 (char *) "self",(char *) "imageList", NULL
34166 };
34167
34168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34170 if (!SWIG_IsOK(res1)) {
34171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34172 }
34173 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34174 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34175 if (!SWIG_IsOK(res2)) {
34176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34177 }
34178 arg2 = reinterpret_cast< wxImageList * >(argp2);
34179 {
34180 PyThreadState* __tstate = wxPyBeginAllowThreads();
34181 (arg1)->SetStateImageList(arg2);
34182 wxPyEndAllowThreads(__tstate);
34183 if (PyErr_Occurred()) SWIG_fail;
34184 }
34185 resultobj = SWIG_Py_Void();
34186 return resultobj;
34187 fail:
34188 return NULL;
34189 }
34190
34191
34192 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34193 PyObject *resultobj = 0;
34194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34195 wxImageList *arg2 = (wxImageList *) 0 ;
34196 void *argp1 = 0 ;
34197 int res1 = 0 ;
34198 int res2 = 0 ;
34199 PyObject * obj0 = 0 ;
34200 PyObject * obj1 = 0 ;
34201 char * kwnames[] = {
34202 (char *) "self",(char *) "imageList", NULL
34203 };
34204
34205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34207 if (!SWIG_IsOK(res1)) {
34208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34209 }
34210 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34211 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34212 if (!SWIG_IsOK(res2)) {
34213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34214 }
34215 {
34216 PyThreadState* __tstate = wxPyBeginAllowThreads();
34217 (arg1)->AssignImageList(arg2);
34218 wxPyEndAllowThreads(__tstate);
34219 if (PyErr_Occurred()) SWIG_fail;
34220 }
34221 resultobj = SWIG_Py_Void();
34222 return resultobj;
34223 fail:
34224 return NULL;
34225 }
34226
34227
34228 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34229 PyObject *resultobj = 0;
34230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34231 wxImageList *arg2 = (wxImageList *) 0 ;
34232 void *argp1 = 0 ;
34233 int res1 = 0 ;
34234 int res2 = 0 ;
34235 PyObject * obj0 = 0 ;
34236 PyObject * obj1 = 0 ;
34237 char * kwnames[] = {
34238 (char *) "self",(char *) "imageList", NULL
34239 };
34240
34241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34243 if (!SWIG_IsOK(res1)) {
34244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34245 }
34246 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34247 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34248 if (!SWIG_IsOK(res2)) {
34249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34250 }
34251 {
34252 PyThreadState* __tstate = wxPyBeginAllowThreads();
34253 (arg1)->AssignStateImageList(arg2);
34254 wxPyEndAllowThreads(__tstate);
34255 if (PyErr_Occurred()) SWIG_fail;
34256 }
34257 resultobj = SWIG_Py_Void();
34258 return resultobj;
34259 fail:
34260 return NULL;
34261 }
34262
34263
34264 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34265 PyObject *resultobj = 0;
34266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34267 wxTreeItemId *arg2 = 0 ;
34268 wxString result;
34269 void *argp1 = 0 ;
34270 int res1 = 0 ;
34271 void *argp2 = 0 ;
34272 int res2 = 0 ;
34273 PyObject * obj0 = 0 ;
34274 PyObject * obj1 = 0 ;
34275 char * kwnames[] = {
34276 (char *) "self",(char *) "item", NULL
34277 };
34278
34279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34281 if (!SWIG_IsOK(res1)) {
34282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34283 }
34284 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34286 if (!SWIG_IsOK(res2)) {
34287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34288 }
34289 if (!argp2) {
34290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34291 }
34292 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34293 {
34294 PyThreadState* __tstate = wxPyBeginAllowThreads();
34295 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34296 wxPyEndAllowThreads(__tstate);
34297 if (PyErr_Occurred()) SWIG_fail;
34298 }
34299 {
34300 #if wxUSE_UNICODE
34301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34302 #else
34303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34304 #endif
34305 }
34306 return resultobj;
34307 fail:
34308 return NULL;
34309 }
34310
34311
34312 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34313 PyObject *resultobj = 0;
34314 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34315 wxTreeItemId *arg2 = 0 ;
34316 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34317 int result;
34318 void *argp1 = 0 ;
34319 int res1 = 0 ;
34320 void *argp2 = 0 ;
34321 int res2 = 0 ;
34322 int val3 ;
34323 int ecode3 = 0 ;
34324 PyObject * obj0 = 0 ;
34325 PyObject * obj1 = 0 ;
34326 PyObject * obj2 = 0 ;
34327 char * kwnames[] = {
34328 (char *) "self",(char *) "item",(char *) "which", NULL
34329 };
34330
34331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34333 if (!SWIG_IsOK(res1)) {
34334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34335 }
34336 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34338 if (!SWIG_IsOK(res2)) {
34339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34340 }
34341 if (!argp2) {
34342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34343 }
34344 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34345 if (obj2) {
34346 ecode3 = SWIG_AsVal_int(obj2, &val3);
34347 if (!SWIG_IsOK(ecode3)) {
34348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34349 }
34350 arg3 = static_cast< wxTreeItemIcon >(val3);
34351 }
34352 {
34353 PyThreadState* __tstate = wxPyBeginAllowThreads();
34354 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34355 wxPyEndAllowThreads(__tstate);
34356 if (PyErr_Occurred()) SWIG_fail;
34357 }
34358 resultobj = SWIG_From_int(static_cast< int >(result));
34359 return resultobj;
34360 fail:
34361 return NULL;
34362 }
34363
34364
34365 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34366 PyObject *resultobj = 0;
34367 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34368 wxTreeItemId *arg2 = 0 ;
34369 wxPyTreeItemData *result = 0 ;
34370 void *argp1 = 0 ;
34371 int res1 = 0 ;
34372 void *argp2 = 0 ;
34373 int res2 = 0 ;
34374 PyObject * obj0 = 0 ;
34375 PyObject * obj1 = 0 ;
34376 char * kwnames[] = {
34377 (char *) "self",(char *) "item", NULL
34378 };
34379
34380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34382 if (!SWIG_IsOK(res1)) {
34383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34384 }
34385 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34387 if (!SWIG_IsOK(res2)) {
34388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34389 }
34390 if (!argp2) {
34391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34392 }
34393 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34394 {
34395 PyThreadState* __tstate = wxPyBeginAllowThreads();
34396 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34397 wxPyEndAllowThreads(__tstate);
34398 if (PyErr_Occurred()) SWIG_fail;
34399 }
34400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34401 return resultobj;
34402 fail:
34403 return NULL;
34404 }
34405
34406
34407 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34408 PyObject *resultobj = 0;
34409 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34410 wxTreeItemId *arg2 = 0 ;
34411 PyObject *result = 0 ;
34412 void *argp1 = 0 ;
34413 int res1 = 0 ;
34414 void *argp2 = 0 ;
34415 int res2 = 0 ;
34416 PyObject * obj0 = 0 ;
34417 PyObject * obj1 = 0 ;
34418 char * kwnames[] = {
34419 (char *) "self",(char *) "item", NULL
34420 };
34421
34422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34424 if (!SWIG_IsOK(res1)) {
34425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34426 }
34427 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34428 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34429 if (!SWIG_IsOK(res2)) {
34430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34431 }
34432 if (!argp2) {
34433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34434 }
34435 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34436 {
34437 PyThreadState* __tstate = wxPyBeginAllowThreads();
34438 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34439 wxPyEndAllowThreads(__tstate);
34440 if (PyErr_Occurred()) SWIG_fail;
34441 }
34442 resultobj = result;
34443 return resultobj;
34444 fail:
34445 return NULL;
34446 }
34447
34448
34449 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34450 PyObject *resultobj = 0;
34451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34452 wxTreeItemId *arg2 = 0 ;
34453 wxColour result;
34454 void *argp1 = 0 ;
34455 int res1 = 0 ;
34456 void *argp2 = 0 ;
34457 int res2 = 0 ;
34458 PyObject * obj0 = 0 ;
34459 PyObject * obj1 = 0 ;
34460 char * kwnames[] = {
34461 (char *) "self",(char *) "item", NULL
34462 };
34463
34464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34466 if (!SWIG_IsOK(res1)) {
34467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34468 }
34469 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34471 if (!SWIG_IsOK(res2)) {
34472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34473 }
34474 if (!argp2) {
34475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34476 }
34477 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34478 {
34479 PyThreadState* __tstate = wxPyBeginAllowThreads();
34480 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34481 wxPyEndAllowThreads(__tstate);
34482 if (PyErr_Occurred()) SWIG_fail;
34483 }
34484 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34485 return resultobj;
34486 fail:
34487 return NULL;
34488 }
34489
34490
34491 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34492 PyObject *resultobj = 0;
34493 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34494 wxTreeItemId *arg2 = 0 ;
34495 wxColour result;
34496 void *argp1 = 0 ;
34497 int res1 = 0 ;
34498 void *argp2 = 0 ;
34499 int res2 = 0 ;
34500 PyObject * obj0 = 0 ;
34501 PyObject * obj1 = 0 ;
34502 char * kwnames[] = {
34503 (char *) "self",(char *) "item", NULL
34504 };
34505
34506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34508 if (!SWIG_IsOK(res1)) {
34509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34510 }
34511 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34513 if (!SWIG_IsOK(res2)) {
34514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34515 }
34516 if (!argp2) {
34517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34518 }
34519 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34520 {
34521 PyThreadState* __tstate = wxPyBeginAllowThreads();
34522 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34523 wxPyEndAllowThreads(__tstate);
34524 if (PyErr_Occurred()) SWIG_fail;
34525 }
34526 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34527 return resultobj;
34528 fail:
34529 return NULL;
34530 }
34531
34532
34533 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34534 PyObject *resultobj = 0;
34535 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34536 wxTreeItemId *arg2 = 0 ;
34537 wxFont result;
34538 void *argp1 = 0 ;
34539 int res1 = 0 ;
34540 void *argp2 = 0 ;
34541 int res2 = 0 ;
34542 PyObject * obj0 = 0 ;
34543 PyObject * obj1 = 0 ;
34544 char * kwnames[] = {
34545 (char *) "self",(char *) "item", NULL
34546 };
34547
34548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34550 if (!SWIG_IsOK(res1)) {
34551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34552 }
34553 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34555 if (!SWIG_IsOK(res2)) {
34556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34557 }
34558 if (!argp2) {
34559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34560 }
34561 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34562 {
34563 PyThreadState* __tstate = wxPyBeginAllowThreads();
34564 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34565 wxPyEndAllowThreads(__tstate);
34566 if (PyErr_Occurred()) SWIG_fail;
34567 }
34568 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34569 return resultobj;
34570 fail:
34571 return NULL;
34572 }
34573
34574
34575 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34576 PyObject *resultobj = 0;
34577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34578 wxTreeItemId *arg2 = 0 ;
34579 wxString *arg3 = 0 ;
34580 void *argp1 = 0 ;
34581 int res1 = 0 ;
34582 void *argp2 = 0 ;
34583 int res2 = 0 ;
34584 bool temp3 = false ;
34585 PyObject * obj0 = 0 ;
34586 PyObject * obj1 = 0 ;
34587 PyObject * obj2 = 0 ;
34588 char * kwnames[] = {
34589 (char *) "self",(char *) "item",(char *) "text", NULL
34590 };
34591
34592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34594 if (!SWIG_IsOK(res1)) {
34595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34596 }
34597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34599 if (!SWIG_IsOK(res2)) {
34600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34601 }
34602 if (!argp2) {
34603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34604 }
34605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34606 {
34607 arg3 = wxString_in_helper(obj2);
34608 if (arg3 == NULL) SWIG_fail;
34609 temp3 = true;
34610 }
34611 {
34612 PyThreadState* __tstate = wxPyBeginAllowThreads();
34613 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34614 wxPyEndAllowThreads(__tstate);
34615 if (PyErr_Occurred()) SWIG_fail;
34616 }
34617 resultobj = SWIG_Py_Void();
34618 {
34619 if (temp3)
34620 delete arg3;
34621 }
34622 return resultobj;
34623 fail:
34624 {
34625 if (temp3)
34626 delete arg3;
34627 }
34628 return NULL;
34629 }
34630
34631
34632 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34633 PyObject *resultobj = 0;
34634 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34635 wxTreeItemId *arg2 = 0 ;
34636 int arg3 ;
34637 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34638 void *argp1 = 0 ;
34639 int res1 = 0 ;
34640 void *argp2 = 0 ;
34641 int res2 = 0 ;
34642 int val3 ;
34643 int ecode3 = 0 ;
34644 int val4 ;
34645 int ecode4 = 0 ;
34646 PyObject * obj0 = 0 ;
34647 PyObject * obj1 = 0 ;
34648 PyObject * obj2 = 0 ;
34649 PyObject * obj3 = 0 ;
34650 char * kwnames[] = {
34651 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34652 };
34653
34654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34656 if (!SWIG_IsOK(res1)) {
34657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34658 }
34659 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34661 if (!SWIG_IsOK(res2)) {
34662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34663 }
34664 if (!argp2) {
34665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34666 }
34667 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34668 ecode3 = SWIG_AsVal_int(obj2, &val3);
34669 if (!SWIG_IsOK(ecode3)) {
34670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34671 }
34672 arg3 = static_cast< int >(val3);
34673 if (obj3) {
34674 ecode4 = SWIG_AsVal_int(obj3, &val4);
34675 if (!SWIG_IsOK(ecode4)) {
34676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34677 }
34678 arg4 = static_cast< wxTreeItemIcon >(val4);
34679 }
34680 {
34681 PyThreadState* __tstate = wxPyBeginAllowThreads();
34682 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34683 wxPyEndAllowThreads(__tstate);
34684 if (PyErr_Occurred()) SWIG_fail;
34685 }
34686 resultobj = SWIG_Py_Void();
34687 return resultobj;
34688 fail:
34689 return NULL;
34690 }
34691
34692
34693 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34694 PyObject *resultobj = 0;
34695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34696 wxTreeItemId *arg2 = 0 ;
34697 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34698 void *argp1 = 0 ;
34699 int res1 = 0 ;
34700 void *argp2 = 0 ;
34701 int res2 = 0 ;
34702 int res3 = 0 ;
34703 PyObject * obj0 = 0 ;
34704 PyObject * obj1 = 0 ;
34705 PyObject * obj2 = 0 ;
34706 char * kwnames[] = {
34707 (char *) "self",(char *) "item",(char *) "data", NULL
34708 };
34709
34710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34712 if (!SWIG_IsOK(res1)) {
34713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34714 }
34715 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34717 if (!SWIG_IsOK(res2)) {
34718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34719 }
34720 if (!argp2) {
34721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34722 }
34723 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34724 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34725 if (!SWIG_IsOK(res3)) {
34726 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34727 }
34728 {
34729 PyThreadState* __tstate = wxPyBeginAllowThreads();
34730 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34731 wxPyEndAllowThreads(__tstate);
34732 if (PyErr_Occurred()) SWIG_fail;
34733 }
34734 resultobj = SWIG_Py_Void();
34735 return resultobj;
34736 fail:
34737 return NULL;
34738 }
34739
34740
34741 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34742 PyObject *resultobj = 0;
34743 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34744 wxTreeItemId *arg2 = 0 ;
34745 PyObject *arg3 = (PyObject *) 0 ;
34746 void *argp1 = 0 ;
34747 int res1 = 0 ;
34748 void *argp2 = 0 ;
34749 int res2 = 0 ;
34750 PyObject * obj0 = 0 ;
34751 PyObject * obj1 = 0 ;
34752 PyObject * obj2 = 0 ;
34753 char * kwnames[] = {
34754 (char *) "self",(char *) "item",(char *) "obj", NULL
34755 };
34756
34757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34759 if (!SWIG_IsOK(res1)) {
34760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34761 }
34762 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34763 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34764 if (!SWIG_IsOK(res2)) {
34765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34766 }
34767 if (!argp2) {
34768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34769 }
34770 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34771 arg3 = obj2;
34772 {
34773 PyThreadState* __tstate = wxPyBeginAllowThreads();
34774 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34775 wxPyEndAllowThreads(__tstate);
34776 if (PyErr_Occurred()) SWIG_fail;
34777 }
34778 resultobj = SWIG_Py_Void();
34779 return resultobj;
34780 fail:
34781 return NULL;
34782 }
34783
34784
34785 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34786 PyObject *resultobj = 0;
34787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34788 wxTreeItemId *arg2 = 0 ;
34789 bool arg3 = (bool) true ;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 void *argp2 = 0 ;
34793 int res2 = 0 ;
34794 bool val3 ;
34795 int ecode3 = 0 ;
34796 PyObject * obj0 = 0 ;
34797 PyObject * obj1 = 0 ;
34798 PyObject * obj2 = 0 ;
34799 char * kwnames[] = {
34800 (char *) "self",(char *) "item",(char *) "has", NULL
34801 };
34802
34803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34805 if (!SWIG_IsOK(res1)) {
34806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34807 }
34808 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34810 if (!SWIG_IsOK(res2)) {
34811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34812 }
34813 if (!argp2) {
34814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34815 }
34816 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34817 if (obj2) {
34818 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34819 if (!SWIG_IsOK(ecode3)) {
34820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34821 }
34822 arg3 = static_cast< bool >(val3);
34823 }
34824 {
34825 PyThreadState* __tstate = wxPyBeginAllowThreads();
34826 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34827 wxPyEndAllowThreads(__tstate);
34828 if (PyErr_Occurred()) SWIG_fail;
34829 }
34830 resultobj = SWIG_Py_Void();
34831 return resultobj;
34832 fail:
34833 return NULL;
34834 }
34835
34836
34837 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34838 PyObject *resultobj = 0;
34839 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34840 wxTreeItemId *arg2 = 0 ;
34841 bool arg3 = (bool) true ;
34842 void *argp1 = 0 ;
34843 int res1 = 0 ;
34844 void *argp2 = 0 ;
34845 int res2 = 0 ;
34846 bool val3 ;
34847 int ecode3 = 0 ;
34848 PyObject * obj0 = 0 ;
34849 PyObject * obj1 = 0 ;
34850 PyObject * obj2 = 0 ;
34851 char * kwnames[] = {
34852 (char *) "self",(char *) "item",(char *) "bold", NULL
34853 };
34854
34855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34857 if (!SWIG_IsOK(res1)) {
34858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34859 }
34860 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34862 if (!SWIG_IsOK(res2)) {
34863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34864 }
34865 if (!argp2) {
34866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34867 }
34868 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34869 if (obj2) {
34870 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34871 if (!SWIG_IsOK(ecode3)) {
34872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34873 }
34874 arg3 = static_cast< bool >(val3);
34875 }
34876 {
34877 PyThreadState* __tstate = wxPyBeginAllowThreads();
34878 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34879 wxPyEndAllowThreads(__tstate);
34880 if (PyErr_Occurred()) SWIG_fail;
34881 }
34882 resultobj = SWIG_Py_Void();
34883 return resultobj;
34884 fail:
34885 return NULL;
34886 }
34887
34888
34889 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34890 PyObject *resultobj = 0;
34891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34892 wxTreeItemId *arg2 = 0 ;
34893 bool arg3 = (bool) true ;
34894 void *argp1 = 0 ;
34895 int res1 = 0 ;
34896 void *argp2 = 0 ;
34897 int res2 = 0 ;
34898 bool val3 ;
34899 int ecode3 = 0 ;
34900 PyObject * obj0 = 0 ;
34901 PyObject * obj1 = 0 ;
34902 PyObject * obj2 = 0 ;
34903 char * kwnames[] = {
34904 (char *) "self",(char *) "item",(char *) "highlight", NULL
34905 };
34906
34907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34909 if (!SWIG_IsOK(res1)) {
34910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34911 }
34912 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34914 if (!SWIG_IsOK(res2)) {
34915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34916 }
34917 if (!argp2) {
34918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34919 }
34920 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34921 if (obj2) {
34922 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34923 if (!SWIG_IsOK(ecode3)) {
34924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34925 }
34926 arg3 = static_cast< bool >(val3);
34927 }
34928 {
34929 PyThreadState* __tstate = wxPyBeginAllowThreads();
34930 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34931 wxPyEndAllowThreads(__tstate);
34932 if (PyErr_Occurred()) SWIG_fail;
34933 }
34934 resultobj = SWIG_Py_Void();
34935 return resultobj;
34936 fail:
34937 return NULL;
34938 }
34939
34940
34941 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34942 PyObject *resultobj = 0;
34943 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34944 wxTreeItemId *arg2 = 0 ;
34945 wxColour *arg3 = 0 ;
34946 void *argp1 = 0 ;
34947 int res1 = 0 ;
34948 void *argp2 = 0 ;
34949 int res2 = 0 ;
34950 wxColour temp3 ;
34951 PyObject * obj0 = 0 ;
34952 PyObject * obj1 = 0 ;
34953 PyObject * obj2 = 0 ;
34954 char * kwnames[] = {
34955 (char *) "self",(char *) "item",(char *) "col", NULL
34956 };
34957
34958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34960 if (!SWIG_IsOK(res1)) {
34961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34962 }
34963 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34965 if (!SWIG_IsOK(res2)) {
34966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34967 }
34968 if (!argp2) {
34969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34970 }
34971 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34972 {
34973 arg3 = &temp3;
34974 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34975 }
34976 {
34977 PyThreadState* __tstate = wxPyBeginAllowThreads();
34978 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34979 wxPyEndAllowThreads(__tstate);
34980 if (PyErr_Occurred()) SWIG_fail;
34981 }
34982 resultobj = SWIG_Py_Void();
34983 return resultobj;
34984 fail:
34985 return NULL;
34986 }
34987
34988
34989 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34990 PyObject *resultobj = 0;
34991 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34992 wxTreeItemId *arg2 = 0 ;
34993 wxColour *arg3 = 0 ;
34994 void *argp1 = 0 ;
34995 int res1 = 0 ;
34996 void *argp2 = 0 ;
34997 int res2 = 0 ;
34998 wxColour temp3 ;
34999 PyObject * obj0 = 0 ;
35000 PyObject * obj1 = 0 ;
35001 PyObject * obj2 = 0 ;
35002 char * kwnames[] = {
35003 (char *) "self",(char *) "item",(char *) "col", NULL
35004 };
35005
35006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35008 if (!SWIG_IsOK(res1)) {
35009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35010 }
35011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35013 if (!SWIG_IsOK(res2)) {
35014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35015 }
35016 if (!argp2) {
35017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35018 }
35019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35020 {
35021 arg3 = &temp3;
35022 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35023 }
35024 {
35025 PyThreadState* __tstate = wxPyBeginAllowThreads();
35026 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35027 wxPyEndAllowThreads(__tstate);
35028 if (PyErr_Occurred()) SWIG_fail;
35029 }
35030 resultobj = SWIG_Py_Void();
35031 return resultobj;
35032 fail:
35033 return NULL;
35034 }
35035
35036
35037 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35038 PyObject *resultobj = 0;
35039 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35040 wxTreeItemId *arg2 = 0 ;
35041 wxFont *arg3 = 0 ;
35042 void *argp1 = 0 ;
35043 int res1 = 0 ;
35044 void *argp2 = 0 ;
35045 int res2 = 0 ;
35046 void *argp3 = 0 ;
35047 int res3 = 0 ;
35048 PyObject * obj0 = 0 ;
35049 PyObject * obj1 = 0 ;
35050 PyObject * obj2 = 0 ;
35051 char * kwnames[] = {
35052 (char *) "self",(char *) "item",(char *) "font", NULL
35053 };
35054
35055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35057 if (!SWIG_IsOK(res1)) {
35058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35059 }
35060 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35062 if (!SWIG_IsOK(res2)) {
35063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35064 }
35065 if (!argp2) {
35066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35067 }
35068 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35069 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35070 if (!SWIG_IsOK(res3)) {
35071 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35072 }
35073 if (!argp3) {
35074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35075 }
35076 arg3 = reinterpret_cast< wxFont * >(argp3);
35077 {
35078 PyThreadState* __tstate = wxPyBeginAllowThreads();
35079 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35080 wxPyEndAllowThreads(__tstate);
35081 if (PyErr_Occurred()) SWIG_fail;
35082 }
35083 resultobj = SWIG_Py_Void();
35084 return resultobj;
35085 fail:
35086 return NULL;
35087 }
35088
35089
35090 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35091 PyObject *resultobj = 0;
35092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35093 wxTreeItemId *arg2 = 0 ;
35094 bool result;
35095 void *argp1 = 0 ;
35096 int res1 = 0 ;
35097 void *argp2 = 0 ;
35098 int res2 = 0 ;
35099 PyObject * obj0 = 0 ;
35100 PyObject * obj1 = 0 ;
35101 char * kwnames[] = {
35102 (char *) "self",(char *) "item", NULL
35103 };
35104
35105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35107 if (!SWIG_IsOK(res1)) {
35108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35109 }
35110 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35112 if (!SWIG_IsOK(res2)) {
35113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35114 }
35115 if (!argp2) {
35116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35117 }
35118 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35119 {
35120 PyThreadState* __tstate = wxPyBeginAllowThreads();
35121 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35122 wxPyEndAllowThreads(__tstate);
35123 if (PyErr_Occurred()) SWIG_fail;
35124 }
35125 {
35126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35127 }
35128 return resultobj;
35129 fail:
35130 return NULL;
35131 }
35132
35133
35134 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35135 PyObject *resultobj = 0;
35136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35137 wxTreeItemId *arg2 = 0 ;
35138 bool result;
35139 void *argp1 = 0 ;
35140 int res1 = 0 ;
35141 void *argp2 = 0 ;
35142 int res2 = 0 ;
35143 PyObject * obj0 = 0 ;
35144 PyObject * obj1 = 0 ;
35145 char * kwnames[] = {
35146 (char *) "self",(char *) "item", NULL
35147 };
35148
35149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35151 if (!SWIG_IsOK(res1)) {
35152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35153 }
35154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35156 if (!SWIG_IsOK(res2)) {
35157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35158 }
35159 if (!argp2) {
35160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35161 }
35162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35163 {
35164 PyThreadState* __tstate = wxPyBeginAllowThreads();
35165 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35166 wxPyEndAllowThreads(__tstate);
35167 if (PyErr_Occurred()) SWIG_fail;
35168 }
35169 {
35170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35171 }
35172 return resultobj;
35173 fail:
35174 return NULL;
35175 }
35176
35177
35178 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35179 PyObject *resultobj = 0;
35180 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35181 wxTreeItemId *arg2 = 0 ;
35182 bool result;
35183 void *argp1 = 0 ;
35184 int res1 = 0 ;
35185 void *argp2 = 0 ;
35186 int res2 = 0 ;
35187 PyObject * obj0 = 0 ;
35188 PyObject * obj1 = 0 ;
35189 char * kwnames[] = {
35190 (char *) "self",(char *) "item", NULL
35191 };
35192
35193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35195 if (!SWIG_IsOK(res1)) {
35196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35197 }
35198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35200 if (!SWIG_IsOK(res2)) {
35201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35202 }
35203 if (!argp2) {
35204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35205 }
35206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35207 {
35208 PyThreadState* __tstate = wxPyBeginAllowThreads();
35209 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35210 wxPyEndAllowThreads(__tstate);
35211 if (PyErr_Occurred()) SWIG_fail;
35212 }
35213 {
35214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35215 }
35216 return resultobj;
35217 fail:
35218 return NULL;
35219 }
35220
35221
35222 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35223 PyObject *resultobj = 0;
35224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35225 wxTreeItemId *arg2 = 0 ;
35226 bool result;
35227 void *argp1 = 0 ;
35228 int res1 = 0 ;
35229 void *argp2 = 0 ;
35230 int res2 = 0 ;
35231 PyObject * obj0 = 0 ;
35232 PyObject * obj1 = 0 ;
35233 char * kwnames[] = {
35234 (char *) "self",(char *) "item", NULL
35235 };
35236
35237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35239 if (!SWIG_IsOK(res1)) {
35240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35241 }
35242 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35244 if (!SWIG_IsOK(res2)) {
35245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35246 }
35247 if (!argp2) {
35248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35249 }
35250 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35251 {
35252 PyThreadState* __tstate = wxPyBeginAllowThreads();
35253 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35254 wxPyEndAllowThreads(__tstate);
35255 if (PyErr_Occurred()) SWIG_fail;
35256 }
35257 {
35258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35259 }
35260 return resultobj;
35261 fail:
35262 return NULL;
35263 }
35264
35265
35266 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35267 PyObject *resultobj = 0;
35268 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35269 wxTreeItemId *arg2 = 0 ;
35270 bool result;
35271 void *argp1 = 0 ;
35272 int res1 = 0 ;
35273 void *argp2 = 0 ;
35274 int res2 = 0 ;
35275 PyObject * obj0 = 0 ;
35276 PyObject * obj1 = 0 ;
35277 char * kwnames[] = {
35278 (char *) "self",(char *) "item", NULL
35279 };
35280
35281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35283 if (!SWIG_IsOK(res1)) {
35284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35285 }
35286 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35288 if (!SWIG_IsOK(res2)) {
35289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35290 }
35291 if (!argp2) {
35292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35293 }
35294 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35295 {
35296 PyThreadState* __tstate = wxPyBeginAllowThreads();
35297 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35298 wxPyEndAllowThreads(__tstate);
35299 if (PyErr_Occurred()) SWIG_fail;
35300 }
35301 {
35302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35303 }
35304 return resultobj;
35305 fail:
35306 return NULL;
35307 }
35308
35309
35310 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35311 PyObject *resultobj = 0;
35312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35313 wxTreeItemId *arg2 = 0 ;
35314 bool arg3 = (bool) true ;
35315 size_t result;
35316 void *argp1 = 0 ;
35317 int res1 = 0 ;
35318 void *argp2 = 0 ;
35319 int res2 = 0 ;
35320 bool val3 ;
35321 int ecode3 = 0 ;
35322 PyObject * obj0 = 0 ;
35323 PyObject * obj1 = 0 ;
35324 PyObject * obj2 = 0 ;
35325 char * kwnames[] = {
35326 (char *) "self",(char *) "item",(char *) "recursively", NULL
35327 };
35328
35329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35331 if (!SWIG_IsOK(res1)) {
35332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35333 }
35334 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35336 if (!SWIG_IsOK(res2)) {
35337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35338 }
35339 if (!argp2) {
35340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35341 }
35342 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35343 if (obj2) {
35344 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35345 if (!SWIG_IsOK(ecode3)) {
35346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35347 }
35348 arg3 = static_cast< bool >(val3);
35349 }
35350 {
35351 PyThreadState* __tstate = wxPyBeginAllowThreads();
35352 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35353 wxPyEndAllowThreads(__tstate);
35354 if (PyErr_Occurred()) SWIG_fail;
35355 }
35356 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35357 return resultobj;
35358 fail:
35359 return NULL;
35360 }
35361
35362
35363 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35364 PyObject *resultobj = 0;
35365 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35366 wxTreeItemId result;
35367 void *argp1 = 0 ;
35368 int res1 = 0 ;
35369 PyObject *swig_obj[1] ;
35370
35371 if (!args) SWIG_fail;
35372 swig_obj[0] = args;
35373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35374 if (!SWIG_IsOK(res1)) {
35375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35376 }
35377 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35378 {
35379 PyThreadState* __tstate = wxPyBeginAllowThreads();
35380 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35381 wxPyEndAllowThreads(__tstate);
35382 if (PyErr_Occurred()) SWIG_fail;
35383 }
35384 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35385 return resultobj;
35386 fail:
35387 return NULL;
35388 }
35389
35390
35391 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35392 PyObject *resultobj = 0;
35393 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35394 wxTreeItemId result;
35395 void *argp1 = 0 ;
35396 int res1 = 0 ;
35397 PyObject *swig_obj[1] ;
35398
35399 if (!args) SWIG_fail;
35400 swig_obj[0] = args;
35401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35402 if (!SWIG_IsOK(res1)) {
35403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35404 }
35405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35406 {
35407 PyThreadState* __tstate = wxPyBeginAllowThreads();
35408 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35409 wxPyEndAllowThreads(__tstate);
35410 if (PyErr_Occurred()) SWIG_fail;
35411 }
35412 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35413 return resultobj;
35414 fail:
35415 return NULL;
35416 }
35417
35418
35419 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35420 PyObject *resultobj = 0;
35421 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35422 PyObject *result = 0 ;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 PyObject *swig_obj[1] ;
35426
35427 if (!args) SWIG_fail;
35428 swig_obj[0] = args;
35429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35430 if (!SWIG_IsOK(res1)) {
35431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35432 }
35433 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35434 {
35435 PyThreadState* __tstate = wxPyBeginAllowThreads();
35436 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35437 wxPyEndAllowThreads(__tstate);
35438 if (PyErr_Occurred()) SWIG_fail;
35439 }
35440 resultobj = result;
35441 return resultobj;
35442 fail:
35443 return NULL;
35444 }
35445
35446
35447 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35448 PyObject *resultobj = 0;
35449 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35450 wxTreeItemId *arg2 = 0 ;
35451 wxTreeItemId result;
35452 void *argp1 = 0 ;
35453 int res1 = 0 ;
35454 void *argp2 = 0 ;
35455 int res2 = 0 ;
35456 PyObject * obj0 = 0 ;
35457 PyObject * obj1 = 0 ;
35458 char * kwnames[] = {
35459 (char *) "self",(char *) "item", NULL
35460 };
35461
35462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35464 if (!SWIG_IsOK(res1)) {
35465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35466 }
35467 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35469 if (!SWIG_IsOK(res2)) {
35470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35471 }
35472 if (!argp2) {
35473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35474 }
35475 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35476 {
35477 PyThreadState* __tstate = wxPyBeginAllowThreads();
35478 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35479 wxPyEndAllowThreads(__tstate);
35480 if (PyErr_Occurred()) SWIG_fail;
35481 }
35482 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35483 return resultobj;
35484 fail:
35485 return NULL;
35486 }
35487
35488
35489 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35490 PyObject *resultobj = 0;
35491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35492 wxTreeItemId *arg2 = 0 ;
35493 PyObject *result = 0 ;
35494 void *argp1 = 0 ;
35495 int res1 = 0 ;
35496 void *argp2 = 0 ;
35497 int res2 = 0 ;
35498 PyObject * obj0 = 0 ;
35499 PyObject * obj1 = 0 ;
35500 char * kwnames[] = {
35501 (char *) "self",(char *) "item", NULL
35502 };
35503
35504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35506 if (!SWIG_IsOK(res1)) {
35507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35508 }
35509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35511 if (!SWIG_IsOK(res2)) {
35512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35513 }
35514 if (!argp2) {
35515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35516 }
35517 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35518 {
35519 PyThreadState* __tstate = wxPyBeginAllowThreads();
35520 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35521 wxPyEndAllowThreads(__tstate);
35522 if (PyErr_Occurred()) SWIG_fail;
35523 }
35524 resultobj = result;
35525 return resultobj;
35526 fail:
35527 return NULL;
35528 }
35529
35530
35531 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35532 PyObject *resultobj = 0;
35533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35534 wxTreeItemId *arg2 = 0 ;
35535 void *arg3 = (void *) 0 ;
35536 PyObject *result = 0 ;
35537 void *argp1 = 0 ;
35538 int res1 = 0 ;
35539 void *argp2 = 0 ;
35540 int res2 = 0 ;
35541 int res3 ;
35542 PyObject * obj0 = 0 ;
35543 PyObject * obj1 = 0 ;
35544 PyObject * obj2 = 0 ;
35545 char * kwnames[] = {
35546 (char *) "self",(char *) "item",(char *) "cookie", NULL
35547 };
35548
35549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35551 if (!SWIG_IsOK(res1)) {
35552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35553 }
35554 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35556 if (!SWIG_IsOK(res2)) {
35557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35558 }
35559 if (!argp2) {
35560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35561 }
35562 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35563 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35564 if (!SWIG_IsOK(res3)) {
35565 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35566 }
35567 {
35568 PyThreadState* __tstate = wxPyBeginAllowThreads();
35569 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35570 wxPyEndAllowThreads(__tstate);
35571 if (PyErr_Occurred()) SWIG_fail;
35572 }
35573 resultobj = result;
35574 return resultobj;
35575 fail:
35576 return NULL;
35577 }
35578
35579
35580 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35581 PyObject *resultobj = 0;
35582 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35583 wxTreeItemId *arg2 = 0 ;
35584 wxTreeItemId result;
35585 void *argp1 = 0 ;
35586 int res1 = 0 ;
35587 void *argp2 = 0 ;
35588 int res2 = 0 ;
35589 PyObject * obj0 = 0 ;
35590 PyObject * obj1 = 0 ;
35591 char * kwnames[] = {
35592 (char *) "self",(char *) "item", NULL
35593 };
35594
35595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35597 if (!SWIG_IsOK(res1)) {
35598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35599 }
35600 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35602 if (!SWIG_IsOK(res2)) {
35603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35604 }
35605 if (!argp2) {
35606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35607 }
35608 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35609 {
35610 PyThreadState* __tstate = wxPyBeginAllowThreads();
35611 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35612 wxPyEndAllowThreads(__tstate);
35613 if (PyErr_Occurred()) SWIG_fail;
35614 }
35615 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35616 return resultobj;
35617 fail:
35618 return NULL;
35619 }
35620
35621
35622 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35623 PyObject *resultobj = 0;
35624 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35625 wxTreeItemId *arg2 = 0 ;
35626 wxTreeItemId result;
35627 void *argp1 = 0 ;
35628 int res1 = 0 ;
35629 void *argp2 = 0 ;
35630 int res2 = 0 ;
35631 PyObject * obj0 = 0 ;
35632 PyObject * obj1 = 0 ;
35633 char * kwnames[] = {
35634 (char *) "self",(char *) "item", NULL
35635 };
35636
35637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35639 if (!SWIG_IsOK(res1)) {
35640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35641 }
35642 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35644 if (!SWIG_IsOK(res2)) {
35645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35646 }
35647 if (!argp2) {
35648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35649 }
35650 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35651 {
35652 PyThreadState* __tstate = wxPyBeginAllowThreads();
35653 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35654 wxPyEndAllowThreads(__tstate);
35655 if (PyErr_Occurred()) SWIG_fail;
35656 }
35657 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35658 return resultobj;
35659 fail:
35660 return NULL;
35661 }
35662
35663
35664 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35665 PyObject *resultobj = 0;
35666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35667 wxTreeItemId *arg2 = 0 ;
35668 wxTreeItemId result;
35669 void *argp1 = 0 ;
35670 int res1 = 0 ;
35671 void *argp2 = 0 ;
35672 int res2 = 0 ;
35673 PyObject * obj0 = 0 ;
35674 PyObject * obj1 = 0 ;
35675 char * kwnames[] = {
35676 (char *) "self",(char *) "item", NULL
35677 };
35678
35679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35681 if (!SWIG_IsOK(res1)) {
35682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35683 }
35684 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35686 if (!SWIG_IsOK(res2)) {
35687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35688 }
35689 if (!argp2) {
35690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35691 }
35692 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35693 {
35694 PyThreadState* __tstate = wxPyBeginAllowThreads();
35695 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35696 wxPyEndAllowThreads(__tstate);
35697 if (PyErr_Occurred()) SWIG_fail;
35698 }
35699 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35700 return resultobj;
35701 fail:
35702 return NULL;
35703 }
35704
35705
35706 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35707 PyObject *resultobj = 0;
35708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35709 wxTreeItemId result;
35710 void *argp1 = 0 ;
35711 int res1 = 0 ;
35712 PyObject *swig_obj[1] ;
35713
35714 if (!args) SWIG_fail;
35715 swig_obj[0] = args;
35716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35717 if (!SWIG_IsOK(res1)) {
35718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35719 }
35720 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35721 {
35722 PyThreadState* __tstate = wxPyBeginAllowThreads();
35723 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35724 wxPyEndAllowThreads(__tstate);
35725 if (PyErr_Occurred()) SWIG_fail;
35726 }
35727 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35728 return resultobj;
35729 fail:
35730 return NULL;
35731 }
35732
35733
35734 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35735 PyObject *resultobj = 0;
35736 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35737 wxTreeItemId *arg2 = 0 ;
35738 wxTreeItemId result;
35739 void *argp1 = 0 ;
35740 int res1 = 0 ;
35741 void *argp2 = 0 ;
35742 int res2 = 0 ;
35743 PyObject * obj0 = 0 ;
35744 PyObject * obj1 = 0 ;
35745 char * kwnames[] = {
35746 (char *) "self",(char *) "item", NULL
35747 };
35748
35749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35751 if (!SWIG_IsOK(res1)) {
35752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35753 }
35754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35756 if (!SWIG_IsOK(res2)) {
35757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35758 }
35759 if (!argp2) {
35760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35761 }
35762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35763 {
35764 PyThreadState* __tstate = wxPyBeginAllowThreads();
35765 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35766 wxPyEndAllowThreads(__tstate);
35767 if (PyErr_Occurred()) SWIG_fail;
35768 }
35769 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35770 return resultobj;
35771 fail:
35772 return NULL;
35773 }
35774
35775
35776 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35777 PyObject *resultobj = 0;
35778 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35779 wxTreeItemId *arg2 = 0 ;
35780 wxTreeItemId result;
35781 void *argp1 = 0 ;
35782 int res1 = 0 ;
35783 void *argp2 = 0 ;
35784 int res2 = 0 ;
35785 PyObject * obj0 = 0 ;
35786 PyObject * obj1 = 0 ;
35787 char * kwnames[] = {
35788 (char *) "self",(char *) "item", NULL
35789 };
35790
35791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35793 if (!SWIG_IsOK(res1)) {
35794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35795 }
35796 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35798 if (!SWIG_IsOK(res2)) {
35799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35800 }
35801 if (!argp2) {
35802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35803 }
35804 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35805 {
35806 PyThreadState* __tstate = wxPyBeginAllowThreads();
35807 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35808 wxPyEndAllowThreads(__tstate);
35809 if (PyErr_Occurred()) SWIG_fail;
35810 }
35811 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35812 return resultobj;
35813 fail:
35814 return NULL;
35815 }
35816
35817
35818 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35819 PyObject *resultobj = 0;
35820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35821 wxString *arg2 = 0 ;
35822 int arg3 = (int) -1 ;
35823 int arg4 = (int) -1 ;
35824 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35825 wxTreeItemId result;
35826 void *argp1 = 0 ;
35827 int res1 = 0 ;
35828 bool temp2 = false ;
35829 int val3 ;
35830 int ecode3 = 0 ;
35831 int val4 ;
35832 int ecode4 = 0 ;
35833 int res5 = 0 ;
35834 PyObject * obj0 = 0 ;
35835 PyObject * obj1 = 0 ;
35836 PyObject * obj2 = 0 ;
35837 PyObject * obj3 = 0 ;
35838 PyObject * obj4 = 0 ;
35839 char * kwnames[] = {
35840 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35841 };
35842
35843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35845 if (!SWIG_IsOK(res1)) {
35846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35847 }
35848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35849 {
35850 arg2 = wxString_in_helper(obj1);
35851 if (arg2 == NULL) SWIG_fail;
35852 temp2 = true;
35853 }
35854 if (obj2) {
35855 ecode3 = SWIG_AsVal_int(obj2, &val3);
35856 if (!SWIG_IsOK(ecode3)) {
35857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35858 }
35859 arg3 = static_cast< int >(val3);
35860 }
35861 if (obj3) {
35862 ecode4 = SWIG_AsVal_int(obj3, &val4);
35863 if (!SWIG_IsOK(ecode4)) {
35864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35865 }
35866 arg4 = static_cast< int >(val4);
35867 }
35868 if (obj4) {
35869 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35870 if (!SWIG_IsOK(res5)) {
35871 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35872 }
35873 }
35874 {
35875 PyThreadState* __tstate = wxPyBeginAllowThreads();
35876 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35877 wxPyEndAllowThreads(__tstate);
35878 if (PyErr_Occurred()) SWIG_fail;
35879 }
35880 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35881 {
35882 if (temp2)
35883 delete arg2;
35884 }
35885 return resultobj;
35886 fail:
35887 {
35888 if (temp2)
35889 delete arg2;
35890 }
35891 return NULL;
35892 }
35893
35894
35895 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35896 PyObject *resultobj = 0;
35897 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35898 wxTreeItemId *arg2 = 0 ;
35899 wxString *arg3 = 0 ;
35900 int arg4 = (int) -1 ;
35901 int arg5 = (int) -1 ;
35902 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35903 wxTreeItemId result;
35904 void *argp1 = 0 ;
35905 int res1 = 0 ;
35906 void *argp2 = 0 ;
35907 int res2 = 0 ;
35908 bool temp3 = false ;
35909 int val4 ;
35910 int ecode4 = 0 ;
35911 int val5 ;
35912 int ecode5 = 0 ;
35913 int res6 = 0 ;
35914 PyObject * obj0 = 0 ;
35915 PyObject * obj1 = 0 ;
35916 PyObject * obj2 = 0 ;
35917 PyObject * obj3 = 0 ;
35918 PyObject * obj4 = 0 ;
35919 PyObject * obj5 = 0 ;
35920 char * kwnames[] = {
35921 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35922 };
35923
35924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35926 if (!SWIG_IsOK(res1)) {
35927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35928 }
35929 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35931 if (!SWIG_IsOK(res2)) {
35932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35933 }
35934 if (!argp2) {
35935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35936 }
35937 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35938 {
35939 arg3 = wxString_in_helper(obj2);
35940 if (arg3 == NULL) SWIG_fail;
35941 temp3 = true;
35942 }
35943 if (obj3) {
35944 ecode4 = SWIG_AsVal_int(obj3, &val4);
35945 if (!SWIG_IsOK(ecode4)) {
35946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35947 }
35948 arg4 = static_cast< int >(val4);
35949 }
35950 if (obj4) {
35951 ecode5 = SWIG_AsVal_int(obj4, &val5);
35952 if (!SWIG_IsOK(ecode5)) {
35953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35954 }
35955 arg5 = static_cast< int >(val5);
35956 }
35957 if (obj5) {
35958 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35959 if (!SWIG_IsOK(res6)) {
35960 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35961 }
35962 }
35963 {
35964 PyThreadState* __tstate = wxPyBeginAllowThreads();
35965 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35966 wxPyEndAllowThreads(__tstate);
35967 if (PyErr_Occurred()) SWIG_fail;
35968 }
35969 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35970 {
35971 if (temp3)
35972 delete arg3;
35973 }
35974 return resultobj;
35975 fail:
35976 {
35977 if (temp3)
35978 delete arg3;
35979 }
35980 return NULL;
35981 }
35982
35983
35984 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35985 PyObject *resultobj = 0;
35986 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35987 wxTreeItemId *arg2 = 0 ;
35988 wxTreeItemId *arg3 = 0 ;
35989 wxString *arg4 = 0 ;
35990 int arg5 = (int) -1 ;
35991 int arg6 = (int) -1 ;
35992 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35993 wxTreeItemId result;
35994 void *argp1 = 0 ;
35995 int res1 = 0 ;
35996 void *argp2 = 0 ;
35997 int res2 = 0 ;
35998 void *argp3 = 0 ;
35999 int res3 = 0 ;
36000 bool temp4 = false ;
36001 int val5 ;
36002 int ecode5 = 0 ;
36003 int val6 ;
36004 int ecode6 = 0 ;
36005 int res7 = 0 ;
36006 PyObject * obj0 = 0 ;
36007 PyObject * obj1 = 0 ;
36008 PyObject * obj2 = 0 ;
36009 PyObject * obj3 = 0 ;
36010 PyObject * obj4 = 0 ;
36011 PyObject * obj5 = 0 ;
36012 PyObject * obj6 = 0 ;
36013 char * kwnames[] = {
36014 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36015 };
36016
36017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36019 if (!SWIG_IsOK(res1)) {
36020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36021 }
36022 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36024 if (!SWIG_IsOK(res2)) {
36025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36026 }
36027 if (!argp2) {
36028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36029 }
36030 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36031 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36032 if (!SWIG_IsOK(res3)) {
36033 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36034 }
36035 if (!argp3) {
36036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36037 }
36038 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36039 {
36040 arg4 = wxString_in_helper(obj3);
36041 if (arg4 == NULL) SWIG_fail;
36042 temp4 = true;
36043 }
36044 if (obj4) {
36045 ecode5 = SWIG_AsVal_int(obj4, &val5);
36046 if (!SWIG_IsOK(ecode5)) {
36047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36048 }
36049 arg5 = static_cast< int >(val5);
36050 }
36051 if (obj5) {
36052 ecode6 = SWIG_AsVal_int(obj5, &val6);
36053 if (!SWIG_IsOK(ecode6)) {
36054 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36055 }
36056 arg6 = static_cast< int >(val6);
36057 }
36058 if (obj6) {
36059 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36060 if (!SWIG_IsOK(res7)) {
36061 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36062 }
36063 }
36064 {
36065 PyThreadState* __tstate = wxPyBeginAllowThreads();
36066 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36067 wxPyEndAllowThreads(__tstate);
36068 if (PyErr_Occurred()) SWIG_fail;
36069 }
36070 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36071 {
36072 if (temp4)
36073 delete arg4;
36074 }
36075 return resultobj;
36076 fail:
36077 {
36078 if (temp4)
36079 delete arg4;
36080 }
36081 return NULL;
36082 }
36083
36084
36085 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36086 PyObject *resultobj = 0;
36087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36088 wxTreeItemId *arg2 = 0 ;
36089 size_t arg3 ;
36090 wxString *arg4 = 0 ;
36091 int arg5 = (int) -1 ;
36092 int arg6 = (int) -1 ;
36093 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36094 wxTreeItemId result;
36095 void *argp1 = 0 ;
36096 int res1 = 0 ;
36097 void *argp2 = 0 ;
36098 int res2 = 0 ;
36099 size_t val3 ;
36100 int ecode3 = 0 ;
36101 bool temp4 = false ;
36102 int val5 ;
36103 int ecode5 = 0 ;
36104 int val6 ;
36105 int ecode6 = 0 ;
36106 int res7 = 0 ;
36107 PyObject * obj0 = 0 ;
36108 PyObject * obj1 = 0 ;
36109 PyObject * obj2 = 0 ;
36110 PyObject * obj3 = 0 ;
36111 PyObject * obj4 = 0 ;
36112 PyObject * obj5 = 0 ;
36113 PyObject * obj6 = 0 ;
36114 char * kwnames[] = {
36115 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36116 };
36117
36118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36120 if (!SWIG_IsOK(res1)) {
36121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36122 }
36123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36125 if (!SWIG_IsOK(res2)) {
36126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36127 }
36128 if (!argp2) {
36129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36130 }
36131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36132 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36133 if (!SWIG_IsOK(ecode3)) {
36134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36135 }
36136 arg3 = static_cast< size_t >(val3);
36137 {
36138 arg4 = wxString_in_helper(obj3);
36139 if (arg4 == NULL) SWIG_fail;
36140 temp4 = true;
36141 }
36142 if (obj4) {
36143 ecode5 = SWIG_AsVal_int(obj4, &val5);
36144 if (!SWIG_IsOK(ecode5)) {
36145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36146 }
36147 arg5 = static_cast< int >(val5);
36148 }
36149 if (obj5) {
36150 ecode6 = SWIG_AsVal_int(obj5, &val6);
36151 if (!SWIG_IsOK(ecode6)) {
36152 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36153 }
36154 arg6 = static_cast< int >(val6);
36155 }
36156 if (obj6) {
36157 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36158 if (!SWIG_IsOK(res7)) {
36159 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36160 }
36161 }
36162 {
36163 PyThreadState* __tstate = wxPyBeginAllowThreads();
36164 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36165 wxPyEndAllowThreads(__tstate);
36166 if (PyErr_Occurred()) SWIG_fail;
36167 }
36168 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36169 {
36170 if (temp4)
36171 delete arg4;
36172 }
36173 return resultobj;
36174 fail:
36175 {
36176 if (temp4)
36177 delete arg4;
36178 }
36179 return NULL;
36180 }
36181
36182
36183 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36184 PyObject *resultobj = 0;
36185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36186 wxTreeItemId *arg2 = 0 ;
36187 wxString *arg3 = 0 ;
36188 int arg4 = (int) -1 ;
36189 int arg5 = (int) -1 ;
36190 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36191 wxTreeItemId result;
36192 void *argp1 = 0 ;
36193 int res1 = 0 ;
36194 void *argp2 = 0 ;
36195 int res2 = 0 ;
36196 bool temp3 = false ;
36197 int val4 ;
36198 int ecode4 = 0 ;
36199 int val5 ;
36200 int ecode5 = 0 ;
36201 int res6 = 0 ;
36202 PyObject * obj0 = 0 ;
36203 PyObject * obj1 = 0 ;
36204 PyObject * obj2 = 0 ;
36205 PyObject * obj3 = 0 ;
36206 PyObject * obj4 = 0 ;
36207 PyObject * obj5 = 0 ;
36208 char * kwnames[] = {
36209 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36210 };
36211
36212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36214 if (!SWIG_IsOK(res1)) {
36215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36216 }
36217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36219 if (!SWIG_IsOK(res2)) {
36220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36221 }
36222 if (!argp2) {
36223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36224 }
36225 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36226 {
36227 arg3 = wxString_in_helper(obj2);
36228 if (arg3 == NULL) SWIG_fail;
36229 temp3 = true;
36230 }
36231 if (obj3) {
36232 ecode4 = SWIG_AsVal_int(obj3, &val4);
36233 if (!SWIG_IsOK(ecode4)) {
36234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36235 }
36236 arg4 = static_cast< int >(val4);
36237 }
36238 if (obj4) {
36239 ecode5 = SWIG_AsVal_int(obj4, &val5);
36240 if (!SWIG_IsOK(ecode5)) {
36241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36242 }
36243 arg5 = static_cast< int >(val5);
36244 }
36245 if (obj5) {
36246 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36247 if (!SWIG_IsOK(res6)) {
36248 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36249 }
36250 }
36251 {
36252 PyThreadState* __tstate = wxPyBeginAllowThreads();
36253 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36254 wxPyEndAllowThreads(__tstate);
36255 if (PyErr_Occurred()) SWIG_fail;
36256 }
36257 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36258 {
36259 if (temp3)
36260 delete arg3;
36261 }
36262 return resultobj;
36263 fail:
36264 {
36265 if (temp3)
36266 delete arg3;
36267 }
36268 return NULL;
36269 }
36270
36271
36272 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36273 PyObject *resultobj = 0;
36274 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36275 wxTreeItemId *arg2 = 0 ;
36276 void *argp1 = 0 ;
36277 int res1 = 0 ;
36278 void *argp2 = 0 ;
36279 int res2 = 0 ;
36280 PyObject * obj0 = 0 ;
36281 PyObject * obj1 = 0 ;
36282 char * kwnames[] = {
36283 (char *) "self",(char *) "item", NULL
36284 };
36285
36286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36288 if (!SWIG_IsOK(res1)) {
36289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36290 }
36291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36293 if (!SWIG_IsOK(res2)) {
36294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36295 }
36296 if (!argp2) {
36297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36298 }
36299 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36300 {
36301 PyThreadState* __tstate = wxPyBeginAllowThreads();
36302 (arg1)->Delete((wxTreeItemId const &)*arg2);
36303 wxPyEndAllowThreads(__tstate);
36304 if (PyErr_Occurred()) SWIG_fail;
36305 }
36306 resultobj = SWIG_Py_Void();
36307 return resultobj;
36308 fail:
36309 return NULL;
36310 }
36311
36312
36313 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36314 PyObject *resultobj = 0;
36315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36316 wxTreeItemId *arg2 = 0 ;
36317 void *argp1 = 0 ;
36318 int res1 = 0 ;
36319 void *argp2 = 0 ;
36320 int res2 = 0 ;
36321 PyObject * obj0 = 0 ;
36322 PyObject * obj1 = 0 ;
36323 char * kwnames[] = {
36324 (char *) "self",(char *) "item", NULL
36325 };
36326
36327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36329 if (!SWIG_IsOK(res1)) {
36330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36331 }
36332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36334 if (!SWIG_IsOK(res2)) {
36335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36336 }
36337 if (!argp2) {
36338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36339 }
36340 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36341 {
36342 PyThreadState* __tstate = wxPyBeginAllowThreads();
36343 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36344 wxPyEndAllowThreads(__tstate);
36345 if (PyErr_Occurred()) SWIG_fail;
36346 }
36347 resultobj = SWIG_Py_Void();
36348 return resultobj;
36349 fail:
36350 return NULL;
36351 }
36352
36353
36354 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36355 PyObject *resultobj = 0;
36356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36357 void *argp1 = 0 ;
36358 int res1 = 0 ;
36359 PyObject *swig_obj[1] ;
36360
36361 if (!args) SWIG_fail;
36362 swig_obj[0] = args;
36363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36364 if (!SWIG_IsOK(res1)) {
36365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36366 }
36367 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36368 {
36369 PyThreadState* __tstate = wxPyBeginAllowThreads();
36370 (arg1)->DeleteAllItems();
36371 wxPyEndAllowThreads(__tstate);
36372 if (PyErr_Occurred()) SWIG_fail;
36373 }
36374 resultobj = SWIG_Py_Void();
36375 return resultobj;
36376 fail:
36377 return NULL;
36378 }
36379
36380
36381 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36382 PyObject *resultobj = 0;
36383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36384 wxTreeItemId *arg2 = 0 ;
36385 void *argp1 = 0 ;
36386 int res1 = 0 ;
36387 void *argp2 = 0 ;
36388 int res2 = 0 ;
36389 PyObject * obj0 = 0 ;
36390 PyObject * obj1 = 0 ;
36391 char * kwnames[] = {
36392 (char *) "self",(char *) "item", NULL
36393 };
36394
36395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36397 if (!SWIG_IsOK(res1)) {
36398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36399 }
36400 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36402 if (!SWIG_IsOK(res2)) {
36403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36404 }
36405 if (!argp2) {
36406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36407 }
36408 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36409 {
36410 PyThreadState* __tstate = wxPyBeginAllowThreads();
36411 (arg1)->Expand((wxTreeItemId const &)*arg2);
36412 wxPyEndAllowThreads(__tstate);
36413 if (PyErr_Occurred()) SWIG_fail;
36414 }
36415 resultobj = SWIG_Py_Void();
36416 return resultobj;
36417 fail:
36418 return NULL;
36419 }
36420
36421
36422 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36423 PyObject *resultobj = 0;
36424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36425 wxTreeItemId *arg2 = 0 ;
36426 void *argp1 = 0 ;
36427 int res1 = 0 ;
36428 void *argp2 = 0 ;
36429 int res2 = 0 ;
36430 PyObject * obj0 = 0 ;
36431 PyObject * obj1 = 0 ;
36432 char * kwnames[] = {
36433 (char *) "self",(char *) "item", NULL
36434 };
36435
36436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36438 if (!SWIG_IsOK(res1)) {
36439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36440 }
36441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36443 if (!SWIG_IsOK(res2)) {
36444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36445 }
36446 if (!argp2) {
36447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36448 }
36449 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36450 {
36451 PyThreadState* __tstate = wxPyBeginAllowThreads();
36452 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36453 wxPyEndAllowThreads(__tstate);
36454 if (PyErr_Occurred()) SWIG_fail;
36455 }
36456 resultobj = SWIG_Py_Void();
36457 return resultobj;
36458 fail:
36459 return NULL;
36460 }
36461
36462
36463 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36464 PyObject *resultobj = 0;
36465 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36466 wxTreeItemId *arg2 = 0 ;
36467 void *argp1 = 0 ;
36468 int res1 = 0 ;
36469 void *argp2 = 0 ;
36470 int res2 = 0 ;
36471 PyObject * obj0 = 0 ;
36472 PyObject * obj1 = 0 ;
36473 char * kwnames[] = {
36474 (char *) "self",(char *) "item", NULL
36475 };
36476
36477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36479 if (!SWIG_IsOK(res1)) {
36480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36481 }
36482 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36484 if (!SWIG_IsOK(res2)) {
36485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36486 }
36487 if (!argp2) {
36488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36489 }
36490 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36491 {
36492 PyThreadState* __tstate = wxPyBeginAllowThreads();
36493 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36494 wxPyEndAllowThreads(__tstate);
36495 if (PyErr_Occurred()) SWIG_fail;
36496 }
36497 resultobj = SWIG_Py_Void();
36498 return resultobj;
36499 fail:
36500 return NULL;
36501 }
36502
36503
36504 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36505 PyObject *resultobj = 0;
36506 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36507 wxTreeItemId *arg2 = 0 ;
36508 void *argp1 = 0 ;
36509 int res1 = 0 ;
36510 void *argp2 = 0 ;
36511 int res2 = 0 ;
36512 PyObject * obj0 = 0 ;
36513 PyObject * obj1 = 0 ;
36514 char * kwnames[] = {
36515 (char *) "self",(char *) "item", NULL
36516 };
36517
36518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36520 if (!SWIG_IsOK(res1)) {
36521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36522 }
36523 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36525 if (!SWIG_IsOK(res2)) {
36526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36527 }
36528 if (!argp2) {
36529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36530 }
36531 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36532 {
36533 PyThreadState* __tstate = wxPyBeginAllowThreads();
36534 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36535 wxPyEndAllowThreads(__tstate);
36536 if (PyErr_Occurred()) SWIG_fail;
36537 }
36538 resultobj = SWIG_Py_Void();
36539 return resultobj;
36540 fail:
36541 return NULL;
36542 }
36543
36544
36545 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36546 PyObject *resultobj = 0;
36547 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36548 void *argp1 = 0 ;
36549 int res1 = 0 ;
36550 PyObject *swig_obj[1] ;
36551
36552 if (!args) SWIG_fail;
36553 swig_obj[0] = args;
36554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36555 if (!SWIG_IsOK(res1)) {
36556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36557 }
36558 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36559 {
36560 PyThreadState* __tstate = wxPyBeginAllowThreads();
36561 (arg1)->Unselect();
36562 wxPyEndAllowThreads(__tstate);
36563 if (PyErr_Occurred()) SWIG_fail;
36564 }
36565 resultobj = SWIG_Py_Void();
36566 return resultobj;
36567 fail:
36568 return NULL;
36569 }
36570
36571
36572 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36573 PyObject *resultobj = 0;
36574 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36575 wxTreeItemId *arg2 = 0 ;
36576 void *argp1 = 0 ;
36577 int res1 = 0 ;
36578 void *argp2 = 0 ;
36579 int res2 = 0 ;
36580 PyObject * obj0 = 0 ;
36581 PyObject * obj1 = 0 ;
36582 char * kwnames[] = {
36583 (char *) "self",(char *) "item", NULL
36584 };
36585
36586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36588 if (!SWIG_IsOK(res1)) {
36589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36590 }
36591 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36593 if (!SWIG_IsOK(res2)) {
36594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36595 }
36596 if (!argp2) {
36597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36598 }
36599 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36600 {
36601 PyThreadState* __tstate = wxPyBeginAllowThreads();
36602 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36603 wxPyEndAllowThreads(__tstate);
36604 if (PyErr_Occurred()) SWIG_fail;
36605 }
36606 resultobj = SWIG_Py_Void();
36607 return resultobj;
36608 fail:
36609 return NULL;
36610 }
36611
36612
36613 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36614 PyObject *resultobj = 0;
36615 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36616 void *argp1 = 0 ;
36617 int res1 = 0 ;
36618 PyObject *swig_obj[1] ;
36619
36620 if (!args) SWIG_fail;
36621 swig_obj[0] = args;
36622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36623 if (!SWIG_IsOK(res1)) {
36624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36625 }
36626 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36627 {
36628 PyThreadState* __tstate = wxPyBeginAllowThreads();
36629 (arg1)->UnselectAll();
36630 wxPyEndAllowThreads(__tstate);
36631 if (PyErr_Occurred()) SWIG_fail;
36632 }
36633 resultobj = SWIG_Py_Void();
36634 return resultobj;
36635 fail:
36636 return NULL;
36637 }
36638
36639
36640 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36641 PyObject *resultobj = 0;
36642 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36643 wxTreeItemId *arg2 = 0 ;
36644 bool arg3 = (bool) true ;
36645 void *argp1 = 0 ;
36646 int res1 = 0 ;
36647 void *argp2 = 0 ;
36648 int res2 = 0 ;
36649 bool val3 ;
36650 int ecode3 = 0 ;
36651 PyObject * obj0 = 0 ;
36652 PyObject * obj1 = 0 ;
36653 PyObject * obj2 = 0 ;
36654 char * kwnames[] = {
36655 (char *) "self",(char *) "item",(char *) "select", NULL
36656 };
36657
36658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36660 if (!SWIG_IsOK(res1)) {
36661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36662 }
36663 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36664 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36665 if (!SWIG_IsOK(res2)) {
36666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36667 }
36668 if (!argp2) {
36669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36670 }
36671 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36672 if (obj2) {
36673 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36674 if (!SWIG_IsOK(ecode3)) {
36675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36676 }
36677 arg3 = static_cast< bool >(val3);
36678 }
36679 {
36680 PyThreadState* __tstate = wxPyBeginAllowThreads();
36681 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36682 wxPyEndAllowThreads(__tstate);
36683 if (PyErr_Occurred()) SWIG_fail;
36684 }
36685 resultobj = SWIG_Py_Void();
36686 return resultobj;
36687 fail:
36688 return NULL;
36689 }
36690
36691
36692 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36693 PyObject *resultobj = 0;
36694 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36695 wxTreeItemId *arg2 = 0 ;
36696 void *argp1 = 0 ;
36697 int res1 = 0 ;
36698 void *argp2 = 0 ;
36699 int res2 = 0 ;
36700 PyObject * obj0 = 0 ;
36701 PyObject * obj1 = 0 ;
36702 char * kwnames[] = {
36703 (char *) "self",(char *) "item", NULL
36704 };
36705
36706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36708 if (!SWIG_IsOK(res1)) {
36709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36710 }
36711 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36713 if (!SWIG_IsOK(res2)) {
36714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36715 }
36716 if (!argp2) {
36717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36718 }
36719 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36720 {
36721 PyThreadState* __tstate = wxPyBeginAllowThreads();
36722 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36723 wxPyEndAllowThreads(__tstate);
36724 if (PyErr_Occurred()) SWIG_fail;
36725 }
36726 resultobj = SWIG_Py_Void();
36727 return resultobj;
36728 fail:
36729 return NULL;
36730 }
36731
36732
36733 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36734 PyObject *resultobj = 0;
36735 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36736 wxTreeItemId *arg2 = 0 ;
36737 void *argp1 = 0 ;
36738 int res1 = 0 ;
36739 void *argp2 = 0 ;
36740 int res2 = 0 ;
36741 PyObject * obj0 = 0 ;
36742 PyObject * obj1 = 0 ;
36743 char * kwnames[] = {
36744 (char *) "self",(char *) "item", NULL
36745 };
36746
36747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36749 if (!SWIG_IsOK(res1)) {
36750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36751 }
36752 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36754 if (!SWIG_IsOK(res2)) {
36755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36756 }
36757 if (!argp2) {
36758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36759 }
36760 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36761 {
36762 PyThreadState* __tstate = wxPyBeginAllowThreads();
36763 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36764 wxPyEndAllowThreads(__tstate);
36765 if (PyErr_Occurred()) SWIG_fail;
36766 }
36767 resultobj = SWIG_Py_Void();
36768 return resultobj;
36769 fail:
36770 return NULL;
36771 }
36772
36773
36774 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36775 PyObject *resultobj = 0;
36776 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36777 wxTreeItemId *arg2 = 0 ;
36778 void *argp1 = 0 ;
36779 int res1 = 0 ;
36780 void *argp2 = 0 ;
36781 int res2 = 0 ;
36782 PyObject * obj0 = 0 ;
36783 PyObject * obj1 = 0 ;
36784 char * kwnames[] = {
36785 (char *) "self",(char *) "item", NULL
36786 };
36787
36788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36790 if (!SWIG_IsOK(res1)) {
36791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36792 }
36793 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36795 if (!SWIG_IsOK(res2)) {
36796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36797 }
36798 if (!argp2) {
36799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36800 }
36801 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36802 {
36803 PyThreadState* __tstate = wxPyBeginAllowThreads();
36804 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36805 wxPyEndAllowThreads(__tstate);
36806 if (PyErr_Occurred()) SWIG_fail;
36807 }
36808 resultobj = SWIG_Py_Void();
36809 return resultobj;
36810 fail:
36811 return NULL;
36812 }
36813
36814
36815 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36816 PyObject *resultobj = 0;
36817 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36818 wxTreeItemId *arg2 = 0 ;
36819 void *argp1 = 0 ;
36820 int res1 = 0 ;
36821 void *argp2 = 0 ;
36822 int res2 = 0 ;
36823 PyObject * obj0 = 0 ;
36824 PyObject * obj1 = 0 ;
36825 char * kwnames[] = {
36826 (char *) "self",(char *) "item", NULL
36827 };
36828
36829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36831 if (!SWIG_IsOK(res1)) {
36832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36833 }
36834 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36836 if (!SWIG_IsOK(res2)) {
36837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36838 }
36839 if (!argp2) {
36840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36841 }
36842 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36843 {
36844 PyThreadState* __tstate = wxPyBeginAllowThreads();
36845 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36846 wxPyEndAllowThreads(__tstate);
36847 if (PyErr_Occurred()) SWIG_fail;
36848 }
36849 resultobj = SWIG_Py_Void();
36850 return resultobj;
36851 fail:
36852 return NULL;
36853 }
36854
36855
36856 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36857 PyObject *resultobj = 0;
36858 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36859 wxTextCtrl *result = 0 ;
36860 void *argp1 = 0 ;
36861 int res1 = 0 ;
36862 PyObject *swig_obj[1] ;
36863
36864 if (!args) SWIG_fail;
36865 swig_obj[0] = args;
36866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36867 if (!SWIG_IsOK(res1)) {
36868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36869 }
36870 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36871 {
36872 PyThreadState* __tstate = wxPyBeginAllowThreads();
36873 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36874 wxPyEndAllowThreads(__tstate);
36875 if (PyErr_Occurred()) SWIG_fail;
36876 }
36877 {
36878 resultobj = wxPyMake_wxObject(result, 0);
36879 }
36880 return resultobj;
36881 fail:
36882 return NULL;
36883 }
36884
36885
36886 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36887 PyObject *resultobj = 0;
36888 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36889 wxTreeItemId *arg2 = 0 ;
36890 bool arg3 = (bool) false ;
36891 void *argp1 = 0 ;
36892 int res1 = 0 ;
36893 void *argp2 = 0 ;
36894 int res2 = 0 ;
36895 bool val3 ;
36896 int ecode3 = 0 ;
36897 PyObject * obj0 = 0 ;
36898 PyObject * obj1 = 0 ;
36899 PyObject * obj2 = 0 ;
36900 char * kwnames[] = {
36901 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36902 };
36903
36904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36906 if (!SWIG_IsOK(res1)) {
36907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36908 }
36909 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36911 if (!SWIG_IsOK(res2)) {
36912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36913 }
36914 if (!argp2) {
36915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36916 }
36917 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36918 if (obj2) {
36919 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36920 if (!SWIG_IsOK(ecode3)) {
36921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36922 }
36923 arg3 = static_cast< bool >(val3);
36924 }
36925 {
36926 PyThreadState* __tstate = wxPyBeginAllowThreads();
36927 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36928 wxPyEndAllowThreads(__tstate);
36929 if (PyErr_Occurred()) SWIG_fail;
36930 }
36931 resultobj = SWIG_Py_Void();
36932 return resultobj;
36933 fail:
36934 return NULL;
36935 }
36936
36937
36938 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36939 PyObject *resultobj = 0;
36940 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36941 wxTreeItemId *arg2 = 0 ;
36942 void *argp1 = 0 ;
36943 int res1 = 0 ;
36944 void *argp2 = 0 ;
36945 int res2 = 0 ;
36946 PyObject * obj0 = 0 ;
36947 PyObject * obj1 = 0 ;
36948 char * kwnames[] = {
36949 (char *) "self",(char *) "item", NULL
36950 };
36951
36952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36954 if (!SWIG_IsOK(res1)) {
36955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36956 }
36957 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36958 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36959 if (!SWIG_IsOK(res2)) {
36960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36961 }
36962 if (!argp2) {
36963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36964 }
36965 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36966 {
36967 PyThreadState* __tstate = wxPyBeginAllowThreads();
36968 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36969 wxPyEndAllowThreads(__tstate);
36970 if (PyErr_Occurred()) SWIG_fail;
36971 }
36972 resultobj = SWIG_Py_Void();
36973 return resultobj;
36974 fail:
36975 return NULL;
36976 }
36977
36978
36979 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36980 PyObject *resultobj = 0;
36981 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36982 wxPoint *arg2 = 0 ;
36983 int *arg3 = 0 ;
36984 wxTreeItemId result;
36985 void *argp1 = 0 ;
36986 int res1 = 0 ;
36987 wxPoint temp2 ;
36988 int temp3 ;
36989 int res3 = SWIG_TMPOBJ ;
36990 PyObject * obj0 = 0 ;
36991 PyObject * obj1 = 0 ;
36992 char * kwnames[] = {
36993 (char *) "self",(char *) "point", NULL
36994 };
36995
36996 arg3 = &temp3;
36997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36999 if (!SWIG_IsOK(res1)) {
37000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37001 }
37002 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37003 {
37004 arg2 = &temp2;
37005 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37006 }
37007 {
37008 PyThreadState* __tstate = wxPyBeginAllowThreads();
37009 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37010 wxPyEndAllowThreads(__tstate);
37011 if (PyErr_Occurred()) SWIG_fail;
37012 }
37013 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37014 if (SWIG_IsTmpObj(res3)) {
37015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37016 } else {
37017 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37019 }
37020 return resultobj;
37021 fail:
37022 return NULL;
37023 }
37024
37025
37026 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37027 PyObject *resultobj = 0;
37028 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37029 wxTreeItemId *arg2 = 0 ;
37030 bool arg3 = (bool) false ;
37031 PyObject *result = 0 ;
37032 void *argp1 = 0 ;
37033 int res1 = 0 ;
37034 void *argp2 = 0 ;
37035 int res2 = 0 ;
37036 bool val3 ;
37037 int ecode3 = 0 ;
37038 PyObject * obj0 = 0 ;
37039 PyObject * obj1 = 0 ;
37040 PyObject * obj2 = 0 ;
37041 char * kwnames[] = {
37042 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37043 };
37044
37045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37047 if (!SWIG_IsOK(res1)) {
37048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37049 }
37050 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37052 if (!SWIG_IsOK(res2)) {
37053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37054 }
37055 if (!argp2) {
37056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37057 }
37058 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37059 if (obj2) {
37060 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37061 if (!SWIG_IsOK(ecode3)) {
37062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37063 }
37064 arg3 = static_cast< bool >(val3);
37065 }
37066 {
37067 PyThreadState* __tstate = wxPyBeginAllowThreads();
37068 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37069 wxPyEndAllowThreads(__tstate);
37070 if (PyErr_Occurred()) SWIG_fail;
37071 }
37072 resultobj = result;
37073 return resultobj;
37074 fail:
37075 return NULL;
37076 }
37077
37078
37079 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37080 PyObject *resultobj = 0;
37081 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37082 wxTreeItemId *arg2 = 0 ;
37083 int arg3 ;
37084 void *argp1 = 0 ;
37085 int res1 = 0 ;
37086 void *argp2 = 0 ;
37087 int res2 = 0 ;
37088 int val3 ;
37089 int ecode3 = 0 ;
37090 PyObject * obj0 = 0 ;
37091 PyObject * obj1 = 0 ;
37092 PyObject * obj2 = 0 ;
37093 char * kwnames[] = {
37094 (char *) "self",(char *) "node",(char *) "state", NULL
37095 };
37096
37097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37099 if (!SWIG_IsOK(res1)) {
37100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37101 }
37102 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37104 if (!SWIG_IsOK(res2)) {
37105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37106 }
37107 if (!argp2) {
37108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37109 }
37110 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37111 ecode3 = SWIG_AsVal_int(obj2, &val3);
37112 if (!SWIG_IsOK(ecode3)) {
37113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37114 }
37115 arg3 = static_cast< int >(val3);
37116 {
37117 PyThreadState* __tstate = wxPyBeginAllowThreads();
37118 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37119 wxPyEndAllowThreads(__tstate);
37120 if (PyErr_Occurred()) SWIG_fail;
37121 }
37122 resultobj = SWIG_Py_Void();
37123 return resultobj;
37124 fail:
37125 return NULL;
37126 }
37127
37128
37129 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37130 PyObject *resultobj = 0;
37131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37132 wxTreeItemId *arg2 = 0 ;
37133 int result;
37134 void *argp1 = 0 ;
37135 int res1 = 0 ;
37136 void *argp2 = 0 ;
37137 int res2 = 0 ;
37138 PyObject * obj0 = 0 ;
37139 PyObject * obj1 = 0 ;
37140 char * kwnames[] = {
37141 (char *) "self",(char *) "node", NULL
37142 };
37143
37144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37146 if (!SWIG_IsOK(res1)) {
37147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37148 }
37149 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37151 if (!SWIG_IsOK(res2)) {
37152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37153 }
37154 if (!argp2) {
37155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37156 }
37157 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37158 {
37159 PyThreadState* __tstate = wxPyBeginAllowThreads();
37160 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37161 wxPyEndAllowThreads(__tstate);
37162 if (PyErr_Occurred()) SWIG_fail;
37163 }
37164 resultobj = SWIG_From_int(static_cast< int >(result));
37165 return resultobj;
37166 fail:
37167 return NULL;
37168 }
37169
37170
37171 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37172 PyObject *resultobj = 0;
37173 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37174 SwigValueWrapper<wxVisualAttributes > result;
37175 int val1 ;
37176 int ecode1 = 0 ;
37177 PyObject * obj0 = 0 ;
37178 char * kwnames[] = {
37179 (char *) "variant", NULL
37180 };
37181
37182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37183 if (obj0) {
37184 ecode1 = SWIG_AsVal_int(obj0, &val1);
37185 if (!SWIG_IsOK(ecode1)) {
37186 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37187 }
37188 arg1 = static_cast< wxWindowVariant >(val1);
37189 }
37190 {
37191 if (!wxPyCheckForApp()) SWIG_fail;
37192 PyThreadState* __tstate = wxPyBeginAllowThreads();
37193 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37194 wxPyEndAllowThreads(__tstate);
37195 if (PyErr_Occurred()) SWIG_fail;
37196 }
37197 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37198 return resultobj;
37199 fail:
37200 return NULL;
37201 }
37202
37203
37204 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37205 PyObject *resultobj = 0;
37206 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37207 bool arg2 ;
37208 void *argp1 = 0 ;
37209 int res1 = 0 ;
37210 bool val2 ;
37211 int ecode2 = 0 ;
37212 PyObject * obj0 = 0 ;
37213 PyObject * obj1 = 0 ;
37214 char * kwnames[] = {
37215 (char *) "self",(char *) "q", NULL
37216 };
37217
37218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37220 if (!SWIG_IsOK(res1)) {
37221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37222 }
37223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37224 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37225 if (!SWIG_IsOK(ecode2)) {
37226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37227 }
37228 arg2 = static_cast< bool >(val2);
37229 {
37230 PyThreadState* __tstate = wxPyBeginAllowThreads();
37231 (arg1)->SetQuickBestSize(arg2);
37232 wxPyEndAllowThreads(__tstate);
37233 if (PyErr_Occurred()) SWIG_fail;
37234 }
37235 resultobj = SWIG_Py_Void();
37236 return resultobj;
37237 fail:
37238 return NULL;
37239 }
37240
37241
37242 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37243 PyObject *resultobj = 0;
37244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37245 bool result;
37246 void *argp1 = 0 ;
37247 int res1 = 0 ;
37248 PyObject *swig_obj[1] ;
37249
37250 if (!args) SWIG_fail;
37251 swig_obj[0] = args;
37252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37253 if (!SWIG_IsOK(res1)) {
37254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37255 }
37256 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37257 {
37258 PyThreadState* __tstate = wxPyBeginAllowThreads();
37259 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37260 wxPyEndAllowThreads(__tstate);
37261 if (PyErr_Occurred()) SWIG_fail;
37262 }
37263 {
37264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37265 }
37266 return resultobj;
37267 fail:
37268 return NULL;
37269 }
37270
37271
37272 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37273 PyObject *obj;
37274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37275 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37276 return SWIG_Py_Void();
37277 }
37278
37279 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37280 return SWIG_Python_InitShadowInstance(args);
37281 }
37282
37283 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37284 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37285 return 1;
37286 }
37287
37288
37289 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37290 PyObject *pyobj = 0;
37291
37292 {
37293 #if wxUSE_UNICODE
37294 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37295 #else
37296 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37297 #endif
37298 }
37299 return pyobj;
37300 }
37301
37302
37303 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37304 PyObject *resultobj = 0;
37305 wxWindow *arg1 = (wxWindow *) 0 ;
37306 int arg2 = (int) (int)-1 ;
37307 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37308 wxString *arg3 = (wxString *) &arg3_defvalue ;
37309 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37310 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37311 wxSize const &arg5_defvalue = wxDefaultSize ;
37312 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37313 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37314 wxString const &arg7_defvalue = wxPyEmptyString ;
37315 wxString *arg7 = (wxString *) &arg7_defvalue ;
37316 int arg8 = (int) 0 ;
37317 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37318 wxString *arg9 = (wxString *) &arg9_defvalue ;
37319 wxGenericDirCtrl *result = 0 ;
37320 void *argp1 = 0 ;
37321 int res1 = 0 ;
37322 int val2 ;
37323 int ecode2 = 0 ;
37324 bool temp3 = false ;
37325 wxPoint temp4 ;
37326 wxSize temp5 ;
37327 long val6 ;
37328 int ecode6 = 0 ;
37329 bool temp7 = false ;
37330 int val8 ;
37331 int ecode8 = 0 ;
37332 bool temp9 = false ;
37333 PyObject * obj0 = 0 ;
37334 PyObject * obj1 = 0 ;
37335 PyObject * obj2 = 0 ;
37336 PyObject * obj3 = 0 ;
37337 PyObject * obj4 = 0 ;
37338 PyObject * obj5 = 0 ;
37339 PyObject * obj6 = 0 ;
37340 PyObject * obj7 = 0 ;
37341 PyObject * obj8 = 0 ;
37342 char * kwnames[] = {
37343 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37344 };
37345
37346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37348 if (!SWIG_IsOK(res1)) {
37349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37350 }
37351 arg1 = reinterpret_cast< wxWindow * >(argp1);
37352 if (obj1) {
37353 ecode2 = SWIG_AsVal_int(obj1, &val2);
37354 if (!SWIG_IsOK(ecode2)) {
37355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37356 }
37357 arg2 = static_cast< int >(val2);
37358 }
37359 if (obj2) {
37360 {
37361 arg3 = wxString_in_helper(obj2);
37362 if (arg3 == NULL) SWIG_fail;
37363 temp3 = true;
37364 }
37365 }
37366 if (obj3) {
37367 {
37368 arg4 = &temp4;
37369 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37370 }
37371 }
37372 if (obj4) {
37373 {
37374 arg5 = &temp5;
37375 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37376 }
37377 }
37378 if (obj5) {
37379 ecode6 = SWIG_AsVal_long(obj5, &val6);
37380 if (!SWIG_IsOK(ecode6)) {
37381 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37382 }
37383 arg6 = static_cast< long >(val6);
37384 }
37385 if (obj6) {
37386 {
37387 arg7 = wxString_in_helper(obj6);
37388 if (arg7 == NULL) SWIG_fail;
37389 temp7 = true;
37390 }
37391 }
37392 if (obj7) {
37393 ecode8 = SWIG_AsVal_int(obj7, &val8);
37394 if (!SWIG_IsOK(ecode8)) {
37395 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37396 }
37397 arg8 = static_cast< int >(val8);
37398 }
37399 if (obj8) {
37400 {
37401 arg9 = wxString_in_helper(obj8);
37402 if (arg9 == NULL) SWIG_fail;
37403 temp9 = true;
37404 }
37405 }
37406 {
37407 if (!wxPyCheckForApp()) SWIG_fail;
37408 PyThreadState* __tstate = wxPyBeginAllowThreads();
37409 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37410 wxPyEndAllowThreads(__tstate);
37411 if (PyErr_Occurred()) SWIG_fail;
37412 }
37413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37414 {
37415 if (temp3)
37416 delete arg3;
37417 }
37418 {
37419 if (temp7)
37420 delete arg7;
37421 }
37422 {
37423 if (temp9)
37424 delete arg9;
37425 }
37426 return resultobj;
37427 fail:
37428 {
37429 if (temp3)
37430 delete arg3;
37431 }
37432 {
37433 if (temp7)
37434 delete arg7;
37435 }
37436 {
37437 if (temp9)
37438 delete arg9;
37439 }
37440 return NULL;
37441 }
37442
37443
37444 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37445 PyObject *resultobj = 0;
37446 wxGenericDirCtrl *result = 0 ;
37447
37448 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37449 {
37450 if (!wxPyCheckForApp()) SWIG_fail;
37451 PyThreadState* __tstate = wxPyBeginAllowThreads();
37452 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37453 wxPyEndAllowThreads(__tstate);
37454 if (PyErr_Occurred()) SWIG_fail;
37455 }
37456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37457 return resultobj;
37458 fail:
37459 return NULL;
37460 }
37461
37462
37463 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37464 PyObject *resultobj = 0;
37465 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37466 wxWindow *arg2 = (wxWindow *) 0 ;
37467 int arg3 = (int) (int)-1 ;
37468 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37469 wxString *arg4 = (wxString *) &arg4_defvalue ;
37470 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37471 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37472 wxSize const &arg6_defvalue = wxDefaultSize ;
37473 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37474 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37475 wxString const &arg8_defvalue = wxPyEmptyString ;
37476 wxString *arg8 = (wxString *) &arg8_defvalue ;
37477 int arg9 = (int) 0 ;
37478 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37479 wxString *arg10 = (wxString *) &arg10_defvalue ;
37480 bool result;
37481 void *argp1 = 0 ;
37482 int res1 = 0 ;
37483 void *argp2 = 0 ;
37484 int res2 = 0 ;
37485 int val3 ;
37486 int ecode3 = 0 ;
37487 bool temp4 = false ;
37488 wxPoint temp5 ;
37489 wxSize temp6 ;
37490 long val7 ;
37491 int ecode7 = 0 ;
37492 bool temp8 = false ;
37493 int val9 ;
37494 int ecode9 = 0 ;
37495 bool temp10 = false ;
37496 PyObject * obj0 = 0 ;
37497 PyObject * obj1 = 0 ;
37498 PyObject * obj2 = 0 ;
37499 PyObject * obj3 = 0 ;
37500 PyObject * obj4 = 0 ;
37501 PyObject * obj5 = 0 ;
37502 PyObject * obj6 = 0 ;
37503 PyObject * obj7 = 0 ;
37504 PyObject * obj8 = 0 ;
37505 PyObject * obj9 = 0 ;
37506 char * kwnames[] = {
37507 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37508 };
37509
37510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37512 if (!SWIG_IsOK(res1)) {
37513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37514 }
37515 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37517 if (!SWIG_IsOK(res2)) {
37518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37519 }
37520 arg2 = reinterpret_cast< wxWindow * >(argp2);
37521 if (obj2) {
37522 ecode3 = SWIG_AsVal_int(obj2, &val3);
37523 if (!SWIG_IsOK(ecode3)) {
37524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37525 }
37526 arg3 = static_cast< int >(val3);
37527 }
37528 if (obj3) {
37529 {
37530 arg4 = wxString_in_helper(obj3);
37531 if (arg4 == NULL) SWIG_fail;
37532 temp4 = true;
37533 }
37534 }
37535 if (obj4) {
37536 {
37537 arg5 = &temp5;
37538 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37539 }
37540 }
37541 if (obj5) {
37542 {
37543 arg6 = &temp6;
37544 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37545 }
37546 }
37547 if (obj6) {
37548 ecode7 = SWIG_AsVal_long(obj6, &val7);
37549 if (!SWIG_IsOK(ecode7)) {
37550 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37551 }
37552 arg7 = static_cast< long >(val7);
37553 }
37554 if (obj7) {
37555 {
37556 arg8 = wxString_in_helper(obj7);
37557 if (arg8 == NULL) SWIG_fail;
37558 temp8 = true;
37559 }
37560 }
37561 if (obj8) {
37562 ecode9 = SWIG_AsVal_int(obj8, &val9);
37563 if (!SWIG_IsOK(ecode9)) {
37564 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37565 }
37566 arg9 = static_cast< int >(val9);
37567 }
37568 if (obj9) {
37569 {
37570 arg10 = wxString_in_helper(obj9);
37571 if (arg10 == NULL) SWIG_fail;
37572 temp10 = true;
37573 }
37574 }
37575 {
37576 PyThreadState* __tstate = wxPyBeginAllowThreads();
37577 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37578 wxPyEndAllowThreads(__tstate);
37579 if (PyErr_Occurred()) SWIG_fail;
37580 }
37581 {
37582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37583 }
37584 {
37585 if (temp4)
37586 delete arg4;
37587 }
37588 {
37589 if (temp8)
37590 delete arg8;
37591 }
37592 {
37593 if (temp10)
37594 delete arg10;
37595 }
37596 return resultobj;
37597 fail:
37598 {
37599 if (temp4)
37600 delete arg4;
37601 }
37602 {
37603 if (temp8)
37604 delete arg8;
37605 }
37606 {
37607 if (temp10)
37608 delete arg10;
37609 }
37610 return NULL;
37611 }
37612
37613
37614 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37615 PyObject *resultobj = 0;
37616 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37617 wxString *arg2 = 0 ;
37618 bool result;
37619 void *argp1 = 0 ;
37620 int res1 = 0 ;
37621 bool temp2 = false ;
37622 PyObject * obj0 = 0 ;
37623 PyObject * obj1 = 0 ;
37624 char * kwnames[] = {
37625 (char *) "self",(char *) "path", NULL
37626 };
37627
37628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37630 if (!SWIG_IsOK(res1)) {
37631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37632 }
37633 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37634 {
37635 arg2 = wxString_in_helper(obj1);
37636 if (arg2 == NULL) SWIG_fail;
37637 temp2 = true;
37638 }
37639 {
37640 PyThreadState* __tstate = wxPyBeginAllowThreads();
37641 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37642 wxPyEndAllowThreads(__tstate);
37643 if (PyErr_Occurred()) SWIG_fail;
37644 }
37645 {
37646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37647 }
37648 {
37649 if (temp2)
37650 delete arg2;
37651 }
37652 return resultobj;
37653 fail:
37654 {
37655 if (temp2)
37656 delete arg2;
37657 }
37658 return NULL;
37659 }
37660
37661
37662 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37663 PyObject *resultobj = 0;
37664 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37665 wxString *arg2 = 0 ;
37666 bool result;
37667 void *argp1 = 0 ;
37668 int res1 = 0 ;
37669 bool temp2 = false ;
37670 PyObject * obj0 = 0 ;
37671 PyObject * obj1 = 0 ;
37672 char * kwnames[] = {
37673 (char *) "self",(char *) "path", NULL
37674 };
37675
37676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37678 if (!SWIG_IsOK(res1)) {
37679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37680 }
37681 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37682 {
37683 arg2 = wxString_in_helper(obj1);
37684 if (arg2 == NULL) SWIG_fail;
37685 temp2 = true;
37686 }
37687 {
37688 PyThreadState* __tstate = wxPyBeginAllowThreads();
37689 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37690 wxPyEndAllowThreads(__tstate);
37691 if (PyErr_Occurred()) SWIG_fail;
37692 }
37693 {
37694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37695 }
37696 {
37697 if (temp2)
37698 delete arg2;
37699 }
37700 return resultobj;
37701 fail:
37702 {
37703 if (temp2)
37704 delete arg2;
37705 }
37706 return NULL;
37707 }
37708
37709
37710 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37711 PyObject *resultobj = 0;
37712 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37713 wxString result;
37714 void *argp1 = 0 ;
37715 int res1 = 0 ;
37716 PyObject *swig_obj[1] ;
37717
37718 if (!args) SWIG_fail;
37719 swig_obj[0] = args;
37720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37721 if (!SWIG_IsOK(res1)) {
37722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37723 }
37724 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37725 {
37726 PyThreadState* __tstate = wxPyBeginAllowThreads();
37727 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37728 wxPyEndAllowThreads(__tstate);
37729 if (PyErr_Occurred()) SWIG_fail;
37730 }
37731 {
37732 #if wxUSE_UNICODE
37733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37734 #else
37735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37736 #endif
37737 }
37738 return resultobj;
37739 fail:
37740 return NULL;
37741 }
37742
37743
37744 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37745 PyObject *resultobj = 0;
37746 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37747 wxString *arg2 = 0 ;
37748 void *argp1 = 0 ;
37749 int res1 = 0 ;
37750 bool temp2 = false ;
37751 PyObject * obj0 = 0 ;
37752 PyObject * obj1 = 0 ;
37753 char * kwnames[] = {
37754 (char *) "self",(char *) "path", NULL
37755 };
37756
37757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37759 if (!SWIG_IsOK(res1)) {
37760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37761 }
37762 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37763 {
37764 arg2 = wxString_in_helper(obj1);
37765 if (arg2 == NULL) SWIG_fail;
37766 temp2 = true;
37767 }
37768 {
37769 PyThreadState* __tstate = wxPyBeginAllowThreads();
37770 (arg1)->SetDefaultPath((wxString const &)*arg2);
37771 wxPyEndAllowThreads(__tstate);
37772 if (PyErr_Occurred()) SWIG_fail;
37773 }
37774 resultobj = SWIG_Py_Void();
37775 {
37776 if (temp2)
37777 delete arg2;
37778 }
37779 return resultobj;
37780 fail:
37781 {
37782 if (temp2)
37783 delete arg2;
37784 }
37785 return NULL;
37786 }
37787
37788
37789 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37790 PyObject *resultobj = 0;
37791 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37792 wxString result;
37793 void *argp1 = 0 ;
37794 int res1 = 0 ;
37795 PyObject *swig_obj[1] ;
37796
37797 if (!args) SWIG_fail;
37798 swig_obj[0] = args;
37799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37800 if (!SWIG_IsOK(res1)) {
37801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37802 }
37803 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37804 {
37805 PyThreadState* __tstate = wxPyBeginAllowThreads();
37806 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37807 wxPyEndAllowThreads(__tstate);
37808 if (PyErr_Occurred()) SWIG_fail;
37809 }
37810 {
37811 #if wxUSE_UNICODE
37812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37813 #else
37814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37815 #endif
37816 }
37817 return resultobj;
37818 fail:
37819 return NULL;
37820 }
37821
37822
37823 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37824 PyObject *resultobj = 0;
37825 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37826 wxString result;
37827 void *argp1 = 0 ;
37828 int res1 = 0 ;
37829 PyObject *swig_obj[1] ;
37830
37831 if (!args) SWIG_fail;
37832 swig_obj[0] = args;
37833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37834 if (!SWIG_IsOK(res1)) {
37835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37836 }
37837 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37838 {
37839 PyThreadState* __tstate = wxPyBeginAllowThreads();
37840 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37841 wxPyEndAllowThreads(__tstate);
37842 if (PyErr_Occurred()) SWIG_fail;
37843 }
37844 {
37845 #if wxUSE_UNICODE
37846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37847 #else
37848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37849 #endif
37850 }
37851 return resultobj;
37852 fail:
37853 return NULL;
37854 }
37855
37856
37857 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37858 PyObject *resultobj = 0;
37859 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37860 wxString *arg2 = 0 ;
37861 void *argp1 = 0 ;
37862 int res1 = 0 ;
37863 bool temp2 = false ;
37864 PyObject * obj0 = 0 ;
37865 PyObject * obj1 = 0 ;
37866 char * kwnames[] = {
37867 (char *) "self",(char *) "path", NULL
37868 };
37869
37870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37872 if (!SWIG_IsOK(res1)) {
37873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37874 }
37875 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37876 {
37877 arg2 = wxString_in_helper(obj1);
37878 if (arg2 == NULL) SWIG_fail;
37879 temp2 = true;
37880 }
37881 {
37882 PyThreadState* __tstate = wxPyBeginAllowThreads();
37883 (arg1)->SetPath((wxString const &)*arg2);
37884 wxPyEndAllowThreads(__tstate);
37885 if (PyErr_Occurred()) SWIG_fail;
37886 }
37887 resultobj = SWIG_Py_Void();
37888 {
37889 if (temp2)
37890 delete arg2;
37891 }
37892 return resultobj;
37893 fail:
37894 {
37895 if (temp2)
37896 delete arg2;
37897 }
37898 return NULL;
37899 }
37900
37901
37902 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37903 PyObject *resultobj = 0;
37904 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37905 bool arg2 ;
37906 void *argp1 = 0 ;
37907 int res1 = 0 ;
37908 bool val2 ;
37909 int ecode2 = 0 ;
37910 PyObject * obj0 = 0 ;
37911 PyObject * obj1 = 0 ;
37912 char * kwnames[] = {
37913 (char *) "self",(char *) "show", NULL
37914 };
37915
37916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37918 if (!SWIG_IsOK(res1)) {
37919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37920 }
37921 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37922 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37923 if (!SWIG_IsOK(ecode2)) {
37924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37925 }
37926 arg2 = static_cast< bool >(val2);
37927 {
37928 PyThreadState* __tstate = wxPyBeginAllowThreads();
37929 (arg1)->ShowHidden(arg2);
37930 wxPyEndAllowThreads(__tstate);
37931 if (PyErr_Occurred()) SWIG_fail;
37932 }
37933 resultobj = SWIG_Py_Void();
37934 return resultobj;
37935 fail:
37936 return NULL;
37937 }
37938
37939
37940 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37941 PyObject *resultobj = 0;
37942 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37943 bool result;
37944 void *argp1 = 0 ;
37945 int res1 = 0 ;
37946 PyObject *swig_obj[1] ;
37947
37948 if (!args) SWIG_fail;
37949 swig_obj[0] = args;
37950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37951 if (!SWIG_IsOK(res1)) {
37952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37953 }
37954 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37955 {
37956 PyThreadState* __tstate = wxPyBeginAllowThreads();
37957 result = (bool)(arg1)->GetShowHidden();
37958 wxPyEndAllowThreads(__tstate);
37959 if (PyErr_Occurred()) SWIG_fail;
37960 }
37961 {
37962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37963 }
37964 return resultobj;
37965 fail:
37966 return NULL;
37967 }
37968
37969
37970 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37971 PyObject *resultobj = 0;
37972 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37973 wxString result;
37974 void *argp1 = 0 ;
37975 int res1 = 0 ;
37976 PyObject *swig_obj[1] ;
37977
37978 if (!args) SWIG_fail;
37979 swig_obj[0] = args;
37980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37981 if (!SWIG_IsOK(res1)) {
37982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37983 }
37984 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37985 {
37986 PyThreadState* __tstate = wxPyBeginAllowThreads();
37987 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37988 wxPyEndAllowThreads(__tstate);
37989 if (PyErr_Occurred()) SWIG_fail;
37990 }
37991 {
37992 #if wxUSE_UNICODE
37993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37994 #else
37995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37996 #endif
37997 }
37998 return resultobj;
37999 fail:
38000 return NULL;
38001 }
38002
38003
38004 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38005 PyObject *resultobj = 0;
38006 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38007 wxString *arg2 = 0 ;
38008 void *argp1 = 0 ;
38009 int res1 = 0 ;
38010 bool temp2 = false ;
38011 PyObject * obj0 = 0 ;
38012 PyObject * obj1 = 0 ;
38013 char * kwnames[] = {
38014 (char *) "self",(char *) "filter", NULL
38015 };
38016
38017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38019 if (!SWIG_IsOK(res1)) {
38020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38021 }
38022 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38023 {
38024 arg2 = wxString_in_helper(obj1);
38025 if (arg2 == NULL) SWIG_fail;
38026 temp2 = true;
38027 }
38028 {
38029 PyThreadState* __tstate = wxPyBeginAllowThreads();
38030 (arg1)->SetFilter((wxString const &)*arg2);
38031 wxPyEndAllowThreads(__tstate);
38032 if (PyErr_Occurred()) SWIG_fail;
38033 }
38034 resultobj = SWIG_Py_Void();
38035 {
38036 if (temp2)
38037 delete arg2;
38038 }
38039 return resultobj;
38040 fail:
38041 {
38042 if (temp2)
38043 delete arg2;
38044 }
38045 return NULL;
38046 }
38047
38048
38049 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38050 PyObject *resultobj = 0;
38051 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38052 int result;
38053 void *argp1 = 0 ;
38054 int res1 = 0 ;
38055 PyObject *swig_obj[1] ;
38056
38057 if (!args) SWIG_fail;
38058 swig_obj[0] = args;
38059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38060 if (!SWIG_IsOK(res1)) {
38061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38062 }
38063 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38064 {
38065 PyThreadState* __tstate = wxPyBeginAllowThreads();
38066 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38067 wxPyEndAllowThreads(__tstate);
38068 if (PyErr_Occurred()) SWIG_fail;
38069 }
38070 resultobj = SWIG_From_int(static_cast< int >(result));
38071 return resultobj;
38072 fail:
38073 return NULL;
38074 }
38075
38076
38077 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38078 PyObject *resultobj = 0;
38079 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38080 int arg2 ;
38081 void *argp1 = 0 ;
38082 int res1 = 0 ;
38083 int val2 ;
38084 int ecode2 = 0 ;
38085 PyObject * obj0 = 0 ;
38086 PyObject * obj1 = 0 ;
38087 char * kwnames[] = {
38088 (char *) "self",(char *) "n", NULL
38089 };
38090
38091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38093 if (!SWIG_IsOK(res1)) {
38094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38095 }
38096 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38097 ecode2 = SWIG_AsVal_int(obj1, &val2);
38098 if (!SWIG_IsOK(ecode2)) {
38099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38100 }
38101 arg2 = static_cast< int >(val2);
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 (arg1)->SetFilterIndex(arg2);
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 return resultobj;
38110 fail:
38111 return NULL;
38112 }
38113
38114
38115 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38116 PyObject *resultobj = 0;
38117 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38118 wxTreeItemId result;
38119 void *argp1 = 0 ;
38120 int res1 = 0 ;
38121 PyObject *swig_obj[1] ;
38122
38123 if (!args) SWIG_fail;
38124 swig_obj[0] = args;
38125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38126 if (!SWIG_IsOK(res1)) {
38127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38128 }
38129 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38130 {
38131 PyThreadState* __tstate = wxPyBeginAllowThreads();
38132 result = (arg1)->GetRootId();
38133 wxPyEndAllowThreads(__tstate);
38134 if (PyErr_Occurred()) SWIG_fail;
38135 }
38136 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38137 return resultobj;
38138 fail:
38139 return NULL;
38140 }
38141
38142
38143 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38144 PyObject *resultobj = 0;
38145 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38146 wxPyTreeCtrl *result = 0 ;
38147 void *argp1 = 0 ;
38148 int res1 = 0 ;
38149 PyObject *swig_obj[1] ;
38150
38151 if (!args) SWIG_fail;
38152 swig_obj[0] = args;
38153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38154 if (!SWIG_IsOK(res1)) {
38155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38156 }
38157 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38158 {
38159 PyThreadState* __tstate = wxPyBeginAllowThreads();
38160 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38161 wxPyEndAllowThreads(__tstate);
38162 if (PyErr_Occurred()) SWIG_fail;
38163 }
38164 {
38165 resultobj = wxPyMake_wxObject(result, 0);
38166 }
38167 return resultobj;
38168 fail:
38169 return NULL;
38170 }
38171
38172
38173 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38174 PyObject *resultobj = 0;
38175 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38176 wxDirFilterListCtrl *result = 0 ;
38177 void *argp1 = 0 ;
38178 int res1 = 0 ;
38179 PyObject *swig_obj[1] ;
38180
38181 if (!args) SWIG_fail;
38182 swig_obj[0] = args;
38183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38184 if (!SWIG_IsOK(res1)) {
38185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38186 }
38187 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38188 {
38189 PyThreadState* __tstate = wxPyBeginAllowThreads();
38190 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38191 wxPyEndAllowThreads(__tstate);
38192 if (PyErr_Occurred()) SWIG_fail;
38193 }
38194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38195 return resultobj;
38196 fail:
38197 return NULL;
38198 }
38199
38200
38201 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38202 PyObject *resultobj = 0;
38203 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38204 wxTreeItemId arg2 ;
38205 wxString *arg3 = 0 ;
38206 bool *arg4 = 0 ;
38207 wxTreeItemId result;
38208 void *argp1 = 0 ;
38209 int res1 = 0 ;
38210 void *argp2 ;
38211 int res2 = 0 ;
38212 bool temp3 = false ;
38213 bool temp4 ;
38214 int res4 = SWIG_TMPOBJ ;
38215 PyObject * obj0 = 0 ;
38216 PyObject * obj1 = 0 ;
38217 PyObject * obj2 = 0 ;
38218 char * kwnames[] = {
38219 (char *) "self",(char *) "parentId",(char *) "path", NULL
38220 };
38221
38222 arg4 = &temp4;
38223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38225 if (!SWIG_IsOK(res1)) {
38226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38227 }
38228 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38229 {
38230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38231 if (!SWIG_IsOK(res2)) {
38232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38233 }
38234 if (!argp2) {
38235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38236 } else {
38237 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38238 arg2 = *temp;
38239 if (SWIG_IsNewObj(res2)) delete temp;
38240 }
38241 }
38242 {
38243 arg3 = wxString_in_helper(obj2);
38244 if (arg3 == NULL) SWIG_fail;
38245 temp3 = true;
38246 }
38247 {
38248 PyThreadState* __tstate = wxPyBeginAllowThreads();
38249 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38250 wxPyEndAllowThreads(__tstate);
38251 if (PyErr_Occurred()) SWIG_fail;
38252 }
38253 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38254 if (SWIG_IsTmpObj(res4)) {
38255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38256 } else {
38257 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38259 }
38260 {
38261 if (temp3)
38262 delete arg3;
38263 }
38264 return resultobj;
38265 fail:
38266 {
38267 if (temp3)
38268 delete arg3;
38269 }
38270 return NULL;
38271 }
38272
38273
38274 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38275 PyObject *resultobj = 0;
38276 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38277 void *argp1 = 0 ;
38278 int res1 = 0 ;
38279 PyObject *swig_obj[1] ;
38280
38281 if (!args) SWIG_fail;
38282 swig_obj[0] = args;
38283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38284 if (!SWIG_IsOK(res1)) {
38285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38286 }
38287 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38288 {
38289 PyThreadState* __tstate = wxPyBeginAllowThreads();
38290 (arg1)->DoResize();
38291 wxPyEndAllowThreads(__tstate);
38292 if (PyErr_Occurred()) SWIG_fail;
38293 }
38294 resultobj = SWIG_Py_Void();
38295 return resultobj;
38296 fail:
38297 return NULL;
38298 }
38299
38300
38301 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38302 PyObject *resultobj = 0;
38303 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38304 void *argp1 = 0 ;
38305 int res1 = 0 ;
38306 PyObject *swig_obj[1] ;
38307
38308 if (!args) SWIG_fail;
38309 swig_obj[0] = args;
38310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38311 if (!SWIG_IsOK(res1)) {
38312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38313 }
38314 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38315 {
38316 PyThreadState* __tstate = wxPyBeginAllowThreads();
38317 (arg1)->ReCreateTree();
38318 wxPyEndAllowThreads(__tstate);
38319 if (PyErr_Occurred()) SWIG_fail;
38320 }
38321 resultobj = SWIG_Py_Void();
38322 return resultobj;
38323 fail:
38324 return NULL;
38325 }
38326
38327
38328 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38329 PyObject *obj;
38330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38331 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38332 return SWIG_Py_Void();
38333 }
38334
38335 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38336 return SWIG_Python_InitShadowInstance(args);
38337 }
38338
38339 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38340 PyObject *resultobj = 0;
38341 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38342 int arg2 = (int) (int)-1 ;
38343 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38344 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38345 wxSize const &arg4_defvalue = wxDefaultSize ;
38346 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38347 long arg5 = (long) 0 ;
38348 wxDirFilterListCtrl *result = 0 ;
38349 void *argp1 = 0 ;
38350 int res1 = 0 ;
38351 int val2 ;
38352 int ecode2 = 0 ;
38353 wxPoint temp3 ;
38354 wxSize temp4 ;
38355 long val5 ;
38356 int ecode5 = 0 ;
38357 PyObject * obj0 = 0 ;
38358 PyObject * obj1 = 0 ;
38359 PyObject * obj2 = 0 ;
38360 PyObject * obj3 = 0 ;
38361 PyObject * obj4 = 0 ;
38362 char * kwnames[] = {
38363 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38364 };
38365
38366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38368 if (!SWIG_IsOK(res1)) {
38369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38370 }
38371 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38372 if (obj1) {
38373 ecode2 = SWIG_AsVal_int(obj1, &val2);
38374 if (!SWIG_IsOK(ecode2)) {
38375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38376 }
38377 arg2 = static_cast< int >(val2);
38378 }
38379 if (obj2) {
38380 {
38381 arg3 = &temp3;
38382 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38383 }
38384 }
38385 if (obj3) {
38386 {
38387 arg4 = &temp4;
38388 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38389 }
38390 }
38391 if (obj4) {
38392 ecode5 = SWIG_AsVal_long(obj4, &val5);
38393 if (!SWIG_IsOK(ecode5)) {
38394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38395 }
38396 arg5 = static_cast< long >(val5);
38397 }
38398 {
38399 if (!wxPyCheckForApp()) SWIG_fail;
38400 PyThreadState* __tstate = wxPyBeginAllowThreads();
38401 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38402 wxPyEndAllowThreads(__tstate);
38403 if (PyErr_Occurred()) SWIG_fail;
38404 }
38405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38406 return resultobj;
38407 fail:
38408 return NULL;
38409 }
38410
38411
38412 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38413 PyObject *resultobj = 0;
38414 wxDirFilterListCtrl *result = 0 ;
38415
38416 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38417 {
38418 if (!wxPyCheckForApp()) SWIG_fail;
38419 PyThreadState* __tstate = wxPyBeginAllowThreads();
38420 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38421 wxPyEndAllowThreads(__tstate);
38422 if (PyErr_Occurred()) SWIG_fail;
38423 }
38424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38425 return resultobj;
38426 fail:
38427 return NULL;
38428 }
38429
38430
38431 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38432 PyObject *resultobj = 0;
38433 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38434 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38435 int arg3 = (int) (int)-1 ;
38436 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38437 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38438 wxSize const &arg5_defvalue = wxDefaultSize ;
38439 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38440 long arg6 = (long) 0 ;
38441 bool result;
38442 void *argp1 = 0 ;
38443 int res1 = 0 ;
38444 void *argp2 = 0 ;
38445 int res2 = 0 ;
38446 int val3 ;
38447 int ecode3 = 0 ;
38448 wxPoint temp4 ;
38449 wxSize temp5 ;
38450 long val6 ;
38451 int ecode6 = 0 ;
38452 PyObject * obj0 = 0 ;
38453 PyObject * obj1 = 0 ;
38454 PyObject * obj2 = 0 ;
38455 PyObject * obj3 = 0 ;
38456 PyObject * obj4 = 0 ;
38457 PyObject * obj5 = 0 ;
38458 char * kwnames[] = {
38459 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38460 };
38461
38462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38464 if (!SWIG_IsOK(res1)) {
38465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38466 }
38467 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38468 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38469 if (!SWIG_IsOK(res2)) {
38470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38471 }
38472 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38473 if (obj2) {
38474 ecode3 = SWIG_AsVal_int(obj2, &val3);
38475 if (!SWIG_IsOK(ecode3)) {
38476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38477 }
38478 arg3 = static_cast< int >(val3);
38479 }
38480 if (obj3) {
38481 {
38482 arg4 = &temp4;
38483 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38484 }
38485 }
38486 if (obj4) {
38487 {
38488 arg5 = &temp5;
38489 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38490 }
38491 }
38492 if (obj5) {
38493 ecode6 = SWIG_AsVal_long(obj5, &val6);
38494 if (!SWIG_IsOK(ecode6)) {
38495 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38496 }
38497 arg6 = static_cast< long >(val6);
38498 }
38499 {
38500 PyThreadState* __tstate = wxPyBeginAllowThreads();
38501 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38502 wxPyEndAllowThreads(__tstate);
38503 if (PyErr_Occurred()) SWIG_fail;
38504 }
38505 {
38506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38507 }
38508 return resultobj;
38509 fail:
38510 return NULL;
38511 }
38512
38513
38514 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38515 PyObject *resultobj = 0;
38516 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38517 wxString *arg2 = 0 ;
38518 int arg3 ;
38519 void *argp1 = 0 ;
38520 int res1 = 0 ;
38521 bool temp2 = false ;
38522 int val3 ;
38523 int ecode3 = 0 ;
38524 PyObject * obj0 = 0 ;
38525 PyObject * obj1 = 0 ;
38526 PyObject * obj2 = 0 ;
38527 char * kwnames[] = {
38528 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38529 };
38530
38531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38533 if (!SWIG_IsOK(res1)) {
38534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38535 }
38536 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38537 {
38538 arg2 = wxString_in_helper(obj1);
38539 if (arg2 == NULL) SWIG_fail;
38540 temp2 = true;
38541 }
38542 ecode3 = SWIG_AsVal_int(obj2, &val3);
38543 if (!SWIG_IsOK(ecode3)) {
38544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38545 }
38546 arg3 = static_cast< int >(val3);
38547 {
38548 PyThreadState* __tstate = wxPyBeginAllowThreads();
38549 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38550 wxPyEndAllowThreads(__tstate);
38551 if (PyErr_Occurred()) SWIG_fail;
38552 }
38553 resultobj = SWIG_Py_Void();
38554 {
38555 if (temp2)
38556 delete arg2;
38557 }
38558 return resultobj;
38559 fail:
38560 {
38561 if (temp2)
38562 delete arg2;
38563 }
38564 return NULL;
38565 }
38566
38567
38568 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38569 PyObject *obj;
38570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38571 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38572 return SWIG_Py_Void();
38573 }
38574
38575 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38576 return SWIG_Python_InitShadowInstance(args);
38577 }
38578
38579 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38580 PyObject *resultobj = 0;
38581 wxWindow *arg1 = (wxWindow *) 0 ;
38582 int arg2 = (int) (int)-1 ;
38583 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38584 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38585 wxSize const &arg4_defvalue = wxDefaultSize ;
38586 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38587 long arg5 = (long) 0 ;
38588 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38589 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38590 wxString const &arg7_defvalue = wxPyControlNameStr ;
38591 wxString *arg7 = (wxString *) &arg7_defvalue ;
38592 wxPyControl *result = 0 ;
38593 void *argp1 = 0 ;
38594 int res1 = 0 ;
38595 int val2 ;
38596 int ecode2 = 0 ;
38597 wxPoint temp3 ;
38598 wxSize temp4 ;
38599 long val5 ;
38600 int ecode5 = 0 ;
38601 void *argp6 = 0 ;
38602 int res6 = 0 ;
38603 bool temp7 = false ;
38604 PyObject * obj0 = 0 ;
38605 PyObject * obj1 = 0 ;
38606 PyObject * obj2 = 0 ;
38607 PyObject * obj3 = 0 ;
38608 PyObject * obj4 = 0 ;
38609 PyObject * obj5 = 0 ;
38610 PyObject * obj6 = 0 ;
38611 char * kwnames[] = {
38612 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38613 };
38614
38615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38617 if (!SWIG_IsOK(res1)) {
38618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38619 }
38620 arg1 = reinterpret_cast< wxWindow * >(argp1);
38621 if (obj1) {
38622 ecode2 = SWIG_AsVal_int(obj1, &val2);
38623 if (!SWIG_IsOK(ecode2)) {
38624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38625 }
38626 arg2 = static_cast< int >(val2);
38627 }
38628 if (obj2) {
38629 {
38630 arg3 = &temp3;
38631 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38632 }
38633 }
38634 if (obj3) {
38635 {
38636 arg4 = &temp4;
38637 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38638 }
38639 }
38640 if (obj4) {
38641 ecode5 = SWIG_AsVal_long(obj4, &val5);
38642 if (!SWIG_IsOK(ecode5)) {
38643 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38644 }
38645 arg5 = static_cast< long >(val5);
38646 }
38647 if (obj5) {
38648 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38649 if (!SWIG_IsOK(res6)) {
38650 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38651 }
38652 if (!argp6) {
38653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38654 }
38655 arg6 = reinterpret_cast< wxValidator * >(argp6);
38656 }
38657 if (obj6) {
38658 {
38659 arg7 = wxString_in_helper(obj6);
38660 if (arg7 == NULL) SWIG_fail;
38661 temp7 = true;
38662 }
38663 }
38664 {
38665 if (!wxPyCheckForApp()) SWIG_fail;
38666 PyThreadState* __tstate = wxPyBeginAllowThreads();
38667 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38668 wxPyEndAllowThreads(__tstate);
38669 if (PyErr_Occurred()) SWIG_fail;
38670 }
38671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38672 {
38673 if (temp7)
38674 delete arg7;
38675 }
38676 return resultobj;
38677 fail:
38678 {
38679 if (temp7)
38680 delete arg7;
38681 }
38682 return NULL;
38683 }
38684
38685
38686 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38687 PyObject *resultobj = 0;
38688 wxPyControl *result = 0 ;
38689
38690 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38691 {
38692 if (!wxPyCheckForApp()) SWIG_fail;
38693 PyThreadState* __tstate = wxPyBeginAllowThreads();
38694 result = (wxPyControl *)new wxPyControl();
38695 wxPyEndAllowThreads(__tstate);
38696 if (PyErr_Occurred()) SWIG_fail;
38697 }
38698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38699 return resultobj;
38700 fail:
38701 return NULL;
38702 }
38703
38704
38705 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38706 PyObject *resultobj = 0;
38707 wxPyControl *arg1 = (wxPyControl *) 0 ;
38708 PyObject *arg2 = (PyObject *) 0 ;
38709 PyObject *arg3 = (PyObject *) 0 ;
38710 void *argp1 = 0 ;
38711 int res1 = 0 ;
38712 PyObject * obj0 = 0 ;
38713 PyObject * obj1 = 0 ;
38714 PyObject * obj2 = 0 ;
38715 char * kwnames[] = {
38716 (char *) "self",(char *) "self",(char *) "_class", NULL
38717 };
38718
38719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38721 if (!SWIG_IsOK(res1)) {
38722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38723 }
38724 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38725 arg2 = obj1;
38726 arg3 = obj2;
38727 {
38728 PyThreadState* __tstate = wxPyBeginAllowThreads();
38729 (arg1)->_setCallbackInfo(arg2,arg3);
38730 wxPyEndAllowThreads(__tstate);
38731 if (PyErr_Occurred()) SWIG_fail;
38732 }
38733 resultobj = SWIG_Py_Void();
38734 return resultobj;
38735 fail:
38736 return NULL;
38737 }
38738
38739
38740 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38741 PyObject *resultobj = 0;
38742 wxPyControl *arg1 = (wxPyControl *) 0 ;
38743 wxSize *arg2 = 0 ;
38744 void *argp1 = 0 ;
38745 int res1 = 0 ;
38746 wxSize temp2 ;
38747 PyObject * obj0 = 0 ;
38748 PyObject * obj1 = 0 ;
38749 char * kwnames[] = {
38750 (char *) "self",(char *) "size", NULL
38751 };
38752
38753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38755 if (!SWIG_IsOK(res1)) {
38756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38757 }
38758 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38759 {
38760 arg2 = &temp2;
38761 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38762 }
38763 {
38764 PyThreadState* __tstate = wxPyBeginAllowThreads();
38765 (arg1)->SetBestSize((wxSize const &)*arg2);
38766 wxPyEndAllowThreads(__tstate);
38767 if (PyErr_Occurred()) SWIG_fail;
38768 }
38769 resultobj = SWIG_Py_Void();
38770 return resultobj;
38771 fail:
38772 return NULL;
38773 }
38774
38775
38776 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38777 PyObject *resultobj = 0;
38778 wxPyControl *arg1 = (wxPyControl *) 0 ;
38779 wxDC *arg2 = (wxDC *) 0 ;
38780 bool result;
38781 void *argp1 = 0 ;
38782 int res1 = 0 ;
38783 void *argp2 = 0 ;
38784 int res2 = 0 ;
38785 PyObject * obj0 = 0 ;
38786 PyObject * obj1 = 0 ;
38787 char * kwnames[] = {
38788 (char *) "self",(char *) "dc", NULL
38789 };
38790
38791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38793 if (!SWIG_IsOK(res1)) {
38794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38795 }
38796 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38797 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38798 if (!SWIG_IsOK(res2)) {
38799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38800 }
38801 arg2 = reinterpret_cast< wxDC * >(argp2);
38802 {
38803 PyThreadState* __tstate = wxPyBeginAllowThreads();
38804 result = (bool)(arg1)->DoEraseBackground(arg2);
38805 wxPyEndAllowThreads(__tstate);
38806 if (PyErr_Occurred()) SWIG_fail;
38807 }
38808 {
38809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38810 }
38811 return resultobj;
38812 fail:
38813 return NULL;
38814 }
38815
38816
38817 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38818 PyObject *resultobj = 0;
38819 wxPyControl *arg1 = (wxPyControl *) 0 ;
38820 int arg2 ;
38821 int arg3 ;
38822 int arg4 ;
38823 int arg5 ;
38824 void *argp1 = 0 ;
38825 int res1 = 0 ;
38826 int val2 ;
38827 int ecode2 = 0 ;
38828 int val3 ;
38829 int ecode3 = 0 ;
38830 int val4 ;
38831 int ecode4 = 0 ;
38832 int val5 ;
38833 int ecode5 = 0 ;
38834 PyObject * obj0 = 0 ;
38835 PyObject * obj1 = 0 ;
38836 PyObject * obj2 = 0 ;
38837 PyObject * obj3 = 0 ;
38838 PyObject * obj4 = 0 ;
38839 char * kwnames[] = {
38840 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38841 };
38842
38843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38845 if (!SWIG_IsOK(res1)) {
38846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38847 }
38848 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38849 ecode2 = SWIG_AsVal_int(obj1, &val2);
38850 if (!SWIG_IsOK(ecode2)) {
38851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38852 }
38853 arg2 = static_cast< int >(val2);
38854 ecode3 = SWIG_AsVal_int(obj2, &val3);
38855 if (!SWIG_IsOK(ecode3)) {
38856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38857 }
38858 arg3 = static_cast< int >(val3);
38859 ecode4 = SWIG_AsVal_int(obj3, &val4);
38860 if (!SWIG_IsOK(ecode4)) {
38861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38862 }
38863 arg4 = static_cast< int >(val4);
38864 ecode5 = SWIG_AsVal_int(obj4, &val5);
38865 if (!SWIG_IsOK(ecode5)) {
38866 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38867 }
38868 arg5 = static_cast< int >(val5);
38869 {
38870 PyThreadState* __tstate = wxPyBeginAllowThreads();
38871 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38872 wxPyEndAllowThreads(__tstate);
38873 if (PyErr_Occurred()) SWIG_fail;
38874 }
38875 resultobj = SWIG_Py_Void();
38876 return resultobj;
38877 fail:
38878 return NULL;
38879 }
38880
38881
38882 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38883 PyObject *resultobj = 0;
38884 wxPyControl *arg1 = (wxPyControl *) 0 ;
38885 int arg2 ;
38886 int arg3 ;
38887 int arg4 ;
38888 int arg5 ;
38889 int arg6 = (int) wxSIZE_AUTO ;
38890 void *argp1 = 0 ;
38891 int res1 = 0 ;
38892 int val2 ;
38893 int ecode2 = 0 ;
38894 int val3 ;
38895 int ecode3 = 0 ;
38896 int val4 ;
38897 int ecode4 = 0 ;
38898 int val5 ;
38899 int ecode5 = 0 ;
38900 int val6 ;
38901 int ecode6 = 0 ;
38902 PyObject * obj0 = 0 ;
38903 PyObject * obj1 = 0 ;
38904 PyObject * obj2 = 0 ;
38905 PyObject * obj3 = 0 ;
38906 PyObject * obj4 = 0 ;
38907 PyObject * obj5 = 0 ;
38908 char * kwnames[] = {
38909 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38910 };
38911
38912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38914 if (!SWIG_IsOK(res1)) {
38915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38916 }
38917 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38918 ecode2 = SWIG_AsVal_int(obj1, &val2);
38919 if (!SWIG_IsOK(ecode2)) {
38920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38921 }
38922 arg2 = static_cast< int >(val2);
38923 ecode3 = SWIG_AsVal_int(obj2, &val3);
38924 if (!SWIG_IsOK(ecode3)) {
38925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38926 }
38927 arg3 = static_cast< int >(val3);
38928 ecode4 = SWIG_AsVal_int(obj3, &val4);
38929 if (!SWIG_IsOK(ecode4)) {
38930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38931 }
38932 arg4 = static_cast< int >(val4);
38933 ecode5 = SWIG_AsVal_int(obj4, &val5);
38934 if (!SWIG_IsOK(ecode5)) {
38935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38936 }
38937 arg5 = static_cast< int >(val5);
38938 if (obj5) {
38939 ecode6 = SWIG_AsVal_int(obj5, &val6);
38940 if (!SWIG_IsOK(ecode6)) {
38941 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38942 }
38943 arg6 = static_cast< int >(val6);
38944 }
38945 {
38946 PyThreadState* __tstate = wxPyBeginAllowThreads();
38947 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38948 wxPyEndAllowThreads(__tstate);
38949 if (PyErr_Occurred()) SWIG_fail;
38950 }
38951 resultobj = SWIG_Py_Void();
38952 return resultobj;
38953 fail:
38954 return NULL;
38955 }
38956
38957
38958 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38959 PyObject *resultobj = 0;
38960 wxPyControl *arg1 = (wxPyControl *) 0 ;
38961 int arg2 ;
38962 int arg3 ;
38963 void *argp1 = 0 ;
38964 int res1 = 0 ;
38965 int val2 ;
38966 int ecode2 = 0 ;
38967 int val3 ;
38968 int ecode3 = 0 ;
38969 PyObject * obj0 = 0 ;
38970 PyObject * obj1 = 0 ;
38971 PyObject * obj2 = 0 ;
38972 char * kwnames[] = {
38973 (char *) "self",(char *) "width",(char *) "height", NULL
38974 };
38975
38976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38978 if (!SWIG_IsOK(res1)) {
38979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38980 }
38981 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38982 ecode2 = SWIG_AsVal_int(obj1, &val2);
38983 if (!SWIG_IsOK(ecode2)) {
38984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38985 }
38986 arg2 = static_cast< int >(val2);
38987 ecode3 = SWIG_AsVal_int(obj2, &val3);
38988 if (!SWIG_IsOK(ecode3)) {
38989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38990 }
38991 arg3 = static_cast< int >(val3);
38992 {
38993 PyThreadState* __tstate = wxPyBeginAllowThreads();
38994 (arg1)->DoSetClientSize(arg2,arg3);
38995 wxPyEndAllowThreads(__tstate);
38996 if (PyErr_Occurred()) SWIG_fail;
38997 }
38998 resultobj = SWIG_Py_Void();
38999 return resultobj;
39000 fail:
39001 return NULL;
39002 }
39003
39004
39005 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39006 PyObject *resultobj = 0;
39007 wxPyControl *arg1 = (wxPyControl *) 0 ;
39008 int arg2 ;
39009 int arg3 ;
39010 void *argp1 = 0 ;
39011 int res1 = 0 ;
39012 int val2 ;
39013 int ecode2 = 0 ;
39014 int val3 ;
39015 int ecode3 = 0 ;
39016 PyObject * obj0 = 0 ;
39017 PyObject * obj1 = 0 ;
39018 PyObject * obj2 = 0 ;
39019 char * kwnames[] = {
39020 (char *) "self",(char *) "x",(char *) "y", NULL
39021 };
39022
39023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39025 if (!SWIG_IsOK(res1)) {
39026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39027 }
39028 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39029 ecode2 = SWIG_AsVal_int(obj1, &val2);
39030 if (!SWIG_IsOK(ecode2)) {
39031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39032 }
39033 arg2 = static_cast< int >(val2);
39034 ecode3 = SWIG_AsVal_int(obj2, &val3);
39035 if (!SWIG_IsOK(ecode3)) {
39036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39037 }
39038 arg3 = static_cast< int >(val3);
39039 {
39040 PyThreadState* __tstate = wxPyBeginAllowThreads();
39041 (arg1)->DoSetVirtualSize(arg2,arg3);
39042 wxPyEndAllowThreads(__tstate);
39043 if (PyErr_Occurred()) SWIG_fail;
39044 }
39045 resultobj = SWIG_Py_Void();
39046 return resultobj;
39047 fail:
39048 return NULL;
39049 }
39050
39051
39052 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39053 PyObject *resultobj = 0;
39054 wxPyControl *arg1 = (wxPyControl *) 0 ;
39055 int *arg2 = (int *) 0 ;
39056 int *arg3 = (int *) 0 ;
39057 void *argp1 = 0 ;
39058 int res1 = 0 ;
39059 int temp2 ;
39060 int res2 = SWIG_TMPOBJ ;
39061 int temp3 ;
39062 int res3 = SWIG_TMPOBJ ;
39063 PyObject *swig_obj[1] ;
39064
39065 arg2 = &temp2;
39066 arg3 = &temp3;
39067 if (!args) SWIG_fail;
39068 swig_obj[0] = args;
39069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39070 if (!SWIG_IsOK(res1)) {
39071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39072 }
39073 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39074 {
39075 PyThreadState* __tstate = wxPyBeginAllowThreads();
39076 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39077 wxPyEndAllowThreads(__tstate);
39078 if (PyErr_Occurred()) SWIG_fail;
39079 }
39080 resultobj = SWIG_Py_Void();
39081 if (SWIG_IsTmpObj(res2)) {
39082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39083 } else {
39084 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39086 }
39087 if (SWIG_IsTmpObj(res3)) {
39088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39089 } else {
39090 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39092 }
39093 return resultobj;
39094 fail:
39095 return NULL;
39096 }
39097
39098
39099 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39100 PyObject *resultobj = 0;
39101 wxPyControl *arg1 = (wxPyControl *) 0 ;
39102 int *arg2 = (int *) 0 ;
39103 int *arg3 = (int *) 0 ;
39104 void *argp1 = 0 ;
39105 int res1 = 0 ;
39106 int temp2 ;
39107 int res2 = SWIG_TMPOBJ ;
39108 int temp3 ;
39109 int res3 = SWIG_TMPOBJ ;
39110 PyObject *swig_obj[1] ;
39111
39112 arg2 = &temp2;
39113 arg3 = &temp3;
39114 if (!args) SWIG_fail;
39115 swig_obj[0] = args;
39116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39117 if (!SWIG_IsOK(res1)) {
39118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39119 }
39120 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39121 {
39122 PyThreadState* __tstate = wxPyBeginAllowThreads();
39123 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39124 wxPyEndAllowThreads(__tstate);
39125 if (PyErr_Occurred()) SWIG_fail;
39126 }
39127 resultobj = SWIG_Py_Void();
39128 if (SWIG_IsTmpObj(res2)) {
39129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39130 } else {
39131 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39133 }
39134 if (SWIG_IsTmpObj(res3)) {
39135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39136 } else {
39137 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39139 }
39140 return resultobj;
39141 fail:
39142 return NULL;
39143 }
39144
39145
39146 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39147 PyObject *resultobj = 0;
39148 wxPyControl *arg1 = (wxPyControl *) 0 ;
39149 int *arg2 = (int *) 0 ;
39150 int *arg3 = (int *) 0 ;
39151 void *argp1 = 0 ;
39152 int res1 = 0 ;
39153 int temp2 ;
39154 int res2 = SWIG_TMPOBJ ;
39155 int temp3 ;
39156 int res3 = SWIG_TMPOBJ ;
39157 PyObject *swig_obj[1] ;
39158
39159 arg2 = &temp2;
39160 arg3 = &temp3;
39161 if (!args) SWIG_fail;
39162 swig_obj[0] = args;
39163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39164 if (!SWIG_IsOK(res1)) {
39165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39166 }
39167 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39168 {
39169 PyThreadState* __tstate = wxPyBeginAllowThreads();
39170 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39171 wxPyEndAllowThreads(__tstate);
39172 if (PyErr_Occurred()) SWIG_fail;
39173 }
39174 resultobj = SWIG_Py_Void();
39175 if (SWIG_IsTmpObj(res2)) {
39176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39177 } else {
39178 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39180 }
39181 if (SWIG_IsTmpObj(res3)) {
39182 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39183 } else {
39184 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39186 }
39187 return resultobj;
39188 fail:
39189 return NULL;
39190 }
39191
39192
39193 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39194 PyObject *resultobj = 0;
39195 wxPyControl *arg1 = (wxPyControl *) 0 ;
39196 wxSize result;
39197 void *argp1 = 0 ;
39198 int res1 = 0 ;
39199 PyObject *swig_obj[1] ;
39200
39201 if (!args) SWIG_fail;
39202 swig_obj[0] = args;
39203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39204 if (!SWIG_IsOK(res1)) {
39205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39206 }
39207 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39208 {
39209 PyThreadState* __tstate = wxPyBeginAllowThreads();
39210 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39211 wxPyEndAllowThreads(__tstate);
39212 if (PyErr_Occurred()) SWIG_fail;
39213 }
39214 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39215 return resultobj;
39216 fail:
39217 return NULL;
39218 }
39219
39220
39221 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39222 PyObject *resultobj = 0;
39223 wxPyControl *arg1 = (wxPyControl *) 0 ;
39224 wxSize result;
39225 void *argp1 = 0 ;
39226 int res1 = 0 ;
39227 PyObject *swig_obj[1] ;
39228
39229 if (!args) SWIG_fail;
39230 swig_obj[0] = args;
39231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39232 if (!SWIG_IsOK(res1)) {
39233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39234 }
39235 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39236 {
39237 PyThreadState* __tstate = wxPyBeginAllowThreads();
39238 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39239 wxPyEndAllowThreads(__tstate);
39240 if (PyErr_Occurred()) SWIG_fail;
39241 }
39242 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39243 return resultobj;
39244 fail:
39245 return NULL;
39246 }
39247
39248
39249 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39250 PyObject *resultobj = 0;
39251 wxPyControl *arg1 = (wxPyControl *) 0 ;
39252 SwigValueWrapper<wxVisualAttributes > result;
39253 void *argp1 = 0 ;
39254 int res1 = 0 ;
39255 PyObject *swig_obj[1] ;
39256
39257 if (!args) SWIG_fail;
39258 swig_obj[0] = args;
39259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39260 if (!SWIG_IsOK(res1)) {
39261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39262 }
39263 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39264 {
39265 PyThreadState* __tstate = wxPyBeginAllowThreads();
39266 result = (arg1)->GetDefaultAttributes();
39267 wxPyEndAllowThreads(__tstate);
39268 if (PyErr_Occurred()) SWIG_fail;
39269 }
39270 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39271 return resultobj;
39272 fail:
39273 return NULL;
39274 }
39275
39276
39277 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39278 PyObject *resultobj = 0;
39279 wxPyControl *arg1 = (wxPyControl *) 0 ;
39280 void *argp1 = 0 ;
39281 int res1 = 0 ;
39282 PyObject *swig_obj[1] ;
39283
39284 if (!args) SWIG_fail;
39285 swig_obj[0] = args;
39286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39287 if (!SWIG_IsOK(res1)) {
39288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39289 }
39290 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39291 {
39292 PyThreadState* __tstate = wxPyBeginAllowThreads();
39293 (arg1)->OnInternalIdle();
39294 wxPyEndAllowThreads(__tstate);
39295 if (PyErr_Occurred()) SWIG_fail;
39296 }
39297 resultobj = SWIG_Py_Void();
39298 return resultobj;
39299 fail:
39300 return NULL;
39301 }
39302
39303
39304 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39305 PyObject *obj;
39306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39307 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39308 return SWIG_Py_Void();
39309 }
39310
39311 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39312 return SWIG_Python_InitShadowInstance(args);
39313 }
39314
39315 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39316 PyObject *resultobj = 0;
39317 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39318 int arg2 = (int) 0 ;
39319 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39320 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39321 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39322 wxHelpEvent *result = 0 ;
39323 int val1 ;
39324 int ecode1 = 0 ;
39325 int val2 ;
39326 int ecode2 = 0 ;
39327 wxPoint temp3 ;
39328 int val4 ;
39329 int ecode4 = 0 ;
39330 PyObject * obj0 = 0 ;
39331 PyObject * obj1 = 0 ;
39332 PyObject * obj2 = 0 ;
39333 PyObject * obj3 = 0 ;
39334 char * kwnames[] = {
39335 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39336 };
39337
39338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39339 if (obj0) {
39340 ecode1 = SWIG_AsVal_int(obj0, &val1);
39341 if (!SWIG_IsOK(ecode1)) {
39342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39343 }
39344 arg1 = static_cast< wxEventType >(val1);
39345 }
39346 if (obj1) {
39347 ecode2 = SWIG_AsVal_int(obj1, &val2);
39348 if (!SWIG_IsOK(ecode2)) {
39349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39350 }
39351 arg2 = static_cast< int >(val2);
39352 }
39353 if (obj2) {
39354 {
39355 arg3 = &temp3;
39356 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39357 }
39358 }
39359 if (obj3) {
39360 ecode4 = SWIG_AsVal_int(obj3, &val4);
39361 if (!SWIG_IsOK(ecode4)) {
39362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39363 }
39364 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39365 }
39366 {
39367 PyThreadState* __tstate = wxPyBeginAllowThreads();
39368 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39369 wxPyEndAllowThreads(__tstate);
39370 if (PyErr_Occurred()) SWIG_fail;
39371 }
39372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39373 return resultobj;
39374 fail:
39375 return NULL;
39376 }
39377
39378
39379 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39380 PyObject *resultobj = 0;
39381 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39382 wxPoint result;
39383 void *argp1 = 0 ;
39384 int res1 = 0 ;
39385 PyObject *swig_obj[1] ;
39386
39387 if (!args) SWIG_fail;
39388 swig_obj[0] = args;
39389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39390 if (!SWIG_IsOK(res1)) {
39391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39392 }
39393 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39394 {
39395 PyThreadState* __tstate = wxPyBeginAllowThreads();
39396 result = ((wxHelpEvent const *)arg1)->GetPosition();
39397 wxPyEndAllowThreads(__tstate);
39398 if (PyErr_Occurred()) SWIG_fail;
39399 }
39400 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39401 return resultobj;
39402 fail:
39403 return NULL;
39404 }
39405
39406
39407 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39408 PyObject *resultobj = 0;
39409 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39410 wxPoint *arg2 = 0 ;
39411 void *argp1 = 0 ;
39412 int res1 = 0 ;
39413 wxPoint temp2 ;
39414 PyObject * obj0 = 0 ;
39415 PyObject * obj1 = 0 ;
39416 char * kwnames[] = {
39417 (char *) "self",(char *) "pos", NULL
39418 };
39419
39420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39422 if (!SWIG_IsOK(res1)) {
39423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39424 }
39425 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39426 {
39427 arg2 = &temp2;
39428 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39429 }
39430 {
39431 PyThreadState* __tstate = wxPyBeginAllowThreads();
39432 (arg1)->SetPosition((wxPoint const &)*arg2);
39433 wxPyEndAllowThreads(__tstate);
39434 if (PyErr_Occurred()) SWIG_fail;
39435 }
39436 resultobj = SWIG_Py_Void();
39437 return resultobj;
39438 fail:
39439 return NULL;
39440 }
39441
39442
39443 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39444 PyObject *resultobj = 0;
39445 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39446 wxString *result = 0 ;
39447 void *argp1 = 0 ;
39448 int res1 = 0 ;
39449 PyObject *swig_obj[1] ;
39450
39451 if (!args) SWIG_fail;
39452 swig_obj[0] = args;
39453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39454 if (!SWIG_IsOK(res1)) {
39455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39456 }
39457 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39458 {
39459 PyThreadState* __tstate = wxPyBeginAllowThreads();
39460 {
39461 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39462 result = (wxString *) &_result_ref;
39463 }
39464 wxPyEndAllowThreads(__tstate);
39465 if (PyErr_Occurred()) SWIG_fail;
39466 }
39467 {
39468 #if wxUSE_UNICODE
39469 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39470 #else
39471 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39472 #endif
39473 }
39474 return resultobj;
39475 fail:
39476 return NULL;
39477 }
39478
39479
39480 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39481 PyObject *resultobj = 0;
39482 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39483 wxString *arg2 = 0 ;
39484 void *argp1 = 0 ;
39485 int res1 = 0 ;
39486 bool temp2 = false ;
39487 PyObject * obj0 = 0 ;
39488 PyObject * obj1 = 0 ;
39489 char * kwnames[] = {
39490 (char *) "self",(char *) "link", NULL
39491 };
39492
39493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",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_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39497 }
39498 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39499 {
39500 arg2 = wxString_in_helper(obj1);
39501 if (arg2 == NULL) SWIG_fail;
39502 temp2 = true;
39503 }
39504 {
39505 PyThreadState* __tstate = wxPyBeginAllowThreads();
39506 (arg1)->SetLink((wxString const &)*arg2);
39507 wxPyEndAllowThreads(__tstate);
39508 if (PyErr_Occurred()) SWIG_fail;
39509 }
39510 resultobj = SWIG_Py_Void();
39511 {
39512 if (temp2)
39513 delete arg2;
39514 }
39515 return resultobj;
39516 fail:
39517 {
39518 if (temp2)
39519 delete arg2;
39520 }
39521 return NULL;
39522 }
39523
39524
39525 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39526 PyObject *resultobj = 0;
39527 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39528 wxString *result = 0 ;
39529 void *argp1 = 0 ;
39530 int res1 = 0 ;
39531 PyObject *swig_obj[1] ;
39532
39533 if (!args) SWIG_fail;
39534 swig_obj[0] = args;
39535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39536 if (!SWIG_IsOK(res1)) {
39537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39538 }
39539 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39540 {
39541 PyThreadState* __tstate = wxPyBeginAllowThreads();
39542 {
39543 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39544 result = (wxString *) &_result_ref;
39545 }
39546 wxPyEndAllowThreads(__tstate);
39547 if (PyErr_Occurred()) SWIG_fail;
39548 }
39549 {
39550 #if wxUSE_UNICODE
39551 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39552 #else
39553 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39554 #endif
39555 }
39556 return resultobj;
39557 fail:
39558 return NULL;
39559 }
39560
39561
39562 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39563 PyObject *resultobj = 0;
39564 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39565 wxString *arg2 = 0 ;
39566 void *argp1 = 0 ;
39567 int res1 = 0 ;
39568 bool temp2 = false ;
39569 PyObject * obj0 = 0 ;
39570 PyObject * obj1 = 0 ;
39571 char * kwnames[] = {
39572 (char *) "self",(char *) "target", NULL
39573 };
39574
39575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39577 if (!SWIG_IsOK(res1)) {
39578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39579 }
39580 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39581 {
39582 arg2 = wxString_in_helper(obj1);
39583 if (arg2 == NULL) SWIG_fail;
39584 temp2 = true;
39585 }
39586 {
39587 PyThreadState* __tstate = wxPyBeginAllowThreads();
39588 (arg1)->SetTarget((wxString const &)*arg2);
39589 wxPyEndAllowThreads(__tstate);
39590 if (PyErr_Occurred()) SWIG_fail;
39591 }
39592 resultobj = SWIG_Py_Void();
39593 {
39594 if (temp2)
39595 delete arg2;
39596 }
39597 return resultobj;
39598 fail:
39599 {
39600 if (temp2)
39601 delete arg2;
39602 }
39603 return NULL;
39604 }
39605
39606
39607 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39608 PyObject *resultobj = 0;
39609 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39610 wxHelpEvent::Origin result;
39611 void *argp1 = 0 ;
39612 int res1 = 0 ;
39613 PyObject *swig_obj[1] ;
39614
39615 if (!args) SWIG_fail;
39616 swig_obj[0] = args;
39617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39618 if (!SWIG_IsOK(res1)) {
39619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39620 }
39621 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39622 {
39623 PyThreadState* __tstate = wxPyBeginAllowThreads();
39624 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39625 wxPyEndAllowThreads(__tstate);
39626 if (PyErr_Occurred()) SWIG_fail;
39627 }
39628 resultobj = SWIG_From_int(static_cast< int >(result));
39629 return resultobj;
39630 fail:
39631 return NULL;
39632 }
39633
39634
39635 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39636 PyObject *resultobj = 0;
39637 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39638 wxHelpEvent::Origin arg2 ;
39639 void *argp1 = 0 ;
39640 int res1 = 0 ;
39641 int val2 ;
39642 int ecode2 = 0 ;
39643 PyObject * obj0 = 0 ;
39644 PyObject * obj1 = 0 ;
39645 char * kwnames[] = {
39646 (char *) "self",(char *) "origin", NULL
39647 };
39648
39649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39651 if (!SWIG_IsOK(res1)) {
39652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39653 }
39654 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39655 ecode2 = SWIG_AsVal_int(obj1, &val2);
39656 if (!SWIG_IsOK(ecode2)) {
39657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39658 }
39659 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39660 {
39661 PyThreadState* __tstate = wxPyBeginAllowThreads();
39662 (arg1)->SetOrigin(arg2);
39663 wxPyEndAllowThreads(__tstate);
39664 if (PyErr_Occurred()) SWIG_fail;
39665 }
39666 resultobj = SWIG_Py_Void();
39667 return resultobj;
39668 fail:
39669 return NULL;
39670 }
39671
39672
39673 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39674 PyObject *obj;
39675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39676 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39677 return SWIG_Py_Void();
39678 }
39679
39680 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39681 return SWIG_Python_InitShadowInstance(args);
39682 }
39683
39684 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39685 PyObject *resultobj = 0;
39686 wxWindow *arg1 = (wxWindow *) NULL ;
39687 bool arg2 = (bool) true ;
39688 wxContextHelp *result = 0 ;
39689 void *argp1 = 0 ;
39690 int res1 = 0 ;
39691 bool val2 ;
39692 int ecode2 = 0 ;
39693 PyObject * obj0 = 0 ;
39694 PyObject * obj1 = 0 ;
39695 char * kwnames[] = {
39696 (char *) "window",(char *) "doNow", NULL
39697 };
39698
39699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39700 if (obj0) {
39701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39702 if (!SWIG_IsOK(res1)) {
39703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39704 }
39705 arg1 = reinterpret_cast< wxWindow * >(argp1);
39706 }
39707 if (obj1) {
39708 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39709 if (!SWIG_IsOK(ecode2)) {
39710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39711 }
39712 arg2 = static_cast< bool >(val2);
39713 }
39714 {
39715 if (!wxPyCheckForApp()) SWIG_fail;
39716 PyThreadState* __tstate = wxPyBeginAllowThreads();
39717 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39718 wxPyEndAllowThreads(__tstate);
39719 if (PyErr_Occurred()) SWIG_fail;
39720 }
39721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39722 return resultobj;
39723 fail:
39724 return NULL;
39725 }
39726
39727
39728 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39729 PyObject *resultobj = 0;
39730 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39731 void *argp1 = 0 ;
39732 int res1 = 0 ;
39733 PyObject *swig_obj[1] ;
39734
39735 if (!args) SWIG_fail;
39736 swig_obj[0] = args;
39737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39738 if (!SWIG_IsOK(res1)) {
39739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39740 }
39741 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39742 {
39743 PyThreadState* __tstate = wxPyBeginAllowThreads();
39744 delete arg1;
39745
39746 wxPyEndAllowThreads(__tstate);
39747 if (PyErr_Occurred()) SWIG_fail;
39748 }
39749 resultobj = SWIG_Py_Void();
39750 return resultobj;
39751 fail:
39752 return NULL;
39753 }
39754
39755
39756 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39757 PyObject *resultobj = 0;
39758 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39759 wxWindow *arg2 = (wxWindow *) NULL ;
39760 bool result;
39761 void *argp1 = 0 ;
39762 int res1 = 0 ;
39763 void *argp2 = 0 ;
39764 int res2 = 0 ;
39765 PyObject * obj0 = 0 ;
39766 PyObject * obj1 = 0 ;
39767 char * kwnames[] = {
39768 (char *) "self",(char *) "window", NULL
39769 };
39770
39771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39773 if (!SWIG_IsOK(res1)) {
39774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39775 }
39776 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39777 if (obj1) {
39778 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39779 if (!SWIG_IsOK(res2)) {
39780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39781 }
39782 arg2 = reinterpret_cast< wxWindow * >(argp2);
39783 }
39784 {
39785 PyThreadState* __tstate = wxPyBeginAllowThreads();
39786 result = (bool)(arg1)->BeginContextHelp(arg2);
39787 wxPyEndAllowThreads(__tstate);
39788 if (PyErr_Occurred()) SWIG_fail;
39789 }
39790 {
39791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39792 }
39793 return resultobj;
39794 fail:
39795 return NULL;
39796 }
39797
39798
39799 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39800 PyObject *resultobj = 0;
39801 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39802 bool result;
39803 void *argp1 = 0 ;
39804 int res1 = 0 ;
39805 PyObject *swig_obj[1] ;
39806
39807 if (!args) SWIG_fail;
39808 swig_obj[0] = args;
39809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39810 if (!SWIG_IsOK(res1)) {
39811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39812 }
39813 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39814 {
39815 PyThreadState* __tstate = wxPyBeginAllowThreads();
39816 result = (bool)(arg1)->EndContextHelp();
39817 wxPyEndAllowThreads(__tstate);
39818 if (PyErr_Occurred()) SWIG_fail;
39819 }
39820 {
39821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39822 }
39823 return resultobj;
39824 fail:
39825 return NULL;
39826 }
39827
39828
39829 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39830 PyObject *obj;
39831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39832 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39833 return SWIG_Py_Void();
39834 }
39835
39836 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39837 return SWIG_Python_InitShadowInstance(args);
39838 }
39839
39840 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39841 PyObject *resultobj = 0;
39842 wxWindow *arg1 = (wxWindow *) 0 ;
39843 int arg2 = (int) wxID_CONTEXT_HELP ;
39844 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39845 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39846 wxSize const &arg4_defvalue = wxDefaultSize ;
39847 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39848 long arg5 = (long) wxBU_AUTODRAW ;
39849 wxContextHelpButton *result = 0 ;
39850 void *argp1 = 0 ;
39851 int res1 = 0 ;
39852 int val2 ;
39853 int ecode2 = 0 ;
39854 wxPoint temp3 ;
39855 wxSize temp4 ;
39856 long val5 ;
39857 int ecode5 = 0 ;
39858 PyObject * obj0 = 0 ;
39859 PyObject * obj1 = 0 ;
39860 PyObject * obj2 = 0 ;
39861 PyObject * obj3 = 0 ;
39862 PyObject * obj4 = 0 ;
39863 char * kwnames[] = {
39864 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39865 };
39866
39867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39869 if (!SWIG_IsOK(res1)) {
39870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39871 }
39872 arg1 = reinterpret_cast< wxWindow * >(argp1);
39873 if (obj1) {
39874 ecode2 = SWIG_AsVal_int(obj1, &val2);
39875 if (!SWIG_IsOK(ecode2)) {
39876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39877 }
39878 arg2 = static_cast< int >(val2);
39879 }
39880 if (obj2) {
39881 {
39882 arg3 = &temp3;
39883 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39884 }
39885 }
39886 if (obj3) {
39887 {
39888 arg4 = &temp4;
39889 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39890 }
39891 }
39892 if (obj4) {
39893 ecode5 = SWIG_AsVal_long(obj4, &val5);
39894 if (!SWIG_IsOK(ecode5)) {
39895 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39896 }
39897 arg5 = static_cast< long >(val5);
39898 }
39899 {
39900 if (!wxPyCheckForApp()) SWIG_fail;
39901 PyThreadState* __tstate = wxPyBeginAllowThreads();
39902 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39903 wxPyEndAllowThreads(__tstate);
39904 if (PyErr_Occurred()) SWIG_fail;
39905 }
39906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39907 return resultobj;
39908 fail:
39909 return NULL;
39910 }
39911
39912
39913 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39914 PyObject *obj;
39915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39916 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39917 return SWIG_Py_Void();
39918 }
39919
39920 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39921 return SWIG_Python_InitShadowInstance(args);
39922 }
39923
39924 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39925 PyObject *resultobj = 0;
39926 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39927 void *argp1 = 0 ;
39928 int res1 = 0 ;
39929 PyObject *swig_obj[1] ;
39930
39931 if (!args) SWIG_fail;
39932 swig_obj[0] = args;
39933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39934 if (!SWIG_IsOK(res1)) {
39935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39936 }
39937 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39938 {
39939 PyThreadState* __tstate = wxPyBeginAllowThreads();
39940 delete arg1;
39941
39942 wxPyEndAllowThreads(__tstate);
39943 if (PyErr_Occurred()) SWIG_fail;
39944 }
39945 resultobj = SWIG_Py_Void();
39946 return resultobj;
39947 fail:
39948 return NULL;
39949 }
39950
39951
39952 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39953 PyObject *resultobj = 0;
39954 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39955 wxHelpProvider *result = 0 ;
39956 int res1 = 0 ;
39957 PyObject * obj0 = 0 ;
39958 char * kwnames[] = {
39959 (char *) "helpProvider", NULL
39960 };
39961
39962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39963 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39964 if (!SWIG_IsOK(res1)) {
39965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39966 }
39967 {
39968 PyThreadState* __tstate = wxPyBeginAllowThreads();
39969 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39970 wxPyEndAllowThreads(__tstate);
39971 if (PyErr_Occurred()) SWIG_fail;
39972 }
39973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39974 return resultobj;
39975 fail:
39976 return NULL;
39977 }
39978
39979
39980 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39981 PyObject *resultobj = 0;
39982 wxHelpProvider *result = 0 ;
39983
39984 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39985 {
39986 PyThreadState* __tstate = wxPyBeginAllowThreads();
39987 result = (wxHelpProvider *)wxHelpProvider::Get();
39988 wxPyEndAllowThreads(__tstate);
39989 if (PyErr_Occurred()) SWIG_fail;
39990 }
39991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39992 return resultobj;
39993 fail:
39994 return NULL;
39995 }
39996
39997
39998 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39999 PyObject *resultobj = 0;
40000 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40001 wxWindow *arg2 = (wxWindow *) 0 ;
40002 wxString result;
40003 void *argp1 = 0 ;
40004 int res1 = 0 ;
40005 void *argp2 = 0 ;
40006 int res2 = 0 ;
40007 PyObject * obj0 = 0 ;
40008 PyObject * obj1 = 0 ;
40009 char * kwnames[] = {
40010 (char *) "self",(char *) "window", NULL
40011 };
40012
40013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40015 if (!SWIG_IsOK(res1)) {
40016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40017 }
40018 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40019 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40020 if (!SWIG_IsOK(res2)) {
40021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40022 }
40023 arg2 = reinterpret_cast< wxWindow * >(argp2);
40024 {
40025 PyThreadState* __tstate = wxPyBeginAllowThreads();
40026 result = (arg1)->GetHelp((wxWindow const *)arg2);
40027 wxPyEndAllowThreads(__tstate);
40028 if (PyErr_Occurred()) SWIG_fail;
40029 }
40030 {
40031 #if wxUSE_UNICODE
40032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40033 #else
40034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40035 #endif
40036 }
40037 return resultobj;
40038 fail:
40039 return NULL;
40040 }
40041
40042
40043 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40044 PyObject *resultobj = 0;
40045 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40046 wxWindow *arg2 = (wxWindow *) 0 ;
40047 bool result;
40048 void *argp1 = 0 ;
40049 int res1 = 0 ;
40050 void *argp2 = 0 ;
40051 int res2 = 0 ;
40052 PyObject * obj0 = 0 ;
40053 PyObject * obj1 = 0 ;
40054 char * kwnames[] = {
40055 (char *) "self",(char *) "window", NULL
40056 };
40057
40058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40060 if (!SWIG_IsOK(res1)) {
40061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40062 }
40063 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40065 if (!SWIG_IsOK(res2)) {
40066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40067 }
40068 arg2 = reinterpret_cast< wxWindow * >(argp2);
40069 {
40070 PyThreadState* __tstate = wxPyBeginAllowThreads();
40071 result = (bool)(arg1)->ShowHelp(arg2);
40072 wxPyEndAllowThreads(__tstate);
40073 if (PyErr_Occurred()) SWIG_fail;
40074 }
40075 {
40076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40077 }
40078 return resultobj;
40079 fail:
40080 return NULL;
40081 }
40082
40083
40084 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40085 PyObject *resultobj = 0;
40086 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40087 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40088 wxPoint *arg3 = 0 ;
40089 wxHelpEvent::Origin arg4 ;
40090 bool result;
40091 void *argp1 = 0 ;
40092 int res1 = 0 ;
40093 void *argp2 = 0 ;
40094 int res2 = 0 ;
40095 wxPoint temp3 ;
40096 int val4 ;
40097 int ecode4 = 0 ;
40098 PyObject * obj0 = 0 ;
40099 PyObject * obj1 = 0 ;
40100 PyObject * obj2 = 0 ;
40101 PyObject * obj3 = 0 ;
40102 char * kwnames[] = {
40103 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40104 };
40105
40106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40108 if (!SWIG_IsOK(res1)) {
40109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40110 }
40111 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40112 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40113 if (!SWIG_IsOK(res2)) {
40114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40115 }
40116 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40117 {
40118 arg3 = &temp3;
40119 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40120 }
40121 ecode4 = SWIG_AsVal_int(obj3, &val4);
40122 if (!SWIG_IsOK(ecode4)) {
40123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40124 }
40125 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40126 {
40127 PyThreadState* __tstate = wxPyBeginAllowThreads();
40128 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40129 wxPyEndAllowThreads(__tstate);
40130 if (PyErr_Occurred()) SWIG_fail;
40131 }
40132 {
40133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40134 }
40135 return resultobj;
40136 fail:
40137 return NULL;
40138 }
40139
40140
40141 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40142 PyObject *resultobj = 0;
40143 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40144 wxWindow *arg2 = (wxWindow *) 0 ;
40145 wxString *arg3 = 0 ;
40146 void *argp1 = 0 ;
40147 int res1 = 0 ;
40148 void *argp2 = 0 ;
40149 int res2 = 0 ;
40150 bool temp3 = false ;
40151 PyObject * obj0 = 0 ;
40152 PyObject * obj1 = 0 ;
40153 PyObject * obj2 = 0 ;
40154 char * kwnames[] = {
40155 (char *) "self",(char *) "window",(char *) "text", NULL
40156 };
40157
40158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40160 if (!SWIG_IsOK(res1)) {
40161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40162 }
40163 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40165 if (!SWIG_IsOK(res2)) {
40166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40167 }
40168 arg2 = reinterpret_cast< wxWindow * >(argp2);
40169 {
40170 arg3 = wxString_in_helper(obj2);
40171 if (arg3 == NULL) SWIG_fail;
40172 temp3 = true;
40173 }
40174 {
40175 PyThreadState* __tstate = wxPyBeginAllowThreads();
40176 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40177 wxPyEndAllowThreads(__tstate);
40178 if (PyErr_Occurred()) SWIG_fail;
40179 }
40180 resultobj = SWIG_Py_Void();
40181 {
40182 if (temp3)
40183 delete arg3;
40184 }
40185 return resultobj;
40186 fail:
40187 {
40188 if (temp3)
40189 delete arg3;
40190 }
40191 return NULL;
40192 }
40193
40194
40195 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40196 PyObject *resultobj = 0;
40197 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40198 int arg2 ;
40199 wxString *arg3 = 0 ;
40200 void *argp1 = 0 ;
40201 int res1 = 0 ;
40202 int val2 ;
40203 int ecode2 = 0 ;
40204 bool temp3 = false ;
40205 PyObject * obj0 = 0 ;
40206 PyObject * obj1 = 0 ;
40207 PyObject * obj2 = 0 ;
40208 char * kwnames[] = {
40209 (char *) "self",(char *) "id",(char *) "text", NULL
40210 };
40211
40212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40214 if (!SWIG_IsOK(res1)) {
40215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40216 }
40217 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40218 ecode2 = SWIG_AsVal_int(obj1, &val2);
40219 if (!SWIG_IsOK(ecode2)) {
40220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40221 }
40222 arg2 = static_cast< int >(val2);
40223 {
40224 arg3 = wxString_in_helper(obj2);
40225 if (arg3 == NULL) SWIG_fail;
40226 temp3 = true;
40227 }
40228 {
40229 PyThreadState* __tstate = wxPyBeginAllowThreads();
40230 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40231 wxPyEndAllowThreads(__tstate);
40232 if (PyErr_Occurred()) SWIG_fail;
40233 }
40234 resultobj = SWIG_Py_Void();
40235 {
40236 if (temp3)
40237 delete arg3;
40238 }
40239 return resultobj;
40240 fail:
40241 {
40242 if (temp3)
40243 delete arg3;
40244 }
40245 return NULL;
40246 }
40247
40248
40249 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40250 PyObject *resultobj = 0;
40251 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40252 wxWindow *arg2 = (wxWindow *) 0 ;
40253 void *argp1 = 0 ;
40254 int res1 = 0 ;
40255 void *argp2 = 0 ;
40256 int res2 = 0 ;
40257 PyObject * obj0 = 0 ;
40258 PyObject * obj1 = 0 ;
40259 char * kwnames[] = {
40260 (char *) "self",(char *) "window", NULL
40261 };
40262
40263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40265 if (!SWIG_IsOK(res1)) {
40266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40267 }
40268 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40270 if (!SWIG_IsOK(res2)) {
40271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40272 }
40273 arg2 = reinterpret_cast< wxWindow * >(argp2);
40274 {
40275 PyThreadState* __tstate = wxPyBeginAllowThreads();
40276 (arg1)->RemoveHelp(arg2);
40277 wxPyEndAllowThreads(__tstate);
40278 if (PyErr_Occurred()) SWIG_fail;
40279 }
40280 resultobj = SWIG_Py_Void();
40281 return resultobj;
40282 fail:
40283 return NULL;
40284 }
40285
40286
40287 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40288 PyObject *resultobj = 0;
40289 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40290 void *argp1 = 0 ;
40291 int res1 = 0 ;
40292 PyObject *swig_obj[1] ;
40293
40294 if (!args) SWIG_fail;
40295 swig_obj[0] = args;
40296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40297 if (!SWIG_IsOK(res1)) {
40298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40299 }
40300 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40301 {
40302 PyThreadState* __tstate = wxPyBeginAllowThreads();
40303 wxHelpProvider_Destroy(arg1);
40304 wxPyEndAllowThreads(__tstate);
40305 if (PyErr_Occurred()) SWIG_fail;
40306 }
40307 resultobj = SWIG_Py_Void();
40308 return resultobj;
40309 fail:
40310 return NULL;
40311 }
40312
40313
40314 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40315 PyObject *obj;
40316 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40317 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40318 return SWIG_Py_Void();
40319 }
40320
40321 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40322 PyObject *resultobj = 0;
40323 wxSimpleHelpProvider *result = 0 ;
40324
40325 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40326 {
40327 PyThreadState* __tstate = wxPyBeginAllowThreads();
40328 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40329 wxPyEndAllowThreads(__tstate);
40330 if (PyErr_Occurred()) SWIG_fail;
40331 }
40332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40333 return resultobj;
40334 fail:
40335 return NULL;
40336 }
40337
40338
40339 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40340 PyObject *obj;
40341 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40342 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40343 return SWIG_Py_Void();
40344 }
40345
40346 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40347 return SWIG_Python_InitShadowInstance(args);
40348 }
40349
40350 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40351 PyObject *resultobj = 0;
40352 wxBitmap *arg1 = 0 ;
40353 wxCursor const &arg2_defvalue = wxNullCursor ;
40354 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40355 wxGenericDragImage *result = 0 ;
40356 void *argp1 = 0 ;
40357 int res1 = 0 ;
40358 void *argp2 = 0 ;
40359 int res2 = 0 ;
40360 PyObject * obj0 = 0 ;
40361 PyObject * obj1 = 0 ;
40362 char * kwnames[] = {
40363 (char *) "image",(char *) "cursor", NULL
40364 };
40365
40366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40367 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40368 if (!SWIG_IsOK(res1)) {
40369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40370 }
40371 if (!argp1) {
40372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40373 }
40374 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40375 if (obj1) {
40376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40377 if (!SWIG_IsOK(res2)) {
40378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40379 }
40380 if (!argp2) {
40381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40382 }
40383 arg2 = reinterpret_cast< wxCursor * >(argp2);
40384 }
40385 {
40386 if (!wxPyCheckForApp()) SWIG_fail;
40387 PyThreadState* __tstate = wxPyBeginAllowThreads();
40388 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40389 wxPyEndAllowThreads(__tstate);
40390 if (PyErr_Occurred()) SWIG_fail;
40391 }
40392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40393 return resultobj;
40394 fail:
40395 return NULL;
40396 }
40397
40398
40399 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40400 PyObject *resultobj = 0;
40401 wxIcon *arg1 = 0 ;
40402 wxCursor const &arg2_defvalue = wxNullCursor ;
40403 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40404 wxGenericDragImage *result = 0 ;
40405 void *argp1 = 0 ;
40406 int res1 = 0 ;
40407 void *argp2 = 0 ;
40408 int res2 = 0 ;
40409 PyObject * obj0 = 0 ;
40410 PyObject * obj1 = 0 ;
40411 char * kwnames[] = {
40412 (char *) "image",(char *) "cursor", NULL
40413 };
40414
40415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40416 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40417 if (!SWIG_IsOK(res1)) {
40418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40419 }
40420 if (!argp1) {
40421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40422 }
40423 arg1 = reinterpret_cast< wxIcon * >(argp1);
40424 if (obj1) {
40425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40426 if (!SWIG_IsOK(res2)) {
40427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40428 }
40429 if (!argp2) {
40430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40431 }
40432 arg2 = reinterpret_cast< wxCursor * >(argp2);
40433 }
40434 {
40435 if (!wxPyCheckForApp()) SWIG_fail;
40436 PyThreadState* __tstate = wxPyBeginAllowThreads();
40437 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40438 wxPyEndAllowThreads(__tstate);
40439 if (PyErr_Occurred()) SWIG_fail;
40440 }
40441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40442 return resultobj;
40443 fail:
40444 return NULL;
40445 }
40446
40447
40448 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40449 PyObject *resultobj = 0;
40450 wxString *arg1 = 0 ;
40451 wxCursor const &arg2_defvalue = wxNullCursor ;
40452 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40453 wxGenericDragImage *result = 0 ;
40454 bool temp1 = false ;
40455 void *argp2 = 0 ;
40456 int res2 = 0 ;
40457 PyObject * obj0 = 0 ;
40458 PyObject * obj1 = 0 ;
40459 char * kwnames[] = {
40460 (char *) "str",(char *) "cursor", NULL
40461 };
40462
40463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40464 {
40465 arg1 = wxString_in_helper(obj0);
40466 if (arg1 == NULL) SWIG_fail;
40467 temp1 = true;
40468 }
40469 if (obj1) {
40470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40471 if (!SWIG_IsOK(res2)) {
40472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40473 }
40474 if (!argp2) {
40475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40476 }
40477 arg2 = reinterpret_cast< wxCursor * >(argp2);
40478 }
40479 {
40480 if (!wxPyCheckForApp()) SWIG_fail;
40481 PyThreadState* __tstate = wxPyBeginAllowThreads();
40482 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40483 wxPyEndAllowThreads(__tstate);
40484 if (PyErr_Occurred()) SWIG_fail;
40485 }
40486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40487 {
40488 if (temp1)
40489 delete arg1;
40490 }
40491 return resultobj;
40492 fail:
40493 {
40494 if (temp1)
40495 delete arg1;
40496 }
40497 return NULL;
40498 }
40499
40500
40501 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40502 PyObject *resultobj = 0;
40503 wxPyTreeCtrl *arg1 = 0 ;
40504 wxTreeItemId *arg2 = 0 ;
40505 wxGenericDragImage *result = 0 ;
40506 void *argp1 = 0 ;
40507 int res1 = 0 ;
40508 void *argp2 = 0 ;
40509 int res2 = 0 ;
40510 PyObject * obj0 = 0 ;
40511 PyObject * obj1 = 0 ;
40512 char * kwnames[] = {
40513 (char *) "treeCtrl",(char *) "id", NULL
40514 };
40515
40516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40517 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40518 if (!SWIG_IsOK(res1)) {
40519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40520 }
40521 if (!argp1) {
40522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40523 }
40524 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40526 if (!SWIG_IsOK(res2)) {
40527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40528 }
40529 if (!argp2) {
40530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40531 }
40532 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40533 {
40534 if (!wxPyCheckForApp()) SWIG_fail;
40535 PyThreadState* __tstate = wxPyBeginAllowThreads();
40536 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40537 wxPyEndAllowThreads(__tstate);
40538 if (PyErr_Occurred()) SWIG_fail;
40539 }
40540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40541 return resultobj;
40542 fail:
40543 return NULL;
40544 }
40545
40546
40547 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40548 PyObject *resultobj = 0;
40549 wxPyListCtrl *arg1 = 0 ;
40550 long arg2 ;
40551 wxGenericDragImage *result = 0 ;
40552 void *argp1 = 0 ;
40553 int res1 = 0 ;
40554 long val2 ;
40555 int ecode2 = 0 ;
40556 PyObject * obj0 = 0 ;
40557 PyObject * obj1 = 0 ;
40558 char * kwnames[] = {
40559 (char *) "listCtrl",(char *) "id", NULL
40560 };
40561
40562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40563 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40564 if (!SWIG_IsOK(res1)) {
40565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40566 }
40567 if (!argp1) {
40568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40569 }
40570 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40571 ecode2 = SWIG_AsVal_long(obj1, &val2);
40572 if (!SWIG_IsOK(ecode2)) {
40573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40574 }
40575 arg2 = static_cast< long >(val2);
40576 {
40577 if (!wxPyCheckForApp()) SWIG_fail;
40578 PyThreadState* __tstate = wxPyBeginAllowThreads();
40579 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40580 wxPyEndAllowThreads(__tstate);
40581 if (PyErr_Occurred()) SWIG_fail;
40582 }
40583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40584 return resultobj;
40585 fail:
40586 return NULL;
40587 }
40588
40589
40590 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40591 PyObject *resultobj = 0;
40592 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40593 void *argp1 = 0 ;
40594 int res1 = 0 ;
40595 PyObject *swig_obj[1] ;
40596
40597 if (!args) SWIG_fail;
40598 swig_obj[0] = args;
40599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40600 if (!SWIG_IsOK(res1)) {
40601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40602 }
40603 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40604 {
40605 PyThreadState* __tstate = wxPyBeginAllowThreads();
40606 delete arg1;
40607
40608 wxPyEndAllowThreads(__tstate);
40609 if (PyErr_Occurred()) SWIG_fail;
40610 }
40611 resultobj = SWIG_Py_Void();
40612 return resultobj;
40613 fail:
40614 return NULL;
40615 }
40616
40617
40618 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40619 PyObject *resultobj = 0;
40620 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40621 wxBitmap *arg2 = (wxBitmap *) 0 ;
40622 void *argp1 = 0 ;
40623 int res1 = 0 ;
40624 void *argp2 = 0 ;
40625 int res2 = 0 ;
40626 PyObject * obj0 = 0 ;
40627 PyObject * obj1 = 0 ;
40628 char * kwnames[] = {
40629 (char *) "self",(char *) "bitmap", NULL
40630 };
40631
40632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40634 if (!SWIG_IsOK(res1)) {
40635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40636 }
40637 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40639 if (!SWIG_IsOK(res2)) {
40640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40641 }
40642 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40643 {
40644 PyThreadState* __tstate = wxPyBeginAllowThreads();
40645 (arg1)->SetBackingBitmap(arg2);
40646 wxPyEndAllowThreads(__tstate);
40647 if (PyErr_Occurred()) SWIG_fail;
40648 }
40649 resultobj = SWIG_Py_Void();
40650 return resultobj;
40651 fail:
40652 return NULL;
40653 }
40654
40655
40656 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40657 PyObject *resultobj = 0;
40658 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40659 wxPoint *arg2 = 0 ;
40660 wxWindow *arg3 = (wxWindow *) 0 ;
40661 bool arg4 = (bool) false ;
40662 wxRect *arg5 = (wxRect *) NULL ;
40663 bool result;
40664 void *argp1 = 0 ;
40665 int res1 = 0 ;
40666 wxPoint temp2 ;
40667 void *argp3 = 0 ;
40668 int res3 = 0 ;
40669 bool val4 ;
40670 int ecode4 = 0 ;
40671 void *argp5 = 0 ;
40672 int res5 = 0 ;
40673 PyObject * obj0 = 0 ;
40674 PyObject * obj1 = 0 ;
40675 PyObject * obj2 = 0 ;
40676 PyObject * obj3 = 0 ;
40677 PyObject * obj4 = 0 ;
40678 char * kwnames[] = {
40679 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40680 };
40681
40682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40684 if (!SWIG_IsOK(res1)) {
40685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40686 }
40687 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40688 {
40689 arg2 = &temp2;
40690 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40691 }
40692 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40693 if (!SWIG_IsOK(res3)) {
40694 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40695 }
40696 arg3 = reinterpret_cast< wxWindow * >(argp3);
40697 if (obj3) {
40698 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40699 if (!SWIG_IsOK(ecode4)) {
40700 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40701 }
40702 arg4 = static_cast< bool >(val4);
40703 }
40704 if (obj4) {
40705 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40706 if (!SWIG_IsOK(res5)) {
40707 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40708 }
40709 arg5 = reinterpret_cast< wxRect * >(argp5);
40710 }
40711 {
40712 PyThreadState* __tstate = wxPyBeginAllowThreads();
40713 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40714 wxPyEndAllowThreads(__tstate);
40715 if (PyErr_Occurred()) SWIG_fail;
40716 }
40717 {
40718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40719 }
40720 return resultobj;
40721 fail:
40722 return NULL;
40723 }
40724
40725
40726 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40727 PyObject *resultobj = 0;
40728 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40729 wxPoint *arg2 = 0 ;
40730 wxWindow *arg3 = (wxWindow *) 0 ;
40731 wxWindow *arg4 = (wxWindow *) 0 ;
40732 bool result;
40733 void *argp1 = 0 ;
40734 int res1 = 0 ;
40735 wxPoint temp2 ;
40736 void *argp3 = 0 ;
40737 int res3 = 0 ;
40738 void *argp4 = 0 ;
40739 int res4 = 0 ;
40740 PyObject * obj0 = 0 ;
40741 PyObject * obj1 = 0 ;
40742 PyObject * obj2 = 0 ;
40743 PyObject * obj3 = 0 ;
40744 char * kwnames[] = {
40745 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40746 };
40747
40748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40750 if (!SWIG_IsOK(res1)) {
40751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40752 }
40753 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40754 {
40755 arg2 = &temp2;
40756 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40757 }
40758 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40759 if (!SWIG_IsOK(res3)) {
40760 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40761 }
40762 arg3 = reinterpret_cast< wxWindow * >(argp3);
40763 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40764 if (!SWIG_IsOK(res4)) {
40765 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40766 }
40767 arg4 = reinterpret_cast< wxWindow * >(argp4);
40768 {
40769 PyThreadState* __tstate = wxPyBeginAllowThreads();
40770 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40771 wxPyEndAllowThreads(__tstate);
40772 if (PyErr_Occurred()) SWIG_fail;
40773 }
40774 {
40775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40776 }
40777 return resultobj;
40778 fail:
40779 return NULL;
40780 }
40781
40782
40783 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40784 PyObject *resultobj = 0;
40785 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40786 bool result;
40787 void *argp1 = 0 ;
40788 int res1 = 0 ;
40789 PyObject *swig_obj[1] ;
40790
40791 if (!args) SWIG_fail;
40792 swig_obj[0] = args;
40793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40794 if (!SWIG_IsOK(res1)) {
40795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40796 }
40797 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40798 {
40799 PyThreadState* __tstate = wxPyBeginAllowThreads();
40800 result = (bool)(arg1)->EndDrag();
40801 wxPyEndAllowThreads(__tstate);
40802 if (PyErr_Occurred()) SWIG_fail;
40803 }
40804 {
40805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40806 }
40807 return resultobj;
40808 fail:
40809 return NULL;
40810 }
40811
40812
40813 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40814 PyObject *resultobj = 0;
40815 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40816 wxPoint *arg2 = 0 ;
40817 bool result;
40818 void *argp1 = 0 ;
40819 int res1 = 0 ;
40820 wxPoint temp2 ;
40821 PyObject * obj0 = 0 ;
40822 PyObject * obj1 = 0 ;
40823 char * kwnames[] = {
40824 (char *) "self",(char *) "pt", NULL
40825 };
40826
40827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40829 if (!SWIG_IsOK(res1)) {
40830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40831 }
40832 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40833 {
40834 arg2 = &temp2;
40835 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40836 }
40837 {
40838 PyThreadState* __tstate = wxPyBeginAllowThreads();
40839 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40840 wxPyEndAllowThreads(__tstate);
40841 if (PyErr_Occurred()) SWIG_fail;
40842 }
40843 {
40844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40845 }
40846 return resultobj;
40847 fail:
40848 return NULL;
40849 }
40850
40851
40852 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40853 PyObject *resultobj = 0;
40854 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40855 bool result;
40856 void *argp1 = 0 ;
40857 int res1 = 0 ;
40858 PyObject *swig_obj[1] ;
40859
40860 if (!args) SWIG_fail;
40861 swig_obj[0] = args;
40862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40863 if (!SWIG_IsOK(res1)) {
40864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40865 }
40866 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40867 {
40868 PyThreadState* __tstate = wxPyBeginAllowThreads();
40869 result = (bool)(arg1)->Show();
40870 wxPyEndAllowThreads(__tstate);
40871 if (PyErr_Occurred()) SWIG_fail;
40872 }
40873 {
40874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40875 }
40876 return resultobj;
40877 fail:
40878 return NULL;
40879 }
40880
40881
40882 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40883 PyObject *resultobj = 0;
40884 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40885 bool result;
40886 void *argp1 = 0 ;
40887 int res1 = 0 ;
40888 PyObject *swig_obj[1] ;
40889
40890 if (!args) SWIG_fail;
40891 swig_obj[0] = args;
40892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40893 if (!SWIG_IsOK(res1)) {
40894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40895 }
40896 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40897 {
40898 PyThreadState* __tstate = wxPyBeginAllowThreads();
40899 result = (bool)(arg1)->Hide();
40900 wxPyEndAllowThreads(__tstate);
40901 if (PyErr_Occurred()) SWIG_fail;
40902 }
40903 {
40904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40905 }
40906 return resultobj;
40907 fail:
40908 return NULL;
40909 }
40910
40911
40912 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40913 PyObject *resultobj = 0;
40914 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40915 wxPoint *arg2 = 0 ;
40916 wxRect result;
40917 void *argp1 = 0 ;
40918 int res1 = 0 ;
40919 wxPoint temp2 ;
40920 PyObject * obj0 = 0 ;
40921 PyObject * obj1 = 0 ;
40922 char * kwnames[] = {
40923 (char *) "self",(char *) "pos", NULL
40924 };
40925
40926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40928 if (!SWIG_IsOK(res1)) {
40929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40930 }
40931 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40932 {
40933 arg2 = &temp2;
40934 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40935 }
40936 {
40937 PyThreadState* __tstate = wxPyBeginAllowThreads();
40938 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40939 wxPyEndAllowThreads(__tstate);
40940 if (PyErr_Occurred()) SWIG_fail;
40941 }
40942 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40943 return resultobj;
40944 fail:
40945 return NULL;
40946 }
40947
40948
40949 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40950 PyObject *resultobj = 0;
40951 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40952 wxDC *arg2 = 0 ;
40953 wxPoint *arg3 = 0 ;
40954 bool result;
40955 void *argp1 = 0 ;
40956 int res1 = 0 ;
40957 void *argp2 = 0 ;
40958 int res2 = 0 ;
40959 wxPoint temp3 ;
40960 PyObject * obj0 = 0 ;
40961 PyObject * obj1 = 0 ;
40962 PyObject * obj2 = 0 ;
40963 char * kwnames[] = {
40964 (char *) "self",(char *) "dc",(char *) "pos", NULL
40965 };
40966
40967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40969 if (!SWIG_IsOK(res1)) {
40970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40971 }
40972 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40974 if (!SWIG_IsOK(res2)) {
40975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40976 }
40977 if (!argp2) {
40978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40979 }
40980 arg2 = reinterpret_cast< wxDC * >(argp2);
40981 {
40982 arg3 = &temp3;
40983 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40984 }
40985 {
40986 PyThreadState* __tstate = wxPyBeginAllowThreads();
40987 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40988 wxPyEndAllowThreads(__tstate);
40989 if (PyErr_Occurred()) SWIG_fail;
40990 }
40991 {
40992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40993 }
40994 return resultobj;
40995 fail:
40996 return NULL;
40997 }
40998
40999
41000 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41001 PyObject *resultobj = 0;
41002 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41003 wxDC *arg2 = 0 ;
41004 wxMemoryDC *arg3 = 0 ;
41005 wxRect *arg4 = 0 ;
41006 wxRect *arg5 = 0 ;
41007 bool result;
41008 void *argp1 = 0 ;
41009 int res1 = 0 ;
41010 void *argp2 = 0 ;
41011 int res2 = 0 ;
41012 void *argp3 = 0 ;
41013 int res3 = 0 ;
41014 wxRect temp4 ;
41015 wxRect temp5 ;
41016 PyObject * obj0 = 0 ;
41017 PyObject * obj1 = 0 ;
41018 PyObject * obj2 = 0 ;
41019 PyObject * obj3 = 0 ;
41020 PyObject * obj4 = 0 ;
41021 char * kwnames[] = {
41022 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41023 };
41024
41025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41027 if (!SWIG_IsOK(res1)) {
41028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41029 }
41030 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41032 if (!SWIG_IsOK(res2)) {
41033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41034 }
41035 if (!argp2) {
41036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41037 }
41038 arg2 = reinterpret_cast< wxDC * >(argp2);
41039 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41040 if (!SWIG_IsOK(res3)) {
41041 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41042 }
41043 if (!argp3) {
41044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41045 }
41046 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41047 {
41048 arg4 = &temp4;
41049 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41050 }
41051 {
41052 arg5 = &temp5;
41053 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41054 }
41055 {
41056 PyThreadState* __tstate = wxPyBeginAllowThreads();
41057 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41058 wxPyEndAllowThreads(__tstate);
41059 if (PyErr_Occurred()) SWIG_fail;
41060 }
41061 {
41062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41063 }
41064 return resultobj;
41065 fail:
41066 return NULL;
41067 }
41068
41069
41070 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41071 PyObject *resultobj = 0;
41072 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41073 wxPoint *arg2 = 0 ;
41074 wxPoint *arg3 = 0 ;
41075 bool arg4 ;
41076 bool arg5 ;
41077 bool result;
41078 void *argp1 = 0 ;
41079 int res1 = 0 ;
41080 wxPoint temp2 ;
41081 wxPoint temp3 ;
41082 bool val4 ;
41083 int ecode4 = 0 ;
41084 bool val5 ;
41085 int ecode5 = 0 ;
41086 PyObject * obj0 = 0 ;
41087 PyObject * obj1 = 0 ;
41088 PyObject * obj2 = 0 ;
41089 PyObject * obj3 = 0 ;
41090 PyObject * obj4 = 0 ;
41091 char * kwnames[] = {
41092 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41093 };
41094
41095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41097 if (!SWIG_IsOK(res1)) {
41098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41099 }
41100 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41101 {
41102 arg2 = &temp2;
41103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41104 }
41105 {
41106 arg3 = &temp3;
41107 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41108 }
41109 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41110 if (!SWIG_IsOK(ecode4)) {
41111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41112 }
41113 arg4 = static_cast< bool >(val4);
41114 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41115 if (!SWIG_IsOK(ecode5)) {
41116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41117 }
41118 arg5 = static_cast< bool >(val5);
41119 {
41120 PyThreadState* __tstate = wxPyBeginAllowThreads();
41121 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41122 wxPyEndAllowThreads(__tstate);
41123 if (PyErr_Occurred()) SWIG_fail;
41124 }
41125 {
41126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41127 }
41128 return resultobj;
41129 fail:
41130 return NULL;
41131 }
41132
41133
41134 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41135 PyObject *obj;
41136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41137 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41138 return SWIG_Py_Void();
41139 }
41140
41141 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41142 return SWIG_Python_InitShadowInstance(args);
41143 }
41144
41145 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41146 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41147 return 1;
41148 }
41149
41150
41151 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41152 PyObject *pyobj = 0;
41153
41154 {
41155 #if wxUSE_UNICODE
41156 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41157 #else
41158 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41159 #endif
41160 }
41161 return pyobj;
41162 }
41163
41164
41165 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41166 PyObject *resultobj = 0;
41167 wxWindow *arg1 = (wxWindow *) 0 ;
41168 int arg2 = (int) -1 ;
41169 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41170 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41171 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41172 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41173 wxSize const &arg5_defvalue = wxDefaultSize ;
41174 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41175 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41176 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41177 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41178 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41179 wxString *arg8 = (wxString *) &arg8_defvalue ;
41180 wxDatePickerCtrl *result = 0 ;
41181 void *argp1 = 0 ;
41182 int res1 = 0 ;
41183 int val2 ;
41184 int ecode2 = 0 ;
41185 void *argp3 = 0 ;
41186 int res3 = 0 ;
41187 wxPoint temp4 ;
41188 wxSize temp5 ;
41189 long val6 ;
41190 int ecode6 = 0 ;
41191 void *argp7 = 0 ;
41192 int res7 = 0 ;
41193 bool temp8 = false ;
41194 PyObject * obj0 = 0 ;
41195 PyObject * obj1 = 0 ;
41196 PyObject * obj2 = 0 ;
41197 PyObject * obj3 = 0 ;
41198 PyObject * obj4 = 0 ;
41199 PyObject * obj5 = 0 ;
41200 PyObject * obj6 = 0 ;
41201 PyObject * obj7 = 0 ;
41202 char * kwnames[] = {
41203 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41204 };
41205
41206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41208 if (!SWIG_IsOK(res1)) {
41209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41210 }
41211 arg1 = reinterpret_cast< wxWindow * >(argp1);
41212 if (obj1) {
41213 ecode2 = SWIG_AsVal_int(obj1, &val2);
41214 if (!SWIG_IsOK(ecode2)) {
41215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41216 }
41217 arg2 = static_cast< int >(val2);
41218 }
41219 if (obj2) {
41220 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41221 if (!SWIG_IsOK(res3)) {
41222 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41223 }
41224 if (!argp3) {
41225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41226 }
41227 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41228 }
41229 if (obj3) {
41230 {
41231 arg4 = &temp4;
41232 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41233 }
41234 }
41235 if (obj4) {
41236 {
41237 arg5 = &temp5;
41238 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41239 }
41240 }
41241 if (obj5) {
41242 ecode6 = SWIG_AsVal_long(obj5, &val6);
41243 if (!SWIG_IsOK(ecode6)) {
41244 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41245 }
41246 arg6 = static_cast< long >(val6);
41247 }
41248 if (obj6) {
41249 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41250 if (!SWIG_IsOK(res7)) {
41251 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41252 }
41253 if (!argp7) {
41254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41255 }
41256 arg7 = reinterpret_cast< wxValidator * >(argp7);
41257 }
41258 if (obj7) {
41259 {
41260 arg8 = wxString_in_helper(obj7);
41261 if (arg8 == NULL) SWIG_fail;
41262 temp8 = true;
41263 }
41264 }
41265 {
41266 if (!wxPyCheckForApp()) SWIG_fail;
41267 PyThreadState* __tstate = wxPyBeginAllowThreads();
41268 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41269 wxPyEndAllowThreads(__tstate);
41270 if (PyErr_Occurred()) SWIG_fail;
41271 }
41272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41273 {
41274 if (temp8)
41275 delete arg8;
41276 }
41277 return resultobj;
41278 fail:
41279 {
41280 if (temp8)
41281 delete arg8;
41282 }
41283 return NULL;
41284 }
41285
41286
41287 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41288 PyObject *resultobj = 0;
41289 wxDatePickerCtrl *result = 0 ;
41290
41291 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41292 {
41293 if (!wxPyCheckForApp()) SWIG_fail;
41294 PyThreadState* __tstate = wxPyBeginAllowThreads();
41295 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41296 wxPyEndAllowThreads(__tstate);
41297 if (PyErr_Occurred()) SWIG_fail;
41298 }
41299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41300 return resultobj;
41301 fail:
41302 return NULL;
41303 }
41304
41305
41306 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41307 PyObject *resultobj = 0;
41308 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41309 wxWindow *arg2 = (wxWindow *) 0 ;
41310 int arg3 = (int) -1 ;
41311 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41312 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41313 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41314 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41315 wxSize const &arg6_defvalue = wxDefaultSize ;
41316 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41317 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41318 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41319 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41320 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41321 wxString *arg9 = (wxString *) &arg9_defvalue ;
41322 bool result;
41323 void *argp1 = 0 ;
41324 int res1 = 0 ;
41325 void *argp2 = 0 ;
41326 int res2 = 0 ;
41327 int val3 ;
41328 int ecode3 = 0 ;
41329 void *argp4 = 0 ;
41330 int res4 = 0 ;
41331 wxPoint temp5 ;
41332 wxSize temp6 ;
41333 long val7 ;
41334 int ecode7 = 0 ;
41335 void *argp8 = 0 ;
41336 int res8 = 0 ;
41337 bool temp9 = false ;
41338 PyObject * obj0 = 0 ;
41339 PyObject * obj1 = 0 ;
41340 PyObject * obj2 = 0 ;
41341 PyObject * obj3 = 0 ;
41342 PyObject * obj4 = 0 ;
41343 PyObject * obj5 = 0 ;
41344 PyObject * obj6 = 0 ;
41345 PyObject * obj7 = 0 ;
41346 PyObject * obj8 = 0 ;
41347 char * kwnames[] = {
41348 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41349 };
41350
41351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41353 if (!SWIG_IsOK(res1)) {
41354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41355 }
41356 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41358 if (!SWIG_IsOK(res2)) {
41359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41360 }
41361 arg2 = reinterpret_cast< wxWindow * >(argp2);
41362 if (obj2) {
41363 ecode3 = SWIG_AsVal_int(obj2, &val3);
41364 if (!SWIG_IsOK(ecode3)) {
41365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41366 }
41367 arg3 = static_cast< int >(val3);
41368 }
41369 if (obj3) {
41370 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41371 if (!SWIG_IsOK(res4)) {
41372 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41373 }
41374 if (!argp4) {
41375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41376 }
41377 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41378 }
41379 if (obj4) {
41380 {
41381 arg5 = &temp5;
41382 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41383 }
41384 }
41385 if (obj5) {
41386 {
41387 arg6 = &temp6;
41388 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41389 }
41390 }
41391 if (obj6) {
41392 ecode7 = SWIG_AsVal_long(obj6, &val7);
41393 if (!SWIG_IsOK(ecode7)) {
41394 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41395 }
41396 arg7 = static_cast< long >(val7);
41397 }
41398 if (obj7) {
41399 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41400 if (!SWIG_IsOK(res8)) {
41401 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41402 }
41403 if (!argp8) {
41404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41405 }
41406 arg8 = reinterpret_cast< wxValidator * >(argp8);
41407 }
41408 if (obj8) {
41409 {
41410 arg9 = wxString_in_helper(obj8);
41411 if (arg9 == NULL) SWIG_fail;
41412 temp9 = true;
41413 }
41414 }
41415 {
41416 PyThreadState* __tstate = wxPyBeginAllowThreads();
41417 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41418 wxPyEndAllowThreads(__tstate);
41419 if (PyErr_Occurred()) SWIG_fail;
41420 }
41421 {
41422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41423 }
41424 {
41425 if (temp9)
41426 delete arg9;
41427 }
41428 return resultobj;
41429 fail:
41430 {
41431 if (temp9)
41432 delete arg9;
41433 }
41434 return NULL;
41435 }
41436
41437
41438 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41439 PyObject *resultobj = 0;
41440 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41441 wxDateTime *arg2 = 0 ;
41442 void *argp1 = 0 ;
41443 int res1 = 0 ;
41444 void *argp2 = 0 ;
41445 int res2 = 0 ;
41446 PyObject * obj0 = 0 ;
41447 PyObject * obj1 = 0 ;
41448 char * kwnames[] = {
41449 (char *) "self",(char *) "dt", NULL
41450 };
41451
41452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41454 if (!SWIG_IsOK(res1)) {
41455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41456 }
41457 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41459 if (!SWIG_IsOK(res2)) {
41460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41461 }
41462 if (!argp2) {
41463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41464 }
41465 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41466 {
41467 PyThreadState* __tstate = wxPyBeginAllowThreads();
41468 (arg1)->SetValue((wxDateTime const &)*arg2);
41469 wxPyEndAllowThreads(__tstate);
41470 if (PyErr_Occurred()) SWIG_fail;
41471 }
41472 resultobj = SWIG_Py_Void();
41473 return resultobj;
41474 fail:
41475 return NULL;
41476 }
41477
41478
41479 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41480 PyObject *resultobj = 0;
41481 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41482 wxDateTime result;
41483 void *argp1 = 0 ;
41484 int res1 = 0 ;
41485 PyObject *swig_obj[1] ;
41486
41487 if (!args) SWIG_fail;
41488 swig_obj[0] = args;
41489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41490 if (!SWIG_IsOK(res1)) {
41491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41492 }
41493 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41494 {
41495 PyThreadState* __tstate = wxPyBeginAllowThreads();
41496 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41497 wxPyEndAllowThreads(__tstate);
41498 if (PyErr_Occurred()) SWIG_fail;
41499 }
41500 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41501 return resultobj;
41502 fail:
41503 return NULL;
41504 }
41505
41506
41507 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41508 PyObject *resultobj = 0;
41509 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41510 wxDateTime *arg2 = 0 ;
41511 wxDateTime *arg3 = 0 ;
41512 void *argp1 = 0 ;
41513 int res1 = 0 ;
41514 void *argp2 = 0 ;
41515 int res2 = 0 ;
41516 void *argp3 = 0 ;
41517 int res3 = 0 ;
41518 PyObject * obj0 = 0 ;
41519 PyObject * obj1 = 0 ;
41520 PyObject * obj2 = 0 ;
41521 char * kwnames[] = {
41522 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41523 };
41524
41525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) 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_SetRange" "', 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_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41534 }
41535 if (!argp2) {
41536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41537 }
41538 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41539 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41540 if (!SWIG_IsOK(res3)) {
41541 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41542 }
41543 if (!argp3) {
41544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41545 }
41546 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41547 {
41548 PyThreadState* __tstate = wxPyBeginAllowThreads();
41549 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41550 wxPyEndAllowThreads(__tstate);
41551 if (PyErr_Occurred()) SWIG_fail;
41552 }
41553 resultobj = SWIG_Py_Void();
41554 return resultobj;
41555 fail:
41556 return NULL;
41557 }
41558
41559
41560 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41561 PyObject *resultobj = 0;
41562 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41563 wxDateTime result;
41564 void *argp1 = 0 ;
41565 int res1 = 0 ;
41566 PyObject *swig_obj[1] ;
41567
41568 if (!args) SWIG_fail;
41569 swig_obj[0] = args;
41570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41571 if (!SWIG_IsOK(res1)) {
41572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41573 }
41574 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41575 {
41576 PyThreadState* __tstate = wxPyBeginAllowThreads();
41577 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41578 wxPyEndAllowThreads(__tstate);
41579 if (PyErr_Occurred()) SWIG_fail;
41580 }
41581 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41582 return resultobj;
41583 fail:
41584 return NULL;
41585 }
41586
41587
41588 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41589 PyObject *resultobj = 0;
41590 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41591 wxDateTime result;
41592 void *argp1 = 0 ;
41593 int res1 = 0 ;
41594 PyObject *swig_obj[1] ;
41595
41596 if (!args) SWIG_fail;
41597 swig_obj[0] = args;
41598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41599 if (!SWIG_IsOK(res1)) {
41600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41601 }
41602 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41603 {
41604 PyThreadState* __tstate = wxPyBeginAllowThreads();
41605 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41606 wxPyEndAllowThreads(__tstate);
41607 if (PyErr_Occurred()) SWIG_fail;
41608 }
41609 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41610 return resultobj;
41611 fail:
41612 return NULL;
41613 }
41614
41615
41616 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41617 PyObject *obj;
41618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41619 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41620 return SWIG_Py_Void();
41621 }
41622
41623 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41624 return SWIG_Python_InitShadowInstance(args);
41625 }
41626
41627 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41628 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41629 return 1;
41630 }
41631
41632
41633 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41634 PyObject *pyobj = 0;
41635
41636 {
41637 #if wxUSE_UNICODE
41638 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41639 #else
41640 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41641 #endif
41642 }
41643 return pyobj;
41644 }
41645
41646
41647 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41648 PyObject *resultobj = 0;
41649 wxWindow *arg1 = (wxWindow *) 0 ;
41650 int arg2 ;
41651 wxString *arg3 = 0 ;
41652 wxString *arg4 = 0 ;
41653 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41654 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41655 wxSize const &arg6_defvalue = wxDefaultSize ;
41656 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41657 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41658 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41659 wxString *arg8 = (wxString *) &arg8_defvalue ;
41660 wxHyperlinkCtrl *result = 0 ;
41661 void *argp1 = 0 ;
41662 int res1 = 0 ;
41663 int val2 ;
41664 int ecode2 = 0 ;
41665 bool temp3 = false ;
41666 bool temp4 = false ;
41667 wxPoint temp5 ;
41668 wxSize temp6 ;
41669 long val7 ;
41670 int ecode7 = 0 ;
41671 bool temp8 = false ;
41672 PyObject * obj0 = 0 ;
41673 PyObject * obj1 = 0 ;
41674 PyObject * obj2 = 0 ;
41675 PyObject * obj3 = 0 ;
41676 PyObject * obj4 = 0 ;
41677 PyObject * obj5 = 0 ;
41678 PyObject * obj6 = 0 ;
41679 PyObject * obj7 = 0 ;
41680 char * kwnames[] = {
41681 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41682 };
41683
41684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41686 if (!SWIG_IsOK(res1)) {
41687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41688 }
41689 arg1 = reinterpret_cast< wxWindow * >(argp1);
41690 ecode2 = SWIG_AsVal_int(obj1, &val2);
41691 if (!SWIG_IsOK(ecode2)) {
41692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41693 }
41694 arg2 = static_cast< int >(val2);
41695 {
41696 arg3 = wxString_in_helper(obj2);
41697 if (arg3 == NULL) SWIG_fail;
41698 temp3 = true;
41699 }
41700 {
41701 arg4 = wxString_in_helper(obj3);
41702 if (arg4 == NULL) SWIG_fail;
41703 temp4 = true;
41704 }
41705 if (obj4) {
41706 {
41707 arg5 = &temp5;
41708 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41709 }
41710 }
41711 if (obj5) {
41712 {
41713 arg6 = &temp6;
41714 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41715 }
41716 }
41717 if (obj6) {
41718 ecode7 = SWIG_AsVal_long(obj6, &val7);
41719 if (!SWIG_IsOK(ecode7)) {
41720 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41721 }
41722 arg7 = static_cast< long >(val7);
41723 }
41724 if (obj7) {
41725 {
41726 arg8 = wxString_in_helper(obj7);
41727 if (arg8 == NULL) SWIG_fail;
41728 temp8 = true;
41729 }
41730 }
41731 {
41732 if (!wxPyCheckForApp()) SWIG_fail;
41733 PyThreadState* __tstate = wxPyBeginAllowThreads();
41734 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41735 wxPyEndAllowThreads(__tstate);
41736 if (PyErr_Occurred()) SWIG_fail;
41737 }
41738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41739 {
41740 if (temp3)
41741 delete arg3;
41742 }
41743 {
41744 if (temp4)
41745 delete arg4;
41746 }
41747 {
41748 if (temp8)
41749 delete arg8;
41750 }
41751 return resultobj;
41752 fail:
41753 {
41754 if (temp3)
41755 delete arg3;
41756 }
41757 {
41758 if (temp4)
41759 delete arg4;
41760 }
41761 {
41762 if (temp8)
41763 delete arg8;
41764 }
41765 return NULL;
41766 }
41767
41768
41769 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41770 PyObject *resultobj = 0;
41771 wxHyperlinkCtrl *result = 0 ;
41772
41773 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41774 {
41775 if (!wxPyCheckForApp()) SWIG_fail;
41776 PyThreadState* __tstate = wxPyBeginAllowThreads();
41777 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41778 wxPyEndAllowThreads(__tstate);
41779 if (PyErr_Occurred()) SWIG_fail;
41780 }
41781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41782 return resultobj;
41783 fail:
41784 return NULL;
41785 }
41786
41787
41788 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41789 PyObject *resultobj = 0;
41790 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41791 wxWindow *arg2 = (wxWindow *) 0 ;
41792 int arg3 ;
41793 wxString *arg4 = 0 ;
41794 wxString *arg5 = 0 ;
41795 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41796 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41797 wxSize const &arg7_defvalue = wxDefaultSize ;
41798 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41799 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41800 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41801 wxString *arg9 = (wxString *) &arg9_defvalue ;
41802 bool result;
41803 void *argp1 = 0 ;
41804 int res1 = 0 ;
41805 void *argp2 = 0 ;
41806 int res2 = 0 ;
41807 int val3 ;
41808 int ecode3 = 0 ;
41809 bool temp4 = false ;
41810 bool temp5 = false ;
41811 wxPoint temp6 ;
41812 wxSize temp7 ;
41813 long val8 ;
41814 int ecode8 = 0 ;
41815 bool temp9 = false ;
41816 PyObject * obj0 = 0 ;
41817 PyObject * obj1 = 0 ;
41818 PyObject * obj2 = 0 ;
41819 PyObject * obj3 = 0 ;
41820 PyObject * obj4 = 0 ;
41821 PyObject * obj5 = 0 ;
41822 PyObject * obj6 = 0 ;
41823 PyObject * obj7 = 0 ;
41824 PyObject * obj8 = 0 ;
41825 char * kwnames[] = {
41826 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41827 };
41828
41829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41831 if (!SWIG_IsOK(res1)) {
41832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41833 }
41834 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41835 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41836 if (!SWIG_IsOK(res2)) {
41837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41838 }
41839 arg2 = reinterpret_cast< wxWindow * >(argp2);
41840 ecode3 = SWIG_AsVal_int(obj2, &val3);
41841 if (!SWIG_IsOK(ecode3)) {
41842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41843 }
41844 arg3 = static_cast< int >(val3);
41845 {
41846 arg4 = wxString_in_helper(obj3);
41847 if (arg4 == NULL) SWIG_fail;
41848 temp4 = true;
41849 }
41850 {
41851 arg5 = wxString_in_helper(obj4);
41852 if (arg5 == NULL) SWIG_fail;
41853 temp5 = true;
41854 }
41855 if (obj5) {
41856 {
41857 arg6 = &temp6;
41858 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41859 }
41860 }
41861 if (obj6) {
41862 {
41863 arg7 = &temp7;
41864 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41865 }
41866 }
41867 if (obj7) {
41868 ecode8 = SWIG_AsVal_long(obj7, &val8);
41869 if (!SWIG_IsOK(ecode8)) {
41870 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41871 }
41872 arg8 = static_cast< long >(val8);
41873 }
41874 if (obj8) {
41875 {
41876 arg9 = wxString_in_helper(obj8);
41877 if (arg9 == NULL) SWIG_fail;
41878 temp9 = true;
41879 }
41880 }
41881 {
41882 PyThreadState* __tstate = wxPyBeginAllowThreads();
41883 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41884 wxPyEndAllowThreads(__tstate);
41885 if (PyErr_Occurred()) SWIG_fail;
41886 }
41887 {
41888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41889 }
41890 {
41891 if (temp4)
41892 delete arg4;
41893 }
41894 {
41895 if (temp5)
41896 delete arg5;
41897 }
41898 {
41899 if (temp9)
41900 delete arg9;
41901 }
41902 return resultobj;
41903 fail:
41904 {
41905 if (temp4)
41906 delete arg4;
41907 }
41908 {
41909 if (temp5)
41910 delete arg5;
41911 }
41912 {
41913 if (temp9)
41914 delete arg9;
41915 }
41916 return NULL;
41917 }
41918
41919
41920 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41921 PyObject *resultobj = 0;
41922 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41923 wxColour result;
41924 void *argp1 = 0 ;
41925 int res1 = 0 ;
41926 PyObject *swig_obj[1] ;
41927
41928 if (!args) SWIG_fail;
41929 swig_obj[0] = args;
41930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41931 if (!SWIG_IsOK(res1)) {
41932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41933 }
41934 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41935 {
41936 PyThreadState* __tstate = wxPyBeginAllowThreads();
41937 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41938 wxPyEndAllowThreads(__tstate);
41939 if (PyErr_Occurred()) SWIG_fail;
41940 }
41941 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41942 return resultobj;
41943 fail:
41944 return NULL;
41945 }
41946
41947
41948 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41949 PyObject *resultobj = 0;
41950 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41951 wxColour *arg2 = 0 ;
41952 void *argp1 = 0 ;
41953 int res1 = 0 ;
41954 wxColour temp2 ;
41955 PyObject * obj0 = 0 ;
41956 PyObject * obj1 = 0 ;
41957 char * kwnames[] = {
41958 (char *) "self",(char *) "colour", NULL
41959 };
41960
41961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41963 if (!SWIG_IsOK(res1)) {
41964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41965 }
41966 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41967 {
41968 arg2 = &temp2;
41969 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41970 }
41971 {
41972 PyThreadState* __tstate = wxPyBeginAllowThreads();
41973 (arg1)->SetHoverColour((wxColour const &)*arg2);
41974 wxPyEndAllowThreads(__tstate);
41975 if (PyErr_Occurred()) SWIG_fail;
41976 }
41977 resultobj = SWIG_Py_Void();
41978 return resultobj;
41979 fail:
41980 return NULL;
41981 }
41982
41983
41984 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41985 PyObject *resultobj = 0;
41986 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41987 wxColour result;
41988 void *argp1 = 0 ;
41989 int res1 = 0 ;
41990 PyObject *swig_obj[1] ;
41991
41992 if (!args) SWIG_fail;
41993 swig_obj[0] = args;
41994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41995 if (!SWIG_IsOK(res1)) {
41996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41997 }
41998 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41999 {
42000 PyThreadState* __tstate = wxPyBeginAllowThreads();
42001 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42002 wxPyEndAllowThreads(__tstate);
42003 if (PyErr_Occurred()) SWIG_fail;
42004 }
42005 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42006 return resultobj;
42007 fail:
42008 return NULL;
42009 }
42010
42011
42012 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42013 PyObject *resultobj = 0;
42014 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42015 wxColour *arg2 = 0 ;
42016 void *argp1 = 0 ;
42017 int res1 = 0 ;
42018 wxColour temp2 ;
42019 PyObject * obj0 = 0 ;
42020 PyObject * obj1 = 0 ;
42021 char * kwnames[] = {
42022 (char *) "self",(char *) "colour", NULL
42023 };
42024
42025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42027 if (!SWIG_IsOK(res1)) {
42028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42029 }
42030 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42031 {
42032 arg2 = &temp2;
42033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42034 }
42035 {
42036 PyThreadState* __tstate = wxPyBeginAllowThreads();
42037 (arg1)->SetNormalColour((wxColour const &)*arg2);
42038 wxPyEndAllowThreads(__tstate);
42039 if (PyErr_Occurred()) SWIG_fail;
42040 }
42041 resultobj = SWIG_Py_Void();
42042 return resultobj;
42043 fail:
42044 return NULL;
42045 }
42046
42047
42048 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42049 PyObject *resultobj = 0;
42050 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42051 wxColour result;
42052 void *argp1 = 0 ;
42053 int res1 = 0 ;
42054 PyObject *swig_obj[1] ;
42055
42056 if (!args) SWIG_fail;
42057 swig_obj[0] = args;
42058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42059 if (!SWIG_IsOK(res1)) {
42060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42061 }
42062 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42063 {
42064 PyThreadState* __tstate = wxPyBeginAllowThreads();
42065 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42066 wxPyEndAllowThreads(__tstate);
42067 if (PyErr_Occurred()) SWIG_fail;
42068 }
42069 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42070 return resultobj;
42071 fail:
42072 return NULL;
42073 }
42074
42075
42076 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42077 PyObject *resultobj = 0;
42078 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42079 wxColour *arg2 = 0 ;
42080 void *argp1 = 0 ;
42081 int res1 = 0 ;
42082 wxColour temp2 ;
42083 PyObject * obj0 = 0 ;
42084 PyObject * obj1 = 0 ;
42085 char * kwnames[] = {
42086 (char *) "self",(char *) "colour", NULL
42087 };
42088
42089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42091 if (!SWIG_IsOK(res1)) {
42092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42093 }
42094 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42095 {
42096 arg2 = &temp2;
42097 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42098 }
42099 {
42100 PyThreadState* __tstate = wxPyBeginAllowThreads();
42101 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42102 wxPyEndAllowThreads(__tstate);
42103 if (PyErr_Occurred()) SWIG_fail;
42104 }
42105 resultobj = SWIG_Py_Void();
42106 return resultobj;
42107 fail:
42108 return NULL;
42109 }
42110
42111
42112 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42113 PyObject *resultobj = 0;
42114 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42115 wxString result;
42116 void *argp1 = 0 ;
42117 int res1 = 0 ;
42118 PyObject *swig_obj[1] ;
42119
42120 if (!args) SWIG_fail;
42121 swig_obj[0] = args;
42122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42123 if (!SWIG_IsOK(res1)) {
42124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42125 }
42126 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42127 {
42128 PyThreadState* __tstate = wxPyBeginAllowThreads();
42129 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42130 wxPyEndAllowThreads(__tstate);
42131 if (PyErr_Occurred()) SWIG_fail;
42132 }
42133 {
42134 #if wxUSE_UNICODE
42135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42136 #else
42137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42138 #endif
42139 }
42140 return resultobj;
42141 fail:
42142 return NULL;
42143 }
42144
42145
42146 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42147 PyObject *resultobj = 0;
42148 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42149 wxString *arg2 = 0 ;
42150 void *argp1 = 0 ;
42151 int res1 = 0 ;
42152 bool temp2 = false ;
42153 PyObject * obj0 = 0 ;
42154 PyObject * obj1 = 0 ;
42155 char * kwnames[] = {
42156 (char *) "self",(char *) "url", NULL
42157 };
42158
42159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42161 if (!SWIG_IsOK(res1)) {
42162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42163 }
42164 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42165 {
42166 arg2 = wxString_in_helper(obj1);
42167 if (arg2 == NULL) SWIG_fail;
42168 temp2 = true;
42169 }
42170 {
42171 PyThreadState* __tstate = wxPyBeginAllowThreads();
42172 (arg1)->SetURL((wxString const &)*arg2);
42173 wxPyEndAllowThreads(__tstate);
42174 if (PyErr_Occurred()) SWIG_fail;
42175 }
42176 resultobj = SWIG_Py_Void();
42177 {
42178 if (temp2)
42179 delete arg2;
42180 }
42181 return resultobj;
42182 fail:
42183 {
42184 if (temp2)
42185 delete arg2;
42186 }
42187 return NULL;
42188 }
42189
42190
42191 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42192 PyObject *resultobj = 0;
42193 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42194 bool arg2 = (bool) true ;
42195 void *argp1 = 0 ;
42196 int res1 = 0 ;
42197 bool val2 ;
42198 int ecode2 = 0 ;
42199 PyObject * obj0 = 0 ;
42200 PyObject * obj1 = 0 ;
42201 char * kwnames[] = {
42202 (char *) "self",(char *) "visited", NULL
42203 };
42204
42205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42207 if (!SWIG_IsOK(res1)) {
42208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42209 }
42210 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42211 if (obj1) {
42212 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42213 if (!SWIG_IsOK(ecode2)) {
42214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42215 }
42216 arg2 = static_cast< bool >(val2);
42217 }
42218 {
42219 PyThreadState* __tstate = wxPyBeginAllowThreads();
42220 (arg1)->SetVisited(arg2);
42221 wxPyEndAllowThreads(__tstate);
42222 if (PyErr_Occurred()) SWIG_fail;
42223 }
42224 resultobj = SWIG_Py_Void();
42225 return resultobj;
42226 fail:
42227 return NULL;
42228 }
42229
42230
42231 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42232 PyObject *resultobj = 0;
42233 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42234 bool result;
42235 void *argp1 = 0 ;
42236 int res1 = 0 ;
42237 PyObject *swig_obj[1] ;
42238
42239 if (!args) SWIG_fail;
42240 swig_obj[0] = args;
42241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42242 if (!SWIG_IsOK(res1)) {
42243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42244 }
42245 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42246 {
42247 PyThreadState* __tstate = wxPyBeginAllowThreads();
42248 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42249 wxPyEndAllowThreads(__tstate);
42250 if (PyErr_Occurred()) SWIG_fail;
42251 }
42252 {
42253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42254 }
42255 return resultobj;
42256 fail:
42257 return NULL;
42258 }
42259
42260
42261 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42262 PyObject *obj;
42263 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42264 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42265 return SWIG_Py_Void();
42266 }
42267
42268 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42269 return SWIG_Python_InitShadowInstance(args);
42270 }
42271
42272 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42273 PyObject *resultobj = 0;
42274 wxObject *arg1 = (wxObject *) 0 ;
42275 int arg2 ;
42276 wxString *arg3 = 0 ;
42277 wxHyperlinkEvent *result = 0 ;
42278 void *argp1 = 0 ;
42279 int res1 = 0 ;
42280 int val2 ;
42281 int ecode2 = 0 ;
42282 bool temp3 = false ;
42283 PyObject * obj0 = 0 ;
42284 PyObject * obj1 = 0 ;
42285 PyObject * obj2 = 0 ;
42286 char * kwnames[] = {
42287 (char *) "generator",(char *) "id",(char *) "url", NULL
42288 };
42289
42290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42292 if (!SWIG_IsOK(res1)) {
42293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42294 }
42295 arg1 = reinterpret_cast< wxObject * >(argp1);
42296 ecode2 = SWIG_AsVal_int(obj1, &val2);
42297 if (!SWIG_IsOK(ecode2)) {
42298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42299 }
42300 arg2 = static_cast< int >(val2);
42301 {
42302 arg3 = wxString_in_helper(obj2);
42303 if (arg3 == NULL) SWIG_fail;
42304 temp3 = true;
42305 }
42306 {
42307 PyThreadState* __tstate = wxPyBeginAllowThreads();
42308 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42309 wxPyEndAllowThreads(__tstate);
42310 if (PyErr_Occurred()) SWIG_fail;
42311 }
42312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42313 {
42314 if (temp3)
42315 delete arg3;
42316 }
42317 return resultobj;
42318 fail:
42319 {
42320 if (temp3)
42321 delete arg3;
42322 }
42323 return NULL;
42324 }
42325
42326
42327 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42328 PyObject *resultobj = 0;
42329 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42330 wxString result;
42331 void *argp1 = 0 ;
42332 int res1 = 0 ;
42333 PyObject *swig_obj[1] ;
42334
42335 if (!args) SWIG_fail;
42336 swig_obj[0] = args;
42337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42338 if (!SWIG_IsOK(res1)) {
42339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42340 }
42341 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42342 {
42343 PyThreadState* __tstate = wxPyBeginAllowThreads();
42344 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42345 wxPyEndAllowThreads(__tstate);
42346 if (PyErr_Occurred()) SWIG_fail;
42347 }
42348 {
42349 #if wxUSE_UNICODE
42350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42351 #else
42352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42353 #endif
42354 }
42355 return resultobj;
42356 fail:
42357 return NULL;
42358 }
42359
42360
42361 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42362 PyObject *resultobj = 0;
42363 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42364 wxString *arg2 = 0 ;
42365 void *argp1 = 0 ;
42366 int res1 = 0 ;
42367 bool temp2 = false ;
42368 PyObject * obj0 = 0 ;
42369 PyObject * obj1 = 0 ;
42370 char * kwnames[] = {
42371 (char *) "self",(char *) "url", NULL
42372 };
42373
42374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42376 if (!SWIG_IsOK(res1)) {
42377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42378 }
42379 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42380 {
42381 arg2 = wxString_in_helper(obj1);
42382 if (arg2 == NULL) SWIG_fail;
42383 temp2 = true;
42384 }
42385 {
42386 PyThreadState* __tstate = wxPyBeginAllowThreads();
42387 (arg1)->SetURL((wxString const &)*arg2);
42388 wxPyEndAllowThreads(__tstate);
42389 if (PyErr_Occurred()) SWIG_fail;
42390 }
42391 resultobj = SWIG_Py_Void();
42392 {
42393 if (temp2)
42394 delete arg2;
42395 }
42396 return resultobj;
42397 fail:
42398 {
42399 if (temp2)
42400 delete arg2;
42401 }
42402 return NULL;
42403 }
42404
42405
42406 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42407 PyObject *obj;
42408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42409 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42410 return SWIG_Py_Void();
42411 }
42412
42413 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42414 return SWIG_Python_InitShadowInstance(args);
42415 }
42416
42417 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42418 PyObject *resultobj = 0;
42419 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42420 wxWindow *arg2 = (wxWindow *) 0 ;
42421 int arg3 ;
42422 wxString const &arg4_defvalue = wxEmptyString ;
42423 wxString *arg4 = (wxString *) &arg4_defvalue ;
42424 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42425 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42426 wxSize const &arg6_defvalue = wxDefaultSize ;
42427 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42428 long arg7 = (long) 0 ;
42429 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42430 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42431 wxString const &arg9_defvalue = wxButtonNameStr ;
42432 wxString *arg9 = (wxString *) &arg9_defvalue ;
42433 bool result;
42434 void *argp1 = 0 ;
42435 int res1 = 0 ;
42436 void *argp2 = 0 ;
42437 int res2 = 0 ;
42438 int val3 ;
42439 int ecode3 = 0 ;
42440 bool temp4 = false ;
42441 wxPoint temp5 ;
42442 wxSize temp6 ;
42443 long val7 ;
42444 int ecode7 = 0 ;
42445 void *argp8 = 0 ;
42446 int res8 = 0 ;
42447 bool temp9 = false ;
42448 PyObject * obj0 = 0 ;
42449 PyObject * obj1 = 0 ;
42450 PyObject * obj2 = 0 ;
42451 PyObject * obj3 = 0 ;
42452 PyObject * obj4 = 0 ;
42453 PyObject * obj5 = 0 ;
42454 PyObject * obj6 = 0 ;
42455 PyObject * obj7 = 0 ;
42456 PyObject * obj8 = 0 ;
42457 char * kwnames[] = {
42458 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42459 };
42460
42461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42463 if (!SWIG_IsOK(res1)) {
42464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42465 }
42466 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42467 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42468 if (!SWIG_IsOK(res2)) {
42469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42470 }
42471 arg2 = reinterpret_cast< wxWindow * >(argp2);
42472 ecode3 = SWIG_AsVal_int(obj2, &val3);
42473 if (!SWIG_IsOK(ecode3)) {
42474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42475 }
42476 arg3 = static_cast< int >(val3);
42477 if (obj3) {
42478 {
42479 arg4 = wxString_in_helper(obj3);
42480 if (arg4 == NULL) SWIG_fail;
42481 temp4 = true;
42482 }
42483 }
42484 if (obj4) {
42485 {
42486 arg5 = &temp5;
42487 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42488 }
42489 }
42490 if (obj5) {
42491 {
42492 arg6 = &temp6;
42493 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42494 }
42495 }
42496 if (obj6) {
42497 ecode7 = SWIG_AsVal_long(obj6, &val7);
42498 if (!SWIG_IsOK(ecode7)) {
42499 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42500 }
42501 arg7 = static_cast< long >(val7);
42502 }
42503 if (obj7) {
42504 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42505 if (!SWIG_IsOK(res8)) {
42506 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42507 }
42508 if (!argp8) {
42509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42510 }
42511 arg8 = reinterpret_cast< wxValidator * >(argp8);
42512 }
42513 if (obj8) {
42514 {
42515 arg9 = wxString_in_helper(obj8);
42516 if (arg9 == NULL) SWIG_fail;
42517 temp9 = true;
42518 }
42519 }
42520 {
42521 PyThreadState* __tstate = wxPyBeginAllowThreads();
42522 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42523 wxPyEndAllowThreads(__tstate);
42524 if (PyErr_Occurred()) SWIG_fail;
42525 }
42526 {
42527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42528 }
42529 {
42530 if (temp4)
42531 delete arg4;
42532 }
42533 {
42534 if (temp9)
42535 delete arg9;
42536 }
42537 return resultobj;
42538 fail:
42539 {
42540 if (temp4)
42541 delete arg4;
42542 }
42543 {
42544 if (temp9)
42545 delete arg9;
42546 }
42547 return NULL;
42548 }
42549
42550
42551 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42552 PyObject *resultobj = 0;
42553 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42554 int arg2 ;
42555 void *argp1 = 0 ;
42556 int res1 = 0 ;
42557 int val2 ;
42558 int ecode2 = 0 ;
42559 PyObject * obj0 = 0 ;
42560 PyObject * obj1 = 0 ;
42561 char * kwnames[] = {
42562 (char *) "self",(char *) "newmargin", NULL
42563 };
42564
42565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42567 if (!SWIG_IsOK(res1)) {
42568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42569 }
42570 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42571 ecode2 = SWIG_AsVal_int(obj1, &val2);
42572 if (!SWIG_IsOK(ecode2)) {
42573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42574 }
42575 arg2 = static_cast< int >(val2);
42576 {
42577 PyThreadState* __tstate = wxPyBeginAllowThreads();
42578 (arg1)->SetInternalMargin(arg2);
42579 wxPyEndAllowThreads(__tstate);
42580 if (PyErr_Occurred()) SWIG_fail;
42581 }
42582 resultobj = SWIG_Py_Void();
42583 return resultobj;
42584 fail:
42585 return NULL;
42586 }
42587
42588
42589 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42590 PyObject *resultobj = 0;
42591 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42592 int result;
42593 void *argp1 = 0 ;
42594 int res1 = 0 ;
42595 PyObject *swig_obj[1] ;
42596
42597 if (!args) SWIG_fail;
42598 swig_obj[0] = args;
42599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42600 if (!SWIG_IsOK(res1)) {
42601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42602 }
42603 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42604 {
42605 PyThreadState* __tstate = wxPyBeginAllowThreads();
42606 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42607 wxPyEndAllowThreads(__tstate);
42608 if (PyErr_Occurred()) SWIG_fail;
42609 }
42610 resultobj = SWIG_From_int(static_cast< int >(result));
42611 return resultobj;
42612 fail:
42613 return NULL;
42614 }
42615
42616
42617 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42618 PyObject *resultobj = 0;
42619 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42620 int arg2 ;
42621 void *argp1 = 0 ;
42622 int res1 = 0 ;
42623 int val2 ;
42624 int ecode2 = 0 ;
42625 PyObject * obj0 = 0 ;
42626 PyObject * obj1 = 0 ;
42627 char * kwnames[] = {
42628 (char *) "self",(char *) "prop", NULL
42629 };
42630
42631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42633 if (!SWIG_IsOK(res1)) {
42634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42635 }
42636 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42637 ecode2 = SWIG_AsVal_int(obj1, &val2);
42638 if (!SWIG_IsOK(ecode2)) {
42639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42640 }
42641 arg2 = static_cast< int >(val2);
42642 {
42643 PyThreadState* __tstate = wxPyBeginAllowThreads();
42644 (arg1)->SetTextCtrlProportion(arg2);
42645 wxPyEndAllowThreads(__tstate);
42646 if (PyErr_Occurred()) SWIG_fail;
42647 }
42648 resultobj = SWIG_Py_Void();
42649 return resultobj;
42650 fail:
42651 return NULL;
42652 }
42653
42654
42655 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42656 PyObject *resultobj = 0;
42657 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42658 int result;
42659 void *argp1 = 0 ;
42660 int res1 = 0 ;
42661 PyObject *swig_obj[1] ;
42662
42663 if (!args) SWIG_fail;
42664 swig_obj[0] = args;
42665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42666 if (!SWIG_IsOK(res1)) {
42667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42668 }
42669 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42670 {
42671 PyThreadState* __tstate = wxPyBeginAllowThreads();
42672 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42673 wxPyEndAllowThreads(__tstate);
42674 if (PyErr_Occurred()) SWIG_fail;
42675 }
42676 resultobj = SWIG_From_int(static_cast< int >(result));
42677 return resultobj;
42678 fail:
42679 return NULL;
42680 }
42681
42682
42683 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42684 PyObject *resultobj = 0;
42685 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42686 bool result;
42687 void *argp1 = 0 ;
42688 int res1 = 0 ;
42689 PyObject *swig_obj[1] ;
42690
42691 if (!args) SWIG_fail;
42692 swig_obj[0] = args;
42693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42694 if (!SWIG_IsOK(res1)) {
42695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42696 }
42697 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42698 {
42699 PyThreadState* __tstate = wxPyBeginAllowThreads();
42700 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42701 wxPyEndAllowThreads(__tstate);
42702 if (PyErr_Occurred()) SWIG_fail;
42703 }
42704 {
42705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42706 }
42707 return resultobj;
42708 fail:
42709 return NULL;
42710 }
42711
42712
42713 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42714 PyObject *resultobj = 0;
42715 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42716 bool arg2 = (bool) true ;
42717 void *argp1 = 0 ;
42718 int res1 = 0 ;
42719 bool val2 ;
42720 int ecode2 = 0 ;
42721 PyObject * obj0 = 0 ;
42722 PyObject * obj1 = 0 ;
42723 char * kwnames[] = {
42724 (char *) "self",(char *) "grow", NULL
42725 };
42726
42727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42729 if (!SWIG_IsOK(res1)) {
42730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42731 }
42732 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42733 if (obj1) {
42734 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42735 if (!SWIG_IsOK(ecode2)) {
42736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42737 }
42738 arg2 = static_cast< bool >(val2);
42739 }
42740 {
42741 PyThreadState* __tstate = wxPyBeginAllowThreads();
42742 (arg1)->SetTextCtrlGrowable(arg2);
42743 wxPyEndAllowThreads(__tstate);
42744 if (PyErr_Occurred()) SWIG_fail;
42745 }
42746 resultobj = SWIG_Py_Void();
42747 return resultobj;
42748 fail:
42749 return NULL;
42750 }
42751
42752
42753 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42754 PyObject *resultobj = 0;
42755 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42756 bool result;
42757 void *argp1 = 0 ;
42758 int res1 = 0 ;
42759 PyObject *swig_obj[1] ;
42760
42761 if (!args) SWIG_fail;
42762 swig_obj[0] = args;
42763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42764 if (!SWIG_IsOK(res1)) {
42765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42766 }
42767 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42768 {
42769 PyThreadState* __tstate = wxPyBeginAllowThreads();
42770 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42771 wxPyEndAllowThreads(__tstate);
42772 if (PyErr_Occurred()) SWIG_fail;
42773 }
42774 {
42775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42776 }
42777 return resultobj;
42778 fail:
42779 return NULL;
42780 }
42781
42782
42783 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42784 PyObject *resultobj = 0;
42785 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42786 bool arg2 = (bool) true ;
42787 void *argp1 = 0 ;
42788 int res1 = 0 ;
42789 bool val2 ;
42790 int ecode2 = 0 ;
42791 PyObject * obj0 = 0 ;
42792 PyObject * obj1 = 0 ;
42793 char * kwnames[] = {
42794 (char *) "self",(char *) "grow", NULL
42795 };
42796
42797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42799 if (!SWIG_IsOK(res1)) {
42800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42801 }
42802 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42803 if (obj1) {
42804 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42805 if (!SWIG_IsOK(ecode2)) {
42806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42807 }
42808 arg2 = static_cast< bool >(val2);
42809 }
42810 {
42811 PyThreadState* __tstate = wxPyBeginAllowThreads();
42812 (arg1)->SetPickerCtrlGrowable(arg2);
42813 wxPyEndAllowThreads(__tstate);
42814 if (PyErr_Occurred()) SWIG_fail;
42815 }
42816 resultobj = SWIG_Py_Void();
42817 return resultobj;
42818 fail:
42819 return NULL;
42820 }
42821
42822
42823 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42824 PyObject *resultobj = 0;
42825 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42826 bool result;
42827 void *argp1 = 0 ;
42828 int res1 = 0 ;
42829 PyObject *swig_obj[1] ;
42830
42831 if (!args) SWIG_fail;
42832 swig_obj[0] = args;
42833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42834 if (!SWIG_IsOK(res1)) {
42835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42836 }
42837 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42838 {
42839 PyThreadState* __tstate = wxPyBeginAllowThreads();
42840 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42841 wxPyEndAllowThreads(__tstate);
42842 if (PyErr_Occurred()) SWIG_fail;
42843 }
42844 {
42845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42846 }
42847 return resultobj;
42848 fail:
42849 return NULL;
42850 }
42851
42852
42853 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42854 PyObject *resultobj = 0;
42855 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42856 wxTextCtrl *result = 0 ;
42857 void *argp1 = 0 ;
42858 int res1 = 0 ;
42859 PyObject *swig_obj[1] ;
42860
42861 if (!args) SWIG_fail;
42862 swig_obj[0] = args;
42863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42864 if (!SWIG_IsOK(res1)) {
42865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42866 }
42867 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42868 {
42869 PyThreadState* __tstate = wxPyBeginAllowThreads();
42870 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42871 wxPyEndAllowThreads(__tstate);
42872 if (PyErr_Occurred()) SWIG_fail;
42873 }
42874 {
42875 resultobj = wxPyMake_wxObject(result, 0);
42876 }
42877 return resultobj;
42878 fail:
42879 return NULL;
42880 }
42881
42882
42883 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42884 PyObject *resultobj = 0;
42885 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42886 wxControl *result = 0 ;
42887 void *argp1 = 0 ;
42888 int res1 = 0 ;
42889 PyObject *swig_obj[1] ;
42890
42891 if (!args) SWIG_fail;
42892 swig_obj[0] = args;
42893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42894 if (!SWIG_IsOK(res1)) {
42895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42896 }
42897 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42898 {
42899 PyThreadState* __tstate = wxPyBeginAllowThreads();
42900 result = (wxControl *)(arg1)->GetPickerCtrl();
42901 wxPyEndAllowThreads(__tstate);
42902 if (PyErr_Occurred()) SWIG_fail;
42903 }
42904 {
42905 resultobj = wxPyMake_wxObject(result, 0);
42906 }
42907 return resultobj;
42908 fail:
42909 return NULL;
42910 }
42911
42912
42913 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42914 PyObject *obj;
42915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42916 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42917 return SWIG_Py_Void();
42918 }
42919
42920 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42921 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42922 return 1;
42923 }
42924
42925
42926 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42927 PyObject *pyobj = 0;
42928
42929 {
42930 #if wxUSE_UNICODE
42931 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42932 #else
42933 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42934 #endif
42935 }
42936 return pyobj;
42937 }
42938
42939
42940 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42941 PyObject *resultobj = 0;
42942 wxWindow *arg1 = (wxWindow *) 0 ;
42943 int arg2 = (int) -1 ;
42944 wxColour const &arg3_defvalue = *wxBLACK ;
42945 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42946 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42947 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42948 wxSize const &arg5_defvalue = wxDefaultSize ;
42949 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42950 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42951 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42952 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42953 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42954 wxString *arg8 = (wxString *) &arg8_defvalue ;
42955 wxColourPickerCtrl *result = 0 ;
42956 void *argp1 = 0 ;
42957 int res1 = 0 ;
42958 int val2 ;
42959 int ecode2 = 0 ;
42960 wxColour temp3 ;
42961 wxPoint temp4 ;
42962 wxSize temp5 ;
42963 long val6 ;
42964 int ecode6 = 0 ;
42965 void *argp7 = 0 ;
42966 int res7 = 0 ;
42967 bool temp8 = false ;
42968 PyObject * obj0 = 0 ;
42969 PyObject * obj1 = 0 ;
42970 PyObject * obj2 = 0 ;
42971 PyObject * obj3 = 0 ;
42972 PyObject * obj4 = 0 ;
42973 PyObject * obj5 = 0 ;
42974 PyObject * obj6 = 0 ;
42975 PyObject * obj7 = 0 ;
42976 char * kwnames[] = {
42977 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42978 };
42979
42980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42982 if (!SWIG_IsOK(res1)) {
42983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42984 }
42985 arg1 = reinterpret_cast< wxWindow * >(argp1);
42986 if (obj1) {
42987 ecode2 = SWIG_AsVal_int(obj1, &val2);
42988 if (!SWIG_IsOK(ecode2)) {
42989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42990 }
42991 arg2 = static_cast< int >(val2);
42992 }
42993 if (obj2) {
42994 {
42995 arg3 = &temp3;
42996 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42997 }
42998 }
42999 if (obj3) {
43000 {
43001 arg4 = &temp4;
43002 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43003 }
43004 }
43005 if (obj4) {
43006 {
43007 arg5 = &temp5;
43008 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43009 }
43010 }
43011 if (obj5) {
43012 ecode6 = SWIG_AsVal_long(obj5, &val6);
43013 if (!SWIG_IsOK(ecode6)) {
43014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43015 }
43016 arg6 = static_cast< long >(val6);
43017 }
43018 if (obj6) {
43019 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43020 if (!SWIG_IsOK(res7)) {
43021 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43022 }
43023 if (!argp7) {
43024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43025 }
43026 arg7 = reinterpret_cast< wxValidator * >(argp7);
43027 }
43028 if (obj7) {
43029 {
43030 arg8 = wxString_in_helper(obj7);
43031 if (arg8 == NULL) SWIG_fail;
43032 temp8 = true;
43033 }
43034 }
43035 {
43036 if (!wxPyCheckForApp()) SWIG_fail;
43037 PyThreadState* __tstate = wxPyBeginAllowThreads();
43038 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43039 wxPyEndAllowThreads(__tstate);
43040 if (PyErr_Occurred()) SWIG_fail;
43041 }
43042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43043 {
43044 if (temp8)
43045 delete arg8;
43046 }
43047 return resultobj;
43048 fail:
43049 {
43050 if (temp8)
43051 delete arg8;
43052 }
43053 return NULL;
43054 }
43055
43056
43057 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43058 PyObject *resultobj = 0;
43059 wxColourPickerCtrl *result = 0 ;
43060
43061 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43062 {
43063 if (!wxPyCheckForApp()) SWIG_fail;
43064 PyThreadState* __tstate = wxPyBeginAllowThreads();
43065 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43066 wxPyEndAllowThreads(__tstate);
43067 if (PyErr_Occurred()) SWIG_fail;
43068 }
43069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43070 return resultobj;
43071 fail:
43072 return NULL;
43073 }
43074
43075
43076 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43077 PyObject *resultobj = 0;
43078 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43079 wxWindow *arg2 = (wxWindow *) 0 ;
43080 int arg3 ;
43081 wxColour const &arg4_defvalue = *wxBLACK ;
43082 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43083 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43084 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43085 wxSize const &arg6_defvalue = wxDefaultSize ;
43086 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43087 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43088 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43089 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43090 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43091 wxString *arg9 = (wxString *) &arg9_defvalue ;
43092 bool result;
43093 void *argp1 = 0 ;
43094 int res1 = 0 ;
43095 void *argp2 = 0 ;
43096 int res2 = 0 ;
43097 int val3 ;
43098 int ecode3 = 0 ;
43099 wxColour temp4 ;
43100 wxPoint temp5 ;
43101 wxSize temp6 ;
43102 long val7 ;
43103 int ecode7 = 0 ;
43104 void *argp8 = 0 ;
43105 int res8 = 0 ;
43106 bool temp9 = false ;
43107 PyObject * obj0 = 0 ;
43108 PyObject * obj1 = 0 ;
43109 PyObject * obj2 = 0 ;
43110 PyObject * obj3 = 0 ;
43111 PyObject * obj4 = 0 ;
43112 PyObject * obj5 = 0 ;
43113 PyObject * obj6 = 0 ;
43114 PyObject * obj7 = 0 ;
43115 PyObject * obj8 = 0 ;
43116 char * kwnames[] = {
43117 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43118 };
43119
43120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43122 if (!SWIG_IsOK(res1)) {
43123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43124 }
43125 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43127 if (!SWIG_IsOK(res2)) {
43128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43129 }
43130 arg2 = reinterpret_cast< wxWindow * >(argp2);
43131 ecode3 = SWIG_AsVal_int(obj2, &val3);
43132 if (!SWIG_IsOK(ecode3)) {
43133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43134 }
43135 arg3 = static_cast< int >(val3);
43136 if (obj3) {
43137 {
43138 arg4 = &temp4;
43139 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43140 }
43141 }
43142 if (obj4) {
43143 {
43144 arg5 = &temp5;
43145 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43146 }
43147 }
43148 if (obj5) {
43149 {
43150 arg6 = &temp6;
43151 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43152 }
43153 }
43154 if (obj6) {
43155 ecode7 = SWIG_AsVal_long(obj6, &val7);
43156 if (!SWIG_IsOK(ecode7)) {
43157 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43158 }
43159 arg7 = static_cast< long >(val7);
43160 }
43161 if (obj7) {
43162 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43163 if (!SWIG_IsOK(res8)) {
43164 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43165 }
43166 if (!argp8) {
43167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43168 }
43169 arg8 = reinterpret_cast< wxValidator * >(argp8);
43170 }
43171 if (obj8) {
43172 {
43173 arg9 = wxString_in_helper(obj8);
43174 if (arg9 == NULL) SWIG_fail;
43175 temp9 = true;
43176 }
43177 }
43178 {
43179 PyThreadState* __tstate = wxPyBeginAllowThreads();
43180 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43181 wxPyEndAllowThreads(__tstate);
43182 if (PyErr_Occurred()) SWIG_fail;
43183 }
43184 {
43185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43186 }
43187 {
43188 if (temp9)
43189 delete arg9;
43190 }
43191 return resultobj;
43192 fail:
43193 {
43194 if (temp9)
43195 delete arg9;
43196 }
43197 return NULL;
43198 }
43199
43200
43201 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43202 PyObject *resultobj = 0;
43203 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43204 wxColour result;
43205 void *argp1 = 0 ;
43206 int res1 = 0 ;
43207 PyObject *swig_obj[1] ;
43208
43209 if (!args) SWIG_fail;
43210 swig_obj[0] = args;
43211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43212 if (!SWIG_IsOK(res1)) {
43213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43214 }
43215 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43216 {
43217 PyThreadState* __tstate = wxPyBeginAllowThreads();
43218 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43219 wxPyEndAllowThreads(__tstate);
43220 if (PyErr_Occurred()) SWIG_fail;
43221 }
43222 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43223 return resultobj;
43224 fail:
43225 return NULL;
43226 }
43227
43228
43229 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43230 PyObject *resultobj = 0;
43231 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43232 wxColour *arg2 = 0 ;
43233 void *argp1 = 0 ;
43234 int res1 = 0 ;
43235 wxColour temp2 ;
43236 PyObject * obj0 = 0 ;
43237 PyObject * obj1 = 0 ;
43238 char * kwnames[] = {
43239 (char *) "self",(char *) "col", NULL
43240 };
43241
43242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43244 if (!SWIG_IsOK(res1)) {
43245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43246 }
43247 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43248 {
43249 arg2 = &temp2;
43250 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43251 }
43252 {
43253 PyThreadState* __tstate = wxPyBeginAllowThreads();
43254 (arg1)->SetColour((wxColour const &)*arg2);
43255 wxPyEndAllowThreads(__tstate);
43256 if (PyErr_Occurred()) SWIG_fail;
43257 }
43258 resultobj = SWIG_Py_Void();
43259 return resultobj;
43260 fail:
43261 return NULL;
43262 }
43263
43264
43265 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43266 PyObject *obj;
43267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43268 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43269 return SWIG_Py_Void();
43270 }
43271
43272 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43273 return SWIG_Python_InitShadowInstance(args);
43274 }
43275
43276 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43277 PyObject *resultobj = 0;
43278 wxObject *arg1 = (wxObject *) 0 ;
43279 int arg2 ;
43280 wxColour *arg3 = 0 ;
43281 wxColourPickerEvent *result = 0 ;
43282 void *argp1 = 0 ;
43283 int res1 = 0 ;
43284 int val2 ;
43285 int ecode2 = 0 ;
43286 wxColour temp3 ;
43287 PyObject * obj0 = 0 ;
43288 PyObject * obj1 = 0 ;
43289 PyObject * obj2 = 0 ;
43290 char * kwnames[] = {
43291 (char *) "generator",(char *) "id",(char *) "col", NULL
43292 };
43293
43294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43296 if (!SWIG_IsOK(res1)) {
43297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43298 }
43299 arg1 = reinterpret_cast< wxObject * >(argp1);
43300 ecode2 = SWIG_AsVal_int(obj1, &val2);
43301 if (!SWIG_IsOK(ecode2)) {
43302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43303 }
43304 arg2 = static_cast< int >(val2);
43305 {
43306 arg3 = &temp3;
43307 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43308 }
43309 {
43310 PyThreadState* __tstate = wxPyBeginAllowThreads();
43311 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43312 wxPyEndAllowThreads(__tstate);
43313 if (PyErr_Occurred()) SWIG_fail;
43314 }
43315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43316 return resultobj;
43317 fail:
43318 return NULL;
43319 }
43320
43321
43322 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43323 PyObject *resultobj = 0;
43324 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43325 wxColour result;
43326 void *argp1 = 0 ;
43327 int res1 = 0 ;
43328 PyObject *swig_obj[1] ;
43329
43330 if (!args) SWIG_fail;
43331 swig_obj[0] = args;
43332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43333 if (!SWIG_IsOK(res1)) {
43334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43335 }
43336 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43337 {
43338 PyThreadState* __tstate = wxPyBeginAllowThreads();
43339 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43340 wxPyEndAllowThreads(__tstate);
43341 if (PyErr_Occurred()) SWIG_fail;
43342 }
43343 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43344 return resultobj;
43345 fail:
43346 return NULL;
43347 }
43348
43349
43350 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43351 PyObject *resultobj = 0;
43352 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43353 wxColour *arg2 = 0 ;
43354 void *argp1 = 0 ;
43355 int res1 = 0 ;
43356 wxColour temp2 ;
43357 PyObject * obj0 = 0 ;
43358 PyObject * obj1 = 0 ;
43359 char * kwnames[] = {
43360 (char *) "self",(char *) "c", NULL
43361 };
43362
43363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43365 if (!SWIG_IsOK(res1)) {
43366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43367 }
43368 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43369 {
43370 arg2 = &temp2;
43371 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43372 }
43373 {
43374 PyThreadState* __tstate = wxPyBeginAllowThreads();
43375 (arg1)->SetColour((wxColour const &)*arg2);
43376 wxPyEndAllowThreads(__tstate);
43377 if (PyErr_Occurred()) SWIG_fail;
43378 }
43379 resultobj = SWIG_Py_Void();
43380 return resultobj;
43381 fail:
43382 return NULL;
43383 }
43384
43385
43386 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43387 PyObject *obj;
43388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43389 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43390 return SWIG_Py_Void();
43391 }
43392
43393 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43394 return SWIG_Python_InitShadowInstance(args);
43395 }
43396
43397 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43398 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43399 return 1;
43400 }
43401
43402
43403 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43404 PyObject *pyobj = 0;
43405
43406 {
43407 #if wxUSE_UNICODE
43408 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43409 #else
43410 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43411 #endif
43412 }
43413 return pyobj;
43414 }
43415
43416
43417 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43418 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43419 return 1;
43420 }
43421
43422
43423 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43424 PyObject *pyobj = 0;
43425
43426 {
43427 #if wxUSE_UNICODE
43428 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43429 #else
43430 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43431 #endif
43432 }
43433 return pyobj;
43434 }
43435
43436
43437 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43438 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43439 return 1;
43440 }
43441
43442
43443 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43444 PyObject *pyobj = 0;
43445
43446 {
43447 #if wxUSE_UNICODE
43448 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43449 #else
43450 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43451 #endif
43452 }
43453 return pyobj;
43454 }
43455
43456
43457 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43458 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43459 return 1;
43460 }
43461
43462
43463 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43464 PyObject *pyobj = 0;
43465
43466 {
43467 #if wxUSE_UNICODE
43468 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43469 #else
43470 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43471 #endif
43472 }
43473 return pyobj;
43474 }
43475
43476
43477 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43478 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43479 return 1;
43480 }
43481
43482
43483 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43484 PyObject *pyobj = 0;
43485
43486 {
43487 #if wxUSE_UNICODE
43488 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43489 #else
43490 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43491 #endif
43492 }
43493 return pyobj;
43494 }
43495
43496
43497 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43498 PyObject *resultobj = 0;
43499 wxWindow *arg1 = (wxWindow *) 0 ;
43500 int arg2 = (int) -1 ;
43501 wxString const &arg3_defvalue = wxPyEmptyString ;
43502 wxString *arg3 = (wxString *) &arg3_defvalue ;
43503 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43504 wxString *arg4 = (wxString *) &arg4_defvalue ;
43505 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43506 wxString *arg5 = (wxString *) &arg5_defvalue ;
43507 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43508 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43509 wxSize const &arg7_defvalue = wxDefaultSize ;
43510 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43511 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43512 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43513 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43514 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43515 wxString *arg10 = (wxString *) &arg10_defvalue ;
43516 wxFilePickerCtrl *result = 0 ;
43517 void *argp1 = 0 ;
43518 int res1 = 0 ;
43519 int val2 ;
43520 int ecode2 = 0 ;
43521 bool temp3 = false ;
43522 bool temp4 = false ;
43523 bool temp5 = false ;
43524 wxPoint temp6 ;
43525 wxSize temp7 ;
43526 long val8 ;
43527 int ecode8 = 0 ;
43528 void *argp9 = 0 ;
43529 int res9 = 0 ;
43530 bool temp10 = false ;
43531 PyObject * obj0 = 0 ;
43532 PyObject * obj1 = 0 ;
43533 PyObject * obj2 = 0 ;
43534 PyObject * obj3 = 0 ;
43535 PyObject * obj4 = 0 ;
43536 PyObject * obj5 = 0 ;
43537 PyObject * obj6 = 0 ;
43538 PyObject * obj7 = 0 ;
43539 PyObject * obj8 = 0 ;
43540 PyObject * obj9 = 0 ;
43541 char * kwnames[] = {
43542 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43543 };
43544
43545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43547 if (!SWIG_IsOK(res1)) {
43548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43549 }
43550 arg1 = reinterpret_cast< wxWindow * >(argp1);
43551 if (obj1) {
43552 ecode2 = SWIG_AsVal_int(obj1, &val2);
43553 if (!SWIG_IsOK(ecode2)) {
43554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43555 }
43556 arg2 = static_cast< int >(val2);
43557 }
43558 if (obj2) {
43559 {
43560 arg3 = wxString_in_helper(obj2);
43561 if (arg3 == NULL) SWIG_fail;
43562 temp3 = true;
43563 }
43564 }
43565 if (obj3) {
43566 {
43567 arg4 = wxString_in_helper(obj3);
43568 if (arg4 == NULL) SWIG_fail;
43569 temp4 = true;
43570 }
43571 }
43572 if (obj4) {
43573 {
43574 arg5 = wxString_in_helper(obj4);
43575 if (arg5 == NULL) SWIG_fail;
43576 temp5 = true;
43577 }
43578 }
43579 if (obj5) {
43580 {
43581 arg6 = &temp6;
43582 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43583 }
43584 }
43585 if (obj6) {
43586 {
43587 arg7 = &temp7;
43588 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43589 }
43590 }
43591 if (obj7) {
43592 ecode8 = SWIG_AsVal_long(obj7, &val8);
43593 if (!SWIG_IsOK(ecode8)) {
43594 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43595 }
43596 arg8 = static_cast< long >(val8);
43597 }
43598 if (obj8) {
43599 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43600 if (!SWIG_IsOK(res9)) {
43601 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43602 }
43603 if (!argp9) {
43604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43605 }
43606 arg9 = reinterpret_cast< wxValidator * >(argp9);
43607 }
43608 if (obj9) {
43609 {
43610 arg10 = wxString_in_helper(obj9);
43611 if (arg10 == NULL) SWIG_fail;
43612 temp10 = true;
43613 }
43614 }
43615 {
43616 if (!wxPyCheckForApp()) SWIG_fail;
43617 PyThreadState* __tstate = wxPyBeginAllowThreads();
43618 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);
43619 wxPyEndAllowThreads(__tstate);
43620 if (PyErr_Occurred()) SWIG_fail;
43621 }
43622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43623 {
43624 if (temp3)
43625 delete arg3;
43626 }
43627 {
43628 if (temp4)
43629 delete arg4;
43630 }
43631 {
43632 if (temp5)
43633 delete arg5;
43634 }
43635 {
43636 if (temp10)
43637 delete arg10;
43638 }
43639 return resultobj;
43640 fail:
43641 {
43642 if (temp3)
43643 delete arg3;
43644 }
43645 {
43646 if (temp4)
43647 delete arg4;
43648 }
43649 {
43650 if (temp5)
43651 delete arg5;
43652 }
43653 {
43654 if (temp10)
43655 delete arg10;
43656 }
43657 return NULL;
43658 }
43659
43660
43661 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43662 PyObject *resultobj = 0;
43663 wxFilePickerCtrl *result = 0 ;
43664
43665 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43666 {
43667 if (!wxPyCheckForApp()) SWIG_fail;
43668 PyThreadState* __tstate = wxPyBeginAllowThreads();
43669 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43670 wxPyEndAllowThreads(__tstate);
43671 if (PyErr_Occurred()) SWIG_fail;
43672 }
43673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43674 return resultobj;
43675 fail:
43676 return NULL;
43677 }
43678
43679
43680 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43681 PyObject *resultobj = 0;
43682 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43683 wxWindow *arg2 = (wxWindow *) 0 ;
43684 int arg3 = (int) -1 ;
43685 wxString const &arg4_defvalue = wxPyEmptyString ;
43686 wxString *arg4 = (wxString *) &arg4_defvalue ;
43687 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43688 wxString *arg5 = (wxString *) &arg5_defvalue ;
43689 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43690 wxString *arg6 = (wxString *) &arg6_defvalue ;
43691 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43692 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43693 wxSize const &arg8_defvalue = wxDefaultSize ;
43694 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43695 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43696 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43697 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43698 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43699 wxString *arg11 = (wxString *) &arg11_defvalue ;
43700 bool result;
43701 void *argp1 = 0 ;
43702 int res1 = 0 ;
43703 void *argp2 = 0 ;
43704 int res2 = 0 ;
43705 int val3 ;
43706 int ecode3 = 0 ;
43707 bool temp4 = false ;
43708 bool temp5 = false ;
43709 bool temp6 = false ;
43710 wxPoint temp7 ;
43711 wxSize temp8 ;
43712 long val9 ;
43713 int ecode9 = 0 ;
43714 void *argp10 = 0 ;
43715 int res10 = 0 ;
43716 bool temp11 = false ;
43717 PyObject * obj0 = 0 ;
43718 PyObject * obj1 = 0 ;
43719 PyObject * obj2 = 0 ;
43720 PyObject * obj3 = 0 ;
43721 PyObject * obj4 = 0 ;
43722 PyObject * obj5 = 0 ;
43723 PyObject * obj6 = 0 ;
43724 PyObject * obj7 = 0 ;
43725 PyObject * obj8 = 0 ;
43726 PyObject * obj9 = 0 ;
43727 PyObject * obj10 = 0 ;
43728 char * kwnames[] = {
43729 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43730 };
43731
43732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43734 if (!SWIG_IsOK(res1)) {
43735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43736 }
43737 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43738 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43739 if (!SWIG_IsOK(res2)) {
43740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43741 }
43742 arg2 = reinterpret_cast< wxWindow * >(argp2);
43743 if (obj2) {
43744 ecode3 = SWIG_AsVal_int(obj2, &val3);
43745 if (!SWIG_IsOK(ecode3)) {
43746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43747 }
43748 arg3 = static_cast< int >(val3);
43749 }
43750 if (obj3) {
43751 {
43752 arg4 = wxString_in_helper(obj3);
43753 if (arg4 == NULL) SWIG_fail;
43754 temp4 = true;
43755 }
43756 }
43757 if (obj4) {
43758 {
43759 arg5 = wxString_in_helper(obj4);
43760 if (arg5 == NULL) SWIG_fail;
43761 temp5 = true;
43762 }
43763 }
43764 if (obj5) {
43765 {
43766 arg6 = wxString_in_helper(obj5);
43767 if (arg6 == NULL) SWIG_fail;
43768 temp6 = true;
43769 }
43770 }
43771 if (obj6) {
43772 {
43773 arg7 = &temp7;
43774 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43775 }
43776 }
43777 if (obj7) {
43778 {
43779 arg8 = &temp8;
43780 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43781 }
43782 }
43783 if (obj8) {
43784 ecode9 = SWIG_AsVal_long(obj8, &val9);
43785 if (!SWIG_IsOK(ecode9)) {
43786 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43787 }
43788 arg9 = static_cast< long >(val9);
43789 }
43790 if (obj9) {
43791 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43792 if (!SWIG_IsOK(res10)) {
43793 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43794 }
43795 if (!argp10) {
43796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43797 }
43798 arg10 = reinterpret_cast< wxValidator * >(argp10);
43799 }
43800 if (obj10) {
43801 {
43802 arg11 = wxString_in_helper(obj10);
43803 if (arg11 == NULL) SWIG_fail;
43804 temp11 = true;
43805 }
43806 }
43807 {
43808 PyThreadState* __tstate = wxPyBeginAllowThreads();
43809 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);
43810 wxPyEndAllowThreads(__tstate);
43811 if (PyErr_Occurred()) SWIG_fail;
43812 }
43813 {
43814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43815 }
43816 {
43817 if (temp4)
43818 delete arg4;
43819 }
43820 {
43821 if (temp5)
43822 delete arg5;
43823 }
43824 {
43825 if (temp6)
43826 delete arg6;
43827 }
43828 {
43829 if (temp11)
43830 delete arg11;
43831 }
43832 return resultobj;
43833 fail:
43834 {
43835 if (temp4)
43836 delete arg4;
43837 }
43838 {
43839 if (temp5)
43840 delete arg5;
43841 }
43842 {
43843 if (temp6)
43844 delete arg6;
43845 }
43846 {
43847 if (temp11)
43848 delete arg11;
43849 }
43850 return NULL;
43851 }
43852
43853
43854 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43855 PyObject *resultobj = 0;
43856 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43857 wxString result;
43858 void *argp1 = 0 ;
43859 int res1 = 0 ;
43860 PyObject *swig_obj[1] ;
43861
43862 if (!args) SWIG_fail;
43863 swig_obj[0] = args;
43864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43865 if (!SWIG_IsOK(res1)) {
43866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43867 }
43868 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43869 {
43870 PyThreadState* __tstate = wxPyBeginAllowThreads();
43871 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43872 wxPyEndAllowThreads(__tstate);
43873 if (PyErr_Occurred()) SWIG_fail;
43874 }
43875 {
43876 #if wxUSE_UNICODE
43877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43878 #else
43879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43880 #endif
43881 }
43882 return resultobj;
43883 fail:
43884 return NULL;
43885 }
43886
43887
43888 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43889 PyObject *resultobj = 0;
43890 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43891 wxString *arg2 = 0 ;
43892 void *argp1 = 0 ;
43893 int res1 = 0 ;
43894 bool temp2 = false ;
43895 PyObject * obj0 = 0 ;
43896 PyObject * obj1 = 0 ;
43897 char * kwnames[] = {
43898 (char *) "self",(char *) "str", NULL
43899 };
43900
43901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43903 if (!SWIG_IsOK(res1)) {
43904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43905 }
43906 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43907 {
43908 arg2 = wxString_in_helper(obj1);
43909 if (arg2 == NULL) SWIG_fail;
43910 temp2 = true;
43911 }
43912 {
43913 PyThreadState* __tstate = wxPyBeginAllowThreads();
43914 (arg1)->SetPath((wxString const &)*arg2);
43915 wxPyEndAllowThreads(__tstate);
43916 if (PyErr_Occurred()) SWIG_fail;
43917 }
43918 resultobj = SWIG_Py_Void();
43919 {
43920 if (temp2)
43921 delete arg2;
43922 }
43923 return resultobj;
43924 fail:
43925 {
43926 if (temp2)
43927 delete arg2;
43928 }
43929 return NULL;
43930 }
43931
43932
43933 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43934 PyObject *resultobj = 0;
43935 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43936 wxString *arg2 = 0 ;
43937 bool result;
43938 void *argp1 = 0 ;
43939 int res1 = 0 ;
43940 bool temp2 = false ;
43941 PyObject * obj0 = 0 ;
43942 PyObject * obj1 = 0 ;
43943 char * kwnames[] = {
43944 (char *) "self",(char *) "path", NULL
43945 };
43946
43947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43949 if (!SWIG_IsOK(res1)) {
43950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43951 }
43952 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43953 {
43954 arg2 = wxString_in_helper(obj1);
43955 if (arg2 == NULL) SWIG_fail;
43956 temp2 = true;
43957 }
43958 {
43959 PyThreadState* __tstate = wxPyBeginAllowThreads();
43960 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43961 wxPyEndAllowThreads(__tstate);
43962 if (PyErr_Occurred()) SWIG_fail;
43963 }
43964 {
43965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43966 }
43967 {
43968 if (temp2)
43969 delete arg2;
43970 }
43971 return resultobj;
43972 fail:
43973 {
43974 if (temp2)
43975 delete arg2;
43976 }
43977 return NULL;
43978 }
43979
43980
43981 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43982 PyObject *resultobj = 0;
43983 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43984 wxString result;
43985 void *argp1 = 0 ;
43986 int res1 = 0 ;
43987 PyObject *swig_obj[1] ;
43988
43989 if (!args) SWIG_fail;
43990 swig_obj[0] = args;
43991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43992 if (!SWIG_IsOK(res1)) {
43993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43994 }
43995 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43996 {
43997 PyThreadState* __tstate = wxPyBeginAllowThreads();
43998 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43999 wxPyEndAllowThreads(__tstate);
44000 if (PyErr_Occurred()) SWIG_fail;
44001 }
44002 {
44003 #if wxUSE_UNICODE
44004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44005 #else
44006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44007 #endif
44008 }
44009 return resultobj;
44010 fail:
44011 return NULL;
44012 }
44013
44014
44015 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44016 PyObject *obj;
44017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44018 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44019 return SWIG_Py_Void();
44020 }
44021
44022 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44023 return SWIG_Python_InitShadowInstance(args);
44024 }
44025
44026 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44027 PyObject *resultobj = 0;
44028 wxWindow *arg1 = (wxWindow *) 0 ;
44029 int arg2 = (int) -1 ;
44030 wxString const &arg3_defvalue = wxPyEmptyString ;
44031 wxString *arg3 = (wxString *) &arg3_defvalue ;
44032 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44033 wxString *arg4 = (wxString *) &arg4_defvalue ;
44034 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44035 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44036 wxSize const &arg6_defvalue = wxDefaultSize ;
44037 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44038 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44039 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44040 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44041 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44042 wxString *arg9 = (wxString *) &arg9_defvalue ;
44043 wxDirPickerCtrl *result = 0 ;
44044 void *argp1 = 0 ;
44045 int res1 = 0 ;
44046 int val2 ;
44047 int ecode2 = 0 ;
44048 bool temp3 = false ;
44049 bool temp4 = false ;
44050 wxPoint temp5 ;
44051 wxSize temp6 ;
44052 long val7 ;
44053 int ecode7 = 0 ;
44054 void *argp8 = 0 ;
44055 int res8 = 0 ;
44056 bool temp9 = false ;
44057 PyObject * obj0 = 0 ;
44058 PyObject * obj1 = 0 ;
44059 PyObject * obj2 = 0 ;
44060 PyObject * obj3 = 0 ;
44061 PyObject * obj4 = 0 ;
44062 PyObject * obj5 = 0 ;
44063 PyObject * obj6 = 0 ;
44064 PyObject * obj7 = 0 ;
44065 PyObject * obj8 = 0 ;
44066 char * kwnames[] = {
44067 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44068 };
44069
44070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44072 if (!SWIG_IsOK(res1)) {
44073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44074 }
44075 arg1 = reinterpret_cast< wxWindow * >(argp1);
44076 if (obj1) {
44077 ecode2 = SWIG_AsVal_int(obj1, &val2);
44078 if (!SWIG_IsOK(ecode2)) {
44079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44080 }
44081 arg2 = static_cast< int >(val2);
44082 }
44083 if (obj2) {
44084 {
44085 arg3 = wxString_in_helper(obj2);
44086 if (arg3 == NULL) SWIG_fail;
44087 temp3 = true;
44088 }
44089 }
44090 if (obj3) {
44091 {
44092 arg4 = wxString_in_helper(obj3);
44093 if (arg4 == NULL) SWIG_fail;
44094 temp4 = true;
44095 }
44096 }
44097 if (obj4) {
44098 {
44099 arg5 = &temp5;
44100 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44101 }
44102 }
44103 if (obj5) {
44104 {
44105 arg6 = &temp6;
44106 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44107 }
44108 }
44109 if (obj6) {
44110 ecode7 = SWIG_AsVal_long(obj6, &val7);
44111 if (!SWIG_IsOK(ecode7)) {
44112 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44113 }
44114 arg7 = static_cast< long >(val7);
44115 }
44116 if (obj7) {
44117 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44118 if (!SWIG_IsOK(res8)) {
44119 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44120 }
44121 if (!argp8) {
44122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44123 }
44124 arg8 = reinterpret_cast< wxValidator * >(argp8);
44125 }
44126 if (obj8) {
44127 {
44128 arg9 = wxString_in_helper(obj8);
44129 if (arg9 == NULL) SWIG_fail;
44130 temp9 = true;
44131 }
44132 }
44133 {
44134 if (!wxPyCheckForApp()) SWIG_fail;
44135 PyThreadState* __tstate = wxPyBeginAllowThreads();
44136 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);
44137 wxPyEndAllowThreads(__tstate);
44138 if (PyErr_Occurred()) SWIG_fail;
44139 }
44140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44141 {
44142 if (temp3)
44143 delete arg3;
44144 }
44145 {
44146 if (temp4)
44147 delete arg4;
44148 }
44149 {
44150 if (temp9)
44151 delete arg9;
44152 }
44153 return resultobj;
44154 fail:
44155 {
44156 if (temp3)
44157 delete arg3;
44158 }
44159 {
44160 if (temp4)
44161 delete arg4;
44162 }
44163 {
44164 if (temp9)
44165 delete arg9;
44166 }
44167 return NULL;
44168 }
44169
44170
44171 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44172 PyObject *resultobj = 0;
44173 wxDirPickerCtrl *result = 0 ;
44174
44175 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44176 {
44177 if (!wxPyCheckForApp()) SWIG_fail;
44178 PyThreadState* __tstate = wxPyBeginAllowThreads();
44179 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44180 wxPyEndAllowThreads(__tstate);
44181 if (PyErr_Occurred()) SWIG_fail;
44182 }
44183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44184 return resultobj;
44185 fail:
44186 return NULL;
44187 }
44188
44189
44190 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44191 PyObject *resultobj = 0;
44192 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44193 wxWindow *arg2 = (wxWindow *) 0 ;
44194 int arg3 = (int) -1 ;
44195 wxString const &arg4_defvalue = wxPyEmptyString ;
44196 wxString *arg4 = (wxString *) &arg4_defvalue ;
44197 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44198 wxString *arg5 = (wxString *) &arg5_defvalue ;
44199 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44200 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44201 wxSize const &arg7_defvalue = wxDefaultSize ;
44202 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44203 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44204 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44205 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44206 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44207 wxString *arg10 = (wxString *) &arg10_defvalue ;
44208 bool result;
44209 void *argp1 = 0 ;
44210 int res1 = 0 ;
44211 void *argp2 = 0 ;
44212 int res2 = 0 ;
44213 int val3 ;
44214 int ecode3 = 0 ;
44215 bool temp4 = false ;
44216 bool temp5 = false ;
44217 wxPoint temp6 ;
44218 wxSize temp7 ;
44219 long val8 ;
44220 int ecode8 = 0 ;
44221 void *argp9 = 0 ;
44222 int res9 = 0 ;
44223 bool temp10 = false ;
44224 PyObject * obj0 = 0 ;
44225 PyObject * obj1 = 0 ;
44226 PyObject * obj2 = 0 ;
44227 PyObject * obj3 = 0 ;
44228 PyObject * obj4 = 0 ;
44229 PyObject * obj5 = 0 ;
44230 PyObject * obj6 = 0 ;
44231 PyObject * obj7 = 0 ;
44232 PyObject * obj8 = 0 ;
44233 PyObject * obj9 = 0 ;
44234 char * kwnames[] = {
44235 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44236 };
44237
44238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44240 if (!SWIG_IsOK(res1)) {
44241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44242 }
44243 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44244 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44245 if (!SWIG_IsOK(res2)) {
44246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44247 }
44248 arg2 = reinterpret_cast< wxWindow * >(argp2);
44249 if (obj2) {
44250 ecode3 = SWIG_AsVal_int(obj2, &val3);
44251 if (!SWIG_IsOK(ecode3)) {
44252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44253 }
44254 arg3 = static_cast< int >(val3);
44255 }
44256 if (obj3) {
44257 {
44258 arg4 = wxString_in_helper(obj3);
44259 if (arg4 == NULL) SWIG_fail;
44260 temp4 = true;
44261 }
44262 }
44263 if (obj4) {
44264 {
44265 arg5 = wxString_in_helper(obj4);
44266 if (arg5 == NULL) SWIG_fail;
44267 temp5 = true;
44268 }
44269 }
44270 if (obj5) {
44271 {
44272 arg6 = &temp6;
44273 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44274 }
44275 }
44276 if (obj6) {
44277 {
44278 arg7 = &temp7;
44279 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44280 }
44281 }
44282 if (obj7) {
44283 ecode8 = SWIG_AsVal_long(obj7, &val8);
44284 if (!SWIG_IsOK(ecode8)) {
44285 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44286 }
44287 arg8 = static_cast< long >(val8);
44288 }
44289 if (obj8) {
44290 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44291 if (!SWIG_IsOK(res9)) {
44292 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44293 }
44294 if (!argp9) {
44295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44296 }
44297 arg9 = reinterpret_cast< wxValidator * >(argp9);
44298 }
44299 if (obj9) {
44300 {
44301 arg10 = wxString_in_helper(obj9);
44302 if (arg10 == NULL) SWIG_fail;
44303 temp10 = true;
44304 }
44305 }
44306 {
44307 PyThreadState* __tstate = wxPyBeginAllowThreads();
44308 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);
44309 wxPyEndAllowThreads(__tstate);
44310 if (PyErr_Occurred()) SWIG_fail;
44311 }
44312 {
44313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44314 }
44315 {
44316 if (temp4)
44317 delete arg4;
44318 }
44319 {
44320 if (temp5)
44321 delete arg5;
44322 }
44323 {
44324 if (temp10)
44325 delete arg10;
44326 }
44327 return resultobj;
44328 fail:
44329 {
44330 if (temp4)
44331 delete arg4;
44332 }
44333 {
44334 if (temp5)
44335 delete arg5;
44336 }
44337 {
44338 if (temp10)
44339 delete arg10;
44340 }
44341 return NULL;
44342 }
44343
44344
44345 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44346 PyObject *resultobj = 0;
44347 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44348 wxString result;
44349 void *argp1 = 0 ;
44350 int res1 = 0 ;
44351 PyObject *swig_obj[1] ;
44352
44353 if (!args) SWIG_fail;
44354 swig_obj[0] = args;
44355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44356 if (!SWIG_IsOK(res1)) {
44357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44358 }
44359 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44360 {
44361 PyThreadState* __tstate = wxPyBeginAllowThreads();
44362 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44363 wxPyEndAllowThreads(__tstate);
44364 if (PyErr_Occurred()) SWIG_fail;
44365 }
44366 {
44367 #if wxUSE_UNICODE
44368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44369 #else
44370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44371 #endif
44372 }
44373 return resultobj;
44374 fail:
44375 return NULL;
44376 }
44377
44378
44379 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44380 PyObject *resultobj = 0;
44381 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44382 wxString *arg2 = 0 ;
44383 void *argp1 = 0 ;
44384 int res1 = 0 ;
44385 bool temp2 = false ;
44386 PyObject * obj0 = 0 ;
44387 PyObject * obj1 = 0 ;
44388 char * kwnames[] = {
44389 (char *) "self",(char *) "str", NULL
44390 };
44391
44392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44394 if (!SWIG_IsOK(res1)) {
44395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44396 }
44397 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44398 {
44399 arg2 = wxString_in_helper(obj1);
44400 if (arg2 == NULL) SWIG_fail;
44401 temp2 = true;
44402 }
44403 {
44404 PyThreadState* __tstate = wxPyBeginAllowThreads();
44405 (arg1)->SetPath((wxString const &)*arg2);
44406 wxPyEndAllowThreads(__tstate);
44407 if (PyErr_Occurred()) SWIG_fail;
44408 }
44409 resultobj = SWIG_Py_Void();
44410 {
44411 if (temp2)
44412 delete arg2;
44413 }
44414 return resultobj;
44415 fail:
44416 {
44417 if (temp2)
44418 delete arg2;
44419 }
44420 return NULL;
44421 }
44422
44423
44424 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44425 PyObject *resultobj = 0;
44426 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44427 wxString *arg2 = 0 ;
44428 bool result;
44429 void *argp1 = 0 ;
44430 int res1 = 0 ;
44431 bool temp2 = false ;
44432 PyObject * obj0 = 0 ;
44433 PyObject * obj1 = 0 ;
44434 char * kwnames[] = {
44435 (char *) "self",(char *) "path", NULL
44436 };
44437
44438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44440 if (!SWIG_IsOK(res1)) {
44441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44442 }
44443 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44444 {
44445 arg2 = wxString_in_helper(obj1);
44446 if (arg2 == NULL) SWIG_fail;
44447 temp2 = true;
44448 }
44449 {
44450 PyThreadState* __tstate = wxPyBeginAllowThreads();
44451 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44452 wxPyEndAllowThreads(__tstate);
44453 if (PyErr_Occurred()) SWIG_fail;
44454 }
44455 {
44456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44457 }
44458 {
44459 if (temp2)
44460 delete arg2;
44461 }
44462 return resultobj;
44463 fail:
44464 {
44465 if (temp2)
44466 delete arg2;
44467 }
44468 return NULL;
44469 }
44470
44471
44472 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44473 PyObject *resultobj = 0;
44474 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44475 wxString result;
44476 void *argp1 = 0 ;
44477 int res1 = 0 ;
44478 PyObject *swig_obj[1] ;
44479
44480 if (!args) SWIG_fail;
44481 swig_obj[0] = args;
44482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44483 if (!SWIG_IsOK(res1)) {
44484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44485 }
44486 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44487 {
44488 PyThreadState* __tstate = wxPyBeginAllowThreads();
44489 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44490 wxPyEndAllowThreads(__tstate);
44491 if (PyErr_Occurred()) SWIG_fail;
44492 }
44493 {
44494 #if wxUSE_UNICODE
44495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44496 #else
44497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44498 #endif
44499 }
44500 return resultobj;
44501 fail:
44502 return NULL;
44503 }
44504
44505
44506 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44507 PyObject *obj;
44508 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44509 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44510 return SWIG_Py_Void();
44511 }
44512
44513 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44514 return SWIG_Python_InitShadowInstance(args);
44515 }
44516
44517 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44518 PyObject *resultobj = 0;
44519 wxEventType arg1 ;
44520 wxObject *arg2 = (wxObject *) 0 ;
44521 int arg3 ;
44522 wxString *arg4 = 0 ;
44523 wxFileDirPickerEvent *result = 0 ;
44524 int val1 ;
44525 int ecode1 = 0 ;
44526 void *argp2 = 0 ;
44527 int res2 = 0 ;
44528 int val3 ;
44529 int ecode3 = 0 ;
44530 bool temp4 = false ;
44531 PyObject * obj0 = 0 ;
44532 PyObject * obj1 = 0 ;
44533 PyObject * obj2 = 0 ;
44534 PyObject * obj3 = 0 ;
44535 char * kwnames[] = {
44536 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44537 };
44538
44539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44540 ecode1 = SWIG_AsVal_int(obj0, &val1);
44541 if (!SWIG_IsOK(ecode1)) {
44542 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44543 }
44544 arg1 = static_cast< wxEventType >(val1);
44545 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44546 if (!SWIG_IsOK(res2)) {
44547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44548 }
44549 arg2 = reinterpret_cast< wxObject * >(argp2);
44550 ecode3 = SWIG_AsVal_int(obj2, &val3);
44551 if (!SWIG_IsOK(ecode3)) {
44552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44553 }
44554 arg3 = static_cast< int >(val3);
44555 {
44556 arg4 = wxString_in_helper(obj3);
44557 if (arg4 == NULL) SWIG_fail;
44558 temp4 = true;
44559 }
44560 {
44561 PyThreadState* __tstate = wxPyBeginAllowThreads();
44562 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44563 wxPyEndAllowThreads(__tstate);
44564 if (PyErr_Occurred()) SWIG_fail;
44565 }
44566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44567 {
44568 if (temp4)
44569 delete arg4;
44570 }
44571 return resultobj;
44572 fail:
44573 {
44574 if (temp4)
44575 delete arg4;
44576 }
44577 return NULL;
44578 }
44579
44580
44581 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44582 PyObject *resultobj = 0;
44583 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44584 wxString result;
44585 void *argp1 = 0 ;
44586 int res1 = 0 ;
44587 PyObject *swig_obj[1] ;
44588
44589 if (!args) SWIG_fail;
44590 swig_obj[0] = args;
44591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44592 if (!SWIG_IsOK(res1)) {
44593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44594 }
44595 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44596 {
44597 PyThreadState* __tstate = wxPyBeginAllowThreads();
44598 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44599 wxPyEndAllowThreads(__tstate);
44600 if (PyErr_Occurred()) SWIG_fail;
44601 }
44602 {
44603 #if wxUSE_UNICODE
44604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44605 #else
44606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44607 #endif
44608 }
44609 return resultobj;
44610 fail:
44611 return NULL;
44612 }
44613
44614
44615 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44616 PyObject *resultobj = 0;
44617 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44618 wxString *arg2 = 0 ;
44619 void *argp1 = 0 ;
44620 int res1 = 0 ;
44621 bool temp2 = false ;
44622 PyObject * obj0 = 0 ;
44623 PyObject * obj1 = 0 ;
44624 char * kwnames[] = {
44625 (char *) "self",(char *) "p", NULL
44626 };
44627
44628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44630 if (!SWIG_IsOK(res1)) {
44631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44632 }
44633 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44634 {
44635 arg2 = wxString_in_helper(obj1);
44636 if (arg2 == NULL) SWIG_fail;
44637 temp2 = true;
44638 }
44639 {
44640 PyThreadState* __tstate = wxPyBeginAllowThreads();
44641 (arg1)->SetPath((wxString const &)*arg2);
44642 wxPyEndAllowThreads(__tstate);
44643 if (PyErr_Occurred()) SWIG_fail;
44644 }
44645 resultobj = SWIG_Py_Void();
44646 {
44647 if (temp2)
44648 delete arg2;
44649 }
44650 return resultobj;
44651 fail:
44652 {
44653 if (temp2)
44654 delete arg2;
44655 }
44656 return NULL;
44657 }
44658
44659
44660 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44661 PyObject *obj;
44662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44663 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44664 return SWIG_Py_Void();
44665 }
44666
44667 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44668 return SWIG_Python_InitShadowInstance(args);
44669 }
44670
44671 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44672 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44673 return 1;
44674 }
44675
44676
44677 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44678 PyObject *pyobj = 0;
44679
44680 {
44681 #if wxUSE_UNICODE
44682 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44683 #else
44684 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44685 #endif
44686 }
44687 return pyobj;
44688 }
44689
44690
44691 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44692 PyObject *resultobj = 0;
44693 wxWindow *arg1 = (wxWindow *) 0 ;
44694 int arg2 = (int) -1 ;
44695 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44696 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44697 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44698 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44699 wxSize const &arg5_defvalue = wxDefaultSize ;
44700 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44701 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44702 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44703 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44704 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44705 wxString *arg8 = (wxString *) &arg8_defvalue ;
44706 wxFontPickerCtrl *result = 0 ;
44707 void *argp1 = 0 ;
44708 int res1 = 0 ;
44709 int val2 ;
44710 int ecode2 = 0 ;
44711 void *argp3 = 0 ;
44712 int res3 = 0 ;
44713 wxPoint temp4 ;
44714 wxSize temp5 ;
44715 long val6 ;
44716 int ecode6 = 0 ;
44717 void *argp7 = 0 ;
44718 int res7 = 0 ;
44719 bool temp8 = false ;
44720 PyObject * obj0 = 0 ;
44721 PyObject * obj1 = 0 ;
44722 PyObject * obj2 = 0 ;
44723 PyObject * obj3 = 0 ;
44724 PyObject * obj4 = 0 ;
44725 PyObject * obj5 = 0 ;
44726 PyObject * obj6 = 0 ;
44727 PyObject * obj7 = 0 ;
44728 char * kwnames[] = {
44729 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44730 };
44731
44732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44734 if (!SWIG_IsOK(res1)) {
44735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44736 }
44737 arg1 = reinterpret_cast< wxWindow * >(argp1);
44738 if (obj1) {
44739 ecode2 = SWIG_AsVal_int(obj1, &val2);
44740 if (!SWIG_IsOK(ecode2)) {
44741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44742 }
44743 arg2 = static_cast< int >(val2);
44744 }
44745 if (obj2) {
44746 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44747 if (!SWIG_IsOK(res3)) {
44748 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44749 }
44750 if (!argp3) {
44751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44752 }
44753 arg3 = reinterpret_cast< wxFont * >(argp3);
44754 }
44755 if (obj3) {
44756 {
44757 arg4 = &temp4;
44758 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44759 }
44760 }
44761 if (obj4) {
44762 {
44763 arg5 = &temp5;
44764 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44765 }
44766 }
44767 if (obj5) {
44768 ecode6 = SWIG_AsVal_long(obj5, &val6);
44769 if (!SWIG_IsOK(ecode6)) {
44770 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44771 }
44772 arg6 = static_cast< long >(val6);
44773 }
44774 if (obj6) {
44775 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44776 if (!SWIG_IsOK(res7)) {
44777 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44778 }
44779 if (!argp7) {
44780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44781 }
44782 arg7 = reinterpret_cast< wxValidator * >(argp7);
44783 }
44784 if (obj7) {
44785 {
44786 arg8 = wxString_in_helper(obj7);
44787 if (arg8 == NULL) SWIG_fail;
44788 temp8 = true;
44789 }
44790 }
44791 {
44792 if (!wxPyCheckForApp()) SWIG_fail;
44793 PyThreadState* __tstate = wxPyBeginAllowThreads();
44794 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44795 wxPyEndAllowThreads(__tstate);
44796 if (PyErr_Occurred()) SWIG_fail;
44797 }
44798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44799 {
44800 if (temp8)
44801 delete arg8;
44802 }
44803 return resultobj;
44804 fail:
44805 {
44806 if (temp8)
44807 delete arg8;
44808 }
44809 return NULL;
44810 }
44811
44812
44813 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44814 PyObject *resultobj = 0;
44815 wxFontPickerCtrl *result = 0 ;
44816
44817 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44818 {
44819 if (!wxPyCheckForApp()) SWIG_fail;
44820 PyThreadState* __tstate = wxPyBeginAllowThreads();
44821 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44822 wxPyEndAllowThreads(__tstate);
44823 if (PyErr_Occurred()) SWIG_fail;
44824 }
44825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44826 return resultobj;
44827 fail:
44828 return NULL;
44829 }
44830
44831
44832 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44833 PyObject *resultobj = 0;
44834 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44835 wxWindow *arg2 = (wxWindow *) 0 ;
44836 int arg3 = (int) -1 ;
44837 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44838 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44839 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44840 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44841 wxSize const &arg6_defvalue = wxDefaultSize ;
44842 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44843 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44844 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44845 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44846 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44847 wxString *arg9 = (wxString *) &arg9_defvalue ;
44848 bool result;
44849 void *argp1 = 0 ;
44850 int res1 = 0 ;
44851 void *argp2 = 0 ;
44852 int res2 = 0 ;
44853 int val3 ;
44854 int ecode3 = 0 ;
44855 void *argp4 = 0 ;
44856 int res4 = 0 ;
44857 wxPoint temp5 ;
44858 wxSize temp6 ;
44859 long val7 ;
44860 int ecode7 = 0 ;
44861 void *argp8 = 0 ;
44862 int res8 = 0 ;
44863 bool temp9 = false ;
44864 PyObject * obj0 = 0 ;
44865 PyObject * obj1 = 0 ;
44866 PyObject * obj2 = 0 ;
44867 PyObject * obj3 = 0 ;
44868 PyObject * obj4 = 0 ;
44869 PyObject * obj5 = 0 ;
44870 PyObject * obj6 = 0 ;
44871 PyObject * obj7 = 0 ;
44872 PyObject * obj8 = 0 ;
44873 char * kwnames[] = {
44874 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44875 };
44876
44877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44879 if (!SWIG_IsOK(res1)) {
44880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44881 }
44882 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44884 if (!SWIG_IsOK(res2)) {
44885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44886 }
44887 arg2 = reinterpret_cast< wxWindow * >(argp2);
44888 if (obj2) {
44889 ecode3 = SWIG_AsVal_int(obj2, &val3);
44890 if (!SWIG_IsOK(ecode3)) {
44891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44892 }
44893 arg3 = static_cast< int >(val3);
44894 }
44895 if (obj3) {
44896 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44897 if (!SWIG_IsOK(res4)) {
44898 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44899 }
44900 if (!argp4) {
44901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44902 }
44903 arg4 = reinterpret_cast< wxFont * >(argp4);
44904 }
44905 if (obj4) {
44906 {
44907 arg5 = &temp5;
44908 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44909 }
44910 }
44911 if (obj5) {
44912 {
44913 arg6 = &temp6;
44914 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44915 }
44916 }
44917 if (obj6) {
44918 ecode7 = SWIG_AsVal_long(obj6, &val7);
44919 if (!SWIG_IsOK(ecode7)) {
44920 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44921 }
44922 arg7 = static_cast< long >(val7);
44923 }
44924 if (obj7) {
44925 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44926 if (!SWIG_IsOK(res8)) {
44927 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44928 }
44929 if (!argp8) {
44930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44931 }
44932 arg8 = reinterpret_cast< wxValidator * >(argp8);
44933 }
44934 if (obj8) {
44935 {
44936 arg9 = wxString_in_helper(obj8);
44937 if (arg9 == NULL) SWIG_fail;
44938 temp9 = true;
44939 }
44940 }
44941 {
44942 PyThreadState* __tstate = wxPyBeginAllowThreads();
44943 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44944 wxPyEndAllowThreads(__tstate);
44945 if (PyErr_Occurred()) SWIG_fail;
44946 }
44947 {
44948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44949 }
44950 {
44951 if (temp9)
44952 delete arg9;
44953 }
44954 return resultobj;
44955 fail:
44956 {
44957 if (temp9)
44958 delete arg9;
44959 }
44960 return NULL;
44961 }
44962
44963
44964 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44965 PyObject *resultobj = 0;
44966 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44967 wxFont result;
44968 void *argp1 = 0 ;
44969 int res1 = 0 ;
44970 PyObject *swig_obj[1] ;
44971
44972 if (!args) SWIG_fail;
44973 swig_obj[0] = args;
44974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44975 if (!SWIG_IsOK(res1)) {
44976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44977 }
44978 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44979 {
44980 PyThreadState* __tstate = wxPyBeginAllowThreads();
44981 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44982 wxPyEndAllowThreads(__tstate);
44983 if (PyErr_Occurred()) SWIG_fail;
44984 }
44985 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44986 return resultobj;
44987 fail:
44988 return NULL;
44989 }
44990
44991
44992 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44993 PyObject *resultobj = 0;
44994 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44995 wxFont *arg2 = 0 ;
44996 void *argp1 = 0 ;
44997 int res1 = 0 ;
44998 void *argp2 = 0 ;
44999 int res2 = 0 ;
45000 PyObject * obj0 = 0 ;
45001 PyObject * obj1 = 0 ;
45002 char * kwnames[] = {
45003 (char *) "self",(char *) "f", NULL
45004 };
45005
45006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45008 if (!SWIG_IsOK(res1)) {
45009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45010 }
45011 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45013 if (!SWIG_IsOK(res2)) {
45014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45015 }
45016 if (!argp2) {
45017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45018 }
45019 arg2 = reinterpret_cast< wxFont * >(argp2);
45020 {
45021 PyThreadState* __tstate = wxPyBeginAllowThreads();
45022 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45023 wxPyEndAllowThreads(__tstate);
45024 if (PyErr_Occurred()) SWIG_fail;
45025 }
45026 resultobj = SWIG_Py_Void();
45027 return resultobj;
45028 fail:
45029 return NULL;
45030 }
45031
45032
45033 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45034 PyObject *resultobj = 0;
45035 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45036 unsigned int arg2 ;
45037 void *argp1 = 0 ;
45038 int res1 = 0 ;
45039 unsigned int val2 ;
45040 int ecode2 = 0 ;
45041 PyObject * obj0 = 0 ;
45042 PyObject * obj1 = 0 ;
45043 char * kwnames[] = {
45044 (char *) "self",(char *) "max", NULL
45045 };
45046
45047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45049 if (!SWIG_IsOK(res1)) {
45050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45051 }
45052 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45053 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45054 if (!SWIG_IsOK(ecode2)) {
45055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45056 }
45057 arg2 = static_cast< unsigned int >(val2);
45058 {
45059 PyThreadState* __tstate = wxPyBeginAllowThreads();
45060 (arg1)->SetMaxPointSize(arg2);
45061 wxPyEndAllowThreads(__tstate);
45062 if (PyErr_Occurred()) SWIG_fail;
45063 }
45064 resultobj = SWIG_Py_Void();
45065 return resultobj;
45066 fail:
45067 return NULL;
45068 }
45069
45070
45071 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45072 PyObject *resultobj = 0;
45073 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45074 unsigned int result;
45075 void *argp1 = 0 ;
45076 int res1 = 0 ;
45077 PyObject *swig_obj[1] ;
45078
45079 if (!args) SWIG_fail;
45080 swig_obj[0] = args;
45081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45082 if (!SWIG_IsOK(res1)) {
45083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45084 }
45085 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45086 {
45087 PyThreadState* __tstate = wxPyBeginAllowThreads();
45088 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45089 wxPyEndAllowThreads(__tstate);
45090 if (PyErr_Occurred()) SWIG_fail;
45091 }
45092 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45093 return resultobj;
45094 fail:
45095 return NULL;
45096 }
45097
45098
45099 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45100 PyObject *obj;
45101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45102 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45103 return SWIG_Py_Void();
45104 }
45105
45106 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45107 return SWIG_Python_InitShadowInstance(args);
45108 }
45109
45110 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45111 PyObject *resultobj = 0;
45112 wxObject *arg1 = (wxObject *) 0 ;
45113 int arg2 ;
45114 wxFont *arg3 = 0 ;
45115 wxFontPickerEvent *result = 0 ;
45116 void *argp1 = 0 ;
45117 int res1 = 0 ;
45118 int val2 ;
45119 int ecode2 = 0 ;
45120 void *argp3 = 0 ;
45121 int res3 = 0 ;
45122 PyObject * obj0 = 0 ;
45123 PyObject * obj1 = 0 ;
45124 PyObject * obj2 = 0 ;
45125 char * kwnames[] = {
45126 (char *) "generator",(char *) "id",(char *) "f", NULL
45127 };
45128
45129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45131 if (!SWIG_IsOK(res1)) {
45132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45133 }
45134 arg1 = reinterpret_cast< wxObject * >(argp1);
45135 ecode2 = SWIG_AsVal_int(obj1, &val2);
45136 if (!SWIG_IsOK(ecode2)) {
45137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45138 }
45139 arg2 = static_cast< int >(val2);
45140 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45141 if (!SWIG_IsOK(res3)) {
45142 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45143 }
45144 if (!argp3) {
45145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45146 }
45147 arg3 = reinterpret_cast< wxFont * >(argp3);
45148 {
45149 PyThreadState* __tstate = wxPyBeginAllowThreads();
45150 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45151 wxPyEndAllowThreads(__tstate);
45152 if (PyErr_Occurred()) SWIG_fail;
45153 }
45154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45155 return resultobj;
45156 fail:
45157 return NULL;
45158 }
45159
45160
45161 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45162 PyObject *resultobj = 0;
45163 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45164 wxFont result;
45165 void *argp1 = 0 ;
45166 int res1 = 0 ;
45167 PyObject *swig_obj[1] ;
45168
45169 if (!args) SWIG_fail;
45170 swig_obj[0] = args;
45171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45172 if (!SWIG_IsOK(res1)) {
45173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45174 }
45175 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45176 {
45177 PyThreadState* __tstate = wxPyBeginAllowThreads();
45178 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45179 wxPyEndAllowThreads(__tstate);
45180 if (PyErr_Occurred()) SWIG_fail;
45181 }
45182 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45183 return resultobj;
45184 fail:
45185 return NULL;
45186 }
45187
45188
45189 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45190 PyObject *resultobj = 0;
45191 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45192 wxFont *arg2 = 0 ;
45193 void *argp1 = 0 ;
45194 int res1 = 0 ;
45195 void *argp2 = 0 ;
45196 int res2 = 0 ;
45197 PyObject * obj0 = 0 ;
45198 PyObject * obj1 = 0 ;
45199 char * kwnames[] = {
45200 (char *) "self",(char *) "c", NULL
45201 };
45202
45203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45205 if (!SWIG_IsOK(res1)) {
45206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45207 }
45208 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45210 if (!SWIG_IsOK(res2)) {
45211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45212 }
45213 if (!argp2) {
45214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45215 }
45216 arg2 = reinterpret_cast< wxFont * >(argp2);
45217 {
45218 PyThreadState* __tstate = wxPyBeginAllowThreads();
45219 (arg1)->SetFont((wxFont const &)*arg2);
45220 wxPyEndAllowThreads(__tstate);
45221 if (PyErr_Occurred()) SWIG_fail;
45222 }
45223 resultobj = SWIG_Py_Void();
45224 return resultobj;
45225 fail:
45226 return NULL;
45227 }
45228
45229
45230 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45231 PyObject *obj;
45232 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45233 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45234 return SWIG_Py_Void();
45235 }
45236
45237 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45238 return SWIG_Python_InitShadowInstance(args);
45239 }
45240
45241 static PyMethodDef SwigMethods[] = {
45242 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45243 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45244 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45245 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45246 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45247 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45248 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45249 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45250 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45251 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45252 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45253 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45254 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45255 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45256 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45257 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45258 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45260 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45262 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45263 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45264 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45265 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45266 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45267 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45268 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45269 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45270 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45271 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45272 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45273 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45274 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45275 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45276 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45277 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45278 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45279 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45280 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45281 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45282 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45283 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45284 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45285 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45286 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45287 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45288 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45290 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45291 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45292 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45293 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45294 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45295 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45296 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45297 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45298 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45299 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45301 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45302 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45303 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45304 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45305 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45306 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45307 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45309 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45310 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45311 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45312 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45313 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45314 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45315 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45316 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45317 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45318 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45319 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45320 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45321 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45322 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45323 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45324 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45325 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45326 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45327 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45328 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45329 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45330 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45332 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45334 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45335 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45337 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45339 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45340 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45341 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45343 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45345 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45346 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45348 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45349 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45351 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45353 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45354 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45355 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45356 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45358 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45360 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45364 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45365 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45367 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45370 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45371 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45373 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45374 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45376 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45378 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45380 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45381 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45383 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45389 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45390 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45392 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45395 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45396 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45397 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45398 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45400 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45401 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45408 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45411 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45412 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45413 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45414 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45415 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45416 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45417 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45419 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45420 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45421 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45422 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45423 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45424 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45425 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45426 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45427 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45428 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45430 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45431 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45433 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45435 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45440 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45441 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45442 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45443 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45444 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45445 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45446 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45447 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45451 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45452 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45453 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45457 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45462 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45468 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45469 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45470 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45471 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45472 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45473 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45474 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45475 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45476 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45477 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45479 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45480 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45481 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45483 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
45485 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
45486 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45489 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45490 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45491 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45493 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45494 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45495 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45496 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45497 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45499 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45500 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45501 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45502 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45503 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45504 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45505 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45508 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45509 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45511 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45513 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45514 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45515 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45520 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45522 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45523 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45525 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45527 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45531 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45532 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45535 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45536 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45538 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45540 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45541 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45543 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45546 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45547 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45549 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45551 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45557 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45558 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45559 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45563 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45564 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45565 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45566 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45567 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45568 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45570 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45573 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45574 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45576 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45577 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45578 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45579 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45581 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45582 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45587 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45588 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45590 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45592 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45593 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45595 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45596 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45597 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45600 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45601 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45603 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45606 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45608 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45609 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45610 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45612 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45613 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45614 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45616 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45618 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45623 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45625 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45627 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45629 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45630 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45633 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45636 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45640 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45641 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45642 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45643 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45644 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45646 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45647 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45649 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45651 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45654 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45656 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45657 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45659 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45660 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45662 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45664 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45665 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45666 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45668 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45669 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45671 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45673 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45674 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45675 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45676 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45677 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45678 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45680 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45688 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45689 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45690 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45692 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45693 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45695 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45697 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45698 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45699 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45700 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45702 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45703 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45704 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45705 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45706 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45707 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45708 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45709 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45710 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45711 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45712 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45713 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45714 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45715 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45716 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45717 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45718 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45719 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45720 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45722 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45729 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45731 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45733 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45741 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45746 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45747 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45748 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45756 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45758 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45763 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45764 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45765 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45766 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45767 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45769 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45770 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45771 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45773 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45774 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45777 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45778 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45779 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45781 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45784 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45785 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45787 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45791 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45792 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45793 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45794 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45795 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45796 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45798 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45799 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45800 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45801 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45802 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45803 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45804 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45818 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45819 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45820 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45821 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45822 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45823 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45824 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45825 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45826 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45827 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45828 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45829 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45830 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45831 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45832 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45833 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45834 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45835 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45836 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45837 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45838 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45839 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45840 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45841 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45842 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45843 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45844 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45845 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45846 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45847 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45848 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45849 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45850 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45851 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45852 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45853 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45855 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45856 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45857 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45858 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45859 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45860 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45861 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45862 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45863 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45864 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45865 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45866 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45867 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45868 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45869 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45870 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45871 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45872 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45873 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45874 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45875 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45876 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45877 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45878 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45880 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45881 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45883 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45890 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45891 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45892 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45907 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45908 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45909 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45910 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45911 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45913 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45914 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45919 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45920 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45925 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45927 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45928 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45933 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45942 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45952 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45954 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45955 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45957 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45961 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45963 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45967 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45968 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45969 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45970 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45971 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45974 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45975 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45976 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45977 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45979 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45980 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45982 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45984 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45985 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
45986 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
45987 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45988 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45990 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45992 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45994 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45995 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45997 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45999 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46002 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46003 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46004 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46006 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46009 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46010 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46012 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46014 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46015 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46043 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46044 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46045 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46052 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46062 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46065 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46067 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46069 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46075 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46079 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
46084 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46085 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46086 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46088 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46092 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46094 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46095 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46098 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46099 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46101 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46103 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46104 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46105 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46107 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46108 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46109 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46110 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46112 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46115 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46116 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46118 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46126 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46127 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46128 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46129 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46130 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46131 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46132 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46133 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46134 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46136 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46138 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46140 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46142 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46144 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46145 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46147 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46149 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46150 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46151 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46153 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46154 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46155 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46157 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46164 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46165 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46166 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46167 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46168 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46169 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46174 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46177 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46178 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46180 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46181 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46182 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46183 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46185 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46186 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46187 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46189 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46192 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46194 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46195 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46196 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46197 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46199 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46201 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46203 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46205 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46206 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46207 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46210 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46211 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46212 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46213 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46214 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46216 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46217 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46220 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46222 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46223 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46225 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46227 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46228 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46229 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46230 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46232 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46234 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46236 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46237 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46239 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46241 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46242 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46244 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46245 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46246 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46249 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46250 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46251 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46253 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46254 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46255 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46257 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46258 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46259 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46260 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46262 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46264 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46265 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46267 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46268 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46269 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46271 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46272 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46273 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46274 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46276 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46277 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46278 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46279 { NULL, NULL, 0, NULL }
46280 };
46281
46282
46283 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46284
46285 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46286 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46287 }
46288 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46289 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46290 }
46291 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46292 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46293 }
46294 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46295 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46296 }
46297 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46298 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46299 }
46300 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46301 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46302 }
46303 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46304 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46305 }
46306 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46307 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46308 }
46309 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46310 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46311 }
46312 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46313 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46314 }
46315 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46316 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46317 }
46318 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46319 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46320 }
46321 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46322 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46323 }
46324 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46325 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46326 }
46327 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46328 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46329 }
46330 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46331 return (void *)((wxEvent *) ((wxPyEvent *) x));
46332 }
46333 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46334 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46335 }
46336 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46337 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46338 }
46339 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46340 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46341 }
46342 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46343 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46344 }
46345 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46346 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46347 }
46348 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46349 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46350 }
46351 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46352 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46353 }
46354 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46355 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46356 }
46357 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46358 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46359 }
46360 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46361 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46362 }
46363 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46364 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46365 }
46366 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46367 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46368 }
46369 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46370 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46371 }
46372 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46373 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46374 }
46375 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46376 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46377 }
46378 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46379 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46380 }
46381 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46382 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46383 }
46384 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46385 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46386 }
46387 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46388 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46389 }
46390 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46391 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46392 }
46393 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46394 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46395 }
46396 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46397 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46398 }
46399 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46400 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46401 }
46402 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46403 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46404 }
46405 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46406 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46407 }
46408 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46409 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46410 }
46411 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46412 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46413 }
46414 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46415 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46416 }
46417 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46418 return (void *)((wxEvent *) ((wxShowEvent *) x));
46419 }
46420 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46421 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46422 }
46423 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46424 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46425 }
46426 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46427 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46428 }
46429 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46430 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46431 }
46432 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46433 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46434 }
46435 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46436 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46437 }
46438 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46439 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46440 }
46441 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46442 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46443 }
46444 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46445 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46446 }
46447 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46448 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46449 }
46450 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46451 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46452 }
46453 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46454 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46455 }
46456 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46457 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46458 }
46459 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46460 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46461 }
46462 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46463 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46464 }
46465 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46466 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46467 }
46468 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46469 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46470 }
46471 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46472 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46473 }
46474 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46475 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46476 }
46477 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46478 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46479 }
46480 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46481 return (void *)((wxControl *) ((wxPickerBase *) x));
46482 }
46483 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46484 return (void *)((wxControl *) ((wxToggleButton *) x));
46485 }
46486 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46487 return (void *)((wxControl *) ((wxRadioButton *) x));
46488 }
46489 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46490 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46491 }
46492 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46493 return (void *)((wxControl *) ((wxToolBarBase *) x));
46494 }
46495 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46496 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46497 }
46498 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46499 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46500 }
46501 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46502 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46503 }
46504 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46505 return (void *)((wxControl *) ((wxPyControl *) x));
46506 }
46507 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46508 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46509 }
46510 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46511 return (void *)((wxControl *) ((wxScrollBar *) x));
46512 }
46513 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46514 return (void *)((wxControl *) ((wxControlWithItems *) x));
46515 }
46516 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46517 return (void *)((wxControl *) ((wxGauge *) x));
46518 }
46519 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46520 return (void *)((wxControl *) ((wxStaticLine *) x));
46521 }
46522 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46523 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46524 }
46525 static void *_p_wxListbookTo_p_wxControl(void *x) {
46526 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46527 }
46528 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46529 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46530 }
46531 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46532 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46533 }
46534 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46535 return (void *)((wxControl *) ((wxCheckBox *) x));
46536 }
46537 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46538 return (void *)((wxControl *) ((wxRadioBox *) x));
46539 }
46540 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46541 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46542 }
46543 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46544 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46545 }
46546 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46547 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46548 }
46549 static void *_p_wxListViewTo_p_wxControl(void *x) {
46550 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46551 }
46552 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46553 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46554 }
46555 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46556 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46557 }
46558 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46559 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46560 }
46561 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46562 return (void *)((wxControl *) ((wxStaticText *) x));
46563 }
46564 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46565 return (void *)((wxControl *) ((wxStaticBox *) x));
46566 }
46567 static void *_p_wxSliderTo_p_wxControl(void *x) {
46568 return (void *)((wxControl *) ((wxSlider *) x));
46569 }
46570 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46571 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46572 }
46573 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46574 return (void *)((wxControl *) ((wxSpinButton *) x));
46575 }
46576 static void *_p_wxButtonTo_p_wxControl(void *x) {
46577 return (void *)((wxControl *) ((wxButton *) x));
46578 }
46579 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46580 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46581 }
46582 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46583 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46584 }
46585 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46586 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46587 }
46588 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46589 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46590 }
46591 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46592 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46593 }
46594 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46595 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46596 }
46597 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46598 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46599 }
46600 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46601 return (void *)((wxControl *) ((wxTextCtrl *) x));
46602 }
46603 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46604 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46605 }
46606 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
46607 return (void *)((wxChoice *) ((wxComboBox *) x));
46608 }
46609 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46610 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46611 }
46612 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46613 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46614 }
46615 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46616 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46617 }
46618 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46619 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46620 }
46621 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46622 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46623 }
46624 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46625 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46626 }
46627 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46628 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46629 }
46630 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46631 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46632 }
46633 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46634 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46635 }
46636 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46637 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46638 }
46639 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46640 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46641 }
46642 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46643 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46644 }
46645 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46646 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46647 }
46648 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46649 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46650 }
46651 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46652 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46653 }
46654 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46655 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46656 }
46657 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46658 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46659 }
46660 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46661 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46662 }
46663 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46664 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46665 }
46666 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46667 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46668 }
46669 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46670 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46671 }
46672 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46673 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46674 }
46675 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46676 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46677 }
46678 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46679 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46680 }
46681 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46682 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46683 }
46684 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46685 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46686 }
46687 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46688 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46689 }
46690 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46691 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46692 }
46693 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46694 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46695 }
46696 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46697 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46698 }
46699 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46700 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46701 }
46702 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46703 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46704 }
46705 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46706 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46707 }
46708 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46709 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46710 }
46711 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46712 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46713 }
46714 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46715 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46716 }
46717 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46718 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46719 }
46720 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46721 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46722 }
46723 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46724 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46725 }
46726 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46727 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46728 }
46729 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46730 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46731 }
46732 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46733 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46734 }
46735 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46736 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46737 }
46738 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46739 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46740 }
46741 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46742 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46743 }
46744 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46745 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46746 }
46747 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46748 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46749 }
46750 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46751 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46752 }
46753 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46754 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46755 }
46756 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46757 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46758 }
46759 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46760 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46761 }
46762 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46763 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46764 }
46765 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46766 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46767 }
46768 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46769 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46770 }
46771 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46772 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46773 }
46774 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46775 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46776 }
46777 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46778 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46779 }
46780 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46781 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46782 }
46783 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46784 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46785 }
46786 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46787 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46788 }
46789 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46790 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46791 }
46792 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46793 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46794 }
46795 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46796 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46797 }
46798 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46799 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46800 }
46801 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46802 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46803 }
46804 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46805 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46806 }
46807 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46808 return (void *)((wxButton *) ((wxBitmapButton *) x));
46809 }
46810 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46811 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46812 }
46813 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46814 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46815 }
46816 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46817 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46818 }
46819 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46820 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46821 }
46822 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46823 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46824 }
46825 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46826 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46827 }
46828 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46829 return (void *)((wxObject *) ((wxSizerItem *) x));
46830 }
46831 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46832 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46833 }
46834 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46835 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46836 }
46837 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46839 }
46840 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46841 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46842 }
46843 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46844 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46845 }
46846 static void *_p_wxSizerTo_p_wxObject(void *x) {
46847 return (void *)((wxObject *) ((wxSizer *) x));
46848 }
46849 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46850 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46851 }
46852 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46853 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46854 }
46855 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46856 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46857 }
46858 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46859 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46860 }
46861 static void *_p_wxEventTo_p_wxObject(void *x) {
46862 return (void *)((wxObject *) ((wxEvent *) x));
46863 }
46864 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46865 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46866 }
46867 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46868 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46869 }
46870 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46871 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46872 }
46873 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46874 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46875 }
46876 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46877 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46878 }
46879 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46880 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46881 }
46882 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46883 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46884 }
46885 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46886 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46887 }
46888 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46889 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46890 }
46891 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46892 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46893 }
46894 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46895 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46896 }
46897 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46898 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46899 }
46900 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46901 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46902 }
46903 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46904 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46905 }
46906 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46907 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46908 }
46909 static void *_p_wxControlTo_p_wxObject(void *x) {
46910 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46911 }
46912 static void *_p_wxPyControlTo_p_wxObject(void *x) {
46913 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46914 }
46915 static void *_p_wxGaugeTo_p_wxObject(void *x) {
46916 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46917 }
46918 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46919 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46920 }
46921 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46922 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46923 }
46924 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46925 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46926 }
46927 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46928 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46929 }
46930 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46931 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46932 }
46933 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46934 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46935 }
46936 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46937 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46938 }
46939 static void *_p_wxChoiceTo_p_wxObject(void *x) {
46940 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46941 }
46942 static void *_p_wxFSFileTo_p_wxObject(void *x) {
46943 return (void *)((wxObject *) ((wxFSFile *) x));
46944 }
46945 static void *_p_wxPySizerTo_p_wxObject(void *x) {
46946 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46947 }
46948 static void *_p_wxTreebookTo_p_wxObject(void *x) {
46949 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46950 }
46951 static void *_p_wxListViewTo_p_wxObject(void *x) {
46952 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46953 }
46954 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46955 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46956 }
46957 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46958 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46959 }
46960 static void *_p_wxNotebookTo_p_wxObject(void *x) {
46961 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46962 }
46963 static void *_p_wxPyEventTo_p_wxObject(void *x) {
46964 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46965 }
46966 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46967 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46968 }
46969 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46970 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46971 }
46972 static void *_p_wxListbookTo_p_wxObject(void *x) {
46973 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46974 }
46975 static void *_p_wxShowEventTo_p_wxObject(void *x) {
46976 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46977 }
46978 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46979 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46980 }
46981 static void *_p_wxSliderTo_p_wxObject(void *x) {
46982 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46983 }
46984 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46985 return (void *)((wxObject *) ((wxMenuItem *) x));
46986 }
46987 static void *_p_wxDateEventTo_p_wxObject(void *x) {
46988 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46989 }
46990 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46991 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46992 }
46993 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46994 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46995 }
46996 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46997 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46998 }
46999 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47000 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47001 }
47002 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47003 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47004 }
47005 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47006 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47007 }
47008 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47009 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47010 }
47011 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47012 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47013 }
47014 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47015 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47016 }
47017 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47018 return (void *)((wxObject *) ((wxContextHelp *) x));
47019 }
47020 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47021 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47022 }
47023 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47024 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47025 }
47026 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47027 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47028 }
47029 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47030 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47031 }
47032 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47033 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47034 }
47035 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47036 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47037 }
47038 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47039 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47040 }
47041 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47042 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47043 }
47044 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47045 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47046 }
47047 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47048 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47049 }
47050 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47051 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47052 }
47053 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47054 return (void *)((wxObject *) ((wxImageHandler *) x));
47055 }
47056 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47057 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47058 }
47059 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47060 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47061 }
47062 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47063 return (void *)((wxObject *) ((wxEvtHandler *) x));
47064 }
47065 static void *_p_wxListEventTo_p_wxObject(void *x) {
47066 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47067 }
47068 static void *_p_wxListBoxTo_p_wxObject(void *x) {
47069 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47070 }
47071 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47072 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47073 }
47074 static void *_p_wxButtonTo_p_wxObject(void *x) {
47075 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47076 }
47077 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47078 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47079 }
47080 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47081 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47082 }
47083 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47084 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47085 }
47086 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47087 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47088 }
47089 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47090 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47091 }
47092 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47093 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47094 }
47095 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47096 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47097 }
47098 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47099 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47100 }
47101 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47102 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47103 }
47104 static void *_p_wxListItemTo_p_wxObject(void *x) {
47105 return (void *)((wxObject *) ((wxListItem *) x));
47106 }
47107 static void *_p_wxImageTo_p_wxObject(void *x) {
47108 return (void *)((wxObject *) ((wxImage *) x));
47109 }
47110 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47111 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47112 }
47113 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47114 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47115 }
47116 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47117 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47118 }
47119 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47120 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47121 }
47122 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47123 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47124 }
47125 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47126 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47127 }
47128 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47129 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47130 }
47131 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47132 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47133 }
47134 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47135 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47136 }
47137 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47138 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47139 }
47140 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47141 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47142 }
47143 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47144 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47145 }
47146 static void *_p_wxWindowTo_p_wxObject(void *x) {
47147 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47148 }
47149 static void *_p_wxMenuTo_p_wxObject(void *x) {
47150 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47151 }
47152 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47153 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47154 }
47155 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47156 return (void *)((wxObject *) ((wxFileSystem *) x));
47157 }
47158 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47159 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47160 }
47161 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47162 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47163 }
47164 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47165 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47166 }
47167 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47168 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47169 }
47170 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47171 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47172 }
47173 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47174 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47175 }
47176 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47177 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47178 }
47179 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47180 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47181 }
47182 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47183 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47184 }
47185 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47186 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47187 }
47188 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47189 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47190 }
47191 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47192 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47193 }
47194 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47195 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47196 }
47197 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47198 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47199 }
47200 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47201 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47202 }
47203 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47204 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47205 }
47206 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47207 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47208 }
47209 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47210 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47211 }
47212 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47213 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47214 }
47215 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47216 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47217 }
47218 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47219 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47220 }
47221 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47222 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47223 }
47224 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47225 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47226 }
47227 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47228 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47229 }
47230 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47231 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47232 }
47233 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47234 return (void *)((wxWindow *) ((wxMenuBar *) x));
47235 }
47236 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47237 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47238 }
47239 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47240 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47241 }
47242 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47243 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47244 }
47245 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47246 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47247 }
47248 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47249 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47250 }
47251 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47252 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47253 }
47254 static void *_p_wxControlTo_p_wxWindow(void *x) {
47255 return (void *)((wxWindow *) ((wxControl *) x));
47256 }
47257 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47258 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47259 }
47260 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47261 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47262 }
47263 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47264 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47265 }
47266 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47267 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47268 }
47269 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47270 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47271 }
47272 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47273 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47274 }
47275 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47276 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47277 }
47278 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47279 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47280 }
47281 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47282 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47283 }
47284 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47285 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47286 }
47287 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47288 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47289 }
47290 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47291 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47292 }
47293 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47294 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47295 }
47296 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47297 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47298 }
47299 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47300 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47301 }
47302 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47303 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47304 }
47305 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47306 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47307 }
47308 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47309 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47310 }
47311 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47312 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47313 }
47314 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47315 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47316 }
47317 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47318 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47319 }
47320 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47321 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47322 }
47323 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47324 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47325 }
47326 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47327 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47328 }
47329 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47330 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47331 }
47332 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47333 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47334 }
47335 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47336 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47337 }
47338 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47339 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47340 }
47341 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47342 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47343 }
47344 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47345 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47346 }
47347 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47348 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47349 }
47350 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47351 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47352 }
47353 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47354 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47355 }
47356 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47357 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47358 }
47359 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47360 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47361 }
47362 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47363 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47364 }
47365 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47366 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47367 }
47368 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47369 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47370 }
47371 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47372 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47373 }
47374 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47375 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47376 }
47377 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47378 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47379 }
47380 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47381 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47382 }
47383 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47384 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47385 }
47386 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47387 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47388 }
47389 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47390 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47391 }
47392 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47393 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47394 }
47395 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47396 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47397 }
47398 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47399 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47400 }
47401 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47402 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47403 }
47404 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47405 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47406 }
47407 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47408 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47409 }
47410 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47411 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47412 }
47413 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47414 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47415 }
47416 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47417 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47418 }
47419 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47420 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47421 }
47422 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47423 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47424 }
47425 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47426 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47427 }
47428 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47429 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47430 }
47431 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47432 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47433 }
47434 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47435 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47436 }
47437 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47438 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47439 }
47440 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47441 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47442 }
47443 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47444 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47445 }
47446 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47447 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47448 }
47449 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47450 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47451 }
47452 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47453 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47454 }
47455 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47456 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47457 }
47458 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
47459 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
47460 }
47461 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47462 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47463 }
47464 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47465 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47466 }
47467 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47468 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47469 }
47470 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47471 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47472 }
47473 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47474 return (void *)((wxValidator *) ((wxPyValidator *) x));
47475 }
47476 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47477 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47478 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};
47479 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47480 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47481 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47482 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47483 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47484 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47485 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47486 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47487 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47488 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47489 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47490 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47491 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47492 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47493 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47494 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47495 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47496 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47497 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47498 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47499 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47500 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47501 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47502 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47503 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47504 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47505 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47506 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47507 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47508 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47509 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47510 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47511 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47512 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47513 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47514 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47515 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47516 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47517 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47518 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47519 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47520 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47521 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47522 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47523 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47524 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47525 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47526 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47527 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47528 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47529 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47530 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47531 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47532 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47533 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47534 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47535 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47536 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47537 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47538 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47539 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47540 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47541 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47542 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47543 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47544 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47545 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47546 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47547 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47548 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47549 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47550 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47551 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47552 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47553 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47554 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47555 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47556 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47557 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47558 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47559 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47560 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47561 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47562 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47563 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47564 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47565 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47566 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47567 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47568 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47569 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47570 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47571 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47572 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47573 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47574 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47575 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47576 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47577 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47578 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47579 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47580 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47581 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47582 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47583 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47584 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47585 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47586 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47587 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47588 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47589 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47590 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47591 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47592 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47593 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47594 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47595 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47596 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47597 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47598 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47599 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47600 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47601 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47602 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47603 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47604 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47605 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47606 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47607 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47608 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47609 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47610 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47611 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47612 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47613 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47614 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47615 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47616 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47617 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47618 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47619 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47620 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47621 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47622 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47623 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47624 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47625 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47626 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47627 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47628 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47629 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47630 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47631 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47632 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47633 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47634 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47635 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47636 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47637 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47638 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47639 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47640 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47641 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47642 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
47643 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47644 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47645 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47646 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47647 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47648 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47649 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47650 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47651
47652 static swig_type_info *swig_type_initial[] = {
47653 &_swigt__p_bool,
47654 &_swigt__p_char,
47655 &_swigt__p_form_ops_t,
47656 &_swigt__p_int,
47657 &_swigt__p_long,
47658 &_swigt__p_unsigned_char,
47659 &_swigt__p_unsigned_int,
47660 &_swigt__p_unsigned_long,
47661 &_swigt__p_void,
47662 &_swigt__p_wxANIHandler,
47663 &_swigt__p_wxAcceleratorTable,
47664 &_swigt__p_wxActivateEvent,
47665 &_swigt__p_wxArrayInt,
47666 &_swigt__p_wxArrayString,
47667 &_swigt__p_wxBMPHandler,
47668 &_swigt__p_wxBitmap,
47669 &_swigt__p_wxBitmapButton,
47670 &_swigt__p_wxBookCtrlBase,
47671 &_swigt__p_wxBookCtrlBaseEvent,
47672 &_swigt__p_wxBoxSizer,
47673 &_swigt__p_wxButton,
47674 &_swigt__p_wxCURHandler,
47675 &_swigt__p_wxCheckBox,
47676 &_swigt__p_wxCheckListBox,
47677 &_swigt__p_wxChildFocusEvent,
47678 &_swigt__p_wxChoice,
47679 &_swigt__p_wxChoicebook,
47680 &_swigt__p_wxChoicebookEvent,
47681 &_swigt__p_wxClipboardTextEvent,
47682 &_swigt__p_wxCloseEvent,
47683 &_swigt__p_wxColour,
47684 &_swigt__p_wxColourPickerCtrl,
47685 &_swigt__p_wxColourPickerEvent,
47686 &_swigt__p_wxComboBox,
47687 &_swigt__p_wxCommandEvent,
47688 &_swigt__p_wxContextHelp,
47689 &_swigt__p_wxContextHelpButton,
47690 &_swigt__p_wxContextMenuEvent,
47691 &_swigt__p_wxControl,
47692 &_swigt__p_wxControlWithItems,
47693 &_swigt__p_wxCursor,
47694 &_swigt__p_wxDC,
47695 &_swigt__p_wxDateEvent,
47696 &_swigt__p_wxDatePickerCtrl,
47697 &_swigt__p_wxDateTime,
47698 &_swigt__p_wxDirFilterListCtrl,
47699 &_swigt__p_wxDirPickerCtrl,
47700 &_swigt__p_wxDisplayChangedEvent,
47701 &_swigt__p_wxDropFilesEvent,
47702 &_swigt__p_wxDuplexMode,
47703 &_swigt__p_wxEraseEvent,
47704 &_swigt__p_wxEvent,
47705 &_swigt__p_wxEvtHandler,
47706 &_swigt__p_wxFSFile,
47707 &_swigt__p_wxFileDirPickerEvent,
47708 &_swigt__p_wxFilePickerCtrl,
47709 &_swigt__p_wxFileSystem,
47710 &_swigt__p_wxFlexGridSizer,
47711 &_swigt__p_wxFocusEvent,
47712 &_swigt__p_wxFont,
47713 &_swigt__p_wxFontPickerCtrl,
47714 &_swigt__p_wxFontPickerEvent,
47715 &_swigt__p_wxGBSizerItem,
47716 &_swigt__p_wxGIFHandler,
47717 &_swigt__p_wxGauge,
47718 &_swigt__p_wxGenericDirCtrl,
47719 &_swigt__p_wxGenericDragImage,
47720 &_swigt__p_wxGridBagSizer,
47721 &_swigt__p_wxGridSizer,
47722 &_swigt__p_wxHelpEvent,
47723 &_swigt__p_wxHelpProvider,
47724 &_swigt__p_wxHyperlinkCtrl,
47725 &_swigt__p_wxHyperlinkEvent,
47726 &_swigt__p_wxICOHandler,
47727 &_swigt__p_wxIcon,
47728 &_swigt__p_wxIconizeEvent,
47729 &_swigt__p_wxIdleEvent,
47730 &_swigt__p_wxImage,
47731 &_swigt__p_wxImageHandler,
47732 &_swigt__p_wxImageList,
47733 &_swigt__p_wxIndividualLayoutConstraint,
47734 &_swigt__p_wxInitDialogEvent,
47735 &_swigt__p_wxItemContainer,
47736 &_swigt__p_wxJPEGHandler,
47737 &_swigt__p_wxKeyEvent,
47738 &_swigt__p_wxLayoutConstraints,
47739 &_swigt__p_wxListBox,
47740 &_swigt__p_wxListEvent,
47741 &_swigt__p_wxListItem,
47742 &_swigt__p_wxListItemAttr,
47743 &_swigt__p_wxListView,
47744 &_swigt__p_wxListbook,
47745 &_swigt__p_wxListbookEvent,
47746 &_swigt__p_wxMaximizeEvent,
47747 &_swigt__p_wxMemoryDC,
47748 &_swigt__p_wxMenu,
47749 &_swigt__p_wxMenuBar,
47750 &_swigt__p_wxMenuEvent,
47751 &_swigt__p_wxMenuItem,
47752 &_swigt__p_wxMouseCaptureChangedEvent,
47753 &_swigt__p_wxMouseEvent,
47754 &_swigt__p_wxMoveEvent,
47755 &_swigt__p_wxNavigationKeyEvent,
47756 &_swigt__p_wxNcPaintEvent,
47757 &_swigt__p_wxNotebook,
47758 &_swigt__p_wxNotebookEvent,
47759 &_swigt__p_wxNotifyEvent,
47760 &_swigt__p_wxObject,
47761 &_swigt__p_wxPCXHandler,
47762 &_swigt__p_wxPNGHandler,
47763 &_swigt__p_wxPNMHandler,
47764 &_swigt__p_wxPaintEvent,
47765 &_swigt__p_wxPaletteChangedEvent,
47766 &_swigt__p_wxPaperSize,
47767 &_swigt__p_wxPickerBase,
47768 &_swigt__p_wxPoint,
47769 &_swigt__p_wxPyApp,
47770 &_swigt__p_wxPyCommandEvent,
47771 &_swigt__p_wxPyControl,
47772 &_swigt__p_wxPyEvent,
47773 &_swigt__p_wxPyImageHandler,
47774 &_swigt__p_wxPyListCtrl,
47775 &_swigt__p_wxPySizer,
47776 &_swigt__p_wxPyTreeCtrl,
47777 &_swigt__p_wxPyTreeItemData,
47778 &_swigt__p_wxPyValidator,
47779 &_swigt__p_wxQueryNewPaletteEvent,
47780 &_swigt__p_wxRadioBox,
47781 &_swigt__p_wxRadioButton,
47782 &_swigt__p_wxRect,
47783 &_swigt__p_wxScrollBar,
47784 &_swigt__p_wxScrollEvent,
47785 &_swigt__p_wxScrollWinEvent,
47786 &_swigt__p_wxSetCursorEvent,
47787 &_swigt__p_wxShowEvent,
47788 &_swigt__p_wxSimpleHelpProvider,
47789 &_swigt__p_wxSize,
47790 &_swigt__p_wxSizeEvent,
47791 &_swigt__p_wxSizer,
47792 &_swigt__p_wxSizerItem,
47793 &_swigt__p_wxSlider,
47794 &_swigt__p_wxSpinButton,
47795 &_swigt__p_wxSpinCtrl,
47796 &_swigt__p_wxSpinEvent,
47797 &_swigt__p_wxStaticBitmap,
47798 &_swigt__p_wxStaticBox,
47799 &_swigt__p_wxStaticBoxSizer,
47800 &_swigt__p_wxStaticLine,
47801 &_swigt__p_wxStaticText,
47802 &_swigt__p_wxStdDialogButtonSizer,
47803 &_swigt__p_wxString,
47804 &_swigt__p_wxSysColourChangedEvent,
47805 &_swigt__p_wxTIFFHandler,
47806 &_swigt__p_wxTextAttr,
47807 &_swigt__p_wxTextCtrl,
47808 &_swigt__p_wxTextUrlEvent,
47809 &_swigt__p_wxToggleButton,
47810 &_swigt__p_wxToolBar,
47811 &_swigt__p_wxToolBarBase,
47812 &_swigt__p_wxToolBarToolBase,
47813 &_swigt__p_wxToolbook,
47814 &_swigt__p_wxToolbookEvent,
47815 &_swigt__p_wxTreeCtrl,
47816 &_swigt__p_wxTreeEvent,
47817 &_swigt__p_wxTreeItemId,
47818 &_swigt__p_wxTreebook,
47819 &_swigt__p_wxTreebookEvent,
47820 &_swigt__p_wxUpdateUIEvent,
47821 &_swigt__p_wxValidator,
47822 &_swigt__p_wxVisualAttributes,
47823 &_swigt__p_wxWindow,
47824 &_swigt__p_wxWindowBase,
47825 &_swigt__p_wxWindowCreateEvent,
47826 &_swigt__p_wxWindowDestroyEvent,
47827 &_swigt__p_wxXPMHandler,
47828 };
47829
47830 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47831 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47832 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47833 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47834 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47835 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47836 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47837 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47838 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47839 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47840 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47841 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47842 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}};
47843 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}};
47844 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}};
47845 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}};
47846 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47847 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47848 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}};
47849 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47850 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47851 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
47852 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47853 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47854 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47855 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
47856 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
47857 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47858 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47859 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47860 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47861 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47862 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47863 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
47864 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}};
47865 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47866 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
47867 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}};
47868 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}};
47869 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47870 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47871 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47872 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47873 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
47874 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47875 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47876 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47877 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47878 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47879 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47880 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47881 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47882 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47883 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47884 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47885 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47886 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47887 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47888 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47889 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47890 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47891 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47892 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47893 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47894 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47895 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47896 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47897 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47898 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47899 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
47900 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}};
47901 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47902 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47903 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47904 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
47905 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}};
47906 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47907 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47908 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
47909 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47910 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47911 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47912 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47913 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47914 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47915 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}};
47916 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47917 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
47918 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47919 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47920 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}};
47921 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47922 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}};
47923 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47924 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47925 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47926 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47927 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47928 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47929 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47930 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47931 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47932 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47933 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}};
47934 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47935 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47936 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47937 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47938 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47939 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47940 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47941 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47942 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47943 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47944 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47945 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47946 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
47947 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47948 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47949 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47950 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47951 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
47952 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47953 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47954 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47955 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
47956 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47957 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47958 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47959 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47960 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47961 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47962 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47963 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
47964 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}};
47965 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
47966 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}};
47967 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47968 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47969 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}};
47970 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47971 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47972 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47973 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47974 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47975 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47976 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47977 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47978 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47979 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47980 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47981 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47982 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47983 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47984 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47985 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47986 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47987 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47988 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47989 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47990 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47991 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47992 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}};
47993 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47994 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47995 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47996 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47997 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47998 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47999 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48000 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48001 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}};
48002 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
48003 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}};
48004 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
48005
48006 static swig_cast_info *swig_cast_initial[] = {
48007 _swigc__p_bool,
48008 _swigc__p_char,
48009 _swigc__p_form_ops_t,
48010 _swigc__p_int,
48011 _swigc__p_long,
48012 _swigc__p_unsigned_char,
48013 _swigc__p_unsigned_int,
48014 _swigc__p_unsigned_long,
48015 _swigc__p_void,
48016 _swigc__p_wxANIHandler,
48017 _swigc__p_wxAcceleratorTable,
48018 _swigc__p_wxActivateEvent,
48019 _swigc__p_wxArrayInt,
48020 _swigc__p_wxArrayString,
48021 _swigc__p_wxBMPHandler,
48022 _swigc__p_wxBitmap,
48023 _swigc__p_wxBitmapButton,
48024 _swigc__p_wxBookCtrlBase,
48025 _swigc__p_wxBookCtrlBaseEvent,
48026 _swigc__p_wxBoxSizer,
48027 _swigc__p_wxButton,
48028 _swigc__p_wxCURHandler,
48029 _swigc__p_wxCheckBox,
48030 _swigc__p_wxCheckListBox,
48031 _swigc__p_wxChildFocusEvent,
48032 _swigc__p_wxChoice,
48033 _swigc__p_wxChoicebook,
48034 _swigc__p_wxChoicebookEvent,
48035 _swigc__p_wxClipboardTextEvent,
48036 _swigc__p_wxCloseEvent,
48037 _swigc__p_wxColour,
48038 _swigc__p_wxColourPickerCtrl,
48039 _swigc__p_wxColourPickerEvent,
48040 _swigc__p_wxComboBox,
48041 _swigc__p_wxCommandEvent,
48042 _swigc__p_wxContextHelp,
48043 _swigc__p_wxContextHelpButton,
48044 _swigc__p_wxContextMenuEvent,
48045 _swigc__p_wxControl,
48046 _swigc__p_wxControlWithItems,
48047 _swigc__p_wxCursor,
48048 _swigc__p_wxDC,
48049 _swigc__p_wxDateEvent,
48050 _swigc__p_wxDatePickerCtrl,
48051 _swigc__p_wxDateTime,
48052 _swigc__p_wxDirFilterListCtrl,
48053 _swigc__p_wxDirPickerCtrl,
48054 _swigc__p_wxDisplayChangedEvent,
48055 _swigc__p_wxDropFilesEvent,
48056 _swigc__p_wxDuplexMode,
48057 _swigc__p_wxEraseEvent,
48058 _swigc__p_wxEvent,
48059 _swigc__p_wxEvtHandler,
48060 _swigc__p_wxFSFile,
48061 _swigc__p_wxFileDirPickerEvent,
48062 _swigc__p_wxFilePickerCtrl,
48063 _swigc__p_wxFileSystem,
48064 _swigc__p_wxFlexGridSizer,
48065 _swigc__p_wxFocusEvent,
48066 _swigc__p_wxFont,
48067 _swigc__p_wxFontPickerCtrl,
48068 _swigc__p_wxFontPickerEvent,
48069 _swigc__p_wxGBSizerItem,
48070 _swigc__p_wxGIFHandler,
48071 _swigc__p_wxGauge,
48072 _swigc__p_wxGenericDirCtrl,
48073 _swigc__p_wxGenericDragImage,
48074 _swigc__p_wxGridBagSizer,
48075 _swigc__p_wxGridSizer,
48076 _swigc__p_wxHelpEvent,
48077 _swigc__p_wxHelpProvider,
48078 _swigc__p_wxHyperlinkCtrl,
48079 _swigc__p_wxHyperlinkEvent,
48080 _swigc__p_wxICOHandler,
48081 _swigc__p_wxIcon,
48082 _swigc__p_wxIconizeEvent,
48083 _swigc__p_wxIdleEvent,
48084 _swigc__p_wxImage,
48085 _swigc__p_wxImageHandler,
48086 _swigc__p_wxImageList,
48087 _swigc__p_wxIndividualLayoutConstraint,
48088 _swigc__p_wxInitDialogEvent,
48089 _swigc__p_wxItemContainer,
48090 _swigc__p_wxJPEGHandler,
48091 _swigc__p_wxKeyEvent,
48092 _swigc__p_wxLayoutConstraints,
48093 _swigc__p_wxListBox,
48094 _swigc__p_wxListEvent,
48095 _swigc__p_wxListItem,
48096 _swigc__p_wxListItemAttr,
48097 _swigc__p_wxListView,
48098 _swigc__p_wxListbook,
48099 _swigc__p_wxListbookEvent,
48100 _swigc__p_wxMaximizeEvent,
48101 _swigc__p_wxMemoryDC,
48102 _swigc__p_wxMenu,
48103 _swigc__p_wxMenuBar,
48104 _swigc__p_wxMenuEvent,
48105 _swigc__p_wxMenuItem,
48106 _swigc__p_wxMouseCaptureChangedEvent,
48107 _swigc__p_wxMouseEvent,
48108 _swigc__p_wxMoveEvent,
48109 _swigc__p_wxNavigationKeyEvent,
48110 _swigc__p_wxNcPaintEvent,
48111 _swigc__p_wxNotebook,
48112 _swigc__p_wxNotebookEvent,
48113 _swigc__p_wxNotifyEvent,
48114 _swigc__p_wxObject,
48115 _swigc__p_wxPCXHandler,
48116 _swigc__p_wxPNGHandler,
48117 _swigc__p_wxPNMHandler,
48118 _swigc__p_wxPaintEvent,
48119 _swigc__p_wxPaletteChangedEvent,
48120 _swigc__p_wxPaperSize,
48121 _swigc__p_wxPickerBase,
48122 _swigc__p_wxPoint,
48123 _swigc__p_wxPyApp,
48124 _swigc__p_wxPyCommandEvent,
48125 _swigc__p_wxPyControl,
48126 _swigc__p_wxPyEvent,
48127 _swigc__p_wxPyImageHandler,
48128 _swigc__p_wxPyListCtrl,
48129 _swigc__p_wxPySizer,
48130 _swigc__p_wxPyTreeCtrl,
48131 _swigc__p_wxPyTreeItemData,
48132 _swigc__p_wxPyValidator,
48133 _swigc__p_wxQueryNewPaletteEvent,
48134 _swigc__p_wxRadioBox,
48135 _swigc__p_wxRadioButton,
48136 _swigc__p_wxRect,
48137 _swigc__p_wxScrollBar,
48138 _swigc__p_wxScrollEvent,
48139 _swigc__p_wxScrollWinEvent,
48140 _swigc__p_wxSetCursorEvent,
48141 _swigc__p_wxShowEvent,
48142 _swigc__p_wxSimpleHelpProvider,
48143 _swigc__p_wxSize,
48144 _swigc__p_wxSizeEvent,
48145 _swigc__p_wxSizer,
48146 _swigc__p_wxSizerItem,
48147 _swigc__p_wxSlider,
48148 _swigc__p_wxSpinButton,
48149 _swigc__p_wxSpinCtrl,
48150 _swigc__p_wxSpinEvent,
48151 _swigc__p_wxStaticBitmap,
48152 _swigc__p_wxStaticBox,
48153 _swigc__p_wxStaticBoxSizer,
48154 _swigc__p_wxStaticLine,
48155 _swigc__p_wxStaticText,
48156 _swigc__p_wxStdDialogButtonSizer,
48157 _swigc__p_wxString,
48158 _swigc__p_wxSysColourChangedEvent,
48159 _swigc__p_wxTIFFHandler,
48160 _swigc__p_wxTextAttr,
48161 _swigc__p_wxTextCtrl,
48162 _swigc__p_wxTextUrlEvent,
48163 _swigc__p_wxToggleButton,
48164 _swigc__p_wxToolBar,
48165 _swigc__p_wxToolBarBase,
48166 _swigc__p_wxToolBarToolBase,
48167 _swigc__p_wxToolbook,
48168 _swigc__p_wxToolbookEvent,
48169 _swigc__p_wxTreeCtrl,
48170 _swigc__p_wxTreeEvent,
48171 _swigc__p_wxTreeItemId,
48172 _swigc__p_wxTreebook,
48173 _swigc__p_wxTreebookEvent,
48174 _swigc__p_wxUpdateUIEvent,
48175 _swigc__p_wxValidator,
48176 _swigc__p_wxVisualAttributes,
48177 _swigc__p_wxWindow,
48178 _swigc__p_wxWindowBase,
48179 _swigc__p_wxWindowCreateEvent,
48180 _swigc__p_wxWindowDestroyEvent,
48181 _swigc__p_wxXPMHandler,
48182 };
48183
48184
48185 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48186
48187 static swig_const_info swig_const_table[] = {
48188 {0, 0, 0, 0.0, 0, 0}};
48189
48190 #ifdef __cplusplus
48191 }
48192 #endif
48193 /* -----------------------------------------------------------------------------
48194 * Type initialization:
48195 * This problem is tough by the requirement that no dynamic
48196 * memory is used. Also, since swig_type_info structures store pointers to
48197 * swig_cast_info structures and swig_cast_info structures store pointers back
48198 * to swig_type_info structures, we need some lookup code at initialization.
48199 * The idea is that swig generates all the structures that are needed.
48200 * The runtime then collects these partially filled structures.
48201 * The SWIG_InitializeModule function takes these initial arrays out of
48202 * swig_module, and does all the lookup, filling in the swig_module.types
48203 * array with the correct data and linking the correct swig_cast_info
48204 * structures together.
48205 *
48206 * The generated swig_type_info structures are assigned staticly to an initial
48207 * array. We just loop though that array, and handle each type individually.
48208 * First we lookup if this type has been already loaded, and if so, use the
48209 * loaded structure instead of the generated one. Then we have to fill in the
48210 * cast linked list. The cast data is initially stored in something like a
48211 * two-dimensional array. Each row corresponds to a type (there are the same
48212 * number of rows as there are in the swig_type_initial array). Each entry in
48213 * a column is one of the swig_cast_info structures for that type.
48214 * The cast_initial array is actually an array of arrays, because each row has
48215 * a variable number of columns. So to actually build the cast linked list,
48216 * we find the array of casts associated with the type, and loop through it
48217 * adding the casts to the list. The one last trick we need to do is making
48218 * sure the type pointer in the swig_cast_info struct is correct.
48219 *
48220 * First off, we lookup the cast->type name to see if it is already loaded.
48221 * There are three cases to handle:
48222 * 1) If the cast->type has already been loaded AND the type we are adding
48223 * casting info to has not been loaded (it is in this module), THEN we
48224 * replace the cast->type pointer with the type pointer that has already
48225 * been loaded.
48226 * 2) If BOTH types (the one we are adding casting info to, and the
48227 * cast->type) are loaded, THEN the cast info has already been loaded by
48228 * the previous module so we just ignore it.
48229 * 3) Finally, if cast->type has not already been loaded, then we add that
48230 * swig_cast_info to the linked list (because the cast->type) pointer will
48231 * be correct.
48232 * ----------------------------------------------------------------------------- */
48233
48234 #ifdef __cplusplus
48235 extern "C" {
48236 #if 0
48237 } /* c-mode */
48238 #endif
48239 #endif
48240
48241 #if 0
48242 #define SWIGRUNTIME_DEBUG
48243 #endif
48244
48245 SWIGRUNTIME void
48246 SWIG_InitializeModule(void *clientdata) {
48247 size_t i;
48248 swig_module_info *module_head;
48249 static int init_run = 0;
48250
48251 clientdata = clientdata;
48252
48253 if (init_run) return;
48254 init_run = 1;
48255
48256 /* Initialize the swig_module */
48257 swig_module.type_initial = swig_type_initial;
48258 swig_module.cast_initial = swig_cast_initial;
48259
48260 /* Try and load any already created modules */
48261 module_head = SWIG_GetModule(clientdata);
48262 if (module_head) {
48263 swig_module.next = module_head->next;
48264 module_head->next = &swig_module;
48265 } else {
48266 /* This is the first module loaded */
48267 swig_module.next = &swig_module;
48268 SWIG_SetModule(clientdata, &swig_module);
48269 }
48270
48271 /* Now work on filling in swig_module.types */
48272 #ifdef SWIGRUNTIME_DEBUG
48273 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48274 #endif
48275 for (i = 0; i < swig_module.size; ++i) {
48276 swig_type_info *type = 0;
48277 swig_type_info *ret;
48278 swig_cast_info *cast;
48279
48280 #ifdef SWIGRUNTIME_DEBUG
48281 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48282 #endif
48283
48284 /* if there is another module already loaded */
48285 if (swig_module.next != &swig_module) {
48286 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48287 }
48288 if (type) {
48289 /* Overwrite clientdata field */
48290 #ifdef SWIGRUNTIME_DEBUG
48291 printf("SWIG_InitializeModule: found type %s\n", type->name);
48292 #endif
48293 if (swig_module.type_initial[i]->clientdata) {
48294 type->clientdata = swig_module.type_initial[i]->clientdata;
48295 #ifdef SWIGRUNTIME_DEBUG
48296 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48297 #endif
48298 }
48299 } else {
48300 type = swig_module.type_initial[i];
48301 }
48302
48303 /* Insert casting types */
48304 cast = swig_module.cast_initial[i];
48305 while (cast->type) {
48306 /* Don't need to add information already in the list */
48307 ret = 0;
48308 #ifdef SWIGRUNTIME_DEBUG
48309 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48310 #endif
48311 if (swig_module.next != &swig_module) {
48312 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48313 #ifdef SWIGRUNTIME_DEBUG
48314 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48315 #endif
48316 }
48317 if (ret) {
48318 if (type == swig_module.type_initial[i]) {
48319 #ifdef SWIGRUNTIME_DEBUG
48320 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48321 #endif
48322 cast->type = ret;
48323 ret = 0;
48324 } else {
48325 /* Check for casting already in the list */
48326 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48327 #ifdef SWIGRUNTIME_DEBUG
48328 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48329 #endif
48330 if (!ocast) ret = 0;
48331 }
48332 }
48333
48334 if (!ret) {
48335 #ifdef SWIGRUNTIME_DEBUG
48336 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48337 #endif
48338 if (type->cast) {
48339 type->cast->prev = cast;
48340 cast->next = type->cast;
48341 }
48342 type->cast = cast;
48343 }
48344 cast++;
48345 }
48346 /* Set entry in modules->types array equal to the type */
48347 swig_module.types[i] = type;
48348 }
48349 swig_module.types[i] = 0;
48350
48351 #ifdef SWIGRUNTIME_DEBUG
48352 printf("**** SWIG_InitializeModule: Cast List ******\n");
48353 for (i = 0; i < swig_module.size; ++i) {
48354 int j = 0;
48355 swig_cast_info *cast = swig_module.cast_initial[i];
48356 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48357 while (cast->type) {
48358 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48359 cast++;
48360 ++j;
48361 }
48362 printf("---- Total casts: %d\n",j);
48363 }
48364 printf("**** SWIG_InitializeModule: Cast List ******\n");
48365 #endif
48366 }
48367
48368 /* This function will propagate the clientdata field of type to
48369 * any new swig_type_info structures that have been added into the list
48370 * of equivalent types. It is like calling
48371 * SWIG_TypeClientData(type, clientdata) a second time.
48372 */
48373 SWIGRUNTIME void
48374 SWIG_PropagateClientData(void) {
48375 size_t i;
48376 swig_cast_info *equiv;
48377 static int init_run = 0;
48378
48379 if (init_run) return;
48380 init_run = 1;
48381
48382 for (i = 0; i < swig_module.size; i++) {
48383 if (swig_module.types[i]->clientdata) {
48384 equiv = swig_module.types[i]->cast;
48385 while (equiv) {
48386 if (!equiv->converter) {
48387 if (equiv->type && !equiv->type->clientdata)
48388 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48389 }
48390 equiv = equiv->next;
48391 }
48392 }
48393 }
48394 }
48395
48396 #ifdef __cplusplus
48397 #if 0
48398 {
48399 /* c-mode */
48400 #endif
48401 }
48402 #endif
48403
48404
48405
48406 #ifdef __cplusplus
48407 extern "C" {
48408 #endif
48409
48410 /* Python-specific SWIG API */
48411 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48412 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48413 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48414
48415 /* -----------------------------------------------------------------------------
48416 * global variable support code.
48417 * ----------------------------------------------------------------------------- */
48418
48419 typedef struct swig_globalvar {
48420 char *name; /* Name of global variable */
48421 PyObject *(*get_attr)(void); /* Return the current value */
48422 int (*set_attr)(PyObject *); /* Set the value */
48423 struct swig_globalvar *next;
48424 } swig_globalvar;
48425
48426 typedef struct swig_varlinkobject {
48427 PyObject_HEAD
48428 swig_globalvar *vars;
48429 } swig_varlinkobject;
48430
48431 SWIGINTERN PyObject *
48432 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48433 return PyString_FromString("<Swig global variables>");
48434 }
48435
48436 SWIGINTERN PyObject *
48437 swig_varlink_str(swig_varlinkobject *v) {
48438 PyObject *str = PyString_FromString("(");
48439 swig_globalvar *var;
48440 for (var = v->vars; var; var=var->next) {
48441 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48442 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48443 }
48444 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48445 return str;
48446 }
48447
48448 SWIGINTERN int
48449 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48450 PyObject *str = swig_varlink_str(v);
48451 fprintf(fp,"Swig global variables ");
48452 fprintf(fp,"%s\n", PyString_AsString(str));
48453 Py_DECREF(str);
48454 return 0;
48455 }
48456
48457 SWIGINTERN void
48458 swig_varlink_dealloc(swig_varlinkobject *v) {
48459 swig_globalvar *var = v->vars;
48460 while (var) {
48461 swig_globalvar *n = var->next;
48462 free(var->name);
48463 free(var);
48464 var = n;
48465 }
48466 }
48467
48468 SWIGINTERN PyObject *
48469 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48470 PyObject *res = NULL;
48471 swig_globalvar *var = v->vars;
48472 while (var) {
48473 if (strcmp(var->name,n) == 0) {
48474 res = (*var->get_attr)();
48475 break;
48476 }
48477 var = var->next;
48478 }
48479 if (res == NULL && !PyErr_Occurred()) {
48480 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48481 }
48482 return res;
48483 }
48484
48485 SWIGINTERN int
48486 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48487 int res = 1;
48488 swig_globalvar *var = v->vars;
48489 while (var) {
48490 if (strcmp(var->name,n) == 0) {
48491 res = (*var->set_attr)(p);
48492 break;
48493 }
48494 var = var->next;
48495 }
48496 if (res == 1 && !PyErr_Occurred()) {
48497 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48498 }
48499 return res;
48500 }
48501
48502 SWIGINTERN PyTypeObject*
48503 swig_varlink_type(void) {
48504 static char varlink__doc__[] = "Swig var link object";
48505 static PyTypeObject varlink_type;
48506 static int type_init = 0;
48507 if (!type_init) {
48508 const PyTypeObject tmp
48509 = {
48510 PyObject_HEAD_INIT(NULL)
48511 0, /* Number of items in variable part (ob_size) */
48512 (char *)"swigvarlink", /* Type name (tp_name) */
48513 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48514 0, /* Itemsize (tp_itemsize) */
48515 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48516 (printfunc) swig_varlink_print, /* Print (tp_print) */
48517 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48518 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48519 0, /* tp_compare */
48520 (reprfunc) swig_varlink_repr, /* tp_repr */
48521 0, /* tp_as_number */
48522 0, /* tp_as_sequence */
48523 0, /* tp_as_mapping */
48524 0, /* tp_hash */
48525 0, /* tp_call */
48526 (reprfunc)swig_varlink_str, /* tp_str */
48527 0, /* tp_getattro */
48528 0, /* tp_setattro */
48529 0, /* tp_as_buffer */
48530 0, /* tp_flags */
48531 varlink__doc__, /* tp_doc */
48532 0, /* tp_traverse */
48533 0, /* tp_clear */
48534 0, /* tp_richcompare */
48535 0, /* tp_weaklistoffset */
48536 #if PY_VERSION_HEX >= 0x02020000
48537 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48538 #endif
48539 #if PY_VERSION_HEX >= 0x02030000
48540 0, /* tp_del */
48541 #endif
48542 #ifdef COUNT_ALLOCS
48543 0,0,0,0 /* tp_alloc -> tp_next */
48544 #endif
48545 };
48546 varlink_type = tmp;
48547 varlink_type.ob_type = &PyType_Type;
48548 type_init = 1;
48549 }
48550 return &varlink_type;
48551 }
48552
48553 /* Create a variable linking object for use later */
48554 SWIGINTERN PyObject *
48555 SWIG_Python_newvarlink(void) {
48556 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48557 if (result) {
48558 result->vars = 0;
48559 }
48560 return ((PyObject*) result);
48561 }
48562
48563 SWIGINTERN void
48564 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48565 swig_varlinkobject *v = (swig_varlinkobject *) p;
48566 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48567 if (gv) {
48568 size_t size = strlen(name)+1;
48569 gv->name = (char *)malloc(size);
48570 if (gv->name) {
48571 strncpy(gv->name,name,size);
48572 gv->get_attr = get_attr;
48573 gv->set_attr = set_attr;
48574 gv->next = v->vars;
48575 }
48576 }
48577 v->vars = gv;
48578 }
48579
48580 SWIGINTERN PyObject *
48581 SWIG_globals() {
48582 static PyObject *_SWIG_globals = 0;
48583 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48584 return _SWIG_globals;
48585 }
48586
48587 /* -----------------------------------------------------------------------------
48588 * constants/methods manipulation
48589 * ----------------------------------------------------------------------------- */
48590
48591 /* Install Constants */
48592 SWIGINTERN void
48593 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48594 PyObject *obj = 0;
48595 size_t i;
48596 for (i = 0; constants[i].type; ++i) {
48597 switch(constants[i].type) {
48598 case SWIG_PY_POINTER:
48599 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48600 break;
48601 case SWIG_PY_BINARY:
48602 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48603 break;
48604 default:
48605 obj = 0;
48606 break;
48607 }
48608 if (obj) {
48609 PyDict_SetItemString(d, constants[i].name, obj);
48610 Py_DECREF(obj);
48611 }
48612 }
48613 }
48614
48615 /* -----------------------------------------------------------------------------*/
48616 /* Fix SwigMethods to carry the callback ptrs when needed */
48617 /* -----------------------------------------------------------------------------*/
48618
48619 SWIGINTERN void
48620 SWIG_Python_FixMethods(PyMethodDef *methods,
48621 swig_const_info *const_table,
48622 swig_type_info **types,
48623 swig_type_info **types_initial) {
48624 size_t i;
48625 for (i = 0; methods[i].ml_name; ++i) {
48626 char *c = methods[i].ml_doc;
48627 if (c && (c = strstr(c, "swig_ptr: "))) {
48628 int j;
48629 swig_const_info *ci = 0;
48630 char *name = c + 10;
48631 for (j = 0; const_table[j].type; ++j) {
48632 if (strncmp(const_table[j].name, name,
48633 strlen(const_table[j].name)) == 0) {
48634 ci = &(const_table[j]);
48635 break;
48636 }
48637 }
48638 if (ci) {
48639 size_t shift = (ci->ptype) - types;
48640 swig_type_info *ty = types_initial[shift];
48641 size_t ldoc = (c - methods[i].ml_doc);
48642 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48643 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48644 if (ndoc) {
48645 char *buff = ndoc;
48646 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48647 if (ptr) {
48648 strncpy(buff, methods[i].ml_doc, ldoc);
48649 buff += ldoc;
48650 strncpy(buff, "swig_ptr: ", 10);
48651 buff += 10;
48652 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48653 methods[i].ml_doc = ndoc;
48654 }
48655 }
48656 }
48657 }
48658 }
48659 }
48660
48661 #ifdef __cplusplus
48662 }
48663 #endif
48664
48665 /* -----------------------------------------------------------------------------*
48666 * Partial Init method
48667 * -----------------------------------------------------------------------------*/
48668
48669 #ifdef __cplusplus
48670 extern "C"
48671 #endif
48672 SWIGEXPORT void SWIG_init(void) {
48673 PyObject *m, *d;
48674
48675 /* Fix SwigMethods to carry the callback ptrs when needed */
48676 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48677
48678 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48679 d = PyModule_GetDict(m);
48680
48681 SWIG_InitializeModule(0);
48682 SWIG_InstallConstants(d,swig_const_table);
48683
48684
48685 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48686 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48687 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48688 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48689 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48690 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48691 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48692 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48693 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48694 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48695 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48696 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48697 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48698 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48699 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48700 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48701 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48702 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48703 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48704 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48705 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48706 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48707 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48708 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48709 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48710 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48711 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48712 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48713 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48714 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48715 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48716 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48717 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48718 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48719 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48720 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48721 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48722 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48723 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48724 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48725 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48726 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48727 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48728 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48729 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48730 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48731 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48732 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48733 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48734 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48735 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48736 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48737 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48738 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48739 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48740 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48741 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48742 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48743 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48744 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48745 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48746 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48747 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48748 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48749 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48750 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48751 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48752 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48753 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48754 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48755 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48756 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48757 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48758 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48759 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48760 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48761 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48762 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48763 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48764 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48765 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48766 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48767 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48768 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48769 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48770 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48771 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48772 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48773 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48774 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48775 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48776 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48777 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48778 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48779 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48780 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48781 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48782 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48783 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48784 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48785 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48786 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48787 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48788 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48789 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48790 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48791 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48792 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48793 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48794 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48795 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48796 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48797 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48798 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48799 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48800 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48801 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48802 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48803 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48804 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48805 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48806 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48807 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48808 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48809 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48810 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48811 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48812 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48813 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48814 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48815 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48816 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48817 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48818 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48819 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48820 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48821 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48822 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48823 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48824 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48825 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48826 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48827 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48828 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48829 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48830 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48831 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48832 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48833 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48834 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48835 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48836 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48837 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48838 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48839 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48840 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48841 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48842 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48843 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
48844 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
48845 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48846 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48847 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48848 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48849 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48850 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48851 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48852 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48853 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48854 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48855 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48856 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48857 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48858 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48859 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48860 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48861 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48862 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48863 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48864 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48865 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48866 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48867 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48868 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48869 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48870 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48871 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48872 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48873 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48874 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48875 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48876 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48877 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48878 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48879 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48880 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48881 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48882 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48883 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48884 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48885 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48886 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48887 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48888 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48889 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48890 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48891 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
48892 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
48893 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48894 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48895 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48896 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48897 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48898 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48899 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48900 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48901 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48902 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48903 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48904 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48905 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48906 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48907 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48908 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48909 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48910 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48911 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48912 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48913 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48914 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48915 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48916 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48917 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48918 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48919 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48920 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48921 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48922 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48923 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48924 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48925 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48926 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48927 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48928 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48929 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48930 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48931 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48932 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48933 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48934 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48935
48936 // Map renamed classes back to their common name for OOR
48937 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48938
48939 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48940 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48941 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48942 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48943 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48944 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48945 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48946 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48947 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48948 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48949 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48950 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48951 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48952 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48953 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
48954 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48955 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48956 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48957 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48958 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48959 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48960 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48961 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48962 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48963 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48964 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48965 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48966 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48967 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48968 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48969 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48970 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48971 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48972 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48973 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48974 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48975 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48976 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48977 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48978 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48979 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48980 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48981 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48982 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48983 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48984 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48985 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48986 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48987 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48988 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48989 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48990 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48991 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48992 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48993 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
48994 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
48995
48996 // Map renamed classes back to their common name for OOR
48997 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48998 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48999
49000 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49001 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49002 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49003 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49004 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49005 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
49006 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
49007 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
49008 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49009 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
49010 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49011 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49012 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
49013
49014 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49015
49016 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49017 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49018 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49019 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49020 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49021 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
49022 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49023 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
49024 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49025 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
49026 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49027 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49028 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49029 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49030 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49031 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49032 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49033 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49034 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49035 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49036 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49037 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49038 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49039 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49040 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49041 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49042 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49043 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49044 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49045 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49046 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49047 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49048 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49049 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49050 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49051 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49052 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49053 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49054 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49055 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
49056 }
49057