]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
wxRect2DDouble --> wxRect2D
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521 #define SWIGTYPE_p_wxFSFile swig_types[55]
2522 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524 #define SWIGTYPE_p_wxFileSystem swig_types[58]
2525 #define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526 #define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527 #define SWIGTYPE_p_wxFont swig_types[61]
2528 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530 #define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531 #define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532 #define SWIGTYPE_p_wxGauge swig_types[66]
2533 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535 #define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536 #define SWIGTYPE_p_wxGridSizer swig_types[70]
2537 #define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538 #define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544 #define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545 #define SWIGTYPE_p_wxImage swig_types[79]
2546 #define SWIGTYPE_p_wxImageHandler swig_types[80]
2547 #define SWIGTYPE_p_wxImageList swig_types[81]
2548 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549 #define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550 #define SWIGTYPE_p_wxItemContainer swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554 #define SWIGTYPE_p_wxListBox swig_types[88]
2555 #define SWIGTYPE_p_wxListEvent swig_types[89]
2556 #define SWIGTYPE_p_wxListItem swig_types[90]
2557 #define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558 #define SWIGTYPE_p_wxListView swig_types[92]
2559 #define SWIGTYPE_p_wxListbook swig_types[93]
2560 #define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561 #define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563 #define SWIGTYPE_p_wxMenu swig_types[97]
2564 #define SWIGTYPE_p_wxMenuBar swig_types[98]
2565 #define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMenuItem swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotebook swig_types[107]
2574 #define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxObject swig_types[110]
2577 #define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaperSize swig_types[116]
2583 #define SWIGTYPE_p_wxPickerBase swig_types[117]
2584 #define SWIGTYPE_p_wxPoint swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyControl swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRadioBox swig_types[130]
2597 #define SWIGTYPE_p_wxRadioButton swig_types[131]
2598 #define SWIGTYPE_p_wxRect swig_types[132]
2599 #define SWIGTYPE_p_wxScrollBar swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603 #define SWIGTYPE_p_wxShowEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[138]
2605 #define SWIGTYPE_p_wxSize swig_types[139]
2606 #define SWIGTYPE_p_wxSizeEvent swig_types[140]
2607 #define SWIGTYPE_p_wxSizer swig_types[141]
2608 #define SWIGTYPE_p_wxSizerItem swig_types[142]
2609 #define SWIGTYPE_p_wxSlider swig_types[143]
2610 #define SWIGTYPE_p_wxSpinButton swig_types[144]
2611 #define SWIGTYPE_p_wxSpinCtrl swig_types[145]
2612 #define SWIGTYPE_p_wxSpinEvent swig_types[146]
2613 #define SWIGTYPE_p_wxStaticBitmap swig_types[147]
2614 #define SWIGTYPE_p_wxStaticBox swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[149]
2616 #define SWIGTYPE_p_wxStaticLine swig_types[150]
2617 #define SWIGTYPE_p_wxStaticText swig_types[151]
2618 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[152]
2619 #define SWIGTYPE_p_wxString swig_types[153]
2620 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[154]
2621 #define SWIGTYPE_p_wxTGAHandler swig_types[155]
2622 #define SWIGTYPE_p_wxTIFFHandler swig_types[156]
2623 #define SWIGTYPE_p_wxTextAttr swig_types[157]
2624 #define SWIGTYPE_p_wxTextCtrl swig_types[158]
2625 #define SWIGTYPE_p_wxTextUrlEvent swig_types[159]
2626 #define SWIGTYPE_p_wxToggleButton swig_types[160]
2627 #define SWIGTYPE_p_wxToolBar swig_types[161]
2628 #define SWIGTYPE_p_wxToolBarBase swig_types[162]
2629 #define SWIGTYPE_p_wxToolBarToolBase swig_types[163]
2630 #define SWIGTYPE_p_wxToolbook swig_types[164]
2631 #define SWIGTYPE_p_wxToolbookEvent swig_types[165]
2632 #define SWIGTYPE_p_wxTreeEvent swig_types[166]
2633 #define SWIGTYPE_p_wxTreeItemId swig_types[167]
2634 #define SWIGTYPE_p_wxTreebook swig_types[168]
2635 #define SWIGTYPE_p_wxTreebookEvent swig_types[169]
2636 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[170]
2637 #define SWIGTYPE_p_wxValidator swig_types[171]
2638 #define SWIGTYPE_p_wxVisualAttributes swig_types[172]
2639 #define SWIGTYPE_p_wxWindow swig_types[173]
2640 #define SWIGTYPE_p_wxWindowBase swig_types[174]
2641 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[175]
2642 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[176]
2643 #define SWIGTYPE_p_wxXPMHandler swig_types[177]
2644 static swig_type_info *swig_types[179];
2645 static swig_module_info swig_module = {swig_types, 178, 0, 0, 0, 0};
2646 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2647 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2648
2649 /* -------- TYPES TABLE (END) -------- */
2650
2651 #if (PY_VERSION_HEX <= 0x02000000)
2652 # if !defined(SWIG_PYTHON_CLASSIC)
2653 # error "This python version requires to use swig with the '-classic' option"
2654 # endif
2655 #endif
2656 #if (PY_VERSION_HEX <= 0x02020000)
2657 # error "This python version requires to use swig with the '-nomodern' option"
2658 #endif
2659 #if (PY_VERSION_HEX <= 0x02020000)
2660 # error "This python version requires to use swig with the '-nomodernargs' option"
2661 #endif
2662 #ifndef METH_O
2663 # error "This python version requires to use swig with the '-nofastunpack' option"
2664 #endif
2665
2666 /*-----------------------------------------------
2667 @(target):= _controls_.so
2668 ------------------------------------------------*/
2669 #define SWIG_init init_controls_
2670
2671 #define SWIG_name "_controls_"
2672
2673 #define SWIGVERSION 0x010329
2674
2675
2676 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2677 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2678
2679
2680 #include <stdexcept>
2681
2682
2683 namespace swig {
2684 class PyObject_ptr {
2685 protected:
2686 PyObject *_obj;
2687
2688 public:
2689 PyObject_ptr() :_obj(0)
2690 {
2691 }
2692
2693 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2694 {
2695 Py_XINCREF(_obj);
2696 }
2697
2698 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2699 {
2700 if (initial_ref) Py_XINCREF(_obj);
2701 }
2702
2703 PyObject_ptr & operator=(const PyObject_ptr& item)
2704 {
2705 Py_XINCREF(item._obj);
2706 Py_XDECREF(_obj);
2707 _obj = item._obj;
2708 return *this;
2709 }
2710
2711 ~PyObject_ptr()
2712 {
2713 Py_XDECREF(_obj);
2714 }
2715
2716 operator PyObject *() const
2717 {
2718 return _obj;
2719 }
2720
2721 PyObject *operator->() const
2722 {
2723 return _obj;
2724 }
2725 };
2726 }
2727
2728
2729 namespace swig {
2730 struct PyObject_var : PyObject_ptr {
2731 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2732
2733 PyObject_var & operator = (PyObject* obj)
2734 {
2735 Py_XDECREF(_obj);
2736 _obj = obj;
2737 return *this;
2738 }
2739 };
2740 }
2741
2742
2743 #include "wx/wxPython/wxPython.h"
2744 #include "wx/wxPython/pyclasses.h"
2745
2746 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2747 static const wxString wxPyEmptyString(wxEmptyString);
2748 static const wxString wxPyControlNameStr(wxControlNameStr);
2749
2750 const wxArrayString wxPyEmptyStringArray;
2751
2752 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2753
2754 #define SWIG_From_long PyInt_FromLong
2755
2756
2757 SWIGINTERNINLINE PyObject *
2758 SWIG_From_int (int value)
2759 {
2760 return SWIG_From_long (value);
2761 }
2762
2763
2764 #include <limits.h>
2765 #ifndef LLONG_MIN
2766 # define LLONG_MIN LONG_LONG_MIN
2767 #endif
2768 #ifndef LLONG_MAX
2769 # define LLONG_MAX LONG_LONG_MAX
2770 #endif
2771 #ifndef ULLONG_MAX
2772 # define ULLONG_MAX ULONG_LONG_MAX
2773 #endif
2774
2775
2776 SWIGINTERN int
2777 SWIG_AsVal_long (PyObject* obj, long* val)
2778 {
2779 if (PyNumber_Check(obj)) {
2780 if (val) *val = PyInt_AsLong(obj);
2781 return SWIG_OK;
2782 }
2783 return SWIG_TypeError;
2784 }
2785
2786
2787 SWIGINTERN int
2788 SWIG_AsVal_int (PyObject * obj, int *val)
2789 {
2790 long v;
2791 int res = SWIG_AsVal_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v < INT_MIN || v > INT_MAX)) {
2794 return SWIG_OverflowError;
2795 } else {
2796 if (val) *val = static_cast< int >(v);
2797 }
2798 }
2799 return res;
2800 }
2801
2802 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2803
2804 SWIGINTERN int
2805 SWIG_AsVal_bool (PyObject *obj, bool *val)
2806 {
2807 if (obj == Py_True) {
2808 if (val) *val = true;
2809 return SWIG_OK;
2810 } else if (obj == Py_False) {
2811 if (val) *val = false;
2812 return SWIG_OK;
2813 } else {
2814 long v = 0;
2815 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2816 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2817 return res;
2818 }
2819 }
2820
2821 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2822 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2823 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2824 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2825 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2826 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2827
2828 #include <wx/checklst.h>
2829
2830 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2831 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2832 if (clientData)
2833 {
2834 wxPyClientData* data = new wxPyClientData(clientData);
2835 self->Insert(item, pos, data);
2836 }
2837 else
2838 self->Insert(item, pos);
2839 }
2840
2841 SWIGINTERN int
2842 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2843 {
2844 long v = 0;
2845 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2846 return SWIG_TypeError;
2847 }
2848 else if (val)
2849 *val = (unsigned long)v;
2850 return SWIG_OK;
2851 }
2852
2853
2854 SWIGINTERN int
2855 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2856 {
2857 unsigned long v;
2858 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v > UINT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< unsigned int >(v);
2864 }
2865 }
2866 return res;
2867 }
2868
2869 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2870 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2871 wxArrayInt lst;
2872 self->GetSelections(lst);
2873 PyObject *tup = PyTuple_New(lst.GetCount());
2874 for (size_t i=0; i<lst.GetCount(); i++)
2875 {
2876 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2877 }
2878 wxPyEndBlockThreads(blocked);
2879 return tup;
2880 }
2881 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2882 #ifdef __WXMSW__
2883 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2884 self->GetItem(item)->SetTextColour(c);
2885 #endif
2886 }
2887 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2888 #ifdef __WXMSW__
2889 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2890 self->GetItem(item)->SetBackgroundColour(c);
2891 #endif
2892 }
2893 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2894 #ifdef __WXMSW__
2895 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2896 self->GetItem(item)->SetFont(f);
2897 #endif
2898 }
2899 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2900 SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
2901 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2902 self->AppendText(text);
2903 }
2904 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2905 return self->GetValue().Mid(from, to - from);
2906 }
2907 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2908 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2909 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2910 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2911 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2912
2913 SWIGINTERNINLINE PyObject*
2914 SWIG_From_unsigned_SS_long (unsigned long value)
2915 {
2916 return (value > LONG_MAX) ?
2917 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2918 }
2919
2920
2921 SWIGINTERNINLINE PyObject *
2922 SWIG_From_size_t (size_t value)
2923 {
2924 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2925 }
2926
2927
2928 SWIGINTERNINLINE PyObject *
2929 SWIG_From_unsigned_SS_int (unsigned int value)
2930 {
2931 return SWIG_From_unsigned_SS_long (value);
2932 }
2933
2934
2935 #include <wx/slider.h>
2936
2937
2938 static const wxString wxPySliderNameStr(wxSliderNameStr);
2939 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2940
2941 #if !wxUSE_TOGGLEBTN
2942 // implement dummy items for platforms that don't have this class
2943
2944 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2945
2946 class wxToggleButton : public wxControl
2947 {
2948 public:
2949 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2950 const wxPoint&, const wxSize&, long,
2951 const wxValidator&, const wxString&)
2952 { wxPyRaiseNotImplemented(); }
2953
2954 wxToggleButton()
2955 { wxPyRaiseNotImplemented(); }
2956 };
2957 #endif
2958
2959 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2960
2961 SWIGINTERNINLINE int
2962 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2963 {
2964 unsigned long v;
2965 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2966 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2967 return res;
2968 }
2969
2970 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2971 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2972 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2973 if (udata) {
2974 Py_INCREF(udata->m_obj);
2975 return udata->m_obj;
2976 } else {
2977 Py_INCREF(Py_None);
2978 return Py_None;
2979 }
2980 }
2981 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2982 self->SetClientData(new wxPyUserData(clientData));
2983 }
2984 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){
2985 wxPyUserData* udata = NULL;
2986 if (clientData && clientData != Py_None)
2987 udata = new wxPyUserData(clientData);
2988 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2989 shortHelp, longHelp, udata);
2990 }
2991 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){
2992 wxPyUserData* udata = NULL;
2993 if (clientData && clientData != Py_None)
2994 udata = new wxPyUserData(clientData);
2995 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2996 shortHelp, longHelp, udata);
2997 }
2998 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2999 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3000 if (udata) {
3001 Py_INCREF(udata->m_obj);
3002 return udata->m_obj;
3003 } else {
3004 Py_INCREF(Py_None);
3005 return Py_None;
3006 }
3007 }
3008 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3009 self->SetToolClientData(id, new wxPyUserData(clientData));
3010 }
3011
3012 #include <wx/listctrl.h>
3013
3014 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3015 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3016 // Python aware sorting function for wxPyListCtrl
3017 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3018 int retval = 0;
3019 PyObject* func = (PyObject*)funcPtr;
3020 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3021
3022 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3023 PyObject* result = PyEval_CallObject(func, args);
3024 Py_DECREF(args);
3025 if (result) {
3026 retval = PyInt_AsLong(result);
3027 Py_DECREF(result);
3028 }
3029
3030 wxPyEndBlockThreads(blocked);
3031 return retval;
3032 }
3033
3034 // C++ Version of a Python aware class
3035 class wxPyListCtrl : public wxListCtrl {
3036 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3037 public:
3038 wxPyListCtrl() : wxListCtrl() {}
3039 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3040 const wxPoint& pos,
3041 const wxSize& size,
3042 long style,
3043 const wxValidator& validator,
3044 const wxString& name) :
3045 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3046
3047 bool Create(wxWindow* parent, wxWindowID id,
3048 const wxPoint& pos,
3049 const wxSize& size,
3050 long style,
3051 const wxValidator& validator,
3052 const wxString& name) {
3053 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3054 }
3055
3056 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3057 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3058
3059 // use the virtual version to avoid a confusing assert in the base class
3060 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3061 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3062
3063 PYPRIVATE;
3064 };
3065
3066 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3067
3068 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3069 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3070 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3071 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3072
3073
3074 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3075 wxListItem item;
3076 item.SetMask( wxLIST_MASK_STATE |
3077 wxLIST_MASK_TEXT |
3078 wxLIST_MASK_IMAGE |
3079 wxLIST_MASK_DATA |
3080 wxLIST_SET_ITEM |
3081 wxLIST_MASK_WIDTH |
3082 wxLIST_MASK_FORMAT
3083 );
3084 if (self->GetColumn(col, item))
3085 return new wxListItem(item);
3086 else
3087 return NULL;
3088 }
3089 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3090 wxListItem* info = new wxListItem;
3091 info->m_itemId = itemId;
3092 info->m_col = col;
3093 info->m_mask = 0xFFFF;
3094 self->GetItem(*info);
3095 return info;
3096 }
3097 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3098 wxPoint pos;
3099 self->GetItemPosition(item, pos);
3100 return pos;
3101 }
3102 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3103 wxRect rect;
3104 self->GetItemRect(item, rect, code);
3105 return rect;
3106 }
3107 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3108 if (!PyCallable_Check(func))
3109 return false;
3110 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3111 }
3112 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3113
3114
3115
3116 return (wxWindow*)self->m_mainWin;
3117
3118 }
3119
3120 #include <wx/treectrl.h>
3121 #include "wx/wxPython/pytree.h"
3122
3123 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3124 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3125 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3126 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3127
3128 static wxTreeItemId wxNullTreeItemId;
3129
3130 // C++ version of Python aware wxTreeCtrl
3131 class wxPyTreeCtrl : public wxTreeCtrl {
3132 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3133 public:
3134 wxPyTreeCtrl() : wxTreeCtrl() {}
3135 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3136 const wxPoint& pos,
3137 const wxSize& size,
3138 long style,
3139 const wxValidator& validator,
3140 const wxString& name) :
3141 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3142
3143 bool Create(wxWindow *parent, wxWindowID id,
3144 const wxPoint& pos,
3145 const wxSize& size,
3146 long style,
3147 const wxValidator& validator,
3148 const wxString& name) {
3149 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3150 }
3151
3152
3153 int OnCompareItems(const wxTreeItemId& item1,
3154 const wxTreeItemId& item2) {
3155 int rval = 0;
3156 bool found;
3157 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3158 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3159 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3160 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3161 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3162 Py_DECREF(o1);
3163 Py_DECREF(o2);
3164 }
3165 wxPyEndBlockThreads(blocked);
3166 if (! found)
3167 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3168 return rval;
3169 }
3170 PYPRIVATE;
3171 };
3172
3173 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3174
3175
3176 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3177 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3178 if (data == NULL) {
3179 data = new wxPyTreeItemData();
3180 data->SetId(item); // set the id
3181 self->SetItemData(item, data);
3182 }
3183 return data;
3184 }
3185 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3186 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3187 if (data == NULL) {
3188 data = new wxPyTreeItemData();
3189 data->SetId(item); // set the id
3190 self->SetItemData(item, data);
3191 }
3192 return data->GetData();
3193 }
3194 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3195 data->SetId(item); // set the id
3196 self->SetItemData(item, data);
3197 }
3198 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3199 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3200 if (data == NULL) {
3201 data = new wxPyTreeItemData(obj);
3202 data->SetId(item); // set the id
3203 self->SetItemData(item, data);
3204 } else
3205 data->SetData(obj);
3206 }
3207 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3208 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3209 PyObject* rval = PyList_New(0);
3210 wxArrayTreeItemIds array;
3211 size_t num, x;
3212 num = self->GetSelections(array);
3213 for (x=0; x < num; x++) {
3214 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3215 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3216 PyList_Append(rval, item);
3217 Py_DECREF(item);
3218 }
3219 wxPyEndBlockThreads(blocked);
3220 return rval;
3221 }
3222 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3223 void* cookie = 0;
3224 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3225 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3226 PyObject* tup = PyTuple_New(2);
3227 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3228 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3229 wxPyEndBlockThreads(blocked);
3230 return tup;
3231 }
3232 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3233 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3234 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3235 PyObject* tup = PyTuple_New(2);
3236 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3237 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3238 wxPyEndBlockThreads(blocked);
3239 return tup;
3240 }
3241 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3242 wxRect rect;
3243 if (self->GetBoundingRect(item, rect, textOnly)) {
3244 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3245 wxRect* r = new wxRect(rect);
3246 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3247 wxPyEndBlockThreads(blocked);
3248 return val;
3249 }
3250 else
3251 RETURN_NONE();
3252 }
3253 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3254
3255 SWIGINTERNINLINE PyObject*
3256 SWIG_From_bool (bool value)
3257 {
3258 return PyBool_FromLong(value ? 1 : 0);
3259 }
3260
3261 // C++ version of Python aware wxControl
3262 class wxPyControl : public wxControl
3263 {
3264 DECLARE_DYNAMIC_CLASS(wxPyControl)
3265 public:
3266 wxPyControl() : wxControl() {}
3267 wxPyControl(wxWindow* parent, const wxWindowID id,
3268 const wxPoint& pos = wxDefaultPosition,
3269 const wxSize& size = wxDefaultSize,
3270 long style = 0,
3271 const wxValidator& validator=wxDefaultValidator,
3272 const wxString& name = wxPyControlNameStr)
3273 : wxControl(parent, id, pos, size, style, validator, name) {}
3274
3275
3276 bool DoEraseBackground(wxDC* dc) {
3277 #ifdef __WXMSW__
3278 return wxWindow::DoEraseBackground(dc->GetHDC());
3279 #else
3280 dc->SetBackground(wxBrush(GetBackgroundColour()));
3281 dc->Clear();
3282 return true;
3283 #endif
3284 }
3285
3286 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3287 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3288 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3289 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3290
3291 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3294
3295 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3296 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3297
3298 DEC_PYCALLBACK__(InitDialog);
3299 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3300 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3301 DEC_PYCALLBACK_BOOL_(Validate);
3302
3303 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3304 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3305 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3306
3307 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3308 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3309
3310 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3311 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3312
3313 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3314
3315 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3316
3317 PYPRIVATE;
3318 };
3319
3320 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3321
3322 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3323 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3324 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3325 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3326
3327 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3328 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3329 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3330
3331 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3332 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3333
3334 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3335 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3336 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3337 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3338
3339 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3340 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3341 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3342
3343 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3344 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3345
3346 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3347 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3348
3349 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3350
3351 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3352
3353
3354
3355 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3356
3357 #include <wx/generic/dragimgg.h>
3358
3359 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3360 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3361 wxDateTime rv;
3362 self->GetRange(&rv, NULL);
3363 return rv;
3364 }
3365 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3366 wxDateTime rv;
3367 self->GetRange(NULL, &rv);
3368 return rv;
3369 }
3370 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3371 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3372 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3373 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3374 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3375 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3376 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3377 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3378 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3379 #ifdef __cplusplus
3380 extern "C" {
3381 #endif
3382 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3383 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3384 return 1;
3385 }
3386
3387
3388 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3389 PyObject *pyobj = 0;
3390
3391 {
3392 #if wxUSE_UNICODE
3393 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3394 #else
3395 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3396 #endif
3397 }
3398 return pyobj;
3399 }
3400
3401
3402 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3403 PyObject *resultobj = 0;
3404 wxWindow *arg1 = (wxWindow *) 0 ;
3405 int arg2 = (int) -1 ;
3406 wxString const &arg3_defvalue = wxPyEmptyString ;
3407 wxString *arg3 = (wxString *) &arg3_defvalue ;
3408 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3409 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3410 wxSize const &arg5_defvalue = wxDefaultSize ;
3411 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3412 long arg6 = (long) 0 ;
3413 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3414 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3415 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3416 wxString *arg8 = (wxString *) &arg8_defvalue ;
3417 wxButton *result = 0 ;
3418 void *argp1 = 0 ;
3419 int res1 = 0 ;
3420 int val2 ;
3421 int ecode2 = 0 ;
3422 bool temp3 = false ;
3423 wxPoint temp4 ;
3424 wxSize temp5 ;
3425 long val6 ;
3426 int ecode6 = 0 ;
3427 void *argp7 = 0 ;
3428 int res7 = 0 ;
3429 bool temp8 = false ;
3430 PyObject * obj0 = 0 ;
3431 PyObject * obj1 = 0 ;
3432 PyObject * obj2 = 0 ;
3433 PyObject * obj3 = 0 ;
3434 PyObject * obj4 = 0 ;
3435 PyObject * obj5 = 0 ;
3436 PyObject * obj6 = 0 ;
3437 PyObject * obj7 = 0 ;
3438 char * kwnames[] = {
3439 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3440 };
3441
3442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3444 if (!SWIG_IsOK(res1)) {
3445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3446 }
3447 arg1 = reinterpret_cast< wxWindow * >(argp1);
3448 if (obj1) {
3449 ecode2 = SWIG_AsVal_int(obj1, &val2);
3450 if (!SWIG_IsOK(ecode2)) {
3451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3452 }
3453 arg2 = static_cast< int >(val2);
3454 }
3455 if (obj2) {
3456 {
3457 arg3 = wxString_in_helper(obj2);
3458 if (arg3 == NULL) SWIG_fail;
3459 temp3 = true;
3460 }
3461 }
3462 if (obj3) {
3463 {
3464 arg4 = &temp4;
3465 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3466 }
3467 }
3468 if (obj4) {
3469 {
3470 arg5 = &temp5;
3471 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3472 }
3473 }
3474 if (obj5) {
3475 ecode6 = SWIG_AsVal_long(obj5, &val6);
3476 if (!SWIG_IsOK(ecode6)) {
3477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3478 }
3479 arg6 = static_cast< long >(val6);
3480 }
3481 if (obj6) {
3482 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3483 if (!SWIG_IsOK(res7)) {
3484 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3485 }
3486 if (!argp7) {
3487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3488 }
3489 arg7 = reinterpret_cast< wxValidator * >(argp7);
3490 }
3491 if (obj7) {
3492 {
3493 arg8 = wxString_in_helper(obj7);
3494 if (arg8 == NULL) SWIG_fail;
3495 temp8 = true;
3496 }
3497 }
3498 {
3499 if (!wxPyCheckForApp()) SWIG_fail;
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3506 {
3507 if (temp3)
3508 delete arg3;
3509 }
3510 {
3511 if (temp8)
3512 delete arg8;
3513 }
3514 return resultobj;
3515 fail:
3516 {
3517 if (temp3)
3518 delete arg3;
3519 }
3520 {
3521 if (temp8)
3522 delete arg8;
3523 }
3524 return NULL;
3525 }
3526
3527
3528 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3529 PyObject *resultobj = 0;
3530 wxButton *result = 0 ;
3531
3532 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3533 {
3534 if (!wxPyCheckForApp()) SWIG_fail;
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 result = (wxButton *)new wxButton();
3537 wxPyEndAllowThreads(__tstate);
3538 if (PyErr_Occurred()) SWIG_fail;
3539 }
3540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3541 return resultobj;
3542 fail:
3543 return NULL;
3544 }
3545
3546
3547 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3548 PyObject *resultobj = 0;
3549 wxButton *arg1 = (wxButton *) 0 ;
3550 wxWindow *arg2 = (wxWindow *) 0 ;
3551 int arg3 = (int) -1 ;
3552 wxString const &arg4_defvalue = wxPyEmptyString ;
3553 wxString *arg4 = (wxString *) &arg4_defvalue ;
3554 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3555 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3556 wxSize const &arg6_defvalue = wxDefaultSize ;
3557 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3558 long arg7 = (long) 0 ;
3559 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3560 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3561 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3562 wxString *arg9 = (wxString *) &arg9_defvalue ;
3563 bool result;
3564 void *argp1 = 0 ;
3565 int res1 = 0 ;
3566 void *argp2 = 0 ;
3567 int res2 = 0 ;
3568 int val3 ;
3569 int ecode3 = 0 ;
3570 bool temp4 = false ;
3571 wxPoint temp5 ;
3572 wxSize temp6 ;
3573 long val7 ;
3574 int ecode7 = 0 ;
3575 void *argp8 = 0 ;
3576 int res8 = 0 ;
3577 bool temp9 = false ;
3578 PyObject * obj0 = 0 ;
3579 PyObject * obj1 = 0 ;
3580 PyObject * obj2 = 0 ;
3581 PyObject * obj3 = 0 ;
3582 PyObject * obj4 = 0 ;
3583 PyObject * obj5 = 0 ;
3584 PyObject * obj6 = 0 ;
3585 PyObject * obj7 = 0 ;
3586 PyObject * obj8 = 0 ;
3587 char * kwnames[] = {
3588 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3589 };
3590
3591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3593 if (!SWIG_IsOK(res1)) {
3594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3595 }
3596 arg1 = reinterpret_cast< wxButton * >(argp1);
3597 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3598 if (!SWIG_IsOK(res2)) {
3599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3600 }
3601 arg2 = reinterpret_cast< wxWindow * >(argp2);
3602 if (obj2) {
3603 ecode3 = SWIG_AsVal_int(obj2, &val3);
3604 if (!SWIG_IsOK(ecode3)) {
3605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3606 }
3607 arg3 = static_cast< int >(val3);
3608 }
3609 if (obj3) {
3610 {
3611 arg4 = wxString_in_helper(obj3);
3612 if (arg4 == NULL) SWIG_fail;
3613 temp4 = true;
3614 }
3615 }
3616 if (obj4) {
3617 {
3618 arg5 = &temp5;
3619 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3620 }
3621 }
3622 if (obj5) {
3623 {
3624 arg6 = &temp6;
3625 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3626 }
3627 }
3628 if (obj6) {
3629 ecode7 = SWIG_AsVal_long(obj6, &val7);
3630 if (!SWIG_IsOK(ecode7)) {
3631 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3632 }
3633 arg7 = static_cast< long >(val7);
3634 }
3635 if (obj7) {
3636 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3637 if (!SWIG_IsOK(res8)) {
3638 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3639 }
3640 if (!argp8) {
3641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3642 }
3643 arg8 = reinterpret_cast< wxValidator * >(argp8);
3644 }
3645 if (obj8) {
3646 {
3647 arg9 = wxString_in_helper(obj8);
3648 if (arg9 == NULL) SWIG_fail;
3649 temp9 = true;
3650 }
3651 }
3652 {
3653 PyThreadState* __tstate = wxPyBeginAllowThreads();
3654 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3655 wxPyEndAllowThreads(__tstate);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 {
3659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3660 }
3661 {
3662 if (temp4)
3663 delete arg4;
3664 }
3665 {
3666 if (temp9)
3667 delete arg9;
3668 }
3669 return resultobj;
3670 fail:
3671 {
3672 if (temp4)
3673 delete arg4;
3674 }
3675 {
3676 if (temp9)
3677 delete arg9;
3678 }
3679 return NULL;
3680 }
3681
3682
3683 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3684 PyObject *resultobj = 0;
3685 wxButton *arg1 = (wxButton *) 0 ;
3686 void *argp1 = 0 ;
3687 int res1 = 0 ;
3688 PyObject *swig_obj[1] ;
3689
3690 if (!args) SWIG_fail;
3691 swig_obj[0] = args;
3692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3693 if (!SWIG_IsOK(res1)) {
3694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3695 }
3696 arg1 = reinterpret_cast< wxButton * >(argp1);
3697 {
3698 PyThreadState* __tstate = wxPyBeginAllowThreads();
3699 (arg1)->SetDefault();
3700 wxPyEndAllowThreads(__tstate);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 }
3703 resultobj = SWIG_Py_Void();
3704 return resultobj;
3705 fail:
3706 return NULL;
3707 }
3708
3709
3710 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3711 PyObject *resultobj = 0;
3712 wxSize result;
3713
3714 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3715 {
3716 PyThreadState* __tstate = wxPyBeginAllowThreads();
3717 result = wxButton::GetDefaultSize();
3718 wxPyEndAllowThreads(__tstate);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3722 return resultobj;
3723 fail:
3724 return NULL;
3725 }
3726
3727
3728 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3729 PyObject *resultobj = 0;
3730 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3731 SwigValueWrapper<wxVisualAttributes > result;
3732 int val1 ;
3733 int ecode1 = 0 ;
3734 PyObject * obj0 = 0 ;
3735 char * kwnames[] = {
3736 (char *) "variant", NULL
3737 };
3738
3739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3740 if (obj0) {
3741 ecode1 = SWIG_AsVal_int(obj0, &val1);
3742 if (!SWIG_IsOK(ecode1)) {
3743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3744 }
3745 arg1 = static_cast< wxWindowVariant >(val1);
3746 }
3747 {
3748 if (!wxPyCheckForApp()) SWIG_fail;
3749 PyThreadState* __tstate = wxPyBeginAllowThreads();
3750 result = wxButton::GetClassDefaultAttributes(arg1);
3751 wxPyEndAllowThreads(__tstate);
3752 if (PyErr_Occurred()) SWIG_fail;
3753 }
3754 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3755 return resultobj;
3756 fail:
3757 return NULL;
3758 }
3759
3760
3761 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3762 PyObject *obj;
3763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3764 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3765 return SWIG_Py_Void();
3766 }
3767
3768 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3769 return SWIG_Python_InitShadowInstance(args);
3770 }
3771
3772 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3773 PyObject *resultobj = 0;
3774 wxWindow *arg1 = (wxWindow *) 0 ;
3775 int arg2 = (int) -1 ;
3776 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3777 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3778 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3779 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3780 wxSize const &arg5_defvalue = wxDefaultSize ;
3781 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3782 long arg6 = (long) wxBU_AUTODRAW ;
3783 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3784 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3785 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3786 wxString *arg8 = (wxString *) &arg8_defvalue ;
3787 wxBitmapButton *result = 0 ;
3788 void *argp1 = 0 ;
3789 int res1 = 0 ;
3790 int val2 ;
3791 int ecode2 = 0 ;
3792 void *argp3 = 0 ;
3793 int res3 = 0 ;
3794 wxPoint temp4 ;
3795 wxSize temp5 ;
3796 long val6 ;
3797 int ecode6 = 0 ;
3798 void *argp7 = 0 ;
3799 int res7 = 0 ;
3800 bool temp8 = false ;
3801 PyObject * obj0 = 0 ;
3802 PyObject * obj1 = 0 ;
3803 PyObject * obj2 = 0 ;
3804 PyObject * obj3 = 0 ;
3805 PyObject * obj4 = 0 ;
3806 PyObject * obj5 = 0 ;
3807 PyObject * obj6 = 0 ;
3808 PyObject * obj7 = 0 ;
3809 char * kwnames[] = {
3810 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3811 };
3812
3813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3815 if (!SWIG_IsOK(res1)) {
3816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3817 }
3818 arg1 = reinterpret_cast< wxWindow * >(argp1);
3819 if (obj1) {
3820 ecode2 = SWIG_AsVal_int(obj1, &val2);
3821 if (!SWIG_IsOK(ecode2)) {
3822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3823 }
3824 arg2 = static_cast< int >(val2);
3825 }
3826 if (obj2) {
3827 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3828 if (!SWIG_IsOK(res3)) {
3829 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3830 }
3831 if (!argp3) {
3832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3833 }
3834 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3835 }
3836 if (obj3) {
3837 {
3838 arg4 = &temp4;
3839 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3840 }
3841 }
3842 if (obj4) {
3843 {
3844 arg5 = &temp5;
3845 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3846 }
3847 }
3848 if (obj5) {
3849 ecode6 = SWIG_AsVal_long(obj5, &val6);
3850 if (!SWIG_IsOK(ecode6)) {
3851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3852 }
3853 arg6 = static_cast< long >(val6);
3854 }
3855 if (obj6) {
3856 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3857 if (!SWIG_IsOK(res7)) {
3858 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3859 }
3860 if (!argp7) {
3861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3862 }
3863 arg7 = reinterpret_cast< wxValidator * >(argp7);
3864 }
3865 if (obj7) {
3866 {
3867 arg8 = wxString_in_helper(obj7);
3868 if (arg8 == NULL) SWIG_fail;
3869 temp8 = true;
3870 }
3871 }
3872 {
3873 if (!wxPyCheckForApp()) SWIG_fail;
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3880 {
3881 if (temp8)
3882 delete arg8;
3883 }
3884 return resultobj;
3885 fail:
3886 {
3887 if (temp8)
3888 delete arg8;
3889 }
3890 return NULL;
3891 }
3892
3893
3894 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3895 PyObject *resultobj = 0;
3896 wxBitmapButton *result = 0 ;
3897
3898 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3899 {
3900 if (!wxPyCheckForApp()) SWIG_fail;
3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
3902 result = (wxBitmapButton *)new wxBitmapButton();
3903 wxPyEndAllowThreads(__tstate);
3904 if (PyErr_Occurred()) SWIG_fail;
3905 }
3906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3907 return resultobj;
3908 fail:
3909 return NULL;
3910 }
3911
3912
3913 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3914 PyObject *resultobj = 0;
3915 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3916 wxWindow *arg2 = (wxWindow *) 0 ;
3917 int arg3 = (int) -1 ;
3918 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3919 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3920 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3921 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3922 wxSize const &arg6_defvalue = wxDefaultSize ;
3923 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3924 long arg7 = (long) wxBU_AUTODRAW ;
3925 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3926 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3927 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3928 wxString *arg9 = (wxString *) &arg9_defvalue ;
3929 bool result;
3930 void *argp1 = 0 ;
3931 int res1 = 0 ;
3932 void *argp2 = 0 ;
3933 int res2 = 0 ;
3934 int val3 ;
3935 int ecode3 = 0 ;
3936 void *argp4 = 0 ;
3937 int res4 = 0 ;
3938 wxPoint temp5 ;
3939 wxSize temp6 ;
3940 long val7 ;
3941 int ecode7 = 0 ;
3942 void *argp8 = 0 ;
3943 int res8 = 0 ;
3944 bool temp9 = false ;
3945 PyObject * obj0 = 0 ;
3946 PyObject * obj1 = 0 ;
3947 PyObject * obj2 = 0 ;
3948 PyObject * obj3 = 0 ;
3949 PyObject * obj4 = 0 ;
3950 PyObject * obj5 = 0 ;
3951 PyObject * obj6 = 0 ;
3952 PyObject * obj7 = 0 ;
3953 PyObject * obj8 = 0 ;
3954 char * kwnames[] = {
3955 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3956 };
3957
3958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3960 if (!SWIG_IsOK(res1)) {
3961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3962 }
3963 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3964 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3965 if (!SWIG_IsOK(res2)) {
3966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3967 }
3968 arg2 = reinterpret_cast< wxWindow * >(argp2);
3969 if (obj2) {
3970 ecode3 = SWIG_AsVal_int(obj2, &val3);
3971 if (!SWIG_IsOK(ecode3)) {
3972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3973 }
3974 arg3 = static_cast< int >(val3);
3975 }
3976 if (obj3) {
3977 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3978 if (!SWIG_IsOK(res4)) {
3979 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3980 }
3981 if (!argp4) {
3982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3983 }
3984 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3985 }
3986 if (obj4) {
3987 {
3988 arg5 = &temp5;
3989 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3990 }
3991 }
3992 if (obj5) {
3993 {
3994 arg6 = &temp6;
3995 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3996 }
3997 }
3998 if (obj6) {
3999 ecode7 = SWIG_AsVal_long(obj6, &val7);
4000 if (!SWIG_IsOK(ecode7)) {
4001 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4002 }
4003 arg7 = static_cast< long >(val7);
4004 }
4005 if (obj7) {
4006 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4007 if (!SWIG_IsOK(res8)) {
4008 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4009 }
4010 if (!argp8) {
4011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4012 }
4013 arg8 = reinterpret_cast< wxValidator * >(argp8);
4014 }
4015 if (obj8) {
4016 {
4017 arg9 = wxString_in_helper(obj8);
4018 if (arg9 == NULL) SWIG_fail;
4019 temp9 = true;
4020 }
4021 }
4022 {
4023 PyThreadState* __tstate = wxPyBeginAllowThreads();
4024 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4025 wxPyEndAllowThreads(__tstate);
4026 if (PyErr_Occurred()) SWIG_fail;
4027 }
4028 {
4029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4030 }
4031 {
4032 if (temp9)
4033 delete arg9;
4034 }
4035 return resultobj;
4036 fail:
4037 {
4038 if (temp9)
4039 delete arg9;
4040 }
4041 return NULL;
4042 }
4043
4044
4045 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4046 PyObject *resultobj = 0;
4047 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4048 wxBitmap result;
4049 void *argp1 = 0 ;
4050 int res1 = 0 ;
4051 PyObject *swig_obj[1] ;
4052
4053 if (!args) SWIG_fail;
4054 swig_obj[0] = args;
4055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4056 if (!SWIG_IsOK(res1)) {
4057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4058 }
4059 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 result = (arg1)->GetBitmapLabel();
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4074 PyObject *resultobj = 0;
4075 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4076 wxBitmap result;
4077 void *argp1 = 0 ;
4078 int res1 = 0 ;
4079 PyObject *swig_obj[1] ;
4080
4081 if (!args) SWIG_fail;
4082 swig_obj[0] = args;
4083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4084 if (!SWIG_IsOK(res1)) {
4085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4086 }
4087 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4088 {
4089 PyThreadState* __tstate = wxPyBeginAllowThreads();
4090 result = (arg1)->GetBitmapDisabled();
4091 wxPyEndAllowThreads(__tstate);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
4094 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4095 return resultobj;
4096 fail:
4097 return NULL;
4098 }
4099
4100
4101 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4102 PyObject *resultobj = 0;
4103 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4104 wxBitmap result;
4105 void *argp1 = 0 ;
4106 int res1 = 0 ;
4107 PyObject *swig_obj[1] ;
4108
4109 if (!args) SWIG_fail;
4110 swig_obj[0] = args;
4111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4112 if (!SWIG_IsOK(res1)) {
4113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4114 }
4115 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
4118 result = (arg1)->GetBitmapFocus();
4119 wxPyEndAllowThreads(__tstate);
4120 if (PyErr_Occurred()) SWIG_fail;
4121 }
4122 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4123 return resultobj;
4124 fail:
4125 return NULL;
4126 }
4127
4128
4129 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4130 PyObject *resultobj = 0;
4131 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4132 wxBitmap result;
4133 void *argp1 = 0 ;
4134 int res1 = 0 ;
4135 PyObject *swig_obj[1] ;
4136
4137 if (!args) SWIG_fail;
4138 swig_obj[0] = args;
4139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4140 if (!SWIG_IsOK(res1)) {
4141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4142 }
4143 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 result = (arg1)->GetBitmapSelected();
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4158 PyObject *resultobj = 0;
4159 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4160 wxBitmap result;
4161 void *argp1 = 0 ;
4162 int res1 = 0 ;
4163 PyObject *swig_obj[1] ;
4164
4165 if (!args) SWIG_fail;
4166 swig_obj[0] = args;
4167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4168 if (!SWIG_IsOK(res1)) {
4169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4170 }
4171 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4172 {
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 result = (arg1)->GetBitmapHover();
4175 wxPyEndAllowThreads(__tstate);
4176 if (PyErr_Occurred()) SWIG_fail;
4177 }
4178 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4179 return resultobj;
4180 fail:
4181 return NULL;
4182 }
4183
4184
4185 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4186 PyObject *resultobj = 0;
4187 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4188 wxBitmap *arg2 = 0 ;
4189 void *argp1 = 0 ;
4190 int res1 = 0 ;
4191 void *argp2 = 0 ;
4192 int res2 = 0 ;
4193 PyObject * obj0 = 0 ;
4194 PyObject * obj1 = 0 ;
4195 char * kwnames[] = {
4196 (char *) "self",(char *) "bitmap", NULL
4197 };
4198
4199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4201 if (!SWIG_IsOK(res1)) {
4202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4203 }
4204 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4206 if (!SWIG_IsOK(res2)) {
4207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4208 }
4209 if (!argp2) {
4210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4211 }
4212 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) SWIG_fail;
4218 }
4219 resultobj = SWIG_Py_Void();
4220 return resultobj;
4221 fail:
4222 return NULL;
4223 }
4224
4225
4226 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4227 PyObject *resultobj = 0;
4228 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4229 wxBitmap *arg2 = 0 ;
4230 void *argp1 = 0 ;
4231 int res1 = 0 ;
4232 void *argp2 = 0 ;
4233 int res2 = 0 ;
4234 PyObject * obj0 = 0 ;
4235 PyObject * obj1 = 0 ;
4236 char * kwnames[] = {
4237 (char *) "self",(char *) "bitmap", NULL
4238 };
4239
4240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4242 if (!SWIG_IsOK(res1)) {
4243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4244 }
4245 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4247 if (!SWIG_IsOK(res2)) {
4248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4249 }
4250 if (!argp2) {
4251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4252 }
4253 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4254 {
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4257 wxPyEndAllowThreads(__tstate);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 resultobj = SWIG_Py_Void();
4261 return resultobj;
4262 fail:
4263 return NULL;
4264 }
4265
4266
4267 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4268 PyObject *resultobj = 0;
4269 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4270 wxBitmap *arg2 = 0 ;
4271 void *argp1 = 0 ;
4272 int res1 = 0 ;
4273 void *argp2 = 0 ;
4274 int res2 = 0 ;
4275 PyObject * obj0 = 0 ;
4276 PyObject * obj1 = 0 ;
4277 char * kwnames[] = {
4278 (char *) "self",(char *) "bitmap", NULL
4279 };
4280
4281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4283 if (!SWIG_IsOK(res1)) {
4284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4285 }
4286 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4288 if (!SWIG_IsOK(res2)) {
4289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4290 }
4291 if (!argp2) {
4292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4293 }
4294 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = SWIG_Py_Void();
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4309 PyObject *resultobj = 0;
4310 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4311 wxBitmap *arg2 = 0 ;
4312 void *argp1 = 0 ;
4313 int res1 = 0 ;
4314 void *argp2 = 0 ;
4315 int res2 = 0 ;
4316 PyObject * obj0 = 0 ;
4317 PyObject * obj1 = 0 ;
4318 char * kwnames[] = {
4319 (char *) "self",(char *) "bitmap", NULL
4320 };
4321
4322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4324 if (!SWIG_IsOK(res1)) {
4325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4326 }
4327 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4329 if (!SWIG_IsOK(res2)) {
4330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4331 }
4332 if (!argp2) {
4333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4334 }
4335 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4336 {
4337 PyThreadState* __tstate = wxPyBeginAllowThreads();
4338 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4339 wxPyEndAllowThreads(__tstate);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
4342 resultobj = SWIG_Py_Void();
4343 return resultobj;
4344 fail:
4345 return NULL;
4346 }
4347
4348
4349 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj = 0;
4351 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4352 wxBitmap *arg2 = 0 ;
4353 void *argp1 = 0 ;
4354 int res1 = 0 ;
4355 void *argp2 = 0 ;
4356 int res2 = 0 ;
4357 PyObject * obj0 = 0 ;
4358 PyObject * obj1 = 0 ;
4359 char * kwnames[] = {
4360 (char *) "self",(char *) "hover", NULL
4361 };
4362
4363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4365 if (!SWIG_IsOK(res1)) {
4366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4367 }
4368 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4369 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4370 if (!SWIG_IsOK(res2)) {
4371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4372 }
4373 if (!argp2) {
4374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4375 }
4376 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4377 {
4378 PyThreadState* __tstate = wxPyBeginAllowThreads();
4379 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4380 wxPyEndAllowThreads(__tstate);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 }
4383 resultobj = SWIG_Py_Void();
4384 return resultobj;
4385 fail:
4386 return NULL;
4387 }
4388
4389
4390 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj = 0;
4392 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4393 int arg2 ;
4394 int arg3 ;
4395 void *argp1 = 0 ;
4396 int res1 = 0 ;
4397 int val2 ;
4398 int ecode2 = 0 ;
4399 int val3 ;
4400 int ecode3 = 0 ;
4401 PyObject * obj0 = 0 ;
4402 PyObject * obj1 = 0 ;
4403 PyObject * obj2 = 0 ;
4404 char * kwnames[] = {
4405 (char *) "self",(char *) "x",(char *) "y", NULL
4406 };
4407
4408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4410 if (!SWIG_IsOK(res1)) {
4411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4412 }
4413 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4414 ecode2 = SWIG_AsVal_int(obj1, &val2);
4415 if (!SWIG_IsOK(ecode2)) {
4416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4417 }
4418 arg2 = static_cast< int >(val2);
4419 ecode3 = SWIG_AsVal_int(obj2, &val3);
4420 if (!SWIG_IsOK(ecode3)) {
4421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4422 }
4423 arg3 = static_cast< int >(val3);
4424 {
4425 PyThreadState* __tstate = wxPyBeginAllowThreads();
4426 (arg1)->SetMargins(arg2,arg3);
4427 wxPyEndAllowThreads(__tstate);
4428 if (PyErr_Occurred()) SWIG_fail;
4429 }
4430 resultobj = SWIG_Py_Void();
4431 return resultobj;
4432 fail:
4433 return NULL;
4434 }
4435
4436
4437 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4438 PyObject *resultobj = 0;
4439 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4440 int result;
4441 void *argp1 = 0 ;
4442 int res1 = 0 ;
4443 PyObject *swig_obj[1] ;
4444
4445 if (!args) SWIG_fail;
4446 swig_obj[0] = args;
4447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4448 if (!SWIG_IsOK(res1)) {
4449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4450 }
4451 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4452 {
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4455 wxPyEndAllowThreads(__tstate);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 resultobj = SWIG_From_int(static_cast< int >(result));
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4466 PyObject *resultobj = 0;
4467 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4468 int result;
4469 void *argp1 = 0 ;
4470 int res1 = 0 ;
4471 PyObject *swig_obj[1] ;
4472
4473 if (!args) SWIG_fail;
4474 swig_obj[0] = args;
4475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4476 if (!SWIG_IsOK(res1)) {
4477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4478 }
4479 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4480 {
4481 PyThreadState* __tstate = wxPyBeginAllowThreads();
4482 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 resultobj = SWIG_From_int(static_cast< int >(result));
4487 return resultobj;
4488 fail:
4489 return NULL;
4490 }
4491
4492
4493 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4494 PyObject *obj;
4495 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4496 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4497 return SWIG_Py_Void();
4498 }
4499
4500 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4501 return SWIG_Python_InitShadowInstance(args);
4502 }
4503
4504 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4505 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4506 return 1;
4507 }
4508
4509
4510 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4511 PyObject *pyobj = 0;
4512
4513 {
4514 #if wxUSE_UNICODE
4515 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4516 #else
4517 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4518 #endif
4519 }
4520 return pyobj;
4521 }
4522
4523
4524 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4525 PyObject *resultobj = 0;
4526 wxWindow *arg1 = (wxWindow *) 0 ;
4527 int arg2 = (int) -1 ;
4528 wxString const &arg3_defvalue = wxPyEmptyString ;
4529 wxString *arg3 = (wxString *) &arg3_defvalue ;
4530 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4531 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4532 wxSize const &arg5_defvalue = wxDefaultSize ;
4533 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4534 long arg6 = (long) 0 ;
4535 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4536 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4537 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4538 wxString *arg8 = (wxString *) &arg8_defvalue ;
4539 wxCheckBox *result = 0 ;
4540 void *argp1 = 0 ;
4541 int res1 = 0 ;
4542 int val2 ;
4543 int ecode2 = 0 ;
4544 bool temp3 = false ;
4545 wxPoint temp4 ;
4546 wxSize temp5 ;
4547 long val6 ;
4548 int ecode6 = 0 ;
4549 void *argp7 = 0 ;
4550 int res7 = 0 ;
4551 bool temp8 = false ;
4552 PyObject * obj0 = 0 ;
4553 PyObject * obj1 = 0 ;
4554 PyObject * obj2 = 0 ;
4555 PyObject * obj3 = 0 ;
4556 PyObject * obj4 = 0 ;
4557 PyObject * obj5 = 0 ;
4558 PyObject * obj6 = 0 ;
4559 PyObject * obj7 = 0 ;
4560 char * kwnames[] = {
4561 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4562 };
4563
4564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4566 if (!SWIG_IsOK(res1)) {
4567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4568 }
4569 arg1 = reinterpret_cast< wxWindow * >(argp1);
4570 if (obj1) {
4571 ecode2 = SWIG_AsVal_int(obj1, &val2);
4572 if (!SWIG_IsOK(ecode2)) {
4573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4574 }
4575 arg2 = static_cast< int >(val2);
4576 }
4577 if (obj2) {
4578 {
4579 arg3 = wxString_in_helper(obj2);
4580 if (arg3 == NULL) SWIG_fail;
4581 temp3 = true;
4582 }
4583 }
4584 if (obj3) {
4585 {
4586 arg4 = &temp4;
4587 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4588 }
4589 }
4590 if (obj4) {
4591 {
4592 arg5 = &temp5;
4593 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4594 }
4595 }
4596 if (obj5) {
4597 ecode6 = SWIG_AsVal_long(obj5, &val6);
4598 if (!SWIG_IsOK(ecode6)) {
4599 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4600 }
4601 arg6 = static_cast< long >(val6);
4602 }
4603 if (obj6) {
4604 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4605 if (!SWIG_IsOK(res7)) {
4606 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4607 }
4608 if (!argp7) {
4609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4610 }
4611 arg7 = reinterpret_cast< wxValidator * >(argp7);
4612 }
4613 if (obj7) {
4614 {
4615 arg8 = wxString_in_helper(obj7);
4616 if (arg8 == NULL) SWIG_fail;
4617 temp8 = true;
4618 }
4619 }
4620 {
4621 if (!wxPyCheckForApp()) SWIG_fail;
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4628 {
4629 if (temp3)
4630 delete arg3;
4631 }
4632 {
4633 if (temp8)
4634 delete arg8;
4635 }
4636 return resultobj;
4637 fail:
4638 {
4639 if (temp3)
4640 delete arg3;
4641 }
4642 {
4643 if (temp8)
4644 delete arg8;
4645 }
4646 return NULL;
4647 }
4648
4649
4650 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4651 PyObject *resultobj = 0;
4652 wxCheckBox *result = 0 ;
4653
4654 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4655 {
4656 if (!wxPyCheckForApp()) SWIG_fail;
4657 PyThreadState* __tstate = wxPyBeginAllowThreads();
4658 result = (wxCheckBox *)new wxCheckBox();
4659 wxPyEndAllowThreads(__tstate);
4660 if (PyErr_Occurred()) SWIG_fail;
4661 }
4662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4663 return resultobj;
4664 fail:
4665 return NULL;
4666 }
4667
4668
4669 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4670 PyObject *resultobj = 0;
4671 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4672 wxWindow *arg2 = (wxWindow *) 0 ;
4673 int arg3 = (int) -1 ;
4674 wxString const &arg4_defvalue = wxPyEmptyString ;
4675 wxString *arg4 = (wxString *) &arg4_defvalue ;
4676 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4677 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4678 wxSize const &arg6_defvalue = wxDefaultSize ;
4679 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4680 long arg7 = (long) 0 ;
4681 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4682 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4683 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4684 wxString *arg9 = (wxString *) &arg9_defvalue ;
4685 bool result;
4686 void *argp1 = 0 ;
4687 int res1 = 0 ;
4688 void *argp2 = 0 ;
4689 int res2 = 0 ;
4690 int val3 ;
4691 int ecode3 = 0 ;
4692 bool temp4 = false ;
4693 wxPoint temp5 ;
4694 wxSize temp6 ;
4695 long val7 ;
4696 int ecode7 = 0 ;
4697 void *argp8 = 0 ;
4698 int res8 = 0 ;
4699 bool temp9 = false ;
4700 PyObject * obj0 = 0 ;
4701 PyObject * obj1 = 0 ;
4702 PyObject * obj2 = 0 ;
4703 PyObject * obj3 = 0 ;
4704 PyObject * obj4 = 0 ;
4705 PyObject * obj5 = 0 ;
4706 PyObject * obj6 = 0 ;
4707 PyObject * obj7 = 0 ;
4708 PyObject * obj8 = 0 ;
4709 char * kwnames[] = {
4710 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4711 };
4712
4713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4715 if (!SWIG_IsOK(res1)) {
4716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4717 }
4718 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4719 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4720 if (!SWIG_IsOK(res2)) {
4721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4722 }
4723 arg2 = reinterpret_cast< wxWindow * >(argp2);
4724 if (obj2) {
4725 ecode3 = SWIG_AsVal_int(obj2, &val3);
4726 if (!SWIG_IsOK(ecode3)) {
4727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4728 }
4729 arg3 = static_cast< int >(val3);
4730 }
4731 if (obj3) {
4732 {
4733 arg4 = wxString_in_helper(obj3);
4734 if (arg4 == NULL) SWIG_fail;
4735 temp4 = true;
4736 }
4737 }
4738 if (obj4) {
4739 {
4740 arg5 = &temp5;
4741 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4742 }
4743 }
4744 if (obj5) {
4745 {
4746 arg6 = &temp6;
4747 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4748 }
4749 }
4750 if (obj6) {
4751 ecode7 = SWIG_AsVal_long(obj6, &val7);
4752 if (!SWIG_IsOK(ecode7)) {
4753 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4754 }
4755 arg7 = static_cast< long >(val7);
4756 }
4757 if (obj7) {
4758 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4759 if (!SWIG_IsOK(res8)) {
4760 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4761 }
4762 if (!argp8) {
4763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4764 }
4765 arg8 = reinterpret_cast< wxValidator * >(argp8);
4766 }
4767 if (obj8) {
4768 {
4769 arg9 = wxString_in_helper(obj8);
4770 if (arg9 == NULL) SWIG_fail;
4771 temp9 = true;
4772 }
4773 }
4774 {
4775 PyThreadState* __tstate = wxPyBeginAllowThreads();
4776 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 {
4781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4782 }
4783 {
4784 if (temp4)
4785 delete arg4;
4786 }
4787 {
4788 if (temp9)
4789 delete arg9;
4790 }
4791 return resultobj;
4792 fail:
4793 {
4794 if (temp4)
4795 delete arg4;
4796 }
4797 {
4798 if (temp9)
4799 delete arg9;
4800 }
4801 return NULL;
4802 }
4803
4804
4805 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4806 PyObject *resultobj = 0;
4807 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4808 bool result;
4809 void *argp1 = 0 ;
4810 int res1 = 0 ;
4811 PyObject *swig_obj[1] ;
4812
4813 if (!args) SWIG_fail;
4814 swig_obj[0] = args;
4815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4816 if (!SWIG_IsOK(res1)) {
4817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4818 }
4819 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (bool)(arg1)->GetValue();
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 {
4827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4828 }
4829 return resultobj;
4830 fail:
4831 return NULL;
4832 }
4833
4834
4835 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4836 PyObject *resultobj = 0;
4837 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4838 bool result;
4839 void *argp1 = 0 ;
4840 int res1 = 0 ;
4841 PyObject *swig_obj[1] ;
4842
4843 if (!args) SWIG_fail;
4844 swig_obj[0] = args;
4845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4848 }
4849 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (bool)(arg1)->IsChecked();
4853 wxPyEndAllowThreads(__tstate);
4854 if (PyErr_Occurred()) SWIG_fail;
4855 }
4856 {
4857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4858 }
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj = 0;
4867 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4868 bool arg2 ;
4869 void *argp1 = 0 ;
4870 int res1 = 0 ;
4871 bool val2 ;
4872 int ecode2 = 0 ;
4873 PyObject * obj0 = 0 ;
4874 PyObject * obj1 = 0 ;
4875 char * kwnames[] = {
4876 (char *) "self",(char *) "state", NULL
4877 };
4878
4879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4881 if (!SWIG_IsOK(res1)) {
4882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4883 }
4884 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4885 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4886 if (!SWIG_IsOK(ecode2)) {
4887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4888 }
4889 arg2 = static_cast< bool >(val2);
4890 {
4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
4892 (arg1)->SetValue(arg2);
4893 wxPyEndAllowThreads(__tstate);
4894 if (PyErr_Occurred()) SWIG_fail;
4895 }
4896 resultobj = SWIG_Py_Void();
4897 return resultobj;
4898 fail:
4899 return NULL;
4900 }
4901
4902
4903 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4904 PyObject *resultobj = 0;
4905 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4906 wxCheckBoxState result;
4907 void *argp1 = 0 ;
4908 int res1 = 0 ;
4909 PyObject *swig_obj[1] ;
4910
4911 if (!args) SWIG_fail;
4912 swig_obj[0] = args;
4913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4914 if (!SWIG_IsOK(res1)) {
4915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4916 }
4917 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 resultobj = SWIG_From_int(static_cast< int >(result));
4925 return resultobj;
4926 fail:
4927 return NULL;
4928 }
4929
4930
4931 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4932 PyObject *resultobj = 0;
4933 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4934 wxCheckBoxState arg2 ;
4935 void *argp1 = 0 ;
4936 int res1 = 0 ;
4937 int val2 ;
4938 int ecode2 = 0 ;
4939 PyObject * obj0 = 0 ;
4940 PyObject * obj1 = 0 ;
4941 char * kwnames[] = {
4942 (char *) "self",(char *) "state", NULL
4943 };
4944
4945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4947 if (!SWIG_IsOK(res1)) {
4948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4949 }
4950 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4951 ecode2 = SWIG_AsVal_int(obj1, &val2);
4952 if (!SWIG_IsOK(ecode2)) {
4953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4954 }
4955 arg2 = static_cast< wxCheckBoxState >(val2);
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 (arg1)->Set3StateValue(arg2);
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 resultobj = SWIG_Py_Void();
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4970 PyObject *resultobj = 0;
4971 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4972 bool result;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject *swig_obj[1] ;
4976
4977 if (!args) SWIG_fail;
4978 swig_obj[0] = args;
4979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4980 if (!SWIG_IsOK(res1)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4982 }
4983 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 {
4991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4992 }
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5000 PyObject *resultobj = 0;
5001 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5002 bool result;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 PyObject *swig_obj[1] ;
5006
5007 if (!args) SWIG_fail;
5008 swig_obj[0] = args;
5009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5010 if (!SWIG_IsOK(res1)) {
5011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5012 }
5013 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 {
5021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5022 }
5023 return resultobj;
5024 fail:
5025 return NULL;
5026 }
5027
5028
5029 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5030 PyObject *resultobj = 0;
5031 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5032 SwigValueWrapper<wxVisualAttributes > result;
5033 int val1 ;
5034 int ecode1 = 0 ;
5035 PyObject * obj0 = 0 ;
5036 char * kwnames[] = {
5037 (char *) "variant", NULL
5038 };
5039
5040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5041 if (obj0) {
5042 ecode1 = SWIG_AsVal_int(obj0, &val1);
5043 if (!SWIG_IsOK(ecode1)) {
5044 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5045 }
5046 arg1 = static_cast< wxWindowVariant >(val1);
5047 }
5048 {
5049 if (!wxPyCheckForApp()) SWIG_fail;
5050 PyThreadState* __tstate = wxPyBeginAllowThreads();
5051 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5052 wxPyEndAllowThreads(__tstate);
5053 if (PyErr_Occurred()) SWIG_fail;
5054 }
5055 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5056 return resultobj;
5057 fail:
5058 return NULL;
5059 }
5060
5061
5062 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5063 PyObject *obj;
5064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5065 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5066 return SWIG_Py_Void();
5067 }
5068
5069 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5070 return SWIG_Python_InitShadowInstance(args);
5071 }
5072
5073 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5074 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5075 return 1;
5076 }
5077
5078
5079 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5080 PyObject *pyobj = 0;
5081
5082 {
5083 #if wxUSE_UNICODE
5084 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5085 #else
5086 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5087 #endif
5088 }
5089 return pyobj;
5090 }
5091
5092
5093 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5094 PyObject *resultobj = 0;
5095 wxWindow *arg1 = (wxWindow *) 0 ;
5096 int arg2 = (int) -1 ;
5097 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5098 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5099 wxSize const &arg4_defvalue = wxDefaultSize ;
5100 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5101 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5102 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5103 long arg6 = (long) 0 ;
5104 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5105 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5106 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5107 wxString *arg8 = (wxString *) &arg8_defvalue ;
5108 wxChoice *result = 0 ;
5109 void *argp1 = 0 ;
5110 int res1 = 0 ;
5111 int val2 ;
5112 int ecode2 = 0 ;
5113 wxPoint temp3 ;
5114 wxSize temp4 ;
5115 bool temp5 = false ;
5116 long val6 ;
5117 int ecode6 = 0 ;
5118 void *argp7 = 0 ;
5119 int res7 = 0 ;
5120 bool temp8 = false ;
5121 PyObject * obj0 = 0 ;
5122 PyObject * obj1 = 0 ;
5123 PyObject * obj2 = 0 ;
5124 PyObject * obj3 = 0 ;
5125 PyObject * obj4 = 0 ;
5126 PyObject * obj5 = 0 ;
5127 PyObject * obj6 = 0 ;
5128 PyObject * obj7 = 0 ;
5129 char * kwnames[] = {
5130 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5131 };
5132
5133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5135 if (!SWIG_IsOK(res1)) {
5136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5137 }
5138 arg1 = reinterpret_cast< wxWindow * >(argp1);
5139 if (obj1) {
5140 ecode2 = SWIG_AsVal_int(obj1, &val2);
5141 if (!SWIG_IsOK(ecode2)) {
5142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5143 }
5144 arg2 = static_cast< int >(val2);
5145 }
5146 if (obj2) {
5147 {
5148 arg3 = &temp3;
5149 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5150 }
5151 }
5152 if (obj3) {
5153 {
5154 arg4 = &temp4;
5155 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5156 }
5157 }
5158 if (obj4) {
5159 {
5160 if (! PySequence_Check(obj4)) {
5161 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5162 SWIG_fail;
5163 }
5164 arg5 = new wxArrayString;
5165 temp5 = true;
5166 int i, len=PySequence_Length(obj4);
5167 for (i=0; i<len; i++) {
5168 PyObject* item = PySequence_GetItem(obj4, i);
5169 wxString* s = wxString_in_helper(item);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 arg5->Add(*s);
5172 delete s;
5173 Py_DECREF(item);
5174 }
5175 }
5176 }
5177 if (obj5) {
5178 ecode6 = SWIG_AsVal_long(obj5, &val6);
5179 if (!SWIG_IsOK(ecode6)) {
5180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5181 }
5182 arg6 = static_cast< long >(val6);
5183 }
5184 if (obj6) {
5185 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5186 if (!SWIG_IsOK(res7)) {
5187 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5188 }
5189 if (!argp7) {
5190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5191 }
5192 arg7 = reinterpret_cast< wxValidator * >(argp7);
5193 }
5194 if (obj7) {
5195 {
5196 arg8 = wxString_in_helper(obj7);
5197 if (arg8 == NULL) SWIG_fail;
5198 temp8 = true;
5199 }
5200 }
5201 {
5202 if (!wxPyCheckForApp()) SWIG_fail;
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5205 wxPyEndAllowThreads(__tstate);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 }
5208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5209 {
5210 if (temp5) delete arg5;
5211 }
5212 {
5213 if (temp8)
5214 delete arg8;
5215 }
5216 return resultobj;
5217 fail:
5218 {
5219 if (temp5) delete arg5;
5220 }
5221 {
5222 if (temp8)
5223 delete arg8;
5224 }
5225 return NULL;
5226 }
5227
5228
5229 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5230 PyObject *resultobj = 0;
5231 wxChoice *result = 0 ;
5232
5233 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5234 {
5235 if (!wxPyCheckForApp()) SWIG_fail;
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 result = (wxChoice *)new wxChoice();
5238 wxPyEndAllowThreads(__tstate);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5242 return resultobj;
5243 fail:
5244 return NULL;
5245 }
5246
5247
5248 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj = 0;
5250 wxChoice *arg1 = (wxChoice *) 0 ;
5251 wxWindow *arg2 = (wxWindow *) 0 ;
5252 int arg3 = (int) -1 ;
5253 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5254 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5255 wxSize const &arg5_defvalue = wxDefaultSize ;
5256 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5257 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5258 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5259 long arg7 = (long) 0 ;
5260 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5261 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5262 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5263 wxString *arg9 = (wxString *) &arg9_defvalue ;
5264 bool result;
5265 void *argp1 = 0 ;
5266 int res1 = 0 ;
5267 void *argp2 = 0 ;
5268 int res2 = 0 ;
5269 int val3 ;
5270 int ecode3 = 0 ;
5271 wxPoint temp4 ;
5272 wxSize temp5 ;
5273 bool temp6 = false ;
5274 long val7 ;
5275 int ecode7 = 0 ;
5276 void *argp8 = 0 ;
5277 int res8 = 0 ;
5278 bool temp9 = false ;
5279 PyObject * obj0 = 0 ;
5280 PyObject * obj1 = 0 ;
5281 PyObject * obj2 = 0 ;
5282 PyObject * obj3 = 0 ;
5283 PyObject * obj4 = 0 ;
5284 PyObject * obj5 = 0 ;
5285 PyObject * obj6 = 0 ;
5286 PyObject * obj7 = 0 ;
5287 PyObject * obj8 = 0 ;
5288 char * kwnames[] = {
5289 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5290 };
5291
5292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5294 if (!SWIG_IsOK(res1)) {
5295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5296 }
5297 arg1 = reinterpret_cast< wxChoice * >(argp1);
5298 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5299 if (!SWIG_IsOK(res2)) {
5300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5301 }
5302 arg2 = reinterpret_cast< wxWindow * >(argp2);
5303 if (obj2) {
5304 ecode3 = SWIG_AsVal_int(obj2, &val3);
5305 if (!SWIG_IsOK(ecode3)) {
5306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5307 }
5308 arg3 = static_cast< int >(val3);
5309 }
5310 if (obj3) {
5311 {
5312 arg4 = &temp4;
5313 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5314 }
5315 }
5316 if (obj4) {
5317 {
5318 arg5 = &temp5;
5319 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5320 }
5321 }
5322 if (obj5) {
5323 {
5324 if (! PySequence_Check(obj5)) {
5325 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5326 SWIG_fail;
5327 }
5328 arg6 = new wxArrayString;
5329 temp6 = true;
5330 int i, len=PySequence_Length(obj5);
5331 for (i=0; i<len; i++) {
5332 PyObject* item = PySequence_GetItem(obj5, i);
5333 wxString* s = wxString_in_helper(item);
5334 if (PyErr_Occurred()) SWIG_fail;
5335 arg6->Add(*s);
5336 delete s;
5337 Py_DECREF(item);
5338 }
5339 }
5340 }
5341 if (obj6) {
5342 ecode7 = SWIG_AsVal_long(obj6, &val7);
5343 if (!SWIG_IsOK(ecode7)) {
5344 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5345 }
5346 arg7 = static_cast< long >(val7);
5347 }
5348 if (obj7) {
5349 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5350 if (!SWIG_IsOK(res8)) {
5351 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5352 }
5353 if (!argp8) {
5354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5355 }
5356 arg8 = reinterpret_cast< wxValidator * >(argp8);
5357 }
5358 if (obj8) {
5359 {
5360 arg9 = wxString_in_helper(obj8);
5361 if (arg9 == NULL) SWIG_fail;
5362 temp9 = true;
5363 }
5364 }
5365 {
5366 PyThreadState* __tstate = wxPyBeginAllowThreads();
5367 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 {
5372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5373 }
5374 {
5375 if (temp6) delete arg6;
5376 }
5377 {
5378 if (temp9)
5379 delete arg9;
5380 }
5381 return resultobj;
5382 fail:
5383 {
5384 if (temp6) delete arg6;
5385 }
5386 {
5387 if (temp9)
5388 delete arg9;
5389 }
5390 return NULL;
5391 }
5392
5393
5394 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5395 PyObject *resultobj = 0;
5396 wxChoice *arg1 = (wxChoice *) 0 ;
5397 int result;
5398 void *argp1 = 0 ;
5399 int res1 = 0 ;
5400 PyObject *swig_obj[1] ;
5401
5402 if (!args) SWIG_fail;
5403 swig_obj[0] = args;
5404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5405 if (!SWIG_IsOK(res1)) {
5406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5407 }
5408 arg1 = reinterpret_cast< wxChoice * >(argp1);
5409 {
5410 PyThreadState* __tstate = wxPyBeginAllowThreads();
5411 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5412 wxPyEndAllowThreads(__tstate);
5413 if (PyErr_Occurred()) SWIG_fail;
5414 }
5415 resultobj = SWIG_From_int(static_cast< int >(result));
5416 return resultobj;
5417 fail:
5418 return NULL;
5419 }
5420
5421
5422 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5423 PyObject *resultobj = 0;
5424 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5425 SwigValueWrapper<wxVisualAttributes > result;
5426 int val1 ;
5427 int ecode1 = 0 ;
5428 PyObject * obj0 = 0 ;
5429 char * kwnames[] = {
5430 (char *) "variant", NULL
5431 };
5432
5433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5434 if (obj0) {
5435 ecode1 = SWIG_AsVal_int(obj0, &val1);
5436 if (!SWIG_IsOK(ecode1)) {
5437 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5438 }
5439 arg1 = static_cast< wxWindowVariant >(val1);
5440 }
5441 {
5442 if (!wxPyCheckForApp()) SWIG_fail;
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 result = wxChoice::GetClassDefaultAttributes(arg1);
5445 wxPyEndAllowThreads(__tstate);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5449 return resultobj;
5450 fail:
5451 return NULL;
5452 }
5453
5454
5455 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5456 PyObject *obj;
5457 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5458 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5459 return SWIG_Py_Void();
5460 }
5461
5462 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5463 return SWIG_Python_InitShadowInstance(args);
5464 }
5465
5466 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5467 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5468 return 1;
5469 }
5470
5471
5472 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5473 PyObject *pyobj = 0;
5474
5475 {
5476 #if wxUSE_UNICODE
5477 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5478 #else
5479 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5480 #endif
5481 }
5482 return pyobj;
5483 }
5484
5485
5486 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5487 PyObject *resultobj = 0;
5488 wxWindow *arg1 = (wxWindow *) 0 ;
5489 int arg2 = (int) -1 ;
5490 wxString const &arg3_defvalue = wxPyEmptyString ;
5491 wxString *arg3 = (wxString *) &arg3_defvalue ;
5492 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5493 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5494 wxSize const &arg5_defvalue = wxDefaultSize ;
5495 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5496 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5497 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5498 long arg7 = (long) 0 ;
5499 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5500 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5501 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5502 wxString *arg9 = (wxString *) &arg9_defvalue ;
5503 wxComboBox *result = 0 ;
5504 void *argp1 = 0 ;
5505 int res1 = 0 ;
5506 int val2 ;
5507 int ecode2 = 0 ;
5508 bool temp3 = false ;
5509 wxPoint temp4 ;
5510 wxSize temp5 ;
5511 bool temp6 = false ;
5512 long val7 ;
5513 int ecode7 = 0 ;
5514 void *argp8 = 0 ;
5515 int res8 = 0 ;
5516 bool temp9 = false ;
5517 PyObject * obj0 = 0 ;
5518 PyObject * obj1 = 0 ;
5519 PyObject * obj2 = 0 ;
5520 PyObject * obj3 = 0 ;
5521 PyObject * obj4 = 0 ;
5522 PyObject * obj5 = 0 ;
5523 PyObject * obj6 = 0 ;
5524 PyObject * obj7 = 0 ;
5525 PyObject * obj8 = 0 ;
5526 char * kwnames[] = {
5527 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5528 };
5529
5530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5532 if (!SWIG_IsOK(res1)) {
5533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5534 }
5535 arg1 = reinterpret_cast< wxWindow * >(argp1);
5536 if (obj1) {
5537 ecode2 = SWIG_AsVal_int(obj1, &val2);
5538 if (!SWIG_IsOK(ecode2)) {
5539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5540 }
5541 arg2 = static_cast< int >(val2);
5542 }
5543 if (obj2) {
5544 {
5545 arg3 = wxString_in_helper(obj2);
5546 if (arg3 == NULL) SWIG_fail;
5547 temp3 = true;
5548 }
5549 }
5550 if (obj3) {
5551 {
5552 arg4 = &temp4;
5553 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5554 }
5555 }
5556 if (obj4) {
5557 {
5558 arg5 = &temp5;
5559 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5560 }
5561 }
5562 if (obj5) {
5563 {
5564 if (! PySequence_Check(obj5)) {
5565 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5566 SWIG_fail;
5567 }
5568 arg6 = new wxArrayString;
5569 temp6 = true;
5570 int i, len=PySequence_Length(obj5);
5571 for (i=0; i<len; i++) {
5572 PyObject* item = PySequence_GetItem(obj5, i);
5573 wxString* s = wxString_in_helper(item);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 arg6->Add(*s);
5576 delete s;
5577 Py_DECREF(item);
5578 }
5579 }
5580 }
5581 if (obj6) {
5582 ecode7 = SWIG_AsVal_long(obj6, &val7);
5583 if (!SWIG_IsOK(ecode7)) {
5584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5585 }
5586 arg7 = static_cast< long >(val7);
5587 }
5588 if (obj7) {
5589 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5590 if (!SWIG_IsOK(res8)) {
5591 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5592 }
5593 if (!argp8) {
5594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5595 }
5596 arg8 = reinterpret_cast< wxValidator * >(argp8);
5597 }
5598 if (obj8) {
5599 {
5600 arg9 = wxString_in_helper(obj8);
5601 if (arg9 == NULL) SWIG_fail;
5602 temp9 = true;
5603 }
5604 }
5605 {
5606 if (!wxPyCheckForApp()) SWIG_fail;
5607 PyThreadState* __tstate = wxPyBeginAllowThreads();
5608 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);
5609 wxPyEndAllowThreads(__tstate);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5613 {
5614 if (temp3)
5615 delete arg3;
5616 }
5617 {
5618 if (temp6) delete arg6;
5619 }
5620 {
5621 if (temp9)
5622 delete arg9;
5623 }
5624 return resultobj;
5625 fail:
5626 {
5627 if (temp3)
5628 delete arg3;
5629 }
5630 {
5631 if (temp6) delete arg6;
5632 }
5633 {
5634 if (temp9)
5635 delete arg9;
5636 }
5637 return NULL;
5638 }
5639
5640
5641 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5642 PyObject *resultobj = 0;
5643 wxComboBox *result = 0 ;
5644
5645 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5646 {
5647 if (!wxPyCheckForApp()) SWIG_fail;
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 result = (wxComboBox *)new wxComboBox();
5650 wxPyEndAllowThreads(__tstate);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 }
5653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5654 return resultobj;
5655 fail:
5656 return NULL;
5657 }
5658
5659
5660 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj = 0;
5662 wxComboBox *arg1 = (wxComboBox *) 0 ;
5663 wxWindow *arg2 = (wxWindow *) 0 ;
5664 int arg3 = (int) -1 ;
5665 wxString const &arg4_defvalue = wxPyEmptyString ;
5666 wxString *arg4 = (wxString *) &arg4_defvalue ;
5667 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5668 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5669 wxSize const &arg6_defvalue = wxDefaultSize ;
5670 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5671 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5672 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5673 long arg8 = (long) 0 ;
5674 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5675 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5676 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5677 wxString *arg10 = (wxString *) &arg10_defvalue ;
5678 bool result;
5679 void *argp1 = 0 ;
5680 int res1 = 0 ;
5681 void *argp2 = 0 ;
5682 int res2 = 0 ;
5683 int val3 ;
5684 int ecode3 = 0 ;
5685 bool temp4 = false ;
5686 wxPoint temp5 ;
5687 wxSize temp6 ;
5688 bool temp7 = false ;
5689 long val8 ;
5690 int ecode8 = 0 ;
5691 void *argp9 = 0 ;
5692 int res9 = 0 ;
5693 bool temp10 = false ;
5694 PyObject * obj0 = 0 ;
5695 PyObject * obj1 = 0 ;
5696 PyObject * obj2 = 0 ;
5697 PyObject * obj3 = 0 ;
5698 PyObject * obj4 = 0 ;
5699 PyObject * obj5 = 0 ;
5700 PyObject * obj6 = 0 ;
5701 PyObject * obj7 = 0 ;
5702 PyObject * obj8 = 0 ;
5703 PyObject * obj9 = 0 ;
5704 char * kwnames[] = {
5705 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5706 };
5707
5708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5710 if (!SWIG_IsOK(res1)) {
5711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5712 }
5713 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5714 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5715 if (!SWIG_IsOK(res2)) {
5716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5717 }
5718 arg2 = reinterpret_cast< wxWindow * >(argp2);
5719 if (obj2) {
5720 ecode3 = SWIG_AsVal_int(obj2, &val3);
5721 if (!SWIG_IsOK(ecode3)) {
5722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5723 }
5724 arg3 = static_cast< int >(val3);
5725 }
5726 if (obj3) {
5727 {
5728 arg4 = wxString_in_helper(obj3);
5729 if (arg4 == NULL) SWIG_fail;
5730 temp4 = true;
5731 }
5732 }
5733 if (obj4) {
5734 {
5735 arg5 = &temp5;
5736 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5737 }
5738 }
5739 if (obj5) {
5740 {
5741 arg6 = &temp6;
5742 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5743 }
5744 }
5745 if (obj6) {
5746 {
5747 if (! PySequence_Check(obj6)) {
5748 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5749 SWIG_fail;
5750 }
5751 arg7 = new wxArrayString;
5752 temp7 = true;
5753 int i, len=PySequence_Length(obj6);
5754 for (i=0; i<len; i++) {
5755 PyObject* item = PySequence_GetItem(obj6, i);
5756 wxString* s = wxString_in_helper(item);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 arg7->Add(*s);
5759 delete s;
5760 Py_DECREF(item);
5761 }
5762 }
5763 }
5764 if (obj7) {
5765 ecode8 = SWIG_AsVal_long(obj7, &val8);
5766 if (!SWIG_IsOK(ecode8)) {
5767 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5768 }
5769 arg8 = static_cast< long >(val8);
5770 }
5771 if (obj8) {
5772 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5773 if (!SWIG_IsOK(res9)) {
5774 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5775 }
5776 if (!argp9) {
5777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5778 }
5779 arg9 = reinterpret_cast< wxValidator * >(argp9);
5780 }
5781 if (obj9) {
5782 {
5783 arg10 = wxString_in_helper(obj9);
5784 if (arg10 == NULL) SWIG_fail;
5785 temp10 = true;
5786 }
5787 }
5788 {
5789 PyThreadState* __tstate = wxPyBeginAllowThreads();
5790 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);
5791 wxPyEndAllowThreads(__tstate);
5792 if (PyErr_Occurred()) SWIG_fail;
5793 }
5794 {
5795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5796 }
5797 {
5798 if (temp4)
5799 delete arg4;
5800 }
5801 {
5802 if (temp7) delete arg7;
5803 }
5804 {
5805 if (temp10)
5806 delete arg10;
5807 }
5808 return resultobj;
5809 fail:
5810 {
5811 if (temp4)
5812 delete arg4;
5813 }
5814 {
5815 if (temp7) delete arg7;
5816 }
5817 {
5818 if (temp10)
5819 delete arg10;
5820 }
5821 return NULL;
5822 }
5823
5824
5825 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5826 PyObject *resultobj = 0;
5827 wxComboBox *arg1 = (wxComboBox *) 0 ;
5828 wxString result;
5829 void *argp1 = 0 ;
5830 int res1 = 0 ;
5831 PyObject *swig_obj[1] ;
5832
5833 if (!args) SWIG_fail;
5834 swig_obj[0] = args;
5835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5836 if (!SWIG_IsOK(res1)) {
5837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5838 }
5839 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5840 {
5841 PyThreadState* __tstate = wxPyBeginAllowThreads();
5842 result = ((wxComboBox const *)arg1)->GetValue();
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) SWIG_fail;
5845 }
5846 {
5847 #if wxUSE_UNICODE
5848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5849 #else
5850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5851 #endif
5852 }
5853 return resultobj;
5854 fail:
5855 return NULL;
5856 }
5857
5858
5859 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5860 PyObject *resultobj = 0;
5861 wxComboBox *arg1 = (wxComboBox *) 0 ;
5862 wxString *arg2 = 0 ;
5863 void *argp1 = 0 ;
5864 int res1 = 0 ;
5865 bool temp2 = false ;
5866 PyObject * obj0 = 0 ;
5867 PyObject * obj1 = 0 ;
5868 char * kwnames[] = {
5869 (char *) "self",(char *) "value", NULL
5870 };
5871
5872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5874 if (!SWIG_IsOK(res1)) {
5875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5876 }
5877 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5878 {
5879 arg2 = wxString_in_helper(obj1);
5880 if (arg2 == NULL) SWIG_fail;
5881 temp2 = true;
5882 }
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 (arg1)->SetValue((wxString const &)*arg2);
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 resultobj = SWIG_Py_Void();
5890 {
5891 if (temp2)
5892 delete arg2;
5893 }
5894 return resultobj;
5895 fail:
5896 {
5897 if (temp2)
5898 delete arg2;
5899 }
5900 return NULL;
5901 }
5902
5903
5904 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5905 PyObject *resultobj = 0;
5906 wxComboBox *arg1 = (wxComboBox *) 0 ;
5907 void *argp1 = 0 ;
5908 int res1 = 0 ;
5909 PyObject *swig_obj[1] ;
5910
5911 if (!args) SWIG_fail;
5912 swig_obj[0] = args;
5913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5914 if (!SWIG_IsOK(res1)) {
5915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5916 }
5917 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5918 {
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 (arg1)->Copy();
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 resultobj = SWIG_Py_Void();
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5932 PyObject *resultobj = 0;
5933 wxComboBox *arg1 = (wxComboBox *) 0 ;
5934 void *argp1 = 0 ;
5935 int res1 = 0 ;
5936 PyObject *swig_obj[1] ;
5937
5938 if (!args) SWIG_fail;
5939 swig_obj[0] = args;
5940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5941 if (!SWIG_IsOK(res1)) {
5942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5943 }
5944 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 (arg1)->Cut();
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 resultobj = SWIG_Py_Void();
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5959 PyObject *resultobj = 0;
5960 wxComboBox *arg1 = (wxComboBox *) 0 ;
5961 void *argp1 = 0 ;
5962 int res1 = 0 ;
5963 PyObject *swig_obj[1] ;
5964
5965 if (!args) SWIG_fail;
5966 swig_obj[0] = args;
5967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5968 if (!SWIG_IsOK(res1)) {
5969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5970 }
5971 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 (arg1)->Paste();
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 resultobj = SWIG_Py_Void();
5979 return resultobj;
5980 fail:
5981 return NULL;
5982 }
5983
5984
5985 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5986 PyObject *resultobj = 0;
5987 wxComboBox *arg1 = (wxComboBox *) 0 ;
5988 long arg2 ;
5989 void *argp1 = 0 ;
5990 int res1 = 0 ;
5991 long val2 ;
5992 int ecode2 = 0 ;
5993 PyObject * obj0 = 0 ;
5994 PyObject * obj1 = 0 ;
5995 char * kwnames[] = {
5996 (char *) "self",(char *) "pos", NULL
5997 };
5998
5999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6001 if (!SWIG_IsOK(res1)) {
6002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6003 }
6004 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6005 ecode2 = SWIG_AsVal_long(obj1, &val2);
6006 if (!SWIG_IsOK(ecode2)) {
6007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6008 }
6009 arg2 = static_cast< long >(val2);
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 (arg1)->SetInsertionPoint(arg2);
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 resultobj = SWIG_Py_Void();
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6024 PyObject *resultobj = 0;
6025 wxComboBox *arg1 = (wxComboBox *) 0 ;
6026 long result;
6027 void *argp1 = 0 ;
6028 int res1 = 0 ;
6029 PyObject *swig_obj[1] ;
6030
6031 if (!args) SWIG_fail;
6032 swig_obj[0] = args;
6033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6034 if (!SWIG_IsOK(res1)) {
6035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6036 }
6037 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 resultobj = SWIG_From_long(static_cast< long >(result));
6045 return resultobj;
6046 fail:
6047 return NULL;
6048 }
6049
6050
6051 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6052 PyObject *resultobj = 0;
6053 wxComboBox *arg1 = (wxComboBox *) 0 ;
6054 long result;
6055 void *argp1 = 0 ;
6056 int res1 = 0 ;
6057 PyObject *swig_obj[1] ;
6058
6059 if (!args) SWIG_fail;
6060 swig_obj[0] = args;
6061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6062 if (!SWIG_IsOK(res1)) {
6063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6064 }
6065 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6066 {
6067 PyThreadState* __tstate = wxPyBeginAllowThreads();
6068 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6069 wxPyEndAllowThreads(__tstate);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 }
6072 resultobj = SWIG_From_long(static_cast< long >(result));
6073 return resultobj;
6074 fail:
6075 return NULL;
6076 }
6077
6078
6079 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6080 PyObject *resultobj = 0;
6081 wxComboBox *arg1 = (wxComboBox *) 0 ;
6082 long arg2 ;
6083 long arg3 ;
6084 wxString *arg4 = 0 ;
6085 void *argp1 = 0 ;
6086 int res1 = 0 ;
6087 long val2 ;
6088 int ecode2 = 0 ;
6089 long val3 ;
6090 int ecode3 = 0 ;
6091 bool temp4 = false ;
6092 PyObject * obj0 = 0 ;
6093 PyObject * obj1 = 0 ;
6094 PyObject * obj2 = 0 ;
6095 PyObject * obj3 = 0 ;
6096 char * kwnames[] = {
6097 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6098 };
6099
6100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6102 if (!SWIG_IsOK(res1)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6104 }
6105 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6106 ecode2 = SWIG_AsVal_long(obj1, &val2);
6107 if (!SWIG_IsOK(ecode2)) {
6108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6109 }
6110 arg2 = static_cast< long >(val2);
6111 ecode3 = SWIG_AsVal_long(obj2, &val3);
6112 if (!SWIG_IsOK(ecode3)) {
6113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6114 }
6115 arg3 = static_cast< long >(val3);
6116 {
6117 arg4 = wxString_in_helper(obj3);
6118 if (arg4 == NULL) SWIG_fail;
6119 temp4 = true;
6120 }
6121 {
6122 PyThreadState* __tstate = wxPyBeginAllowThreads();
6123 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6124 wxPyEndAllowThreads(__tstate);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 }
6127 resultobj = SWIG_Py_Void();
6128 {
6129 if (temp4)
6130 delete arg4;
6131 }
6132 return resultobj;
6133 fail:
6134 {
6135 if (temp4)
6136 delete arg4;
6137 }
6138 return NULL;
6139 }
6140
6141
6142 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6143 PyObject *resultobj = 0;
6144 wxComboBox *arg1 = (wxComboBox *) 0 ;
6145 long arg2 ;
6146 long arg3 ;
6147 void *argp1 = 0 ;
6148 int res1 = 0 ;
6149 long val2 ;
6150 int ecode2 = 0 ;
6151 long val3 ;
6152 int ecode3 = 0 ;
6153 PyObject * obj0 = 0 ;
6154 PyObject * obj1 = 0 ;
6155 PyObject * obj2 = 0 ;
6156 char * kwnames[] = {
6157 (char *) "self",(char *) "from",(char *) "to", NULL
6158 };
6159
6160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6162 if (!SWIG_IsOK(res1)) {
6163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6164 }
6165 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6166 ecode2 = SWIG_AsVal_long(obj1, &val2);
6167 if (!SWIG_IsOK(ecode2)) {
6168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6169 }
6170 arg2 = static_cast< long >(val2);
6171 ecode3 = SWIG_AsVal_long(obj2, &val3);
6172 if (!SWIG_IsOK(ecode3)) {
6173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6174 }
6175 arg3 = static_cast< long >(val3);
6176 {
6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
6178 (arg1)->SetSelection(arg2,arg3);
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_Py_Void();
6183 return resultobj;
6184 fail:
6185 return NULL;
6186 }
6187
6188
6189 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6190 PyObject *resultobj = 0;
6191 wxComboBox *arg1 = (wxComboBox *) 0 ;
6192 long *arg2 = (long *) 0 ;
6193 long *arg3 = (long *) 0 ;
6194 void *argp1 = 0 ;
6195 int res1 = 0 ;
6196 long temp2 ;
6197 int res2 = SWIG_TMPOBJ ;
6198 long temp3 ;
6199 int res3 = SWIG_TMPOBJ ;
6200 PyObject *swig_obj[1] ;
6201
6202 arg2 = &temp2;
6203 arg3 = &temp3;
6204 if (!args) SWIG_fail;
6205 swig_obj[0] = args;
6206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6207 if (!SWIG_IsOK(res1)) {
6208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6209 }
6210 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6211 {
6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
6213 (arg1)->GetSelection(arg2,arg3);
6214 wxPyEndAllowThreads(__tstate);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 resultobj = SWIG_Py_Void();
6218 if (SWIG_IsTmpObj(res2)) {
6219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6220 } else {
6221 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6223 }
6224 if (SWIG_IsTmpObj(res3)) {
6225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6226 } else {
6227 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6229 }
6230 return resultobj;
6231 fail:
6232 return NULL;
6233 }
6234
6235
6236 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6237 PyObject *resultobj = 0;
6238 wxComboBox *arg1 = (wxComboBox *) 0 ;
6239 int result;
6240 void *argp1 = 0 ;
6241 int res1 = 0 ;
6242 PyObject *swig_obj[1] ;
6243
6244 if (!args) SWIG_fail;
6245 swig_obj[0] = args;
6246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6247 if (!SWIG_IsOK(res1)) {
6248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6249 }
6250 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 resultobj = SWIG_From_int(static_cast< int >(result));
6258 return resultobj;
6259 fail:
6260 return NULL;
6261 }
6262
6263
6264 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 wxComboBox *arg1 = (wxComboBox *) 0 ;
6267 wxString *arg2 = 0 ;
6268 bool result;
6269 void *argp1 = 0 ;
6270 int res1 = 0 ;
6271 bool temp2 = false ;
6272 PyObject * obj0 = 0 ;
6273 PyObject * obj1 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "self",(char *) "string", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6282 }
6283 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6284 {
6285 arg2 = wxString_in_helper(obj1);
6286 if (arg2 == NULL) SWIG_fail;
6287 temp2 = true;
6288 }
6289 {
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
6291 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6292 wxPyEndAllowThreads(__tstate);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 {
6296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6297 }
6298 {
6299 if (temp2)
6300 delete arg2;
6301 }
6302 return resultobj;
6303 fail:
6304 {
6305 if (temp2)
6306 delete arg2;
6307 }
6308 return NULL;
6309 }
6310
6311
6312 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj = 0;
6314 wxComboBox *arg1 = (wxComboBox *) 0 ;
6315 bool arg2 ;
6316 void *argp1 = 0 ;
6317 int res1 = 0 ;
6318 bool val2 ;
6319 int ecode2 = 0 ;
6320 PyObject * obj0 = 0 ;
6321 PyObject * obj1 = 0 ;
6322 char * kwnames[] = {
6323 (char *) "self",(char *) "editable", NULL
6324 };
6325
6326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6328 if (!SWIG_IsOK(res1)) {
6329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6330 }
6331 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6332 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6333 if (!SWIG_IsOK(ecode2)) {
6334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6335 }
6336 arg2 = static_cast< bool >(val2);
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 (arg1)->SetEditable(arg2);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_Py_Void();
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6351 PyObject *resultobj = 0;
6352 wxComboBox *arg1 = (wxComboBox *) 0 ;
6353 void *argp1 = 0 ;
6354 int res1 = 0 ;
6355 PyObject *swig_obj[1] ;
6356
6357 if (!args) SWIG_fail;
6358 swig_obj[0] = args;
6359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6360 if (!SWIG_IsOK(res1)) {
6361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6362 }
6363 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6364 {
6365 PyThreadState* __tstate = wxPyBeginAllowThreads();
6366 (arg1)->SetInsertionPointEnd();
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_Py_Void();
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj = 0;
6379 wxComboBox *arg1 = (wxComboBox *) 0 ;
6380 long arg2 ;
6381 long arg3 ;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 long val2 ;
6385 int ecode2 = 0 ;
6386 long val3 ;
6387 int ecode3 = 0 ;
6388 PyObject * obj0 = 0 ;
6389 PyObject * obj1 = 0 ;
6390 PyObject * obj2 = 0 ;
6391 char * kwnames[] = {
6392 (char *) "self",(char *) "from",(char *) "to", NULL
6393 };
6394
6395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6397 if (!SWIG_IsOK(res1)) {
6398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6399 }
6400 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6401 ecode2 = SWIG_AsVal_long(obj1, &val2);
6402 if (!SWIG_IsOK(ecode2)) {
6403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6404 }
6405 arg2 = static_cast< long >(val2);
6406 ecode3 = SWIG_AsVal_long(obj2, &val3);
6407 if (!SWIG_IsOK(ecode3)) {
6408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6409 }
6410 arg3 = static_cast< long >(val3);
6411 {
6412 PyThreadState* __tstate = wxPyBeginAllowThreads();
6413 (arg1)->Remove(arg2,arg3);
6414 wxPyEndAllowThreads(__tstate);
6415 if (PyErr_Occurred()) SWIG_fail;
6416 }
6417 resultobj = SWIG_Py_Void();
6418 return resultobj;
6419 fail:
6420 return NULL;
6421 }
6422
6423
6424 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6425 PyObject *resultobj = 0;
6426 wxComboBox *arg1 = (wxComboBox *) 0 ;
6427 bool result;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 PyObject *swig_obj[1] ;
6431
6432 if (!args) SWIG_fail;
6433 swig_obj[0] = args;
6434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6435 if (!SWIG_IsOK(res1)) {
6436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6437 }
6438 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6439 {
6440 PyThreadState* __tstate = wxPyBeginAllowThreads();
6441 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6442 wxPyEndAllowThreads(__tstate);
6443 if (PyErr_Occurred()) SWIG_fail;
6444 }
6445 {
6446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6447 }
6448 return resultobj;
6449 fail:
6450 return NULL;
6451 }
6452
6453
6454 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6455 PyObject *resultobj = 0;
6456 wxComboBox *arg1 = (wxComboBox *) 0 ;
6457 void *argp1 = 0 ;
6458 int res1 = 0 ;
6459 PyObject *swig_obj[1] ;
6460
6461 if (!args) SWIG_fail;
6462 swig_obj[0] = args;
6463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6464 if (!SWIG_IsOK(res1)) {
6465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6466 }
6467 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6468 {
6469 PyThreadState* __tstate = wxPyBeginAllowThreads();
6470 (arg1)->Undo();
6471 wxPyEndAllowThreads(__tstate);
6472 if (PyErr_Occurred()) SWIG_fail;
6473 }
6474 resultobj = SWIG_Py_Void();
6475 return resultobj;
6476 fail:
6477 return NULL;
6478 }
6479
6480
6481 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6482 PyObject *resultobj = 0;
6483 wxComboBox *arg1 = (wxComboBox *) 0 ;
6484 void *argp1 = 0 ;
6485 int res1 = 0 ;
6486 PyObject *swig_obj[1] ;
6487
6488 if (!args) SWIG_fail;
6489 swig_obj[0] = args;
6490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6491 if (!SWIG_IsOK(res1)) {
6492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6493 }
6494 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6495 {
6496 PyThreadState* __tstate = wxPyBeginAllowThreads();
6497 (arg1)->Redo();
6498 wxPyEndAllowThreads(__tstate);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 resultobj = SWIG_Py_Void();
6502 return resultobj;
6503 fail:
6504 return NULL;
6505 }
6506
6507
6508 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6509 PyObject *resultobj = 0;
6510 wxComboBox *arg1 = (wxComboBox *) 0 ;
6511 void *argp1 = 0 ;
6512 int res1 = 0 ;
6513 PyObject *swig_obj[1] ;
6514
6515 if (!args) SWIG_fail;
6516 swig_obj[0] = args;
6517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6518 if (!SWIG_IsOK(res1)) {
6519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6520 }
6521 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6522 {
6523 PyThreadState* __tstate = wxPyBeginAllowThreads();
6524 (arg1)->SelectAll();
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 resultobj = SWIG_Py_Void();
6529 return resultobj;
6530 fail:
6531 return NULL;
6532 }
6533
6534
6535 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6536 PyObject *resultobj = 0;
6537 wxComboBox *arg1 = (wxComboBox *) 0 ;
6538 bool result;
6539 void *argp1 = 0 ;
6540 int res1 = 0 ;
6541 PyObject *swig_obj[1] ;
6542
6543 if (!args) SWIG_fail;
6544 swig_obj[0] = args;
6545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6546 if (!SWIG_IsOK(res1)) {
6547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6548 }
6549 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6550 {
6551 PyThreadState* __tstate = wxPyBeginAllowThreads();
6552 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 {
6557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6558 }
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6566 PyObject *resultobj = 0;
6567 wxComboBox *arg1 = (wxComboBox *) 0 ;
6568 bool result;
6569 void *argp1 = 0 ;
6570 int res1 = 0 ;
6571 PyObject *swig_obj[1] ;
6572
6573 if (!args) SWIG_fail;
6574 swig_obj[0] = args;
6575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6576 if (!SWIG_IsOK(res1)) {
6577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6578 }
6579 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6580 {
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 result = (bool)((wxComboBox const *)arg1)->CanCut();
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 {
6587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6588 }
6589 return resultobj;
6590 fail:
6591 return NULL;
6592 }
6593
6594
6595 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6596 PyObject *resultobj = 0;
6597 wxComboBox *arg1 = (wxComboBox *) 0 ;
6598 bool result;
6599 void *argp1 = 0 ;
6600 int res1 = 0 ;
6601 PyObject *swig_obj[1] ;
6602
6603 if (!args) SWIG_fail;
6604 swig_obj[0] = args;
6605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6606 if (!SWIG_IsOK(res1)) {
6607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6608 }
6609 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6610 {
6611 PyThreadState* __tstate = wxPyBeginAllowThreads();
6612 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6613 wxPyEndAllowThreads(__tstate);
6614 if (PyErr_Occurred()) SWIG_fail;
6615 }
6616 {
6617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6618 }
6619 return resultobj;
6620 fail:
6621 return NULL;
6622 }
6623
6624
6625 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6626 PyObject *resultobj = 0;
6627 wxComboBox *arg1 = (wxComboBox *) 0 ;
6628 bool result;
6629 void *argp1 = 0 ;
6630 int res1 = 0 ;
6631 PyObject *swig_obj[1] ;
6632
6633 if (!args) SWIG_fail;
6634 swig_obj[0] = args;
6635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6636 if (!SWIG_IsOK(res1)) {
6637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6638 }
6639 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6640 {
6641 PyThreadState* __tstate = wxPyBeginAllowThreads();
6642 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6643 wxPyEndAllowThreads(__tstate);
6644 if (PyErr_Occurred()) SWIG_fail;
6645 }
6646 {
6647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6648 }
6649 return resultobj;
6650 fail:
6651 return NULL;
6652 }
6653
6654
6655 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6656 PyObject *resultobj = 0;
6657 wxComboBox *arg1 = (wxComboBox *) 0 ;
6658 bool result;
6659 void *argp1 = 0 ;
6660 int res1 = 0 ;
6661 PyObject *swig_obj[1] ;
6662
6663 if (!args) SWIG_fail;
6664 swig_obj[0] = args;
6665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6666 if (!SWIG_IsOK(res1)) {
6667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6668 }
6669 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 {
6677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6678 }
6679 return resultobj;
6680 fail:
6681 return NULL;
6682 }
6683
6684
6685 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6686 PyObject *resultobj = 0;
6687 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6688 SwigValueWrapper<wxVisualAttributes > result;
6689 int val1 ;
6690 int ecode1 = 0 ;
6691 PyObject * obj0 = 0 ;
6692 char * kwnames[] = {
6693 (char *) "variant", NULL
6694 };
6695
6696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6697 if (obj0) {
6698 ecode1 = SWIG_AsVal_int(obj0, &val1);
6699 if (!SWIG_IsOK(ecode1)) {
6700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6701 }
6702 arg1 = static_cast< wxWindowVariant >(val1);
6703 }
6704 {
6705 if (!wxPyCheckForApp()) SWIG_fail;
6706 PyThreadState* __tstate = wxPyBeginAllowThreads();
6707 result = wxComboBox::GetClassDefaultAttributes(arg1);
6708 wxPyEndAllowThreads(__tstate);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6719 PyObject *obj;
6720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6721 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6722 return SWIG_Py_Void();
6723 }
6724
6725 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6726 return SWIG_Python_InitShadowInstance(args);
6727 }
6728
6729 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6730 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6731 return 1;
6732 }
6733
6734
6735 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6736 PyObject *pyobj = 0;
6737
6738 {
6739 #if wxUSE_UNICODE
6740 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6741 #else
6742 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6743 #endif
6744 }
6745 return pyobj;
6746 }
6747
6748
6749 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6750 PyObject *resultobj = 0;
6751 wxWindow *arg1 = (wxWindow *) 0 ;
6752 int arg2 = (int) -1 ;
6753 int arg3 = (int) 100 ;
6754 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6755 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6756 wxSize const &arg5_defvalue = wxDefaultSize ;
6757 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6758 long arg6 = (long) wxGA_HORIZONTAL ;
6759 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6760 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6761 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6762 wxString *arg8 = (wxString *) &arg8_defvalue ;
6763 wxGauge *result = 0 ;
6764 void *argp1 = 0 ;
6765 int res1 = 0 ;
6766 int val2 ;
6767 int ecode2 = 0 ;
6768 int val3 ;
6769 int ecode3 = 0 ;
6770 wxPoint temp4 ;
6771 wxSize temp5 ;
6772 long val6 ;
6773 int ecode6 = 0 ;
6774 void *argp7 = 0 ;
6775 int res7 = 0 ;
6776 bool temp8 = false ;
6777 PyObject * obj0 = 0 ;
6778 PyObject * obj1 = 0 ;
6779 PyObject * obj2 = 0 ;
6780 PyObject * obj3 = 0 ;
6781 PyObject * obj4 = 0 ;
6782 PyObject * obj5 = 0 ;
6783 PyObject * obj6 = 0 ;
6784 PyObject * obj7 = 0 ;
6785 char * kwnames[] = {
6786 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6787 };
6788
6789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6791 if (!SWIG_IsOK(res1)) {
6792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6793 }
6794 arg1 = reinterpret_cast< wxWindow * >(argp1);
6795 if (obj1) {
6796 ecode2 = SWIG_AsVal_int(obj1, &val2);
6797 if (!SWIG_IsOK(ecode2)) {
6798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6799 }
6800 arg2 = static_cast< int >(val2);
6801 }
6802 if (obj2) {
6803 ecode3 = SWIG_AsVal_int(obj2, &val3);
6804 if (!SWIG_IsOK(ecode3)) {
6805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6806 }
6807 arg3 = static_cast< int >(val3);
6808 }
6809 if (obj3) {
6810 {
6811 arg4 = &temp4;
6812 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6813 }
6814 }
6815 if (obj4) {
6816 {
6817 arg5 = &temp5;
6818 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6819 }
6820 }
6821 if (obj5) {
6822 ecode6 = SWIG_AsVal_long(obj5, &val6);
6823 if (!SWIG_IsOK(ecode6)) {
6824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6825 }
6826 arg6 = static_cast< long >(val6);
6827 }
6828 if (obj6) {
6829 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6830 if (!SWIG_IsOK(res7)) {
6831 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6832 }
6833 if (!argp7) {
6834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6835 }
6836 arg7 = reinterpret_cast< wxValidator * >(argp7);
6837 }
6838 if (obj7) {
6839 {
6840 arg8 = wxString_in_helper(obj7);
6841 if (arg8 == NULL) SWIG_fail;
6842 temp8 = true;
6843 }
6844 }
6845 {
6846 if (!wxPyCheckForApp()) SWIG_fail;
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6853 {
6854 if (temp8)
6855 delete arg8;
6856 }
6857 return resultobj;
6858 fail:
6859 {
6860 if (temp8)
6861 delete arg8;
6862 }
6863 return NULL;
6864 }
6865
6866
6867 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6868 PyObject *resultobj = 0;
6869 wxGauge *result = 0 ;
6870
6871 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6872 {
6873 if (!wxPyCheckForApp()) SWIG_fail;
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 result = (wxGauge *)new wxGauge();
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6880 return resultobj;
6881 fail:
6882 return NULL;
6883 }
6884
6885
6886 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj = 0;
6888 wxGauge *arg1 = (wxGauge *) 0 ;
6889 wxWindow *arg2 = (wxWindow *) 0 ;
6890 int arg3 = (int) -1 ;
6891 int arg4 = (int) 100 ;
6892 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6893 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6894 wxSize const &arg6_defvalue = wxDefaultSize ;
6895 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6896 long arg7 = (long) wxGA_HORIZONTAL ;
6897 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6898 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6899 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6900 wxString *arg9 = (wxString *) &arg9_defvalue ;
6901 bool result;
6902 void *argp1 = 0 ;
6903 int res1 = 0 ;
6904 void *argp2 = 0 ;
6905 int res2 = 0 ;
6906 int val3 ;
6907 int ecode3 = 0 ;
6908 int val4 ;
6909 int ecode4 = 0 ;
6910 wxPoint temp5 ;
6911 wxSize temp6 ;
6912 long val7 ;
6913 int ecode7 = 0 ;
6914 void *argp8 = 0 ;
6915 int res8 = 0 ;
6916 bool temp9 = false ;
6917 PyObject * obj0 = 0 ;
6918 PyObject * obj1 = 0 ;
6919 PyObject * obj2 = 0 ;
6920 PyObject * obj3 = 0 ;
6921 PyObject * obj4 = 0 ;
6922 PyObject * obj5 = 0 ;
6923 PyObject * obj6 = 0 ;
6924 PyObject * obj7 = 0 ;
6925 PyObject * obj8 = 0 ;
6926 char * kwnames[] = {
6927 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6928 };
6929
6930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6932 if (!SWIG_IsOK(res1)) {
6933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6934 }
6935 arg1 = reinterpret_cast< wxGauge * >(argp1);
6936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6937 if (!SWIG_IsOK(res2)) {
6938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6939 }
6940 arg2 = reinterpret_cast< wxWindow * >(argp2);
6941 if (obj2) {
6942 ecode3 = SWIG_AsVal_int(obj2, &val3);
6943 if (!SWIG_IsOK(ecode3)) {
6944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6945 }
6946 arg3 = static_cast< int >(val3);
6947 }
6948 if (obj3) {
6949 ecode4 = SWIG_AsVal_int(obj3, &val4);
6950 if (!SWIG_IsOK(ecode4)) {
6951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6952 }
6953 arg4 = static_cast< int >(val4);
6954 }
6955 if (obj4) {
6956 {
6957 arg5 = &temp5;
6958 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6959 }
6960 }
6961 if (obj5) {
6962 {
6963 arg6 = &temp6;
6964 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6965 }
6966 }
6967 if (obj6) {
6968 ecode7 = SWIG_AsVal_long(obj6, &val7);
6969 if (!SWIG_IsOK(ecode7)) {
6970 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6971 }
6972 arg7 = static_cast< long >(val7);
6973 }
6974 if (obj7) {
6975 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6976 if (!SWIG_IsOK(res8)) {
6977 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6978 }
6979 if (!argp8) {
6980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6981 }
6982 arg8 = reinterpret_cast< wxValidator * >(argp8);
6983 }
6984 if (obj8) {
6985 {
6986 arg9 = wxString_in_helper(obj8);
6987 if (arg9 == NULL) SWIG_fail;
6988 temp9 = true;
6989 }
6990 }
6991 {
6992 PyThreadState* __tstate = wxPyBeginAllowThreads();
6993 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6994 wxPyEndAllowThreads(__tstate);
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 {
6998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6999 }
7000 {
7001 if (temp9)
7002 delete arg9;
7003 }
7004 return resultobj;
7005 fail:
7006 {
7007 if (temp9)
7008 delete arg9;
7009 }
7010 return NULL;
7011 }
7012
7013
7014 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj = 0;
7016 wxGauge *arg1 = (wxGauge *) 0 ;
7017 int arg2 ;
7018 void *argp1 = 0 ;
7019 int res1 = 0 ;
7020 int val2 ;
7021 int ecode2 = 0 ;
7022 PyObject * obj0 = 0 ;
7023 PyObject * obj1 = 0 ;
7024 char * kwnames[] = {
7025 (char *) "self",(char *) "range", NULL
7026 };
7027
7028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7030 if (!SWIG_IsOK(res1)) {
7031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7032 }
7033 arg1 = reinterpret_cast< wxGauge * >(argp1);
7034 ecode2 = SWIG_AsVal_int(obj1, &val2);
7035 if (!SWIG_IsOK(ecode2)) {
7036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7037 }
7038 arg2 = static_cast< int >(val2);
7039 {
7040 PyThreadState* __tstate = wxPyBeginAllowThreads();
7041 (arg1)->SetRange(arg2);
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 resultobj = SWIG_Py_Void();
7046 return resultobj;
7047 fail:
7048 return NULL;
7049 }
7050
7051
7052 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7053 PyObject *resultobj = 0;
7054 wxGauge *arg1 = (wxGauge *) 0 ;
7055 int result;
7056 void *argp1 = 0 ;
7057 int res1 = 0 ;
7058 PyObject *swig_obj[1] ;
7059
7060 if (!args) SWIG_fail;
7061 swig_obj[0] = args;
7062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7063 if (!SWIG_IsOK(res1)) {
7064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7065 }
7066 arg1 = reinterpret_cast< wxGauge * >(argp1);
7067 {
7068 PyThreadState* __tstate = wxPyBeginAllowThreads();
7069 result = (int)((wxGauge const *)arg1)->GetRange();
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 resultobj = SWIG_From_int(static_cast< int >(result));
7074 return resultobj;
7075 fail:
7076 return NULL;
7077 }
7078
7079
7080 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj = 0;
7082 wxGauge *arg1 = (wxGauge *) 0 ;
7083 int arg2 ;
7084 void *argp1 = 0 ;
7085 int res1 = 0 ;
7086 int val2 ;
7087 int ecode2 = 0 ;
7088 PyObject * obj0 = 0 ;
7089 PyObject * obj1 = 0 ;
7090 char * kwnames[] = {
7091 (char *) "self",(char *) "pos", NULL
7092 };
7093
7094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7096 if (!SWIG_IsOK(res1)) {
7097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7098 }
7099 arg1 = reinterpret_cast< wxGauge * >(argp1);
7100 ecode2 = SWIG_AsVal_int(obj1, &val2);
7101 if (!SWIG_IsOK(ecode2)) {
7102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7103 }
7104 arg2 = static_cast< int >(val2);
7105 {
7106 PyThreadState* __tstate = wxPyBeginAllowThreads();
7107 (arg1)->SetValue(arg2);
7108 wxPyEndAllowThreads(__tstate);
7109 if (PyErr_Occurred()) SWIG_fail;
7110 }
7111 resultobj = SWIG_Py_Void();
7112 return resultobj;
7113 fail:
7114 return NULL;
7115 }
7116
7117
7118 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7119 PyObject *resultobj = 0;
7120 wxGauge *arg1 = (wxGauge *) 0 ;
7121 int result;
7122 void *argp1 = 0 ;
7123 int res1 = 0 ;
7124 PyObject *swig_obj[1] ;
7125
7126 if (!args) SWIG_fail;
7127 swig_obj[0] = args;
7128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7129 if (!SWIG_IsOK(res1)) {
7130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7131 }
7132 arg1 = reinterpret_cast< wxGauge * >(argp1);
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 result = (int)((wxGauge const *)arg1)->GetValue();
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
7139 resultobj = SWIG_From_int(static_cast< int >(result));
7140 return resultobj;
7141 fail:
7142 return NULL;
7143 }
7144
7145
7146 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7147 PyObject *resultobj = 0;
7148 wxGauge *arg1 = (wxGauge *) 0 ;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 PyObject *swig_obj[1] ;
7152
7153 if (!args) SWIG_fail;
7154 swig_obj[0] = args;
7155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7156 if (!SWIG_IsOK(res1)) {
7157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7158 }
7159 arg1 = reinterpret_cast< wxGauge * >(argp1);
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 (arg1)->Pulse();
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_Py_Void();
7167 return resultobj;
7168 fail:
7169 return NULL;
7170 }
7171
7172
7173 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7174 PyObject *resultobj = 0;
7175 wxGauge *arg1 = (wxGauge *) 0 ;
7176 bool result;
7177 void *argp1 = 0 ;
7178 int res1 = 0 ;
7179 PyObject *swig_obj[1] ;
7180
7181 if (!args) SWIG_fail;
7182 swig_obj[0] = args;
7183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7184 if (!SWIG_IsOK(res1)) {
7185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7186 }
7187 arg1 = reinterpret_cast< wxGauge * >(argp1);
7188 {
7189 PyThreadState* __tstate = wxPyBeginAllowThreads();
7190 result = (bool)((wxGauge const *)arg1)->IsVertical();
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 {
7195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7196 }
7197 return resultobj;
7198 fail:
7199 return NULL;
7200 }
7201
7202
7203 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj = 0;
7205 wxGauge *arg1 = (wxGauge *) 0 ;
7206 int arg2 ;
7207 void *argp1 = 0 ;
7208 int res1 = 0 ;
7209 int val2 ;
7210 int ecode2 = 0 ;
7211 PyObject * obj0 = 0 ;
7212 PyObject * obj1 = 0 ;
7213 char * kwnames[] = {
7214 (char *) "self",(char *) "w", NULL
7215 };
7216
7217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7219 if (!SWIG_IsOK(res1)) {
7220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7221 }
7222 arg1 = reinterpret_cast< wxGauge * >(argp1);
7223 ecode2 = SWIG_AsVal_int(obj1, &val2);
7224 if (!SWIG_IsOK(ecode2)) {
7225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7226 }
7227 arg2 = static_cast< int >(val2);
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 (arg1)->SetShadowWidth(arg2);
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 resultobj = SWIG_Py_Void();
7235 return resultobj;
7236 fail:
7237 return NULL;
7238 }
7239
7240
7241 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7242 PyObject *resultobj = 0;
7243 wxGauge *arg1 = (wxGauge *) 0 ;
7244 int result;
7245 void *argp1 = 0 ;
7246 int res1 = 0 ;
7247 PyObject *swig_obj[1] ;
7248
7249 if (!args) SWIG_fail;
7250 swig_obj[0] = args;
7251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7252 if (!SWIG_IsOK(res1)) {
7253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7254 }
7255 arg1 = reinterpret_cast< wxGauge * >(argp1);
7256 {
7257 PyThreadState* __tstate = wxPyBeginAllowThreads();
7258 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 resultobj = SWIG_From_int(static_cast< int >(result));
7263 return resultobj;
7264 fail:
7265 return NULL;
7266 }
7267
7268
7269 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7270 PyObject *resultobj = 0;
7271 wxGauge *arg1 = (wxGauge *) 0 ;
7272 int arg2 ;
7273 void *argp1 = 0 ;
7274 int res1 = 0 ;
7275 int val2 ;
7276 int ecode2 = 0 ;
7277 PyObject * obj0 = 0 ;
7278 PyObject * obj1 = 0 ;
7279 char * kwnames[] = {
7280 (char *) "self",(char *) "w", NULL
7281 };
7282
7283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7287 }
7288 arg1 = reinterpret_cast< wxGauge * >(argp1);
7289 ecode2 = SWIG_AsVal_int(obj1, &val2);
7290 if (!SWIG_IsOK(ecode2)) {
7291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7292 }
7293 arg2 = static_cast< int >(val2);
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 (arg1)->SetBezelFace(arg2);
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 resultobj = SWIG_Py_Void();
7301 return resultobj;
7302 fail:
7303 return NULL;
7304 }
7305
7306
7307 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7308 PyObject *resultobj = 0;
7309 wxGauge *arg1 = (wxGauge *) 0 ;
7310 int result;
7311 void *argp1 = 0 ;
7312 int res1 = 0 ;
7313 PyObject *swig_obj[1] ;
7314
7315 if (!args) SWIG_fail;
7316 swig_obj[0] = args;
7317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7318 if (!SWIG_IsOK(res1)) {
7319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7320 }
7321 arg1 = reinterpret_cast< wxGauge * >(argp1);
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7325 wxPyEndAllowThreads(__tstate);
7326 if (PyErr_Occurred()) SWIG_fail;
7327 }
7328 resultobj = SWIG_From_int(static_cast< int >(result));
7329 return resultobj;
7330 fail:
7331 return NULL;
7332 }
7333
7334
7335 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7336 PyObject *resultobj = 0;
7337 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7338 SwigValueWrapper<wxVisualAttributes > result;
7339 int val1 ;
7340 int ecode1 = 0 ;
7341 PyObject * obj0 = 0 ;
7342 char * kwnames[] = {
7343 (char *) "variant", NULL
7344 };
7345
7346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7347 if (obj0) {
7348 ecode1 = SWIG_AsVal_int(obj0, &val1);
7349 if (!SWIG_IsOK(ecode1)) {
7350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7351 }
7352 arg1 = static_cast< wxWindowVariant >(val1);
7353 }
7354 {
7355 if (!wxPyCheckForApp()) SWIG_fail;
7356 PyThreadState* __tstate = wxPyBeginAllowThreads();
7357 result = wxGauge::GetClassDefaultAttributes(arg1);
7358 wxPyEndAllowThreads(__tstate);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7362 return resultobj;
7363 fail:
7364 return NULL;
7365 }
7366
7367
7368 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7369 PyObject *obj;
7370 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7371 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7372 return SWIG_Py_Void();
7373 }
7374
7375 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7376 return SWIG_Python_InitShadowInstance(args);
7377 }
7378
7379 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7380 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7381 return 1;
7382 }
7383
7384
7385 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7386 PyObject *pyobj = 0;
7387
7388 {
7389 #if wxUSE_UNICODE
7390 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7391 #else
7392 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7393 #endif
7394 }
7395 return pyobj;
7396 }
7397
7398
7399 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7400 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7401 return 1;
7402 }
7403
7404
7405 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7406 PyObject *pyobj = 0;
7407
7408 {
7409 #if wxUSE_UNICODE
7410 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7411 #else
7412 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7413 #endif
7414 }
7415 return pyobj;
7416 }
7417
7418
7419 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7420 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7421 return 1;
7422 }
7423
7424
7425 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7426 PyObject *pyobj = 0;
7427
7428 {
7429 #if wxUSE_UNICODE
7430 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7431 #else
7432 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7433 #endif
7434 }
7435 return pyobj;
7436 }
7437
7438
7439 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7440 PyObject *resultobj = 0;
7441 wxWindow *arg1 = (wxWindow *) 0 ;
7442 int arg2 = (int) -1 ;
7443 wxString const &arg3_defvalue = wxPyEmptyString ;
7444 wxString *arg3 = (wxString *) &arg3_defvalue ;
7445 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7446 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7447 wxSize const &arg5_defvalue = wxDefaultSize ;
7448 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7449 long arg6 = (long) 0 ;
7450 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7451 wxString *arg7 = (wxString *) &arg7_defvalue ;
7452 wxStaticBox *result = 0 ;
7453 void *argp1 = 0 ;
7454 int res1 = 0 ;
7455 int val2 ;
7456 int ecode2 = 0 ;
7457 bool temp3 = false ;
7458 wxPoint temp4 ;
7459 wxSize temp5 ;
7460 long val6 ;
7461 int ecode6 = 0 ;
7462 bool temp7 = false ;
7463 PyObject * obj0 = 0 ;
7464 PyObject * obj1 = 0 ;
7465 PyObject * obj2 = 0 ;
7466 PyObject * obj3 = 0 ;
7467 PyObject * obj4 = 0 ;
7468 PyObject * obj5 = 0 ;
7469 PyObject * obj6 = 0 ;
7470 char * kwnames[] = {
7471 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7472 };
7473
7474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7476 if (!SWIG_IsOK(res1)) {
7477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7478 }
7479 arg1 = reinterpret_cast< wxWindow * >(argp1);
7480 if (obj1) {
7481 ecode2 = SWIG_AsVal_int(obj1, &val2);
7482 if (!SWIG_IsOK(ecode2)) {
7483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7484 }
7485 arg2 = static_cast< int >(val2);
7486 }
7487 if (obj2) {
7488 {
7489 arg3 = wxString_in_helper(obj2);
7490 if (arg3 == NULL) SWIG_fail;
7491 temp3 = true;
7492 }
7493 }
7494 if (obj3) {
7495 {
7496 arg4 = &temp4;
7497 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7498 }
7499 }
7500 if (obj4) {
7501 {
7502 arg5 = &temp5;
7503 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7504 }
7505 }
7506 if (obj5) {
7507 ecode6 = SWIG_AsVal_long(obj5, &val6);
7508 if (!SWIG_IsOK(ecode6)) {
7509 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7510 }
7511 arg6 = static_cast< long >(val6);
7512 }
7513 if (obj6) {
7514 {
7515 arg7 = wxString_in_helper(obj6);
7516 if (arg7 == NULL) SWIG_fail;
7517 temp7 = true;
7518 }
7519 }
7520 {
7521 if (!wxPyCheckForApp()) SWIG_fail;
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7528 {
7529 if (temp3)
7530 delete arg3;
7531 }
7532 {
7533 if (temp7)
7534 delete arg7;
7535 }
7536 return resultobj;
7537 fail:
7538 {
7539 if (temp3)
7540 delete arg3;
7541 }
7542 {
7543 if (temp7)
7544 delete arg7;
7545 }
7546 return NULL;
7547 }
7548
7549
7550 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7551 PyObject *resultobj = 0;
7552 wxStaticBox *result = 0 ;
7553
7554 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7555 {
7556 if (!wxPyCheckForApp()) SWIG_fail;
7557 PyThreadState* __tstate = wxPyBeginAllowThreads();
7558 result = (wxStaticBox *)new wxStaticBox();
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj = 0;
7571 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7572 wxWindow *arg2 = (wxWindow *) 0 ;
7573 int arg3 = (int) -1 ;
7574 wxString const &arg4_defvalue = wxPyEmptyString ;
7575 wxString *arg4 = (wxString *) &arg4_defvalue ;
7576 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7577 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7578 wxSize const &arg6_defvalue = wxDefaultSize ;
7579 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7580 long arg7 = (long) 0 ;
7581 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7582 wxString *arg8 = (wxString *) &arg8_defvalue ;
7583 bool result;
7584 void *argp1 = 0 ;
7585 int res1 = 0 ;
7586 void *argp2 = 0 ;
7587 int res2 = 0 ;
7588 int val3 ;
7589 int ecode3 = 0 ;
7590 bool temp4 = false ;
7591 wxPoint temp5 ;
7592 wxSize temp6 ;
7593 long val7 ;
7594 int ecode7 = 0 ;
7595 bool temp8 = false ;
7596 PyObject * obj0 = 0 ;
7597 PyObject * obj1 = 0 ;
7598 PyObject * obj2 = 0 ;
7599 PyObject * obj3 = 0 ;
7600 PyObject * obj4 = 0 ;
7601 PyObject * obj5 = 0 ;
7602 PyObject * obj6 = 0 ;
7603 PyObject * obj7 = 0 ;
7604 char * kwnames[] = {
7605 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7606 };
7607
7608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7612 }
7613 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7615 if (!SWIG_IsOK(res2)) {
7616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7617 }
7618 arg2 = reinterpret_cast< wxWindow * >(argp2);
7619 if (obj2) {
7620 ecode3 = SWIG_AsVal_int(obj2, &val3);
7621 if (!SWIG_IsOK(ecode3)) {
7622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7623 }
7624 arg3 = static_cast< int >(val3);
7625 }
7626 if (obj3) {
7627 {
7628 arg4 = wxString_in_helper(obj3);
7629 if (arg4 == NULL) SWIG_fail;
7630 temp4 = true;
7631 }
7632 }
7633 if (obj4) {
7634 {
7635 arg5 = &temp5;
7636 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7637 }
7638 }
7639 if (obj5) {
7640 {
7641 arg6 = &temp6;
7642 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7643 }
7644 }
7645 if (obj6) {
7646 ecode7 = SWIG_AsVal_long(obj6, &val7);
7647 if (!SWIG_IsOK(ecode7)) {
7648 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7649 }
7650 arg7 = static_cast< long >(val7);
7651 }
7652 if (obj7) {
7653 {
7654 arg8 = wxString_in_helper(obj7);
7655 if (arg8 == NULL) SWIG_fail;
7656 temp8 = true;
7657 }
7658 }
7659 {
7660 PyThreadState* __tstate = wxPyBeginAllowThreads();
7661 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 {
7666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7667 }
7668 {
7669 if (temp4)
7670 delete arg4;
7671 }
7672 {
7673 if (temp8)
7674 delete arg8;
7675 }
7676 return resultobj;
7677 fail:
7678 {
7679 if (temp4)
7680 delete arg4;
7681 }
7682 {
7683 if (temp8)
7684 delete arg8;
7685 }
7686 return NULL;
7687 }
7688
7689
7690 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj = 0;
7692 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7693 SwigValueWrapper<wxVisualAttributes > result;
7694 int val1 ;
7695 int ecode1 = 0 ;
7696 PyObject * obj0 = 0 ;
7697 char * kwnames[] = {
7698 (char *) "variant", NULL
7699 };
7700
7701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7702 if (obj0) {
7703 ecode1 = SWIG_AsVal_int(obj0, &val1);
7704 if (!SWIG_IsOK(ecode1)) {
7705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7706 }
7707 arg1 = static_cast< wxWindowVariant >(val1);
7708 }
7709 {
7710 if (!wxPyCheckForApp()) SWIG_fail;
7711 PyThreadState* __tstate = wxPyBeginAllowThreads();
7712 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7713 wxPyEndAllowThreads(__tstate);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7724 PyObject *obj;
7725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7726 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7727 return SWIG_Py_Void();
7728 }
7729
7730 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7731 return SWIG_Python_InitShadowInstance(args);
7732 }
7733
7734 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7735 PyObject *resultobj = 0;
7736 wxWindow *arg1 = (wxWindow *) 0 ;
7737 int arg2 = (int) -1 ;
7738 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7739 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7740 wxSize const &arg4_defvalue = wxDefaultSize ;
7741 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7742 long arg5 = (long) wxLI_HORIZONTAL ;
7743 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7744 wxString *arg6 = (wxString *) &arg6_defvalue ;
7745 wxStaticLine *result = 0 ;
7746 void *argp1 = 0 ;
7747 int res1 = 0 ;
7748 int val2 ;
7749 int ecode2 = 0 ;
7750 wxPoint temp3 ;
7751 wxSize temp4 ;
7752 long val5 ;
7753 int ecode5 = 0 ;
7754 bool temp6 = false ;
7755 PyObject * obj0 = 0 ;
7756 PyObject * obj1 = 0 ;
7757 PyObject * obj2 = 0 ;
7758 PyObject * obj3 = 0 ;
7759 PyObject * obj4 = 0 ;
7760 PyObject * obj5 = 0 ;
7761 char * kwnames[] = {
7762 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7763 };
7764
7765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7767 if (!SWIG_IsOK(res1)) {
7768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7769 }
7770 arg1 = reinterpret_cast< wxWindow * >(argp1);
7771 if (obj1) {
7772 ecode2 = SWIG_AsVal_int(obj1, &val2);
7773 if (!SWIG_IsOK(ecode2)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7775 }
7776 arg2 = static_cast< int >(val2);
7777 }
7778 if (obj2) {
7779 {
7780 arg3 = &temp3;
7781 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7782 }
7783 }
7784 if (obj3) {
7785 {
7786 arg4 = &temp4;
7787 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7788 }
7789 }
7790 if (obj4) {
7791 ecode5 = SWIG_AsVal_long(obj4, &val5);
7792 if (!SWIG_IsOK(ecode5)) {
7793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7794 }
7795 arg5 = static_cast< long >(val5);
7796 }
7797 if (obj5) {
7798 {
7799 arg6 = wxString_in_helper(obj5);
7800 if (arg6 == NULL) SWIG_fail;
7801 temp6 = true;
7802 }
7803 }
7804 {
7805 if (!wxPyCheckForApp()) SWIG_fail;
7806 PyThreadState* __tstate = wxPyBeginAllowThreads();
7807 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7808 wxPyEndAllowThreads(__tstate);
7809 if (PyErr_Occurred()) SWIG_fail;
7810 }
7811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7812 {
7813 if (temp6)
7814 delete arg6;
7815 }
7816 return resultobj;
7817 fail:
7818 {
7819 if (temp6)
7820 delete arg6;
7821 }
7822 return NULL;
7823 }
7824
7825
7826 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7827 PyObject *resultobj = 0;
7828 wxStaticLine *result = 0 ;
7829
7830 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7831 {
7832 if (!wxPyCheckForApp()) SWIG_fail;
7833 PyThreadState* __tstate = wxPyBeginAllowThreads();
7834 result = (wxStaticLine *)new wxStaticLine();
7835 wxPyEndAllowThreads(__tstate);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7839 return resultobj;
7840 fail:
7841 return NULL;
7842 }
7843
7844
7845 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj = 0;
7847 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7848 wxWindow *arg2 = (wxWindow *) 0 ;
7849 int arg3 = (int) -1 ;
7850 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7851 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7852 wxSize const &arg5_defvalue = wxDefaultSize ;
7853 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7854 long arg6 = (long) wxLI_HORIZONTAL ;
7855 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7856 wxString *arg7 = (wxString *) &arg7_defvalue ;
7857 bool result;
7858 void *argp1 = 0 ;
7859 int res1 = 0 ;
7860 void *argp2 = 0 ;
7861 int res2 = 0 ;
7862 int val3 ;
7863 int ecode3 = 0 ;
7864 wxPoint temp4 ;
7865 wxSize temp5 ;
7866 long val6 ;
7867 int ecode6 = 0 ;
7868 bool temp7 = false ;
7869 PyObject * obj0 = 0 ;
7870 PyObject * obj1 = 0 ;
7871 PyObject * obj2 = 0 ;
7872 PyObject * obj3 = 0 ;
7873 PyObject * obj4 = 0 ;
7874 PyObject * obj5 = 0 ;
7875 PyObject * obj6 = 0 ;
7876 char * kwnames[] = {
7877 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7878 };
7879
7880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7882 if (!SWIG_IsOK(res1)) {
7883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7884 }
7885 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7887 if (!SWIG_IsOK(res2)) {
7888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7889 }
7890 arg2 = reinterpret_cast< wxWindow * >(argp2);
7891 if (obj2) {
7892 ecode3 = SWIG_AsVal_int(obj2, &val3);
7893 if (!SWIG_IsOK(ecode3)) {
7894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7895 }
7896 arg3 = static_cast< int >(val3);
7897 }
7898 if (obj3) {
7899 {
7900 arg4 = &temp4;
7901 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7902 }
7903 }
7904 if (obj4) {
7905 {
7906 arg5 = &temp5;
7907 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7908 }
7909 }
7910 if (obj5) {
7911 ecode6 = SWIG_AsVal_long(obj5, &val6);
7912 if (!SWIG_IsOK(ecode6)) {
7913 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7914 }
7915 arg6 = static_cast< long >(val6);
7916 }
7917 if (obj6) {
7918 {
7919 arg7 = wxString_in_helper(obj6);
7920 if (arg7 == NULL) SWIG_fail;
7921 temp7 = true;
7922 }
7923 }
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7927 wxPyEndAllowThreads(__tstate);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 {
7931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7932 }
7933 {
7934 if (temp7)
7935 delete arg7;
7936 }
7937 return resultobj;
7938 fail:
7939 {
7940 if (temp7)
7941 delete arg7;
7942 }
7943 return NULL;
7944 }
7945
7946
7947 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7948 PyObject *resultobj = 0;
7949 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7950 bool result;
7951 void *argp1 = 0 ;
7952 int res1 = 0 ;
7953 PyObject *swig_obj[1] ;
7954
7955 if (!args) SWIG_fail;
7956 swig_obj[0] = args;
7957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7958 if (!SWIG_IsOK(res1)) {
7959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7960 }
7961 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 {
7969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7970 }
7971 return resultobj;
7972 fail:
7973 return NULL;
7974 }
7975
7976
7977 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7978 PyObject *resultobj = 0;
7979 int result;
7980
7981 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (int)wxStaticLine::GetDefaultSize();
7985 wxPyEndAllowThreads(__tstate);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 resultobj = SWIG_From_int(static_cast< int >(result));
7989 return resultobj;
7990 fail:
7991 return NULL;
7992 }
7993
7994
7995 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7996 PyObject *resultobj = 0;
7997 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7998 SwigValueWrapper<wxVisualAttributes > result;
7999 int val1 ;
8000 int ecode1 = 0 ;
8001 PyObject * obj0 = 0 ;
8002 char * kwnames[] = {
8003 (char *) "variant", NULL
8004 };
8005
8006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8007 if (obj0) {
8008 ecode1 = SWIG_AsVal_int(obj0, &val1);
8009 if (!SWIG_IsOK(ecode1)) {
8010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8011 }
8012 arg1 = static_cast< wxWindowVariant >(val1);
8013 }
8014 {
8015 if (!wxPyCheckForApp()) SWIG_fail;
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8022 return resultobj;
8023 fail:
8024 return NULL;
8025 }
8026
8027
8028 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8029 PyObject *obj;
8030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8031 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8032 return SWIG_Py_Void();
8033 }
8034
8035 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8036 return SWIG_Python_InitShadowInstance(args);
8037 }
8038
8039 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8040 PyObject *resultobj = 0;
8041 wxWindow *arg1 = (wxWindow *) 0 ;
8042 int arg2 = (int) -1 ;
8043 wxString const &arg3_defvalue = wxPyEmptyString ;
8044 wxString *arg3 = (wxString *) &arg3_defvalue ;
8045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8047 wxSize const &arg5_defvalue = wxDefaultSize ;
8048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8049 long arg6 = (long) 0 ;
8050 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8051 wxString *arg7 = (wxString *) &arg7_defvalue ;
8052 wxStaticText *result = 0 ;
8053 void *argp1 = 0 ;
8054 int res1 = 0 ;
8055 int val2 ;
8056 int ecode2 = 0 ;
8057 bool temp3 = false ;
8058 wxPoint temp4 ;
8059 wxSize temp5 ;
8060 long val6 ;
8061 int ecode6 = 0 ;
8062 bool temp7 = false ;
8063 PyObject * obj0 = 0 ;
8064 PyObject * obj1 = 0 ;
8065 PyObject * obj2 = 0 ;
8066 PyObject * obj3 = 0 ;
8067 PyObject * obj4 = 0 ;
8068 PyObject * obj5 = 0 ;
8069 PyObject * obj6 = 0 ;
8070 char * kwnames[] = {
8071 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8072 };
8073
8074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8076 if (!SWIG_IsOK(res1)) {
8077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8078 }
8079 arg1 = reinterpret_cast< wxWindow * >(argp1);
8080 if (obj1) {
8081 ecode2 = SWIG_AsVal_int(obj1, &val2);
8082 if (!SWIG_IsOK(ecode2)) {
8083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8084 }
8085 arg2 = static_cast< int >(val2);
8086 }
8087 if (obj2) {
8088 {
8089 arg3 = wxString_in_helper(obj2);
8090 if (arg3 == NULL) SWIG_fail;
8091 temp3 = true;
8092 }
8093 }
8094 if (obj3) {
8095 {
8096 arg4 = &temp4;
8097 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8098 }
8099 }
8100 if (obj4) {
8101 {
8102 arg5 = &temp5;
8103 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8104 }
8105 }
8106 if (obj5) {
8107 ecode6 = SWIG_AsVal_long(obj5, &val6);
8108 if (!SWIG_IsOK(ecode6)) {
8109 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8110 }
8111 arg6 = static_cast< long >(val6);
8112 }
8113 if (obj6) {
8114 {
8115 arg7 = wxString_in_helper(obj6);
8116 if (arg7 == NULL) SWIG_fail;
8117 temp7 = true;
8118 }
8119 }
8120 {
8121 if (!wxPyCheckForApp()) SWIG_fail;
8122 PyThreadState* __tstate = wxPyBeginAllowThreads();
8123 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8128 {
8129 if (temp3)
8130 delete arg3;
8131 }
8132 {
8133 if (temp7)
8134 delete arg7;
8135 }
8136 return resultobj;
8137 fail:
8138 {
8139 if (temp3)
8140 delete arg3;
8141 }
8142 {
8143 if (temp7)
8144 delete arg7;
8145 }
8146 return NULL;
8147 }
8148
8149
8150 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8151 PyObject *resultobj = 0;
8152 wxStaticText *result = 0 ;
8153
8154 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8155 {
8156 if (!wxPyCheckForApp()) SWIG_fail;
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 result = (wxStaticText *)new wxStaticText();
8159 wxPyEndAllowThreads(__tstate);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8163 return resultobj;
8164 fail:
8165 return NULL;
8166 }
8167
8168
8169 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8170 PyObject *resultobj = 0;
8171 wxStaticText *arg1 = (wxStaticText *) 0 ;
8172 wxWindow *arg2 = (wxWindow *) 0 ;
8173 int arg3 = (int) -1 ;
8174 wxString const &arg4_defvalue = wxPyEmptyString ;
8175 wxString *arg4 = (wxString *) &arg4_defvalue ;
8176 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8177 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8178 wxSize const &arg6_defvalue = wxDefaultSize ;
8179 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8180 long arg7 = (long) 0 ;
8181 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8182 wxString *arg8 = (wxString *) &arg8_defvalue ;
8183 bool result;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 void *argp2 = 0 ;
8187 int res2 = 0 ;
8188 int val3 ;
8189 int ecode3 = 0 ;
8190 bool temp4 = false ;
8191 wxPoint temp5 ;
8192 wxSize temp6 ;
8193 long val7 ;
8194 int ecode7 = 0 ;
8195 bool temp8 = false ;
8196 PyObject * obj0 = 0 ;
8197 PyObject * obj1 = 0 ;
8198 PyObject * obj2 = 0 ;
8199 PyObject * obj3 = 0 ;
8200 PyObject * obj4 = 0 ;
8201 PyObject * obj5 = 0 ;
8202 PyObject * obj6 = 0 ;
8203 PyObject * obj7 = 0 ;
8204 char * kwnames[] = {
8205 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8206 };
8207
8208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8210 if (!SWIG_IsOK(res1)) {
8211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8212 }
8213 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8215 if (!SWIG_IsOK(res2)) {
8216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8217 }
8218 arg2 = reinterpret_cast< wxWindow * >(argp2);
8219 if (obj2) {
8220 ecode3 = SWIG_AsVal_int(obj2, &val3);
8221 if (!SWIG_IsOK(ecode3)) {
8222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8223 }
8224 arg3 = static_cast< int >(val3);
8225 }
8226 if (obj3) {
8227 {
8228 arg4 = wxString_in_helper(obj3);
8229 if (arg4 == NULL) SWIG_fail;
8230 temp4 = true;
8231 }
8232 }
8233 if (obj4) {
8234 {
8235 arg5 = &temp5;
8236 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8237 }
8238 }
8239 if (obj5) {
8240 {
8241 arg6 = &temp6;
8242 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8243 }
8244 }
8245 if (obj6) {
8246 ecode7 = SWIG_AsVal_long(obj6, &val7);
8247 if (!SWIG_IsOK(ecode7)) {
8248 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8249 }
8250 arg7 = static_cast< long >(val7);
8251 }
8252 if (obj7) {
8253 {
8254 arg8 = wxString_in_helper(obj7);
8255 if (arg8 == NULL) SWIG_fail;
8256 temp8 = true;
8257 }
8258 }
8259 {
8260 PyThreadState* __tstate = wxPyBeginAllowThreads();
8261 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8262 wxPyEndAllowThreads(__tstate);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 {
8266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8267 }
8268 {
8269 if (temp4)
8270 delete arg4;
8271 }
8272 {
8273 if (temp8)
8274 delete arg8;
8275 }
8276 return resultobj;
8277 fail:
8278 {
8279 if (temp4)
8280 delete arg4;
8281 }
8282 {
8283 if (temp8)
8284 delete arg8;
8285 }
8286 return NULL;
8287 }
8288
8289
8290 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8291 PyObject *resultobj = 0;
8292 wxStaticText *arg1 = (wxStaticText *) 0 ;
8293 int arg2 ;
8294 void *argp1 = 0 ;
8295 int res1 = 0 ;
8296 int val2 ;
8297 int ecode2 = 0 ;
8298 PyObject * obj0 = 0 ;
8299 PyObject * obj1 = 0 ;
8300 char * kwnames[] = {
8301 (char *) "self",(char *) "width", NULL
8302 };
8303
8304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8306 if (!SWIG_IsOK(res1)) {
8307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8308 }
8309 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8310 ecode2 = SWIG_AsVal_int(obj1, &val2);
8311 if (!SWIG_IsOK(ecode2)) {
8312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8313 }
8314 arg2 = static_cast< int >(val2);
8315 {
8316 PyThreadState* __tstate = wxPyBeginAllowThreads();
8317 (arg1)->Wrap(arg2);
8318 wxPyEndAllowThreads(__tstate);
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 resultobj = SWIG_Py_Void();
8322 return resultobj;
8323 fail:
8324 return NULL;
8325 }
8326
8327
8328 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8329 PyObject *resultobj = 0;
8330 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8331 SwigValueWrapper<wxVisualAttributes > result;
8332 int val1 ;
8333 int ecode1 = 0 ;
8334 PyObject * obj0 = 0 ;
8335 char * kwnames[] = {
8336 (char *) "variant", NULL
8337 };
8338
8339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8340 if (obj0) {
8341 ecode1 = SWIG_AsVal_int(obj0, &val1);
8342 if (!SWIG_IsOK(ecode1)) {
8343 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8344 }
8345 arg1 = static_cast< wxWindowVariant >(val1);
8346 }
8347 {
8348 if (!wxPyCheckForApp()) SWIG_fail;
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 result = wxStaticText::GetClassDefaultAttributes(arg1);
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8355 return resultobj;
8356 fail:
8357 return NULL;
8358 }
8359
8360
8361 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8362 PyObject *obj;
8363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8364 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8365 return SWIG_Py_Void();
8366 }
8367
8368 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8369 return SWIG_Python_InitShadowInstance(args);
8370 }
8371
8372 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8373 PyObject *resultobj = 0;
8374 wxWindow *arg1 = (wxWindow *) 0 ;
8375 int arg2 = (int) -1 ;
8376 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8377 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8378 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8379 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8380 wxSize const &arg5_defvalue = wxDefaultSize ;
8381 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8382 long arg6 = (long) 0 ;
8383 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8384 wxString *arg7 = (wxString *) &arg7_defvalue ;
8385 wxStaticBitmap *result = 0 ;
8386 void *argp1 = 0 ;
8387 int res1 = 0 ;
8388 int val2 ;
8389 int ecode2 = 0 ;
8390 void *argp3 = 0 ;
8391 int res3 = 0 ;
8392 wxPoint temp4 ;
8393 wxSize temp5 ;
8394 long val6 ;
8395 int ecode6 = 0 ;
8396 bool temp7 = false ;
8397 PyObject * obj0 = 0 ;
8398 PyObject * obj1 = 0 ;
8399 PyObject * obj2 = 0 ;
8400 PyObject * obj3 = 0 ;
8401 PyObject * obj4 = 0 ;
8402 PyObject * obj5 = 0 ;
8403 PyObject * obj6 = 0 ;
8404 char * kwnames[] = {
8405 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8406 };
8407
8408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8410 if (!SWIG_IsOK(res1)) {
8411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8412 }
8413 arg1 = reinterpret_cast< wxWindow * >(argp1);
8414 if (obj1) {
8415 ecode2 = SWIG_AsVal_int(obj1, &val2);
8416 if (!SWIG_IsOK(ecode2)) {
8417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8418 }
8419 arg2 = static_cast< int >(val2);
8420 }
8421 if (obj2) {
8422 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8423 if (!SWIG_IsOK(res3)) {
8424 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8425 }
8426 if (!argp3) {
8427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8428 }
8429 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8430 }
8431 if (obj3) {
8432 {
8433 arg4 = &temp4;
8434 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8435 }
8436 }
8437 if (obj4) {
8438 {
8439 arg5 = &temp5;
8440 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8441 }
8442 }
8443 if (obj5) {
8444 ecode6 = SWIG_AsVal_long(obj5, &val6);
8445 if (!SWIG_IsOK(ecode6)) {
8446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8447 }
8448 arg6 = static_cast< long >(val6);
8449 }
8450 if (obj6) {
8451 {
8452 arg7 = wxString_in_helper(obj6);
8453 if (arg7 == NULL) SWIG_fail;
8454 temp7 = true;
8455 }
8456 }
8457 {
8458 if (!wxPyCheckForApp()) SWIG_fail;
8459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8460 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8461 wxPyEndAllowThreads(__tstate);
8462 if (PyErr_Occurred()) SWIG_fail;
8463 }
8464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8465 {
8466 if (temp7)
8467 delete arg7;
8468 }
8469 return resultobj;
8470 fail:
8471 {
8472 if (temp7)
8473 delete arg7;
8474 }
8475 return NULL;
8476 }
8477
8478
8479 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8480 PyObject *resultobj = 0;
8481 wxStaticBitmap *result = 0 ;
8482
8483 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8484 {
8485 if (!wxPyCheckForApp()) SWIG_fail;
8486 PyThreadState* __tstate = wxPyBeginAllowThreads();
8487 result = (wxStaticBitmap *)new wxStaticBitmap();
8488 wxPyEndAllowThreads(__tstate);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8492 return resultobj;
8493 fail:
8494 return NULL;
8495 }
8496
8497
8498 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8499 PyObject *resultobj = 0;
8500 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8501 wxWindow *arg2 = (wxWindow *) 0 ;
8502 int arg3 = (int) -1 ;
8503 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8504 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8505 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8506 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8507 wxSize const &arg6_defvalue = wxDefaultSize ;
8508 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8509 long arg7 = (long) 0 ;
8510 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8511 wxString *arg8 = (wxString *) &arg8_defvalue ;
8512 bool result;
8513 void *argp1 = 0 ;
8514 int res1 = 0 ;
8515 void *argp2 = 0 ;
8516 int res2 = 0 ;
8517 int val3 ;
8518 int ecode3 = 0 ;
8519 void *argp4 = 0 ;
8520 int res4 = 0 ;
8521 wxPoint temp5 ;
8522 wxSize temp6 ;
8523 long val7 ;
8524 int ecode7 = 0 ;
8525 bool temp8 = false ;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 PyObject * obj2 = 0 ;
8529 PyObject * obj3 = 0 ;
8530 PyObject * obj4 = 0 ;
8531 PyObject * obj5 = 0 ;
8532 PyObject * obj6 = 0 ;
8533 PyObject * obj7 = 0 ;
8534 char * kwnames[] = {
8535 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8536 };
8537
8538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8540 if (!SWIG_IsOK(res1)) {
8541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8542 }
8543 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8545 if (!SWIG_IsOK(res2)) {
8546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8547 }
8548 arg2 = reinterpret_cast< wxWindow * >(argp2);
8549 if (obj2) {
8550 ecode3 = SWIG_AsVal_int(obj2, &val3);
8551 if (!SWIG_IsOK(ecode3)) {
8552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8553 }
8554 arg3 = static_cast< int >(val3);
8555 }
8556 if (obj3) {
8557 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8558 if (!SWIG_IsOK(res4)) {
8559 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8560 }
8561 if (!argp4) {
8562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8563 }
8564 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8565 }
8566 if (obj4) {
8567 {
8568 arg5 = &temp5;
8569 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8570 }
8571 }
8572 if (obj5) {
8573 {
8574 arg6 = &temp6;
8575 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8576 }
8577 }
8578 if (obj6) {
8579 ecode7 = SWIG_AsVal_long(obj6, &val7);
8580 if (!SWIG_IsOK(ecode7)) {
8581 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8582 }
8583 arg7 = static_cast< long >(val7);
8584 }
8585 if (obj7) {
8586 {
8587 arg8 = wxString_in_helper(obj7);
8588 if (arg8 == NULL) SWIG_fail;
8589 temp8 = true;
8590 }
8591 }
8592 {
8593 PyThreadState* __tstate = wxPyBeginAllowThreads();
8594 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 {
8599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8600 }
8601 {
8602 if (temp8)
8603 delete arg8;
8604 }
8605 return resultobj;
8606 fail:
8607 {
8608 if (temp8)
8609 delete arg8;
8610 }
8611 return NULL;
8612 }
8613
8614
8615 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8616 PyObject *resultobj = 0;
8617 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8618 wxBitmap result;
8619 void *argp1 = 0 ;
8620 int res1 = 0 ;
8621 PyObject *swig_obj[1] ;
8622
8623 if (!args) SWIG_fail;
8624 swig_obj[0] = args;
8625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8626 if (!SWIG_IsOK(res1)) {
8627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8628 }
8629 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8630 {
8631 PyThreadState* __tstate = wxPyBeginAllowThreads();
8632 result = (arg1)->GetBitmap();
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj = 0;
8645 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8646 wxBitmap *arg2 = 0 ;
8647 void *argp1 = 0 ;
8648 int res1 = 0 ;
8649 void *argp2 = 0 ;
8650 int res2 = 0 ;
8651 PyObject * obj0 = 0 ;
8652 PyObject * obj1 = 0 ;
8653 char * kwnames[] = {
8654 (char *) "self",(char *) "bitmap", NULL
8655 };
8656
8657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8659 if (!SWIG_IsOK(res1)) {
8660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8661 }
8662 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8664 if (!SWIG_IsOK(res2)) {
8665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8666 }
8667 if (!argp2) {
8668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8669 }
8670 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8671 {
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 resultobj = SWIG_Py_Void();
8678 return resultobj;
8679 fail:
8680 return NULL;
8681 }
8682
8683
8684 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8685 PyObject *resultobj = 0;
8686 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8687 wxIcon *arg2 = 0 ;
8688 void *argp1 = 0 ;
8689 int res1 = 0 ;
8690 void *argp2 = 0 ;
8691 int res2 = 0 ;
8692 PyObject * obj0 = 0 ;
8693 PyObject * obj1 = 0 ;
8694 char * kwnames[] = {
8695 (char *) "self",(char *) "icon", NULL
8696 };
8697
8698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8700 if (!SWIG_IsOK(res1)) {
8701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8702 }
8703 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8705 if (!SWIG_IsOK(res2)) {
8706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8707 }
8708 if (!argp2) {
8709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8710 }
8711 arg2 = reinterpret_cast< wxIcon * >(argp2);
8712 {
8713 PyThreadState* __tstate = wxPyBeginAllowThreads();
8714 (arg1)->SetIcon((wxIcon const &)*arg2);
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 resultobj = SWIG_Py_Void();
8719 return resultobj;
8720 fail:
8721 return NULL;
8722 }
8723
8724
8725 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj = 0;
8727 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8728 SwigValueWrapper<wxVisualAttributes > result;
8729 int val1 ;
8730 int ecode1 = 0 ;
8731 PyObject * obj0 = 0 ;
8732 char * kwnames[] = {
8733 (char *) "variant", NULL
8734 };
8735
8736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8737 if (obj0) {
8738 ecode1 = SWIG_AsVal_int(obj0, &val1);
8739 if (!SWIG_IsOK(ecode1)) {
8740 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8741 }
8742 arg1 = static_cast< wxWindowVariant >(val1);
8743 }
8744 {
8745 if (!wxPyCheckForApp()) SWIG_fail;
8746 PyThreadState* __tstate = wxPyBeginAllowThreads();
8747 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8752 return resultobj;
8753 fail:
8754 return NULL;
8755 }
8756
8757
8758 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8759 PyObject *obj;
8760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8761 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8762 return SWIG_Py_Void();
8763 }
8764
8765 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8766 return SWIG_Python_InitShadowInstance(args);
8767 }
8768
8769 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8770 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8771 return 1;
8772 }
8773
8774
8775 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8776 PyObject *pyobj = 0;
8777
8778 {
8779 #if wxUSE_UNICODE
8780 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8781 #else
8782 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8783 #endif
8784 }
8785 return pyobj;
8786 }
8787
8788
8789 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8790 PyObject *resultobj = 0;
8791 wxWindow *arg1 = (wxWindow *) 0 ;
8792 int arg2 = (int) -1 ;
8793 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8794 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8795 wxSize const &arg4_defvalue = wxDefaultSize ;
8796 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8797 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8798 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8799 long arg6 = (long) 0 ;
8800 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8801 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8802 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8803 wxString *arg8 = (wxString *) &arg8_defvalue ;
8804 wxListBox *result = 0 ;
8805 void *argp1 = 0 ;
8806 int res1 = 0 ;
8807 int val2 ;
8808 int ecode2 = 0 ;
8809 wxPoint temp3 ;
8810 wxSize temp4 ;
8811 bool temp5 = false ;
8812 long val6 ;
8813 int ecode6 = 0 ;
8814 void *argp7 = 0 ;
8815 int res7 = 0 ;
8816 bool temp8 = false ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 PyObject * obj2 = 0 ;
8820 PyObject * obj3 = 0 ;
8821 PyObject * obj4 = 0 ;
8822 PyObject * obj5 = 0 ;
8823 PyObject * obj6 = 0 ;
8824 PyObject * obj7 = 0 ;
8825 char * kwnames[] = {
8826 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8827 };
8828
8829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8833 }
8834 arg1 = reinterpret_cast< wxWindow * >(argp1);
8835 if (obj1) {
8836 ecode2 = SWIG_AsVal_int(obj1, &val2);
8837 if (!SWIG_IsOK(ecode2)) {
8838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8839 }
8840 arg2 = static_cast< int >(val2);
8841 }
8842 if (obj2) {
8843 {
8844 arg3 = &temp3;
8845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8846 }
8847 }
8848 if (obj3) {
8849 {
8850 arg4 = &temp4;
8851 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8852 }
8853 }
8854 if (obj4) {
8855 {
8856 if (! PySequence_Check(obj4)) {
8857 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8858 SWIG_fail;
8859 }
8860 arg5 = new wxArrayString;
8861 temp5 = true;
8862 int i, len=PySequence_Length(obj4);
8863 for (i=0; i<len; i++) {
8864 PyObject* item = PySequence_GetItem(obj4, i);
8865 wxString* s = wxString_in_helper(item);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 arg5->Add(*s);
8868 delete s;
8869 Py_DECREF(item);
8870 }
8871 }
8872 }
8873 if (obj5) {
8874 ecode6 = SWIG_AsVal_long(obj5, &val6);
8875 if (!SWIG_IsOK(ecode6)) {
8876 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8877 }
8878 arg6 = static_cast< long >(val6);
8879 }
8880 if (obj6) {
8881 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8882 if (!SWIG_IsOK(res7)) {
8883 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8884 }
8885 if (!argp7) {
8886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8887 }
8888 arg7 = reinterpret_cast< wxValidator * >(argp7);
8889 }
8890 if (obj7) {
8891 {
8892 arg8 = wxString_in_helper(obj7);
8893 if (arg8 == NULL) SWIG_fail;
8894 temp8 = true;
8895 }
8896 }
8897 {
8898 if (!wxPyCheckForApp()) SWIG_fail;
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8905 {
8906 if (temp5) delete arg5;
8907 }
8908 {
8909 if (temp8)
8910 delete arg8;
8911 }
8912 return resultobj;
8913 fail:
8914 {
8915 if (temp5) delete arg5;
8916 }
8917 {
8918 if (temp8)
8919 delete arg8;
8920 }
8921 return NULL;
8922 }
8923
8924
8925 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8926 PyObject *resultobj = 0;
8927 wxListBox *result = 0 ;
8928
8929 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8930 {
8931 if (!wxPyCheckForApp()) SWIG_fail;
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 result = (wxListBox *)new wxListBox();
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj = 0;
8946 wxListBox *arg1 = (wxListBox *) 0 ;
8947 wxWindow *arg2 = (wxWindow *) 0 ;
8948 int arg3 = (int) -1 ;
8949 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8950 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8951 wxSize const &arg5_defvalue = wxDefaultSize ;
8952 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8953 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8954 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8955 long arg7 = (long) 0 ;
8956 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8957 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8958 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8959 wxString *arg9 = (wxString *) &arg9_defvalue ;
8960 bool result;
8961 void *argp1 = 0 ;
8962 int res1 = 0 ;
8963 void *argp2 = 0 ;
8964 int res2 = 0 ;
8965 int val3 ;
8966 int ecode3 = 0 ;
8967 wxPoint temp4 ;
8968 wxSize temp5 ;
8969 bool temp6 = false ;
8970 long val7 ;
8971 int ecode7 = 0 ;
8972 void *argp8 = 0 ;
8973 int res8 = 0 ;
8974 bool temp9 = false ;
8975 PyObject * obj0 = 0 ;
8976 PyObject * obj1 = 0 ;
8977 PyObject * obj2 = 0 ;
8978 PyObject * obj3 = 0 ;
8979 PyObject * obj4 = 0 ;
8980 PyObject * obj5 = 0 ;
8981 PyObject * obj6 = 0 ;
8982 PyObject * obj7 = 0 ;
8983 PyObject * obj8 = 0 ;
8984 char * kwnames[] = {
8985 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8986 };
8987
8988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8990 if (!SWIG_IsOK(res1)) {
8991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8992 }
8993 arg1 = reinterpret_cast< wxListBox * >(argp1);
8994 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8995 if (!SWIG_IsOK(res2)) {
8996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8997 }
8998 arg2 = reinterpret_cast< wxWindow * >(argp2);
8999 if (obj2) {
9000 ecode3 = SWIG_AsVal_int(obj2, &val3);
9001 if (!SWIG_IsOK(ecode3)) {
9002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9003 }
9004 arg3 = static_cast< int >(val3);
9005 }
9006 if (obj3) {
9007 {
9008 arg4 = &temp4;
9009 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9010 }
9011 }
9012 if (obj4) {
9013 {
9014 arg5 = &temp5;
9015 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9016 }
9017 }
9018 if (obj5) {
9019 {
9020 if (! PySequence_Check(obj5)) {
9021 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9022 SWIG_fail;
9023 }
9024 arg6 = new wxArrayString;
9025 temp6 = true;
9026 int i, len=PySequence_Length(obj5);
9027 for (i=0; i<len; i++) {
9028 PyObject* item = PySequence_GetItem(obj5, i);
9029 wxString* s = wxString_in_helper(item);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 arg6->Add(*s);
9032 delete s;
9033 Py_DECREF(item);
9034 }
9035 }
9036 }
9037 if (obj6) {
9038 ecode7 = SWIG_AsVal_long(obj6, &val7);
9039 if (!SWIG_IsOK(ecode7)) {
9040 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9041 }
9042 arg7 = static_cast< long >(val7);
9043 }
9044 if (obj7) {
9045 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9046 if (!SWIG_IsOK(res8)) {
9047 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9048 }
9049 if (!argp8) {
9050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9051 }
9052 arg8 = reinterpret_cast< wxValidator * >(argp8);
9053 }
9054 if (obj8) {
9055 {
9056 arg9 = wxString_in_helper(obj8);
9057 if (arg9 == NULL) SWIG_fail;
9058 temp9 = true;
9059 }
9060 }
9061 {
9062 PyThreadState* __tstate = wxPyBeginAllowThreads();
9063 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 {
9068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9069 }
9070 {
9071 if (temp6) delete arg6;
9072 }
9073 {
9074 if (temp9)
9075 delete arg9;
9076 }
9077 return resultobj;
9078 fail:
9079 {
9080 if (temp6) delete arg6;
9081 }
9082 {
9083 if (temp9)
9084 delete arg9;
9085 }
9086 return NULL;
9087 }
9088
9089
9090 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj = 0;
9092 wxListBox *arg1 = (wxListBox *) 0 ;
9093 wxString *arg2 = 0 ;
9094 int arg3 ;
9095 PyObject *arg4 = (PyObject *) NULL ;
9096 void *argp1 = 0 ;
9097 int res1 = 0 ;
9098 bool temp2 = false ;
9099 int val3 ;
9100 int ecode3 = 0 ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 PyObject * obj2 = 0 ;
9104 PyObject * obj3 = 0 ;
9105 char * kwnames[] = {
9106 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9107 };
9108
9109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9111 if (!SWIG_IsOK(res1)) {
9112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9113 }
9114 arg1 = reinterpret_cast< wxListBox * >(argp1);
9115 {
9116 arg2 = wxString_in_helper(obj1);
9117 if (arg2 == NULL) SWIG_fail;
9118 temp2 = true;
9119 }
9120 ecode3 = SWIG_AsVal_int(obj2, &val3);
9121 if (!SWIG_IsOK(ecode3)) {
9122 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9123 }
9124 arg3 = static_cast< int >(val3);
9125 if (obj3) {
9126 arg4 = obj3;
9127 }
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 resultobj = SWIG_Py_Void();
9135 {
9136 if (temp2)
9137 delete arg2;
9138 }
9139 return resultobj;
9140 fail:
9141 {
9142 if (temp2)
9143 delete arg2;
9144 }
9145 return NULL;
9146 }
9147
9148
9149 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9150 PyObject *resultobj = 0;
9151 wxListBox *arg1 = (wxListBox *) 0 ;
9152 wxArrayString *arg2 = 0 ;
9153 unsigned int arg3 ;
9154 void *argp1 = 0 ;
9155 int res1 = 0 ;
9156 bool temp2 = false ;
9157 unsigned int val3 ;
9158 int ecode3 = 0 ;
9159 PyObject * obj0 = 0 ;
9160 PyObject * obj1 = 0 ;
9161 PyObject * obj2 = 0 ;
9162 char * kwnames[] = {
9163 (char *) "self",(char *) "items",(char *) "pos", NULL
9164 };
9165
9166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9168 if (!SWIG_IsOK(res1)) {
9169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9170 }
9171 arg1 = reinterpret_cast< wxListBox * >(argp1);
9172 {
9173 if (! PySequence_Check(obj1)) {
9174 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9175 SWIG_fail;
9176 }
9177 arg2 = new wxArrayString;
9178 temp2 = true;
9179 int i, len=PySequence_Length(obj1);
9180 for (i=0; i<len; i++) {
9181 PyObject* item = PySequence_GetItem(obj1, i);
9182 wxString* s = wxString_in_helper(item);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 arg2->Add(*s);
9185 delete s;
9186 Py_DECREF(item);
9187 }
9188 }
9189 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9190 if (!SWIG_IsOK(ecode3)) {
9191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9192 }
9193 arg3 = static_cast< unsigned int >(val3);
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 resultobj = SWIG_Py_Void();
9201 {
9202 if (temp2) delete arg2;
9203 }
9204 return resultobj;
9205 fail:
9206 {
9207 if (temp2) delete arg2;
9208 }
9209 return NULL;
9210 }
9211
9212
9213 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj = 0;
9215 wxListBox *arg1 = (wxListBox *) 0 ;
9216 wxArrayString *arg2 = 0 ;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 bool temp2 = false ;
9220 PyObject * obj0 = 0 ;
9221 PyObject * obj1 = 0 ;
9222 char * kwnames[] = {
9223 (char *) "self",(char *) "items", NULL
9224 };
9225
9226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9228 if (!SWIG_IsOK(res1)) {
9229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9230 }
9231 arg1 = reinterpret_cast< wxListBox * >(argp1);
9232 {
9233 if (! PySequence_Check(obj1)) {
9234 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9235 SWIG_fail;
9236 }
9237 arg2 = new wxArrayString;
9238 temp2 = true;
9239 int i, len=PySequence_Length(obj1);
9240 for (i=0; i<len; i++) {
9241 PyObject* item = PySequence_GetItem(obj1, i);
9242 wxString* s = wxString_in_helper(item);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 arg2->Add(*s);
9245 delete s;
9246 Py_DECREF(item);
9247 }
9248 }
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 (arg1)->Set((wxArrayString const &)*arg2);
9252 wxPyEndAllowThreads(__tstate);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 }
9255 resultobj = SWIG_Py_Void();
9256 {
9257 if (temp2) delete arg2;
9258 }
9259 return resultobj;
9260 fail:
9261 {
9262 if (temp2) delete arg2;
9263 }
9264 return NULL;
9265 }
9266
9267
9268 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj = 0;
9270 wxListBox *arg1 = (wxListBox *) 0 ;
9271 int arg2 ;
9272 bool result;
9273 void *argp1 = 0 ;
9274 int res1 = 0 ;
9275 int val2 ;
9276 int ecode2 = 0 ;
9277 PyObject * obj0 = 0 ;
9278 PyObject * obj1 = 0 ;
9279 char * kwnames[] = {
9280 (char *) "self",(char *) "n", NULL
9281 };
9282
9283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9285 if (!SWIG_IsOK(res1)) {
9286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9287 }
9288 arg1 = reinterpret_cast< wxListBox * >(argp1);
9289 ecode2 = SWIG_AsVal_int(obj1, &val2);
9290 if (!SWIG_IsOK(ecode2)) {
9291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9292 }
9293 arg2 = static_cast< int >(val2);
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 {
9301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9302 }
9303 return resultobj;
9304 fail:
9305 return NULL;
9306 }
9307
9308
9309 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9310 PyObject *resultobj = 0;
9311 wxListBox *arg1 = (wxListBox *) 0 ;
9312 int arg2 ;
9313 bool arg3 = (bool) true ;
9314 void *argp1 = 0 ;
9315 int res1 = 0 ;
9316 int val2 ;
9317 int ecode2 = 0 ;
9318 bool val3 ;
9319 int ecode3 = 0 ;
9320 PyObject * obj0 = 0 ;
9321 PyObject * obj1 = 0 ;
9322 PyObject * obj2 = 0 ;
9323 char * kwnames[] = {
9324 (char *) "self",(char *) "n",(char *) "select", NULL
9325 };
9326
9327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9329 if (!SWIG_IsOK(res1)) {
9330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9331 }
9332 arg1 = reinterpret_cast< wxListBox * >(argp1);
9333 ecode2 = SWIG_AsVal_int(obj1, &val2);
9334 if (!SWIG_IsOK(ecode2)) {
9335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9336 }
9337 arg2 = static_cast< int >(val2);
9338 if (obj2) {
9339 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9340 if (!SWIG_IsOK(ecode3)) {
9341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9342 }
9343 arg3 = static_cast< bool >(val3);
9344 }
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 (arg1)->SetSelection(arg2,arg3);
9348 wxPyEndAllowThreads(__tstate);
9349 if (PyErr_Occurred()) SWIG_fail;
9350 }
9351 resultobj = SWIG_Py_Void();
9352 return resultobj;
9353 fail:
9354 return NULL;
9355 }
9356
9357
9358 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9359 PyObject *resultobj = 0;
9360 wxListBox *arg1 = (wxListBox *) 0 ;
9361 int arg2 ;
9362 void *argp1 = 0 ;
9363 int res1 = 0 ;
9364 int val2 ;
9365 int ecode2 = 0 ;
9366 PyObject * obj0 = 0 ;
9367 PyObject * obj1 = 0 ;
9368 char * kwnames[] = {
9369 (char *) "self",(char *) "n", NULL
9370 };
9371
9372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9374 if (!SWIG_IsOK(res1)) {
9375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9376 }
9377 arg1 = reinterpret_cast< wxListBox * >(argp1);
9378 ecode2 = SWIG_AsVal_int(obj1, &val2);
9379 if (!SWIG_IsOK(ecode2)) {
9380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9381 }
9382 arg2 = static_cast< int >(val2);
9383 {
9384 PyThreadState* __tstate = wxPyBeginAllowThreads();
9385 (arg1)->Select(arg2);
9386 wxPyEndAllowThreads(__tstate);
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 resultobj = SWIG_Py_Void();
9390 return resultobj;
9391 fail:
9392 return NULL;
9393 }
9394
9395
9396 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9397 PyObject *resultobj = 0;
9398 wxListBox *arg1 = (wxListBox *) 0 ;
9399 int arg2 ;
9400 void *argp1 = 0 ;
9401 int res1 = 0 ;
9402 int val2 ;
9403 int ecode2 = 0 ;
9404 PyObject * obj0 = 0 ;
9405 PyObject * obj1 = 0 ;
9406 char * kwnames[] = {
9407 (char *) "self",(char *) "n", NULL
9408 };
9409
9410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9412 if (!SWIG_IsOK(res1)) {
9413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9414 }
9415 arg1 = reinterpret_cast< wxListBox * >(argp1);
9416 ecode2 = SWIG_AsVal_int(obj1, &val2);
9417 if (!SWIG_IsOK(ecode2)) {
9418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9419 }
9420 arg2 = static_cast< int >(val2);
9421 {
9422 PyThreadState* __tstate = wxPyBeginAllowThreads();
9423 (arg1)->Deselect(arg2);
9424 wxPyEndAllowThreads(__tstate);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 }
9427 resultobj = SWIG_Py_Void();
9428 return resultobj;
9429 fail:
9430 return NULL;
9431 }
9432
9433
9434 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9435 PyObject *resultobj = 0;
9436 wxListBox *arg1 = (wxListBox *) 0 ;
9437 int arg2 = (int) -1 ;
9438 void *argp1 = 0 ;
9439 int res1 = 0 ;
9440 int val2 ;
9441 int ecode2 = 0 ;
9442 PyObject * obj0 = 0 ;
9443 PyObject * obj1 = 0 ;
9444 char * kwnames[] = {
9445 (char *) "self",(char *) "itemToLeaveSelected", NULL
9446 };
9447
9448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9450 if (!SWIG_IsOK(res1)) {
9451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9452 }
9453 arg1 = reinterpret_cast< wxListBox * >(argp1);
9454 if (obj1) {
9455 ecode2 = SWIG_AsVal_int(obj1, &val2);
9456 if (!SWIG_IsOK(ecode2)) {
9457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9458 }
9459 arg2 = static_cast< int >(val2);
9460 }
9461 {
9462 PyThreadState* __tstate = wxPyBeginAllowThreads();
9463 (arg1)->DeselectAll(arg2);
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 resultobj = SWIG_Py_Void();
9468 return resultobj;
9469 fail:
9470 return NULL;
9471 }
9472
9473
9474 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9475 PyObject *resultobj = 0;
9476 wxListBox *arg1 = (wxListBox *) 0 ;
9477 wxString *arg2 = 0 ;
9478 bool arg3 = (bool) true ;
9479 bool result;
9480 void *argp1 = 0 ;
9481 int res1 = 0 ;
9482 bool temp2 = false ;
9483 bool val3 ;
9484 int ecode3 = 0 ;
9485 PyObject * obj0 = 0 ;
9486 PyObject * obj1 = 0 ;
9487 PyObject * obj2 = 0 ;
9488 char * kwnames[] = {
9489 (char *) "self",(char *) "s",(char *) "select", NULL
9490 };
9491
9492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9494 if (!SWIG_IsOK(res1)) {
9495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9496 }
9497 arg1 = reinterpret_cast< wxListBox * >(argp1);
9498 {
9499 arg2 = wxString_in_helper(obj1);
9500 if (arg2 == NULL) SWIG_fail;
9501 temp2 = true;
9502 }
9503 if (obj2) {
9504 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9505 if (!SWIG_IsOK(ecode3)) {
9506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9507 }
9508 arg3 = static_cast< bool >(val3);
9509 }
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 {
9517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9518 }
9519 {
9520 if (temp2)
9521 delete arg2;
9522 }
9523 return resultobj;
9524 fail:
9525 {
9526 if (temp2)
9527 delete arg2;
9528 }
9529 return NULL;
9530 }
9531
9532
9533 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9534 PyObject *resultobj = 0;
9535 wxListBox *arg1 = (wxListBox *) 0 ;
9536 PyObject *result = 0 ;
9537 void *argp1 = 0 ;
9538 int res1 = 0 ;
9539 PyObject *swig_obj[1] ;
9540
9541 if (!args) SWIG_fail;
9542 swig_obj[0] = args;
9543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9544 if (!SWIG_IsOK(res1)) {
9545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9546 }
9547 arg1 = reinterpret_cast< wxListBox * >(argp1);
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 result = (PyObject *)wxListBox_GetSelections(arg1);
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 }
9554 resultobj = result;
9555 return resultobj;
9556 fail:
9557 return NULL;
9558 }
9559
9560
9561 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj = 0;
9563 wxListBox *arg1 = (wxListBox *) 0 ;
9564 int arg2 ;
9565 void *argp1 = 0 ;
9566 int res1 = 0 ;
9567 int val2 ;
9568 int ecode2 = 0 ;
9569 PyObject * obj0 = 0 ;
9570 PyObject * obj1 = 0 ;
9571 char * kwnames[] = {
9572 (char *) "self",(char *) "n", NULL
9573 };
9574
9575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9577 if (!SWIG_IsOK(res1)) {
9578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9579 }
9580 arg1 = reinterpret_cast< wxListBox * >(argp1);
9581 ecode2 = SWIG_AsVal_int(obj1, &val2);
9582 if (!SWIG_IsOK(ecode2)) {
9583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9584 }
9585 arg2 = static_cast< int >(val2);
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 (arg1)->SetFirstItem(arg2);
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_Py_Void();
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj = 0;
9601 wxListBox *arg1 = (wxListBox *) 0 ;
9602 wxString *arg2 = 0 ;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 bool temp2 = false ;
9606 PyObject * obj0 = 0 ;
9607 PyObject * obj1 = 0 ;
9608 char * kwnames[] = {
9609 (char *) "self",(char *) "s", NULL
9610 };
9611
9612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9614 if (!SWIG_IsOK(res1)) {
9615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9616 }
9617 arg1 = reinterpret_cast< wxListBox * >(argp1);
9618 {
9619 arg2 = wxString_in_helper(obj1);
9620 if (arg2 == NULL) SWIG_fail;
9621 temp2 = true;
9622 }
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 (arg1)->SetFirstItem((wxString const &)*arg2);
9626 wxPyEndAllowThreads(__tstate);
9627 if (PyErr_Occurred()) SWIG_fail;
9628 }
9629 resultobj = SWIG_Py_Void();
9630 {
9631 if (temp2)
9632 delete arg2;
9633 }
9634 return resultobj;
9635 fail:
9636 {
9637 if (temp2)
9638 delete arg2;
9639 }
9640 return NULL;
9641 }
9642
9643
9644 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj = 0;
9646 wxListBox *arg1 = (wxListBox *) 0 ;
9647 int arg2 ;
9648 void *argp1 = 0 ;
9649 int res1 = 0 ;
9650 int val2 ;
9651 int ecode2 = 0 ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 char * kwnames[] = {
9655 (char *) "self",(char *) "n", NULL
9656 };
9657
9658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9660 if (!SWIG_IsOK(res1)) {
9661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9662 }
9663 arg1 = reinterpret_cast< wxListBox * >(argp1);
9664 ecode2 = SWIG_AsVal_int(obj1, &val2);
9665 if (!SWIG_IsOK(ecode2)) {
9666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9667 }
9668 arg2 = static_cast< int >(val2);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 (arg1)->EnsureVisible(arg2);
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 resultobj = SWIG_Py_Void();
9676 return resultobj;
9677 fail:
9678 return NULL;
9679 }
9680
9681
9682 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9683 PyObject *resultobj = 0;
9684 wxListBox *arg1 = (wxListBox *) 0 ;
9685 wxString *arg2 = 0 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 bool temp2 = false ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char * kwnames[] = {
9692 (char *) "self",(char *) "s", NULL
9693 };
9694
9695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9697 if (!SWIG_IsOK(res1)) {
9698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9699 }
9700 arg1 = reinterpret_cast< wxListBox * >(argp1);
9701 {
9702 arg2 = wxString_in_helper(obj1);
9703 if (arg2 == NULL) SWIG_fail;
9704 temp2 = true;
9705 }
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_Py_Void();
9713 {
9714 if (temp2)
9715 delete arg2;
9716 }
9717 return resultobj;
9718 fail:
9719 {
9720 if (temp2)
9721 delete arg2;
9722 }
9723 return NULL;
9724 }
9725
9726
9727 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9728 PyObject *resultobj = 0;
9729 wxListBox *arg1 = (wxListBox *) 0 ;
9730 bool result;
9731 void *argp1 = 0 ;
9732 int res1 = 0 ;
9733 PyObject *swig_obj[1] ;
9734
9735 if (!args) SWIG_fail;
9736 swig_obj[0] = args;
9737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9738 if (!SWIG_IsOK(res1)) {
9739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9740 }
9741 arg1 = reinterpret_cast< wxListBox * >(argp1);
9742 {
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 result = (bool)((wxListBox const *)arg1)->IsSorted();
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 {
9749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9750 }
9751 return resultobj;
9752 fail:
9753 return NULL;
9754 }
9755
9756
9757 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9758 PyObject *resultobj = 0;
9759 wxListBox *arg1 = (wxListBox *) 0 ;
9760 wxPoint *arg2 = 0 ;
9761 int result;
9762 void *argp1 = 0 ;
9763 int res1 = 0 ;
9764 wxPoint temp2 ;
9765 PyObject * obj0 = 0 ;
9766 PyObject * obj1 = 0 ;
9767 char * kwnames[] = {
9768 (char *) "self",(char *) "pt", NULL
9769 };
9770
9771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9773 if (!SWIG_IsOK(res1)) {
9774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9775 }
9776 arg1 = reinterpret_cast< wxListBox * >(argp1);
9777 {
9778 arg2 = &temp2;
9779 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9780 }
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_From_int(static_cast< int >(result));
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj = 0;
9796 wxListBox *arg1 = (wxListBox *) 0 ;
9797 int arg2 ;
9798 wxColour *arg3 = 0 ;
9799 void *argp1 = 0 ;
9800 int res1 = 0 ;
9801 int val2 ;
9802 int ecode2 = 0 ;
9803 wxColour temp3 ;
9804 PyObject * obj0 = 0 ;
9805 PyObject * obj1 = 0 ;
9806 PyObject * obj2 = 0 ;
9807 char * kwnames[] = {
9808 (char *) "self",(char *) "item",(char *) "c", NULL
9809 };
9810
9811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9813 if (!SWIG_IsOK(res1)) {
9814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9815 }
9816 arg1 = reinterpret_cast< wxListBox * >(argp1);
9817 ecode2 = SWIG_AsVal_int(obj1, &val2);
9818 if (!SWIG_IsOK(ecode2)) {
9819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9820 }
9821 arg2 = static_cast< int >(val2);
9822 {
9823 arg3 = &temp3;
9824 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9825 }
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9829 wxPyEndAllowThreads(__tstate);
9830 if (PyErr_Occurred()) SWIG_fail;
9831 }
9832 resultobj = SWIG_Py_Void();
9833 return resultobj;
9834 fail:
9835 return NULL;
9836 }
9837
9838
9839 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9840 PyObject *resultobj = 0;
9841 wxListBox *arg1 = (wxListBox *) 0 ;
9842 int arg2 ;
9843 wxColour *arg3 = 0 ;
9844 void *argp1 = 0 ;
9845 int res1 = 0 ;
9846 int val2 ;
9847 int ecode2 = 0 ;
9848 wxColour temp3 ;
9849 PyObject * obj0 = 0 ;
9850 PyObject * obj1 = 0 ;
9851 PyObject * obj2 = 0 ;
9852 char * kwnames[] = {
9853 (char *) "self",(char *) "item",(char *) "c", NULL
9854 };
9855
9856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9858 if (!SWIG_IsOK(res1)) {
9859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9860 }
9861 arg1 = reinterpret_cast< wxListBox * >(argp1);
9862 ecode2 = SWIG_AsVal_int(obj1, &val2);
9863 if (!SWIG_IsOK(ecode2)) {
9864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9865 }
9866 arg2 = static_cast< int >(val2);
9867 {
9868 arg3 = &temp3;
9869 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9870 }
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 resultobj = SWIG_Py_Void();
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9885 PyObject *resultobj = 0;
9886 wxListBox *arg1 = (wxListBox *) 0 ;
9887 int arg2 ;
9888 wxFont *arg3 = 0 ;
9889 void *argp1 = 0 ;
9890 int res1 = 0 ;
9891 int val2 ;
9892 int ecode2 = 0 ;
9893 void *argp3 = 0 ;
9894 int res3 = 0 ;
9895 PyObject * obj0 = 0 ;
9896 PyObject * obj1 = 0 ;
9897 PyObject * obj2 = 0 ;
9898 char * kwnames[] = {
9899 (char *) "self",(char *) "item",(char *) "f", NULL
9900 };
9901
9902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9904 if (!SWIG_IsOK(res1)) {
9905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9906 }
9907 arg1 = reinterpret_cast< wxListBox * >(argp1);
9908 ecode2 = SWIG_AsVal_int(obj1, &val2);
9909 if (!SWIG_IsOK(ecode2)) {
9910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9911 }
9912 arg2 = static_cast< int >(val2);
9913 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9914 if (!SWIG_IsOK(res3)) {
9915 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9916 }
9917 if (!argp3) {
9918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9919 }
9920 arg3 = reinterpret_cast< wxFont * >(argp3);
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_Py_Void();
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj = 0;
9936 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9937 SwigValueWrapper<wxVisualAttributes > result;
9938 int val1 ;
9939 int ecode1 = 0 ;
9940 PyObject * obj0 = 0 ;
9941 char * kwnames[] = {
9942 (char *) "variant", NULL
9943 };
9944
9945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9946 if (obj0) {
9947 ecode1 = SWIG_AsVal_int(obj0, &val1);
9948 if (!SWIG_IsOK(ecode1)) {
9949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9950 }
9951 arg1 = static_cast< wxWindowVariant >(val1);
9952 }
9953 {
9954 if (!wxPyCheckForApp()) SWIG_fail;
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 result = wxListBox::GetClassDefaultAttributes(arg1);
9957 wxPyEndAllowThreads(__tstate);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 }
9960 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9961 return resultobj;
9962 fail:
9963 return NULL;
9964 }
9965
9966
9967 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9968 PyObject *obj;
9969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9970 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9971 return SWIG_Py_Void();
9972 }
9973
9974 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9975 return SWIG_Python_InitShadowInstance(args);
9976 }
9977
9978 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9979 PyObject *resultobj = 0;
9980 wxWindow *arg1 = (wxWindow *) 0 ;
9981 int arg2 = (int) -1 ;
9982 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9983 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9984 wxSize const &arg4_defvalue = wxDefaultSize ;
9985 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9986 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9987 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9988 long arg6 = (long) 0 ;
9989 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9990 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9991 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9992 wxString *arg8 = (wxString *) &arg8_defvalue ;
9993 wxCheckListBox *result = 0 ;
9994 void *argp1 = 0 ;
9995 int res1 = 0 ;
9996 int val2 ;
9997 int ecode2 = 0 ;
9998 wxPoint temp3 ;
9999 wxSize temp4 ;
10000 bool temp5 = false ;
10001 long val6 ;
10002 int ecode6 = 0 ;
10003 void *argp7 = 0 ;
10004 int res7 = 0 ;
10005 bool temp8 = false ;
10006 PyObject * obj0 = 0 ;
10007 PyObject * obj1 = 0 ;
10008 PyObject * obj2 = 0 ;
10009 PyObject * obj3 = 0 ;
10010 PyObject * obj4 = 0 ;
10011 PyObject * obj5 = 0 ;
10012 PyObject * obj6 = 0 ;
10013 PyObject * obj7 = 0 ;
10014 char * kwnames[] = {
10015 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10016 };
10017
10018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10020 if (!SWIG_IsOK(res1)) {
10021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10022 }
10023 arg1 = reinterpret_cast< wxWindow * >(argp1);
10024 if (obj1) {
10025 ecode2 = SWIG_AsVal_int(obj1, &val2);
10026 if (!SWIG_IsOK(ecode2)) {
10027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10028 }
10029 arg2 = static_cast< int >(val2);
10030 }
10031 if (obj2) {
10032 {
10033 arg3 = &temp3;
10034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10035 }
10036 }
10037 if (obj3) {
10038 {
10039 arg4 = &temp4;
10040 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10041 }
10042 }
10043 if (obj4) {
10044 {
10045 if (! PySequence_Check(obj4)) {
10046 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10047 SWIG_fail;
10048 }
10049 arg5 = new wxArrayString;
10050 temp5 = true;
10051 int i, len=PySequence_Length(obj4);
10052 for (i=0; i<len; i++) {
10053 PyObject* item = PySequence_GetItem(obj4, i);
10054 wxString* s = wxString_in_helper(item);
10055 if (PyErr_Occurred()) SWIG_fail;
10056 arg5->Add(*s);
10057 delete s;
10058 Py_DECREF(item);
10059 }
10060 }
10061 }
10062 if (obj5) {
10063 ecode6 = SWIG_AsVal_long(obj5, &val6);
10064 if (!SWIG_IsOK(ecode6)) {
10065 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10066 }
10067 arg6 = static_cast< long >(val6);
10068 }
10069 if (obj6) {
10070 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10071 if (!SWIG_IsOK(res7)) {
10072 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10073 }
10074 if (!argp7) {
10075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10076 }
10077 arg7 = reinterpret_cast< wxValidator * >(argp7);
10078 }
10079 if (obj7) {
10080 {
10081 arg8 = wxString_in_helper(obj7);
10082 if (arg8 == NULL) SWIG_fail;
10083 temp8 = true;
10084 }
10085 }
10086 {
10087 if (!wxPyCheckForApp()) SWIG_fail;
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
10089 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10094 {
10095 if (temp5) delete arg5;
10096 }
10097 {
10098 if (temp8)
10099 delete arg8;
10100 }
10101 return resultobj;
10102 fail:
10103 {
10104 if (temp5) delete arg5;
10105 }
10106 {
10107 if (temp8)
10108 delete arg8;
10109 }
10110 return NULL;
10111 }
10112
10113
10114 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10115 PyObject *resultobj = 0;
10116 wxCheckListBox *result = 0 ;
10117
10118 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10119 {
10120 if (!wxPyCheckForApp()) SWIG_fail;
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 result = (wxCheckListBox *)new wxCheckListBox();
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10127 return resultobj;
10128 fail:
10129 return NULL;
10130 }
10131
10132
10133 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj = 0;
10135 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10136 wxWindow *arg2 = (wxWindow *) 0 ;
10137 int arg3 = (int) -1 ;
10138 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10139 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10140 wxSize const &arg5_defvalue = wxDefaultSize ;
10141 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10142 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10143 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10144 long arg7 = (long) 0 ;
10145 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10146 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10147 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10148 wxString *arg9 = (wxString *) &arg9_defvalue ;
10149 bool result;
10150 void *argp1 = 0 ;
10151 int res1 = 0 ;
10152 void *argp2 = 0 ;
10153 int res2 = 0 ;
10154 int val3 ;
10155 int ecode3 = 0 ;
10156 wxPoint temp4 ;
10157 wxSize temp5 ;
10158 bool temp6 = false ;
10159 long val7 ;
10160 int ecode7 = 0 ;
10161 void *argp8 = 0 ;
10162 int res8 = 0 ;
10163 bool temp9 = false ;
10164 PyObject * obj0 = 0 ;
10165 PyObject * obj1 = 0 ;
10166 PyObject * obj2 = 0 ;
10167 PyObject * obj3 = 0 ;
10168 PyObject * obj4 = 0 ;
10169 PyObject * obj5 = 0 ;
10170 PyObject * obj6 = 0 ;
10171 PyObject * obj7 = 0 ;
10172 PyObject * obj8 = 0 ;
10173 char * kwnames[] = {
10174 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10175 };
10176
10177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10179 if (!SWIG_IsOK(res1)) {
10180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10181 }
10182 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10183 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10184 if (!SWIG_IsOK(res2)) {
10185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10186 }
10187 arg2 = reinterpret_cast< wxWindow * >(argp2);
10188 if (obj2) {
10189 ecode3 = SWIG_AsVal_int(obj2, &val3);
10190 if (!SWIG_IsOK(ecode3)) {
10191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10192 }
10193 arg3 = static_cast< int >(val3);
10194 }
10195 if (obj3) {
10196 {
10197 arg4 = &temp4;
10198 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10199 }
10200 }
10201 if (obj4) {
10202 {
10203 arg5 = &temp5;
10204 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10205 }
10206 }
10207 if (obj5) {
10208 {
10209 if (! PySequence_Check(obj5)) {
10210 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10211 SWIG_fail;
10212 }
10213 arg6 = new wxArrayString;
10214 temp6 = true;
10215 int i, len=PySequence_Length(obj5);
10216 for (i=0; i<len; i++) {
10217 PyObject* item = PySequence_GetItem(obj5, i);
10218 wxString* s = wxString_in_helper(item);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 arg6->Add(*s);
10221 delete s;
10222 Py_DECREF(item);
10223 }
10224 }
10225 }
10226 if (obj6) {
10227 ecode7 = SWIG_AsVal_long(obj6, &val7);
10228 if (!SWIG_IsOK(ecode7)) {
10229 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10230 }
10231 arg7 = static_cast< long >(val7);
10232 }
10233 if (obj7) {
10234 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10235 if (!SWIG_IsOK(res8)) {
10236 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10237 }
10238 if (!argp8) {
10239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10240 }
10241 arg8 = reinterpret_cast< wxValidator * >(argp8);
10242 }
10243 if (obj8) {
10244 {
10245 arg9 = wxString_in_helper(obj8);
10246 if (arg9 == NULL) SWIG_fail;
10247 temp9 = true;
10248 }
10249 }
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 {
10257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10258 }
10259 {
10260 if (temp6) delete arg6;
10261 }
10262 {
10263 if (temp9)
10264 delete arg9;
10265 }
10266 return resultobj;
10267 fail:
10268 {
10269 if (temp6) delete arg6;
10270 }
10271 {
10272 if (temp9)
10273 delete arg9;
10274 }
10275 return NULL;
10276 }
10277
10278
10279 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10282 unsigned int arg2 ;
10283 bool result;
10284 void *argp1 = 0 ;
10285 int res1 = 0 ;
10286 unsigned int val2 ;
10287 int ecode2 = 0 ;
10288 PyObject * obj0 = 0 ;
10289 PyObject * obj1 = 0 ;
10290 char * kwnames[] = {
10291 (char *) "self",(char *) "index", NULL
10292 };
10293
10294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10296 if (!SWIG_IsOK(res1)) {
10297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10298 }
10299 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10300 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10301 if (!SWIG_IsOK(ecode2)) {
10302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10303 }
10304 arg2 = static_cast< unsigned int >(val2);
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (bool)(arg1)->IsChecked(arg2);
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 {
10312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10313 }
10314 return resultobj;
10315 fail:
10316 return NULL;
10317 }
10318
10319
10320 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj = 0;
10322 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10323 unsigned int arg2 ;
10324 int arg3 = (int) true ;
10325 void *argp1 = 0 ;
10326 int res1 = 0 ;
10327 unsigned int val2 ;
10328 int ecode2 = 0 ;
10329 int val3 ;
10330 int ecode3 = 0 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333 PyObject * obj2 = 0 ;
10334 char * kwnames[] = {
10335 (char *) "self",(char *) "index",(char *) "check", NULL
10336 };
10337
10338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10340 if (!SWIG_IsOK(res1)) {
10341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10342 }
10343 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10344 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10345 if (!SWIG_IsOK(ecode2)) {
10346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10347 }
10348 arg2 = static_cast< unsigned int >(val2);
10349 if (obj2) {
10350 ecode3 = SWIG_AsVal_int(obj2, &val3);
10351 if (!SWIG_IsOK(ecode3)) {
10352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10353 }
10354 arg3 = static_cast< int >(val3);
10355 }
10356 {
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
10358 (arg1)->Check(arg2,arg3);
10359 wxPyEndAllowThreads(__tstate);
10360 if (PyErr_Occurred()) SWIG_fail;
10361 }
10362 resultobj = SWIG_Py_Void();
10363 return resultobj;
10364 fail:
10365 return NULL;
10366 }
10367
10368
10369 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10370 PyObject *resultobj = 0;
10371 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10372 int result;
10373 void *argp1 = 0 ;
10374 int res1 = 0 ;
10375 PyObject *swig_obj[1] ;
10376
10377 if (!args) SWIG_fail;
10378 swig_obj[0] = args;
10379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10380 if (!SWIG_IsOK(res1)) {
10381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10382 }
10383 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10384 {
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 result = (int)(arg1)->GetItemHeight();
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = SWIG_From_int(static_cast< int >(result));
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10398 PyObject *obj;
10399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10400 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10401 return SWIG_Py_Void();
10402 }
10403
10404 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10405 return SWIG_Python_InitShadowInstance(args);
10406 }
10407
10408 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10409 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10410 return 1;
10411 }
10412
10413
10414 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10415 PyObject *pyobj = 0;
10416
10417 {
10418 #if wxUSE_UNICODE
10419 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10420 #else
10421 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10422 #endif
10423 }
10424 return pyobj;
10425 }
10426
10427
10428 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj = 0;
10430 wxColour const &arg1_defvalue = wxNullColour ;
10431 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10432 wxColour const &arg2_defvalue = wxNullColour ;
10433 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10434 wxFont const &arg3_defvalue = wxNullFont ;
10435 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10436 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10437 wxTextAttr *result = 0 ;
10438 wxColour temp1 ;
10439 wxColour temp2 ;
10440 void *argp3 = 0 ;
10441 int res3 = 0 ;
10442 int val4 ;
10443 int ecode4 = 0 ;
10444 PyObject * obj0 = 0 ;
10445 PyObject * obj1 = 0 ;
10446 PyObject * obj2 = 0 ;
10447 PyObject * obj3 = 0 ;
10448 char * kwnames[] = {
10449 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10450 };
10451
10452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10453 if (obj0) {
10454 {
10455 arg1 = &temp1;
10456 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10457 }
10458 }
10459 if (obj1) {
10460 {
10461 arg2 = &temp2;
10462 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10463 }
10464 }
10465 if (obj2) {
10466 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10467 if (!SWIG_IsOK(res3)) {
10468 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10469 }
10470 if (!argp3) {
10471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10472 }
10473 arg3 = reinterpret_cast< wxFont * >(argp3);
10474 }
10475 if (obj3) {
10476 ecode4 = SWIG_AsVal_int(obj3, &val4);
10477 if (!SWIG_IsOK(ecode4)) {
10478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10479 }
10480 arg4 = static_cast< wxTextAttrAlignment >(val4);
10481 }
10482 {
10483 PyThreadState* __tstate = wxPyBeginAllowThreads();
10484 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10485 wxPyEndAllowThreads(__tstate);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10489 return resultobj;
10490 fail:
10491 return NULL;
10492 }
10493
10494
10495 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10496 PyObject *resultobj = 0;
10497 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10498 void *argp1 = 0 ;
10499 int res1 = 0 ;
10500 PyObject *swig_obj[1] ;
10501
10502 if (!args) SWIG_fail;
10503 swig_obj[0] = args;
10504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10505 if (!SWIG_IsOK(res1)) {
10506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10507 }
10508 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10509 {
10510 PyThreadState* __tstate = wxPyBeginAllowThreads();
10511 delete arg1;
10512
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 resultobj = SWIG_Py_Void();
10517 return resultobj;
10518 fail:
10519 return NULL;
10520 }
10521
10522
10523 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10524 PyObject *resultobj = 0;
10525 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10526 void *argp1 = 0 ;
10527 int res1 = 0 ;
10528 PyObject *swig_obj[1] ;
10529
10530 if (!args) SWIG_fail;
10531 swig_obj[0] = args;
10532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10533 if (!SWIG_IsOK(res1)) {
10534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10535 }
10536 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10537 {
10538 PyThreadState* __tstate = wxPyBeginAllowThreads();
10539 (arg1)->Init();
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 resultobj = SWIG_Py_Void();
10544 return resultobj;
10545 fail:
10546 return NULL;
10547 }
10548
10549
10550 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10551 PyObject *resultobj = 0;
10552 wxTextAttr *arg1 = 0 ;
10553 wxTextAttr *arg2 = 0 ;
10554 wxTextAttr result;
10555 void *argp1 = 0 ;
10556 int res1 = 0 ;
10557 void *argp2 = 0 ;
10558 int res2 = 0 ;
10559 PyObject * obj0 = 0 ;
10560 PyObject * obj1 = 0 ;
10561 char * kwnames[] = {
10562 (char *) "base",(char *) "overlay", NULL
10563 };
10564
10565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10567 if (!SWIG_IsOK(res1)) {
10568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10569 }
10570 if (!argp1) {
10571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10572 }
10573 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10575 if (!SWIG_IsOK(res2)) {
10576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10577 }
10578 if (!argp2) {
10579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10580 }
10581 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10589 return resultobj;
10590 fail:
10591 return NULL;
10592 }
10593
10594
10595 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj = 0;
10597 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10598 wxColour *arg2 = 0 ;
10599 void *argp1 = 0 ;
10600 int res1 = 0 ;
10601 wxColour temp2 ;
10602 PyObject * obj0 = 0 ;
10603 PyObject * obj1 = 0 ;
10604 char * kwnames[] = {
10605 (char *) "self",(char *) "colText", NULL
10606 };
10607
10608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10610 if (!SWIG_IsOK(res1)) {
10611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10612 }
10613 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10614 {
10615 arg2 = &temp2;
10616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10617 }
10618 {
10619 PyThreadState* __tstate = wxPyBeginAllowThreads();
10620 (arg1)->SetTextColour((wxColour const &)*arg2);
10621 wxPyEndAllowThreads(__tstate);
10622 if (PyErr_Occurred()) SWIG_fail;
10623 }
10624 resultobj = SWIG_Py_Void();
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj = 0;
10633 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10634 wxColour *arg2 = 0 ;
10635 void *argp1 = 0 ;
10636 int res1 = 0 ;
10637 wxColour temp2 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char * kwnames[] = {
10641 (char *) "self",(char *) "colBack", NULL
10642 };
10643
10644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10646 if (!SWIG_IsOK(res1)) {
10647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10648 }
10649 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10650 {
10651 arg2 = &temp2;
10652 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_Py_Void();
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10670 wxFont *arg2 = 0 ;
10671 long arg3 = (long) wxTEXT_ATTR_FONT ;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 void *argp2 = 0 ;
10675 int res2 = 0 ;
10676 long val3 ;
10677 int ecode3 = 0 ;
10678 PyObject * obj0 = 0 ;
10679 PyObject * obj1 = 0 ;
10680 PyObject * obj2 = 0 ;
10681 char * kwnames[] = {
10682 (char *) "self",(char *) "font",(char *) "flags", NULL
10683 };
10684
10685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10687 if (!SWIG_IsOK(res1)) {
10688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10689 }
10690 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10692 if (!SWIG_IsOK(res2)) {
10693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10694 }
10695 if (!argp2) {
10696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10697 }
10698 arg2 = reinterpret_cast< wxFont * >(argp2);
10699 if (obj2) {
10700 ecode3 = SWIG_AsVal_long(obj2, &val3);
10701 if (!SWIG_IsOK(ecode3)) {
10702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10703 }
10704 arg3 = static_cast< long >(val3);
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 resultobj = SWIG_Py_Void();
10713 return resultobj;
10714 fail:
10715 return NULL;
10716 }
10717
10718
10719 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj = 0;
10721 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10722 wxTextAttrAlignment arg2 ;
10723 void *argp1 = 0 ;
10724 int res1 = 0 ;
10725 int val2 ;
10726 int ecode2 = 0 ;
10727 PyObject * obj0 = 0 ;
10728 PyObject * obj1 = 0 ;
10729 char * kwnames[] = {
10730 (char *) "self",(char *) "alignment", NULL
10731 };
10732
10733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10735 if (!SWIG_IsOK(res1)) {
10736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10737 }
10738 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10739 ecode2 = SWIG_AsVal_int(obj1, &val2);
10740 if (!SWIG_IsOK(ecode2)) {
10741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10742 }
10743 arg2 = static_cast< wxTextAttrAlignment >(val2);
10744 {
10745 PyThreadState* __tstate = wxPyBeginAllowThreads();
10746 (arg1)->SetAlignment(arg2);
10747 wxPyEndAllowThreads(__tstate);
10748 if (PyErr_Occurred()) SWIG_fail;
10749 }
10750 resultobj = SWIG_Py_Void();
10751 return resultobj;
10752 fail:
10753 return NULL;
10754 }
10755
10756
10757 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10758 PyObject *resultobj = 0;
10759 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10760 wxArrayInt *arg2 = 0 ;
10761 void *argp1 = 0 ;
10762 int res1 = 0 ;
10763 bool temp2 = false ;
10764 PyObject * obj0 = 0 ;
10765 PyObject * obj1 = 0 ;
10766 char * kwnames[] = {
10767 (char *) "self",(char *) "tabs", NULL
10768 };
10769
10770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10772 if (!SWIG_IsOK(res1)) {
10773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10774 }
10775 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10776 {
10777 if (! PySequence_Check(obj1)) {
10778 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10779 SWIG_fail;
10780 }
10781 arg2 = new wxArrayInt;
10782 temp2 = true;
10783 int i, len=PySequence_Length(obj1);
10784 for (i=0; i<len; i++) {
10785 PyObject* item = PySequence_GetItem(obj1, i);
10786 PyObject* number = PyNumber_Int(item);
10787 if (!number) {
10788 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10789 SWIG_fail;
10790 }
10791 arg2->Add(PyInt_AS_LONG(number));
10792 Py_DECREF(item);
10793 Py_DECREF(number);
10794 }
10795 }
10796 {
10797 PyThreadState* __tstate = wxPyBeginAllowThreads();
10798 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10799 wxPyEndAllowThreads(__tstate);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 }
10802 resultobj = SWIG_Py_Void();
10803 {
10804 if (temp2) delete arg2;
10805 }
10806 return resultobj;
10807 fail:
10808 {
10809 if (temp2) delete arg2;
10810 }
10811 return NULL;
10812 }
10813
10814
10815 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10816 PyObject *resultobj = 0;
10817 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10818 int arg2 ;
10819 int arg3 = (int) 0 ;
10820 void *argp1 = 0 ;
10821 int res1 = 0 ;
10822 int val2 ;
10823 int ecode2 = 0 ;
10824 int val3 ;
10825 int ecode3 = 0 ;
10826 PyObject * obj0 = 0 ;
10827 PyObject * obj1 = 0 ;
10828 PyObject * obj2 = 0 ;
10829 char * kwnames[] = {
10830 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10831 };
10832
10833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10835 if (!SWIG_IsOK(res1)) {
10836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10837 }
10838 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10839 ecode2 = SWIG_AsVal_int(obj1, &val2);
10840 if (!SWIG_IsOK(ecode2)) {
10841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10842 }
10843 arg2 = static_cast< int >(val2);
10844 if (obj2) {
10845 ecode3 = SWIG_AsVal_int(obj2, &val3);
10846 if (!SWIG_IsOK(ecode3)) {
10847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10848 }
10849 arg3 = static_cast< int >(val3);
10850 }
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 (arg1)->SetLeftIndent(arg2,arg3);
10854 wxPyEndAllowThreads(__tstate);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 }
10857 resultobj = SWIG_Py_Void();
10858 return resultobj;
10859 fail:
10860 return NULL;
10861 }
10862
10863
10864 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10865 PyObject *resultobj = 0;
10866 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10867 int arg2 ;
10868 void *argp1 = 0 ;
10869 int res1 = 0 ;
10870 int val2 ;
10871 int ecode2 = 0 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 char * kwnames[] = {
10875 (char *) "self",(char *) "indent", NULL
10876 };
10877
10878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10880 if (!SWIG_IsOK(res1)) {
10881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10882 }
10883 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10884 ecode2 = SWIG_AsVal_int(obj1, &val2);
10885 if (!SWIG_IsOK(ecode2)) {
10886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10887 }
10888 arg2 = static_cast< int >(val2);
10889 {
10890 PyThreadState* __tstate = wxPyBeginAllowThreads();
10891 (arg1)->SetRightIndent(arg2);
10892 wxPyEndAllowThreads(__tstate);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 }
10895 resultobj = SWIG_Py_Void();
10896 return resultobj;
10897 fail:
10898 return NULL;
10899 }
10900
10901
10902 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10903 PyObject *resultobj = 0;
10904 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10905 long arg2 ;
10906 void *argp1 = 0 ;
10907 int res1 = 0 ;
10908 long val2 ;
10909 int ecode2 = 0 ;
10910 PyObject * obj0 = 0 ;
10911 PyObject * obj1 = 0 ;
10912 char * kwnames[] = {
10913 (char *) "self",(char *) "flags", NULL
10914 };
10915
10916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10918 if (!SWIG_IsOK(res1)) {
10919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10920 }
10921 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10922 ecode2 = SWIG_AsVal_long(obj1, &val2);
10923 if (!SWIG_IsOK(ecode2)) {
10924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10925 }
10926 arg2 = static_cast< long >(val2);
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 (arg1)->SetFlags(arg2);
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 resultobj = SWIG_Py_Void();
10934 return resultobj;
10935 fail:
10936 return NULL;
10937 }
10938
10939
10940 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10941 PyObject *resultobj = 0;
10942 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10943 bool result;
10944 void *argp1 = 0 ;
10945 int res1 = 0 ;
10946 PyObject *swig_obj[1] ;
10947
10948 if (!args) SWIG_fail;
10949 swig_obj[0] = args;
10950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10951 if (!SWIG_IsOK(res1)) {
10952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10953 }
10954 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 {
10962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10963 }
10964 return resultobj;
10965 fail:
10966 return NULL;
10967 }
10968
10969
10970 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10971 PyObject *resultobj = 0;
10972 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10973 bool result;
10974 void *argp1 = 0 ;
10975 int res1 = 0 ;
10976 PyObject *swig_obj[1] ;
10977
10978 if (!args) SWIG_fail;
10979 swig_obj[0] = args;
10980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10981 if (!SWIG_IsOK(res1)) {
10982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10983 }
10984 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 {
10992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10993 }
10994 return resultobj;
10995 fail:
10996 return NULL;
10997 }
10998
10999
11000 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11001 PyObject *resultobj = 0;
11002 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11003 bool result;
11004 void *argp1 = 0 ;
11005 int res1 = 0 ;
11006 PyObject *swig_obj[1] ;
11007
11008 if (!args) SWIG_fail;
11009 swig_obj[0] = args;
11010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11011 if (!SWIG_IsOK(res1)) {
11012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11013 }
11014 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11018 wxPyEndAllowThreads(__tstate);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 {
11022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11023 }
11024 return resultobj;
11025 fail:
11026 return NULL;
11027 }
11028
11029
11030 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11031 PyObject *resultobj = 0;
11032 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11033 bool result;
11034 void *argp1 = 0 ;
11035 int res1 = 0 ;
11036 PyObject *swig_obj[1] ;
11037
11038 if (!args) SWIG_fail;
11039 swig_obj[0] = args;
11040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11041 if (!SWIG_IsOK(res1)) {
11042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11043 }
11044 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11045 {
11046 PyThreadState* __tstate = wxPyBeginAllowThreads();
11047 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 }
11051 {
11052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11053 }
11054 return resultobj;
11055 fail:
11056 return NULL;
11057 }
11058
11059
11060 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11061 PyObject *resultobj = 0;
11062 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11063 bool result;
11064 void *argp1 = 0 ;
11065 int res1 = 0 ;
11066 PyObject *swig_obj[1] ;
11067
11068 if (!args) SWIG_fail;
11069 swig_obj[0] = args;
11070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11071 if (!SWIG_IsOK(res1)) {
11072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11073 }
11074 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 {
11082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11083 }
11084 return resultobj;
11085 fail:
11086 return NULL;
11087 }
11088
11089
11090 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11091 PyObject *resultobj = 0;
11092 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11093 bool result;
11094 void *argp1 = 0 ;
11095 int res1 = 0 ;
11096 PyObject *swig_obj[1] ;
11097
11098 if (!args) SWIG_fail;
11099 swig_obj[0] = args;
11100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11101 if (!SWIG_IsOK(res1)) {
11102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11103 }
11104 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11105 {
11106 PyThreadState* __tstate = wxPyBeginAllowThreads();
11107 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11108 wxPyEndAllowThreads(__tstate);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 {
11112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11113 }
11114 return resultobj;
11115 fail:
11116 return NULL;
11117 }
11118
11119
11120 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11121 PyObject *resultobj = 0;
11122 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11123 bool result;
11124 void *argp1 = 0 ;
11125 int res1 = 0 ;
11126 PyObject *swig_obj[1] ;
11127
11128 if (!args) SWIG_fail;
11129 swig_obj[0] = args;
11130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11131 if (!SWIG_IsOK(res1)) {
11132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11133 }
11134 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11135 {
11136 PyThreadState* __tstate = wxPyBeginAllowThreads();
11137 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11138 wxPyEndAllowThreads(__tstate);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 }
11141 {
11142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11143 }
11144 return resultobj;
11145 fail:
11146 return NULL;
11147 }
11148
11149
11150 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11151 PyObject *resultobj = 0;
11152 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11153 long arg2 ;
11154 bool result;
11155 void *argp1 = 0 ;
11156 int res1 = 0 ;
11157 long val2 ;
11158 int ecode2 = 0 ;
11159 PyObject * obj0 = 0 ;
11160 PyObject * obj1 = 0 ;
11161 char * kwnames[] = {
11162 (char *) "self",(char *) "flag", NULL
11163 };
11164
11165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11167 if (!SWIG_IsOK(res1)) {
11168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11169 }
11170 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11171 ecode2 = SWIG_AsVal_long(obj1, &val2);
11172 if (!SWIG_IsOK(ecode2)) {
11173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11174 }
11175 arg2 = static_cast< long >(val2);
11176 {
11177 PyThreadState* __tstate = wxPyBeginAllowThreads();
11178 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11179 wxPyEndAllowThreads(__tstate);
11180 if (PyErr_Occurred()) SWIG_fail;
11181 }
11182 {
11183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11184 }
11185 return resultobj;
11186 fail:
11187 return NULL;
11188 }
11189
11190
11191 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11192 PyObject *resultobj = 0;
11193 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11194 wxColour *result = 0 ;
11195 void *argp1 = 0 ;
11196 int res1 = 0 ;
11197 PyObject *swig_obj[1] ;
11198
11199 if (!args) SWIG_fail;
11200 swig_obj[0] = args;
11201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11202 if (!SWIG_IsOK(res1)) {
11203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11204 }
11205 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 {
11209 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11210 result = (wxColour *) &_result_ref;
11211 }
11212 wxPyEndAllowThreads(__tstate);
11213 if (PyErr_Occurred()) SWIG_fail;
11214 }
11215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11216 return resultobj;
11217 fail:
11218 return NULL;
11219 }
11220
11221
11222 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11223 PyObject *resultobj = 0;
11224 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11225 wxColour *result = 0 ;
11226 void *argp1 = 0 ;
11227 int res1 = 0 ;
11228 PyObject *swig_obj[1] ;
11229
11230 if (!args) SWIG_fail;
11231 swig_obj[0] = args;
11232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11233 if (!SWIG_IsOK(res1)) {
11234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11235 }
11236 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11237 {
11238 PyThreadState* __tstate = wxPyBeginAllowThreads();
11239 {
11240 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11241 result = (wxColour *) &_result_ref;
11242 }
11243 wxPyEndAllowThreads(__tstate);
11244 if (PyErr_Occurred()) SWIG_fail;
11245 }
11246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11247 return resultobj;
11248 fail:
11249 return NULL;
11250 }
11251
11252
11253 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11254 PyObject *resultobj = 0;
11255 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11256 wxFont *result = 0 ;
11257 void *argp1 = 0 ;
11258 int res1 = 0 ;
11259 PyObject *swig_obj[1] ;
11260
11261 if (!args) SWIG_fail;
11262 swig_obj[0] = args;
11263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11264 if (!SWIG_IsOK(res1)) {
11265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11266 }
11267 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 {
11271 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11272 result = (wxFont *) &_result_ref;
11273 }
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 {
11278 wxFont* resultptr = new wxFont(*result);
11279 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11280 }
11281 return resultobj;
11282 fail:
11283 return NULL;
11284 }
11285
11286
11287 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11288 PyObject *resultobj = 0;
11289 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11290 wxTextAttrAlignment result;
11291 void *argp1 = 0 ;
11292 int res1 = 0 ;
11293 PyObject *swig_obj[1] ;
11294
11295 if (!args) SWIG_fail;
11296 swig_obj[0] = args;
11297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11298 if (!SWIG_IsOK(res1)) {
11299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11300 }
11301 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11305 wxPyEndAllowThreads(__tstate);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 resultobj = SWIG_From_int(static_cast< int >(result));
11309 return resultobj;
11310 fail:
11311 return NULL;
11312 }
11313
11314
11315 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11316 PyObject *resultobj = 0;
11317 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11318 wxArrayInt *result = 0 ;
11319 void *argp1 = 0 ;
11320 int res1 = 0 ;
11321 PyObject *swig_obj[1] ;
11322
11323 if (!args) SWIG_fail;
11324 swig_obj[0] = args;
11325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11326 if (!SWIG_IsOK(res1)) {
11327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11328 }
11329 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11330 {
11331 PyThreadState* __tstate = wxPyBeginAllowThreads();
11332 {
11333 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11334 result = (wxArrayInt *) &_result_ref;
11335 }
11336 wxPyEndAllowThreads(__tstate);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 }
11339 {
11340 resultobj = wxArrayInt2PyList_helper(*result);
11341 }
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11349 PyObject *resultobj = 0;
11350 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11351 long result;
11352 void *argp1 = 0 ;
11353 int res1 = 0 ;
11354 PyObject *swig_obj[1] ;
11355
11356 if (!args) SWIG_fail;
11357 swig_obj[0] = args;
11358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11359 if (!SWIG_IsOK(res1)) {
11360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11361 }
11362 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11363 {
11364 PyThreadState* __tstate = wxPyBeginAllowThreads();
11365 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 resultobj = SWIG_From_long(static_cast< long >(result));
11370 return resultobj;
11371 fail:
11372 return NULL;
11373 }
11374
11375
11376 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11377 PyObject *resultobj = 0;
11378 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11379 long result;
11380 void *argp1 = 0 ;
11381 int res1 = 0 ;
11382 PyObject *swig_obj[1] ;
11383
11384 if (!args) SWIG_fail;
11385 swig_obj[0] = args;
11386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11387 if (!SWIG_IsOK(res1)) {
11388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11389 }
11390 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11391 {
11392 PyThreadState* __tstate = wxPyBeginAllowThreads();
11393 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 resultobj = SWIG_From_long(static_cast< long >(result));
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11405 PyObject *resultobj = 0;
11406 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11407 long result;
11408 void *argp1 = 0 ;
11409 int res1 = 0 ;
11410 PyObject *swig_obj[1] ;
11411
11412 if (!args) SWIG_fail;
11413 swig_obj[0] = args;
11414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11415 if (!SWIG_IsOK(res1)) {
11416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11417 }
11418 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 resultobj = SWIG_From_long(static_cast< long >(result));
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11433 PyObject *resultobj = 0;
11434 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11435 long result;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 PyObject *swig_obj[1] ;
11439
11440 if (!args) SWIG_fail;
11441 swig_obj[0] = args;
11442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11443 if (!SWIG_IsOK(res1)) {
11444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11445 }
11446 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11450 wxPyEndAllowThreads(__tstate);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 resultobj = SWIG_From_long(static_cast< long >(result));
11454 return resultobj;
11455 fail:
11456 return NULL;
11457 }
11458
11459
11460 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11461 PyObject *resultobj = 0;
11462 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11463 bool result;
11464 void *argp1 = 0 ;
11465 int res1 = 0 ;
11466 PyObject *swig_obj[1] ;
11467
11468 if (!args) SWIG_fail;
11469 swig_obj[0] = args;
11470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11471 if (!SWIG_IsOK(res1)) {
11472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11473 }
11474 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 {
11482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11483 }
11484 return resultobj;
11485 fail:
11486 return NULL;
11487 }
11488
11489
11490 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11491 PyObject *resultobj = 0;
11492 wxTextAttr *arg1 = 0 ;
11493 wxTextAttr *arg2 = 0 ;
11494 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11495 wxTextAttr result;
11496 void *argp1 = 0 ;
11497 int res1 = 0 ;
11498 void *argp2 = 0 ;
11499 int res2 = 0 ;
11500 void *argp3 = 0 ;
11501 int res3 = 0 ;
11502 PyObject * obj0 = 0 ;
11503 PyObject * obj1 = 0 ;
11504 PyObject * obj2 = 0 ;
11505 char * kwnames[] = {
11506 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11507 };
11508
11509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11510 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11511 if (!SWIG_IsOK(res1)) {
11512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11513 }
11514 if (!argp1) {
11515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11516 }
11517 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11519 if (!SWIG_IsOK(res2)) {
11520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11521 }
11522 if (!argp2) {
11523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11524 }
11525 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11526 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11527 if (!SWIG_IsOK(res3)) {
11528 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11529 }
11530 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11538 return resultobj;
11539 fail:
11540 return NULL;
11541 }
11542
11543
11544 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11545 PyObject *obj;
11546 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11547 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11548 return SWIG_Py_Void();
11549 }
11550
11551 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11552 return SWIG_Python_InitShadowInstance(args);
11553 }
11554
11555 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11556 PyObject *resultobj = 0;
11557 wxWindow *arg1 = (wxWindow *) 0 ;
11558 int arg2 = (int) -1 ;
11559 wxString const &arg3_defvalue = wxPyEmptyString ;
11560 wxString *arg3 = (wxString *) &arg3_defvalue ;
11561 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11562 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11563 wxSize const &arg5_defvalue = wxDefaultSize ;
11564 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11565 long arg6 = (long) 0 ;
11566 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11567 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11568 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11569 wxString *arg8 = (wxString *) &arg8_defvalue ;
11570 wxTextCtrl *result = 0 ;
11571 void *argp1 = 0 ;
11572 int res1 = 0 ;
11573 int val2 ;
11574 int ecode2 = 0 ;
11575 bool temp3 = false ;
11576 wxPoint temp4 ;
11577 wxSize temp5 ;
11578 long val6 ;
11579 int ecode6 = 0 ;
11580 void *argp7 = 0 ;
11581 int res7 = 0 ;
11582 bool temp8 = false ;
11583 PyObject * obj0 = 0 ;
11584 PyObject * obj1 = 0 ;
11585 PyObject * obj2 = 0 ;
11586 PyObject * obj3 = 0 ;
11587 PyObject * obj4 = 0 ;
11588 PyObject * obj5 = 0 ;
11589 PyObject * obj6 = 0 ;
11590 PyObject * obj7 = 0 ;
11591 char * kwnames[] = {
11592 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11593 };
11594
11595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11597 if (!SWIG_IsOK(res1)) {
11598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11599 }
11600 arg1 = reinterpret_cast< wxWindow * >(argp1);
11601 if (obj1) {
11602 ecode2 = SWIG_AsVal_int(obj1, &val2);
11603 if (!SWIG_IsOK(ecode2)) {
11604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11605 }
11606 arg2 = static_cast< int >(val2);
11607 }
11608 if (obj2) {
11609 {
11610 arg3 = wxString_in_helper(obj2);
11611 if (arg3 == NULL) SWIG_fail;
11612 temp3 = true;
11613 }
11614 }
11615 if (obj3) {
11616 {
11617 arg4 = &temp4;
11618 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11619 }
11620 }
11621 if (obj4) {
11622 {
11623 arg5 = &temp5;
11624 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11625 }
11626 }
11627 if (obj5) {
11628 ecode6 = SWIG_AsVal_long(obj5, &val6);
11629 if (!SWIG_IsOK(ecode6)) {
11630 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11631 }
11632 arg6 = static_cast< long >(val6);
11633 }
11634 if (obj6) {
11635 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11636 if (!SWIG_IsOK(res7)) {
11637 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11638 }
11639 if (!argp7) {
11640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11641 }
11642 arg7 = reinterpret_cast< wxValidator * >(argp7);
11643 }
11644 if (obj7) {
11645 {
11646 arg8 = wxString_in_helper(obj7);
11647 if (arg8 == NULL) SWIG_fail;
11648 temp8 = true;
11649 }
11650 }
11651 {
11652 if (!wxPyCheckForApp()) SWIG_fail;
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11659 {
11660 if (temp3)
11661 delete arg3;
11662 }
11663 {
11664 if (temp8)
11665 delete arg8;
11666 }
11667 return resultobj;
11668 fail:
11669 {
11670 if (temp3)
11671 delete arg3;
11672 }
11673 {
11674 if (temp8)
11675 delete arg8;
11676 }
11677 return NULL;
11678 }
11679
11680
11681 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11682 PyObject *resultobj = 0;
11683 wxTextCtrl *result = 0 ;
11684
11685 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11686 {
11687 if (!wxPyCheckForApp()) SWIG_fail;
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 result = (wxTextCtrl *)new wxTextCtrl();
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11694 return resultobj;
11695 fail:
11696 return NULL;
11697 }
11698
11699
11700 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11701 PyObject *resultobj = 0;
11702 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11703 wxWindow *arg2 = (wxWindow *) 0 ;
11704 int arg3 = (int) -1 ;
11705 wxString const &arg4_defvalue = wxPyEmptyString ;
11706 wxString *arg4 = (wxString *) &arg4_defvalue ;
11707 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11708 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11709 wxSize const &arg6_defvalue = wxDefaultSize ;
11710 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11711 long arg7 = (long) 0 ;
11712 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11713 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11714 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11715 wxString *arg9 = (wxString *) &arg9_defvalue ;
11716 bool result;
11717 void *argp1 = 0 ;
11718 int res1 = 0 ;
11719 void *argp2 = 0 ;
11720 int res2 = 0 ;
11721 int val3 ;
11722 int ecode3 = 0 ;
11723 bool temp4 = false ;
11724 wxPoint temp5 ;
11725 wxSize temp6 ;
11726 long val7 ;
11727 int ecode7 = 0 ;
11728 void *argp8 = 0 ;
11729 int res8 = 0 ;
11730 bool temp9 = false ;
11731 PyObject * obj0 = 0 ;
11732 PyObject * obj1 = 0 ;
11733 PyObject * obj2 = 0 ;
11734 PyObject * obj3 = 0 ;
11735 PyObject * obj4 = 0 ;
11736 PyObject * obj5 = 0 ;
11737 PyObject * obj6 = 0 ;
11738 PyObject * obj7 = 0 ;
11739 PyObject * obj8 = 0 ;
11740 char * kwnames[] = {
11741 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11742 };
11743
11744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11746 if (!SWIG_IsOK(res1)) {
11747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11748 }
11749 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11750 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11751 if (!SWIG_IsOK(res2)) {
11752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11753 }
11754 arg2 = reinterpret_cast< wxWindow * >(argp2);
11755 if (obj2) {
11756 ecode3 = SWIG_AsVal_int(obj2, &val3);
11757 if (!SWIG_IsOK(ecode3)) {
11758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11759 }
11760 arg3 = static_cast< int >(val3);
11761 }
11762 if (obj3) {
11763 {
11764 arg4 = wxString_in_helper(obj3);
11765 if (arg4 == NULL) SWIG_fail;
11766 temp4 = true;
11767 }
11768 }
11769 if (obj4) {
11770 {
11771 arg5 = &temp5;
11772 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11773 }
11774 }
11775 if (obj5) {
11776 {
11777 arg6 = &temp6;
11778 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11779 }
11780 }
11781 if (obj6) {
11782 ecode7 = SWIG_AsVal_long(obj6, &val7);
11783 if (!SWIG_IsOK(ecode7)) {
11784 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11785 }
11786 arg7 = static_cast< long >(val7);
11787 }
11788 if (obj7) {
11789 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11790 if (!SWIG_IsOK(res8)) {
11791 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11792 }
11793 if (!argp8) {
11794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11795 }
11796 arg8 = reinterpret_cast< wxValidator * >(argp8);
11797 }
11798 if (obj8) {
11799 {
11800 arg9 = wxString_in_helper(obj8);
11801 if (arg9 == NULL) SWIG_fail;
11802 temp9 = true;
11803 }
11804 }
11805 {
11806 PyThreadState* __tstate = wxPyBeginAllowThreads();
11807 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11808 wxPyEndAllowThreads(__tstate);
11809 if (PyErr_Occurred()) SWIG_fail;
11810 }
11811 {
11812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11813 }
11814 {
11815 if (temp4)
11816 delete arg4;
11817 }
11818 {
11819 if (temp9)
11820 delete arg9;
11821 }
11822 return resultobj;
11823 fail:
11824 {
11825 if (temp4)
11826 delete arg4;
11827 }
11828 {
11829 if (temp9)
11830 delete arg9;
11831 }
11832 return NULL;
11833 }
11834
11835
11836 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11837 PyObject *resultobj = 0;
11838 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11839 wxString result;
11840 void *argp1 = 0 ;
11841 int res1 = 0 ;
11842 PyObject *swig_obj[1] ;
11843
11844 if (!args) SWIG_fail;
11845 swig_obj[0] = args;
11846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11847 if (!SWIG_IsOK(res1)) {
11848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11849 }
11850 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = ((wxTextCtrl const *)arg1)->GetValue();
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 {
11858 #if wxUSE_UNICODE
11859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11860 #else
11861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11862 #endif
11863 }
11864 return resultobj;
11865 fail:
11866 return NULL;
11867 }
11868
11869
11870 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11871 PyObject *resultobj = 0;
11872 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11873 wxString *arg2 = 0 ;
11874 void *argp1 = 0 ;
11875 int res1 = 0 ;
11876 bool temp2 = false ;
11877 PyObject * obj0 = 0 ;
11878 PyObject * obj1 = 0 ;
11879 char * kwnames[] = {
11880 (char *) "self",(char *) "value", NULL
11881 };
11882
11883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11885 if (!SWIG_IsOK(res1)) {
11886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11887 }
11888 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11889 {
11890 arg2 = wxString_in_helper(obj1);
11891 if (arg2 == NULL) SWIG_fail;
11892 temp2 = true;
11893 }
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 (arg1)->SetValue((wxString const &)*arg2);
11897 wxPyEndAllowThreads(__tstate);
11898 if (PyErr_Occurred()) SWIG_fail;
11899 }
11900 resultobj = SWIG_Py_Void();
11901 {
11902 if (temp2)
11903 delete arg2;
11904 }
11905 return resultobj;
11906 fail:
11907 {
11908 if (temp2)
11909 delete arg2;
11910 }
11911 return NULL;
11912 }
11913
11914
11915 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11916 PyObject *resultobj = 0;
11917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11918 bool result;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 PyObject *swig_obj[1] ;
11922
11923 if (!args) SWIG_fail;
11924 swig_obj[0] = args;
11925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11926 if (!SWIG_IsOK(res1)) {
11927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11928 }
11929 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 {
11937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11938 }
11939 return resultobj;
11940 fail:
11941 return NULL;
11942 }
11943
11944
11945 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11946 PyObject *resultobj = 0;
11947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11948 wxString *arg2 = 0 ;
11949 void *argp1 = 0 ;
11950 int res1 = 0 ;
11951 bool temp2 = false ;
11952 PyObject * obj0 = 0 ;
11953 PyObject * obj1 = 0 ;
11954 char * kwnames[] = {
11955 (char *) "self",(char *) "value", NULL
11956 };
11957
11958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11960 if (!SWIG_IsOK(res1)) {
11961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11962 }
11963 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11964 {
11965 arg2 = wxString_in_helper(obj1);
11966 if (arg2 == NULL) SWIG_fail;
11967 temp2 = true;
11968 }
11969 {
11970 PyThreadState* __tstate = wxPyBeginAllowThreads();
11971 (arg1)->ChangeValue((wxString const &)*arg2);
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 resultobj = SWIG_Py_Void();
11976 {
11977 if (temp2)
11978 delete arg2;
11979 }
11980 return resultobj;
11981 fail:
11982 {
11983 if (temp2)
11984 delete arg2;
11985 }
11986 return NULL;
11987 }
11988
11989
11990 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj = 0;
11992 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11993 long arg2 ;
11994 long arg3 ;
11995 wxString result;
11996 void *argp1 = 0 ;
11997 int res1 = 0 ;
11998 long val2 ;
11999 int ecode2 = 0 ;
12000 long val3 ;
12001 int ecode3 = 0 ;
12002 PyObject * obj0 = 0 ;
12003 PyObject * obj1 = 0 ;
12004 PyObject * obj2 = 0 ;
12005 char * kwnames[] = {
12006 (char *) "self",(char *) "from",(char *) "to", NULL
12007 };
12008
12009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12013 }
12014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12015 ecode2 = SWIG_AsVal_long(obj1, &val2);
12016 if (!SWIG_IsOK(ecode2)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12018 }
12019 arg2 = static_cast< long >(val2);
12020 ecode3 = SWIG_AsVal_long(obj2, &val3);
12021 if (!SWIG_IsOK(ecode3)) {
12022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12023 }
12024 arg3 = static_cast< long >(val3);
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 {
12032 #if wxUSE_UNICODE
12033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12034 #else
12035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12036 #endif
12037 }
12038 return resultobj;
12039 fail:
12040 return NULL;
12041 }
12042
12043
12044 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj = 0;
12046 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12047 long arg2 ;
12048 int result;
12049 void *argp1 = 0 ;
12050 int res1 = 0 ;
12051 long val2 ;
12052 int ecode2 = 0 ;
12053 PyObject * obj0 = 0 ;
12054 PyObject * obj1 = 0 ;
12055 char * kwnames[] = {
12056 (char *) "self",(char *) "lineNo", NULL
12057 };
12058
12059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12061 if (!SWIG_IsOK(res1)) {
12062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12063 }
12064 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12065 ecode2 = SWIG_AsVal_long(obj1, &val2);
12066 if (!SWIG_IsOK(ecode2)) {
12067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12068 }
12069 arg2 = static_cast< long >(val2);
12070 {
12071 PyThreadState* __tstate = wxPyBeginAllowThreads();
12072 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12073 wxPyEndAllowThreads(__tstate);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 resultobj = SWIG_From_int(static_cast< int >(result));
12077 return resultobj;
12078 fail:
12079 return NULL;
12080 }
12081
12082
12083 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12084 PyObject *resultobj = 0;
12085 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12086 long arg2 ;
12087 wxString result;
12088 void *argp1 = 0 ;
12089 int res1 = 0 ;
12090 long val2 ;
12091 int ecode2 = 0 ;
12092 PyObject * obj0 = 0 ;
12093 PyObject * obj1 = 0 ;
12094 char * kwnames[] = {
12095 (char *) "self",(char *) "lineNo", NULL
12096 };
12097
12098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12100 if (!SWIG_IsOK(res1)) {
12101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12102 }
12103 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12104 ecode2 = SWIG_AsVal_long(obj1, &val2);
12105 if (!SWIG_IsOK(ecode2)) {
12106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12107 }
12108 arg2 = static_cast< long >(val2);
12109 {
12110 PyThreadState* __tstate = wxPyBeginAllowThreads();
12111 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 {
12116 #if wxUSE_UNICODE
12117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12118 #else
12119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12120 #endif
12121 }
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12129 PyObject *resultobj = 0;
12130 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12131 int result;
12132 void *argp1 = 0 ;
12133 int res1 = 0 ;
12134 PyObject *swig_obj[1] ;
12135
12136 if (!args) SWIG_fail;
12137 swig_obj[0] = args;
12138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12139 if (!SWIG_IsOK(res1)) {
12140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12141 }
12142 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 resultobj = SWIG_From_int(static_cast< int >(result));
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12157 PyObject *resultobj = 0;
12158 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12159 bool result;
12160 void *argp1 = 0 ;
12161 int res1 = 0 ;
12162 PyObject *swig_obj[1] ;
12163
12164 if (!args) SWIG_fail;
12165 swig_obj[0] = args;
12166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12167 if (!SWIG_IsOK(res1)) {
12168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12169 }
12170 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12171 {
12172 PyThreadState* __tstate = wxPyBeginAllowThreads();
12173 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12174 wxPyEndAllowThreads(__tstate);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 }
12177 {
12178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12179 }
12180 return resultobj;
12181 fail:
12182 return NULL;
12183 }
12184
12185
12186 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12187 PyObject *resultobj = 0;
12188 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12189 bool result;
12190 void *argp1 = 0 ;
12191 int res1 = 0 ;
12192 PyObject *swig_obj[1] ;
12193
12194 if (!args) SWIG_fail;
12195 swig_obj[0] = args;
12196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12197 if (!SWIG_IsOK(res1)) {
12198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12199 }
12200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12201 {
12202 PyThreadState* __tstate = wxPyBeginAllowThreads();
12203 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 {
12208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12209 }
12210 return resultobj;
12211 fail:
12212 return NULL;
12213 }
12214
12215
12216 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12217 PyObject *resultobj = 0;
12218 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12219 bool result;
12220 void *argp1 = 0 ;
12221 int res1 = 0 ;
12222 PyObject *swig_obj[1] ;
12223
12224 if (!args) SWIG_fail;
12225 swig_obj[0] = args;
12226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12227 if (!SWIG_IsOK(res1)) {
12228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12229 }
12230 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12231 {
12232 PyThreadState* __tstate = wxPyBeginAllowThreads();
12233 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12234 wxPyEndAllowThreads(__tstate);
12235 if (PyErr_Occurred()) SWIG_fail;
12236 }
12237 {
12238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12239 }
12240 return resultobj;
12241 fail:
12242 return NULL;
12243 }
12244
12245
12246 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12247 PyObject *resultobj = 0;
12248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12249 bool result;
12250 void *argp1 = 0 ;
12251 int res1 = 0 ;
12252 PyObject *swig_obj[1] ;
12253
12254 if (!args) SWIG_fail;
12255 swig_obj[0] = args;
12256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12257 if (!SWIG_IsOK(res1)) {
12258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12259 }
12260 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12261 {
12262 PyThreadState* __tstate = wxPyBeginAllowThreads();
12263 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12264 wxPyEndAllowThreads(__tstate);
12265 if (PyErr_Occurred()) SWIG_fail;
12266 }
12267 {
12268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12269 }
12270 return resultobj;
12271 fail:
12272 return NULL;
12273 }
12274
12275
12276 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12277 PyObject *resultobj = 0;
12278 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12279 long *arg2 = (long *) 0 ;
12280 long *arg3 = (long *) 0 ;
12281 void *argp1 = 0 ;
12282 int res1 = 0 ;
12283 long temp2 ;
12284 int res2 = SWIG_TMPOBJ ;
12285 long temp3 ;
12286 int res3 = SWIG_TMPOBJ ;
12287 PyObject *swig_obj[1] ;
12288
12289 arg2 = &temp2;
12290 arg3 = &temp3;
12291 if (!args) SWIG_fail;
12292 swig_obj[0] = args;
12293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12294 if (!SWIG_IsOK(res1)) {
12295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12296 }
12297 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12298 {
12299 PyThreadState* __tstate = wxPyBeginAllowThreads();
12300 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 resultobj = SWIG_Py_Void();
12305 if (SWIG_IsTmpObj(res2)) {
12306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12307 } else {
12308 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12310 }
12311 if (SWIG_IsTmpObj(res3)) {
12312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12313 } else {
12314 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12316 }
12317 return resultobj;
12318 fail:
12319 return NULL;
12320 }
12321
12322
12323 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12324 PyObject *resultobj = 0;
12325 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12326 wxString result;
12327 void *argp1 = 0 ;
12328 int res1 = 0 ;
12329 PyObject *swig_obj[1] ;
12330
12331 if (!args) SWIG_fail;
12332 swig_obj[0] = args;
12333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12334 if (!SWIG_IsOK(res1)) {
12335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12336 }
12337 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12338 {
12339 PyThreadState* __tstate = wxPyBeginAllowThreads();
12340 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
12344 {
12345 #if wxUSE_UNICODE
12346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12347 #else
12348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12349 #endif
12350 }
12351 return resultobj;
12352 fail:
12353 return NULL;
12354 }
12355
12356
12357 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12358 PyObject *resultobj = 0;
12359 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12360 void *argp1 = 0 ;
12361 int res1 = 0 ;
12362 PyObject *swig_obj[1] ;
12363
12364 if (!args) SWIG_fail;
12365 swig_obj[0] = args;
12366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12367 if (!SWIG_IsOK(res1)) {
12368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12369 }
12370 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 (arg1)->Clear();
12374 wxPyEndAllowThreads(__tstate);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 resultobj = SWIG_Py_Void();
12378 return resultobj;
12379 fail:
12380 return NULL;
12381 }
12382
12383
12384 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj = 0;
12386 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12387 long arg2 ;
12388 long arg3 ;
12389 wxString *arg4 = 0 ;
12390 void *argp1 = 0 ;
12391 int res1 = 0 ;
12392 long val2 ;
12393 int ecode2 = 0 ;
12394 long val3 ;
12395 int ecode3 = 0 ;
12396 bool temp4 = false ;
12397 PyObject * obj0 = 0 ;
12398 PyObject * obj1 = 0 ;
12399 PyObject * obj2 = 0 ;
12400 PyObject * obj3 = 0 ;
12401 char * kwnames[] = {
12402 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12403 };
12404
12405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12407 if (!SWIG_IsOK(res1)) {
12408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12409 }
12410 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12411 ecode2 = SWIG_AsVal_long(obj1, &val2);
12412 if (!SWIG_IsOK(ecode2)) {
12413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12414 }
12415 arg2 = static_cast< long >(val2);
12416 ecode3 = SWIG_AsVal_long(obj2, &val3);
12417 if (!SWIG_IsOK(ecode3)) {
12418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12419 }
12420 arg3 = static_cast< long >(val3);
12421 {
12422 arg4 = wxString_in_helper(obj3);
12423 if (arg4 == NULL) SWIG_fail;
12424 temp4 = true;
12425 }
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 resultobj = SWIG_Py_Void();
12433 {
12434 if (temp4)
12435 delete arg4;
12436 }
12437 return resultobj;
12438 fail:
12439 {
12440 if (temp4)
12441 delete arg4;
12442 }
12443 return NULL;
12444 }
12445
12446
12447 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj = 0;
12449 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12450 long arg2 ;
12451 long arg3 ;
12452 void *argp1 = 0 ;
12453 int res1 = 0 ;
12454 long val2 ;
12455 int ecode2 = 0 ;
12456 long val3 ;
12457 int ecode3 = 0 ;
12458 PyObject * obj0 = 0 ;
12459 PyObject * obj1 = 0 ;
12460 PyObject * obj2 = 0 ;
12461 char * kwnames[] = {
12462 (char *) "self",(char *) "from",(char *) "to", NULL
12463 };
12464
12465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12467 if (!SWIG_IsOK(res1)) {
12468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12469 }
12470 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12471 ecode2 = SWIG_AsVal_long(obj1, &val2);
12472 if (!SWIG_IsOK(ecode2)) {
12473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12474 }
12475 arg2 = static_cast< long >(val2);
12476 ecode3 = SWIG_AsVal_long(obj2, &val3);
12477 if (!SWIG_IsOK(ecode3)) {
12478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12479 }
12480 arg3 = static_cast< long >(val3);
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->Remove(arg2,arg3);
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 resultobj = SWIG_Py_Void();
12488 return resultobj;
12489 fail:
12490 return NULL;
12491 }
12492
12493
12494 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12495 PyObject *resultobj = 0;
12496 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12497 wxString *arg2 = 0 ;
12498 int arg3 = (int) wxTEXT_TYPE_ANY ;
12499 bool result;
12500 void *argp1 = 0 ;
12501 int res1 = 0 ;
12502 bool temp2 = false ;
12503 int val3 ;
12504 int ecode3 = 0 ;
12505 PyObject * obj0 = 0 ;
12506 PyObject * obj1 = 0 ;
12507 PyObject * obj2 = 0 ;
12508 char * kwnames[] = {
12509 (char *) "self",(char *) "file",(char *) "fileType", NULL
12510 };
12511
12512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12516 }
12517 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12518 {
12519 arg2 = wxString_in_helper(obj1);
12520 if (arg2 == NULL) SWIG_fail;
12521 temp2 = true;
12522 }
12523 if (obj2) {
12524 ecode3 = SWIG_AsVal_int(obj2, &val3);
12525 if (!SWIG_IsOK(ecode3)) {
12526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12527 }
12528 arg3 = static_cast< int >(val3);
12529 }
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 {
12537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12538 }
12539 {
12540 if (temp2)
12541 delete arg2;
12542 }
12543 return resultobj;
12544 fail:
12545 {
12546 if (temp2)
12547 delete arg2;
12548 }
12549 return NULL;
12550 }
12551
12552
12553 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12554 PyObject *resultobj = 0;
12555 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12556 wxString const &arg2_defvalue = wxPyEmptyString ;
12557 wxString *arg2 = (wxString *) &arg2_defvalue ;
12558 int arg3 = (int) wxTEXT_TYPE_ANY ;
12559 bool result;
12560 void *argp1 = 0 ;
12561 int res1 = 0 ;
12562 bool temp2 = false ;
12563 int val3 ;
12564 int ecode3 = 0 ;
12565 PyObject * obj0 = 0 ;
12566 PyObject * obj1 = 0 ;
12567 PyObject * obj2 = 0 ;
12568 char * kwnames[] = {
12569 (char *) "self",(char *) "file",(char *) "fileType", NULL
12570 };
12571
12572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12574 if (!SWIG_IsOK(res1)) {
12575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12576 }
12577 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12578 if (obj1) {
12579 {
12580 arg2 = wxString_in_helper(obj1);
12581 if (arg2 == NULL) SWIG_fail;
12582 temp2 = true;
12583 }
12584 }
12585 if (obj2) {
12586 ecode3 = SWIG_AsVal_int(obj2, &val3);
12587 if (!SWIG_IsOK(ecode3)) {
12588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12589 }
12590 arg3 = static_cast< int >(val3);
12591 }
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12595 wxPyEndAllowThreads(__tstate);
12596 if (PyErr_Occurred()) SWIG_fail;
12597 }
12598 {
12599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12600 }
12601 {
12602 if (temp2)
12603 delete arg2;
12604 }
12605 return resultobj;
12606 fail:
12607 {
12608 if (temp2)
12609 delete arg2;
12610 }
12611 return NULL;
12612 }
12613
12614
12615 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12618 void *argp1 = 0 ;
12619 int res1 = 0 ;
12620 PyObject *swig_obj[1] ;
12621
12622 if (!args) SWIG_fail;
12623 swig_obj[0] = args;
12624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12625 if (!SWIG_IsOK(res1)) {
12626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12627 }
12628 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 (arg1)->MarkDirty();
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = SWIG_Py_Void();
12636 return resultobj;
12637 fail:
12638 return NULL;
12639 }
12640
12641
12642 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12643 PyObject *resultobj = 0;
12644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12645 void *argp1 = 0 ;
12646 int res1 = 0 ;
12647 PyObject *swig_obj[1] ;
12648
12649 if (!args) SWIG_fail;
12650 swig_obj[0] = args;
12651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12652 if (!SWIG_IsOK(res1)) {
12653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12654 }
12655 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 (arg1)->DiscardEdits();
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_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj = 0;
12671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12672 bool arg2 ;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 bool val2 ;
12676 int ecode2 = 0 ;
12677 PyObject * obj0 = 0 ;
12678 PyObject * obj1 = 0 ;
12679 char * kwnames[] = {
12680 (char *) "self",(char *) "modified", NULL
12681 };
12682
12683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12685 if (!SWIG_IsOK(res1)) {
12686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12687 }
12688 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12689 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12690 if (!SWIG_IsOK(ecode2)) {
12691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12692 }
12693 arg2 = static_cast< bool >(val2);
12694 {
12695 PyThreadState* __tstate = wxPyBeginAllowThreads();
12696 (arg1)->SetModified(arg2);
12697 wxPyEndAllowThreads(__tstate);
12698 if (PyErr_Occurred()) SWIG_fail;
12699 }
12700 resultobj = SWIG_Py_Void();
12701 return resultobj;
12702 fail:
12703 return NULL;
12704 }
12705
12706
12707 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12708 PyObject *resultobj = 0;
12709 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12710 unsigned long arg2 ;
12711 void *argp1 = 0 ;
12712 int res1 = 0 ;
12713 unsigned long val2 ;
12714 int ecode2 = 0 ;
12715 PyObject * obj0 = 0 ;
12716 PyObject * obj1 = 0 ;
12717 char * kwnames[] = {
12718 (char *) "self",(char *) "len", NULL
12719 };
12720
12721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12723 if (!SWIG_IsOK(res1)) {
12724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12725 }
12726 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12727 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12728 if (!SWIG_IsOK(ecode2)) {
12729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12730 }
12731 arg2 = static_cast< unsigned long >(val2);
12732 {
12733 PyThreadState* __tstate = wxPyBeginAllowThreads();
12734 (arg1)->SetMaxLength(arg2);
12735 wxPyEndAllowThreads(__tstate);
12736 if (PyErr_Occurred()) SWIG_fail;
12737 }
12738 resultobj = SWIG_Py_Void();
12739 return resultobj;
12740 fail:
12741 return NULL;
12742 }
12743
12744
12745 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12746 PyObject *resultobj = 0;
12747 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12748 wxString *arg2 = 0 ;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 bool temp2 = false ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754 char * kwnames[] = {
12755 (char *) "self",(char *) "text", NULL
12756 };
12757
12758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12760 if (!SWIG_IsOK(res1)) {
12761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12762 }
12763 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12764 {
12765 arg2 = wxString_in_helper(obj1);
12766 if (arg2 == NULL) SWIG_fail;
12767 temp2 = true;
12768 }
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 (arg1)->WriteText((wxString const &)*arg2);
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_Py_Void();
12776 {
12777 if (temp2)
12778 delete arg2;
12779 }
12780 return resultobj;
12781 fail:
12782 {
12783 if (temp2)
12784 delete arg2;
12785 }
12786 return NULL;
12787 }
12788
12789
12790 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12791 PyObject *resultobj = 0;
12792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12793 wxString *arg2 = 0 ;
12794 void *argp1 = 0 ;
12795 int res1 = 0 ;
12796 bool temp2 = false ;
12797 PyObject * obj0 = 0 ;
12798 PyObject * obj1 = 0 ;
12799 char * kwnames[] = {
12800 (char *) "self",(char *) "text", NULL
12801 };
12802
12803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12805 if (!SWIG_IsOK(res1)) {
12806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12807 }
12808 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12809 {
12810 arg2 = wxString_in_helper(obj1);
12811 if (arg2 == NULL) SWIG_fail;
12812 temp2 = true;
12813 }
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 (arg1)->AppendText((wxString const &)*arg2);
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 resultobj = SWIG_Py_Void();
12821 {
12822 if (temp2)
12823 delete arg2;
12824 }
12825 return resultobj;
12826 fail:
12827 {
12828 if (temp2)
12829 delete arg2;
12830 }
12831 return NULL;
12832 }
12833
12834
12835 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12836 PyObject *resultobj = 0;
12837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12838 wxKeyEvent *arg2 = 0 ;
12839 bool result;
12840 void *argp1 = 0 ;
12841 int res1 = 0 ;
12842 void *argp2 = 0 ;
12843 int res2 = 0 ;
12844 PyObject * obj0 = 0 ;
12845 PyObject * obj1 = 0 ;
12846 char * kwnames[] = {
12847 (char *) "self",(char *) "event", NULL
12848 };
12849
12850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12852 if (!SWIG_IsOK(res1)) {
12853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12854 }
12855 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12857 if (!SWIG_IsOK(res2)) {
12858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12859 }
12860 if (!argp2) {
12861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12862 }
12863 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12867 wxPyEndAllowThreads(__tstate);
12868 if (PyErr_Occurred()) SWIG_fail;
12869 }
12870 {
12871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12872 }
12873 return resultobj;
12874 fail:
12875 return NULL;
12876 }
12877
12878
12879 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj = 0;
12881 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12882 long arg2 ;
12883 long arg3 ;
12884 wxTextAttr *arg4 = 0 ;
12885 bool result;
12886 void *argp1 = 0 ;
12887 int res1 = 0 ;
12888 long val2 ;
12889 int ecode2 = 0 ;
12890 long val3 ;
12891 int ecode3 = 0 ;
12892 void *argp4 = 0 ;
12893 int res4 = 0 ;
12894 PyObject * obj0 = 0 ;
12895 PyObject * obj1 = 0 ;
12896 PyObject * obj2 = 0 ;
12897 PyObject * obj3 = 0 ;
12898 char * kwnames[] = {
12899 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12900 };
12901
12902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12904 if (!SWIG_IsOK(res1)) {
12905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12906 }
12907 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12908 ecode2 = SWIG_AsVal_long(obj1, &val2);
12909 if (!SWIG_IsOK(ecode2)) {
12910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12911 }
12912 arg2 = static_cast< long >(val2);
12913 ecode3 = SWIG_AsVal_long(obj2, &val3);
12914 if (!SWIG_IsOK(ecode3)) {
12915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12916 }
12917 arg3 = static_cast< long >(val3);
12918 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12919 if (!SWIG_IsOK(res4)) {
12920 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12921 }
12922 if (!argp4) {
12923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12924 }
12925 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 {
12933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12934 }
12935 return resultobj;
12936 fail:
12937 return NULL;
12938 }
12939
12940
12941 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12942 PyObject *resultobj = 0;
12943 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12944 long arg2 ;
12945 wxTextAttr *arg3 = 0 ;
12946 bool result;
12947 void *argp1 = 0 ;
12948 int res1 = 0 ;
12949 long val2 ;
12950 int ecode2 = 0 ;
12951 void *argp3 = 0 ;
12952 int res3 = 0 ;
12953 PyObject * obj0 = 0 ;
12954 PyObject * obj1 = 0 ;
12955 PyObject * obj2 = 0 ;
12956 char * kwnames[] = {
12957 (char *) "self",(char *) "position",(char *) "style", NULL
12958 };
12959
12960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12962 if (!SWIG_IsOK(res1)) {
12963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12964 }
12965 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12966 ecode2 = SWIG_AsVal_long(obj1, &val2);
12967 if (!SWIG_IsOK(ecode2)) {
12968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12969 }
12970 arg2 = static_cast< long >(val2);
12971 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12972 if (!SWIG_IsOK(res3)) {
12973 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12974 }
12975 if (!argp3) {
12976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12977 }
12978 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 {
12986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12987 }
12988 return resultobj;
12989 fail:
12990 return NULL;
12991 }
12992
12993
12994 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12995 PyObject *resultobj = 0;
12996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12997 wxTextAttr *arg2 = 0 ;
12998 bool result;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 void *argp2 = 0 ;
13002 int res2 = 0 ;
13003 PyObject * obj0 = 0 ;
13004 PyObject * obj1 = 0 ;
13005 char * kwnames[] = {
13006 (char *) "self",(char *) "style", NULL
13007 };
13008
13009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13011 if (!SWIG_IsOK(res1)) {
13012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13013 }
13014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13016 if (!SWIG_IsOK(res2)) {
13017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13018 }
13019 if (!argp2) {
13020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13021 }
13022 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13023 {
13024 PyThreadState* __tstate = wxPyBeginAllowThreads();
13025 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 {
13030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13031 }
13032 return resultobj;
13033 fail:
13034 return NULL;
13035 }
13036
13037
13038 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13039 PyObject *resultobj = 0;
13040 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13041 wxTextAttr *result = 0 ;
13042 void *argp1 = 0 ;
13043 int res1 = 0 ;
13044 PyObject *swig_obj[1] ;
13045
13046 if (!args) SWIG_fail;
13047 swig_obj[0] = args;
13048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13049 if (!SWIG_IsOK(res1)) {
13050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13051 }
13052 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 {
13056 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13057 result = (wxTextAttr *) &_result_ref;
13058 }
13059 wxPyEndAllowThreads(__tstate);
13060 if (PyErr_Occurred()) SWIG_fail;
13061 }
13062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13063 return resultobj;
13064 fail:
13065 return NULL;
13066 }
13067
13068
13069 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13070 PyObject *resultobj = 0;
13071 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13072 long arg2 ;
13073 long arg3 ;
13074 long result;
13075 void *argp1 = 0 ;
13076 int res1 = 0 ;
13077 long val2 ;
13078 int ecode2 = 0 ;
13079 long val3 ;
13080 int ecode3 = 0 ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 PyObject * obj2 = 0 ;
13084 char * kwnames[] = {
13085 (char *) "self",(char *) "x",(char *) "y", NULL
13086 };
13087
13088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13092 }
13093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13094 ecode2 = SWIG_AsVal_long(obj1, &val2);
13095 if (!SWIG_IsOK(ecode2)) {
13096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13097 }
13098 arg2 = static_cast< long >(val2);
13099 ecode3 = SWIG_AsVal_long(obj2, &val3);
13100 if (!SWIG_IsOK(ecode3)) {
13101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13102 }
13103 arg3 = static_cast< long >(val3);
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13107 wxPyEndAllowThreads(__tstate);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 resultobj = SWIG_From_long(static_cast< long >(result));
13111 return resultobj;
13112 fail:
13113 return NULL;
13114 }
13115
13116
13117 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13118 PyObject *resultobj = 0;
13119 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13120 long arg2 ;
13121 long *arg3 = (long *) 0 ;
13122 long *arg4 = (long *) 0 ;
13123 void *argp1 = 0 ;
13124 int res1 = 0 ;
13125 long val2 ;
13126 int ecode2 = 0 ;
13127 long temp3 ;
13128 int res3 = SWIG_TMPOBJ ;
13129 long temp4 ;
13130 int res4 = SWIG_TMPOBJ ;
13131 PyObject * obj0 = 0 ;
13132 PyObject * obj1 = 0 ;
13133 char * kwnames[] = {
13134 (char *) "self",(char *) "pos", NULL
13135 };
13136
13137 arg3 = &temp3;
13138 arg4 = &temp4;
13139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13143 }
13144 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13145 ecode2 = SWIG_AsVal_long(obj1, &val2);
13146 if (!SWIG_IsOK(ecode2)) {
13147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13148 }
13149 arg2 = static_cast< long >(val2);
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 resultobj = SWIG_Py_Void();
13157 if (SWIG_IsTmpObj(res3)) {
13158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13159 } else {
13160 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13162 }
13163 if (SWIG_IsTmpObj(res4)) {
13164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13165 } else {
13166 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13168 }
13169 return resultobj;
13170 fail:
13171 return NULL;
13172 }
13173
13174
13175 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13176 PyObject *resultobj = 0;
13177 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13178 long arg2 ;
13179 void *argp1 = 0 ;
13180 int res1 = 0 ;
13181 long val2 ;
13182 int ecode2 = 0 ;
13183 PyObject * obj0 = 0 ;
13184 PyObject * obj1 = 0 ;
13185 char * kwnames[] = {
13186 (char *) "self",(char *) "pos", NULL
13187 };
13188
13189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13191 if (!SWIG_IsOK(res1)) {
13192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13193 }
13194 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13195 ecode2 = SWIG_AsVal_long(obj1, &val2);
13196 if (!SWIG_IsOK(ecode2)) {
13197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13198 }
13199 arg2 = static_cast< long >(val2);
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 (arg1)->ShowPosition(arg2);
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_Py_Void();
13207 return resultobj;
13208 fail:
13209 return NULL;
13210 }
13211
13212
13213 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13214 PyObject *resultobj = 0;
13215 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13216 wxPoint *arg2 = 0 ;
13217 long *arg3 = (long *) 0 ;
13218 long *arg4 = (long *) 0 ;
13219 wxTextCtrlHitTestResult result;
13220 void *argp1 = 0 ;
13221 int res1 = 0 ;
13222 wxPoint temp2 ;
13223 long temp3 ;
13224 int res3 = SWIG_TMPOBJ ;
13225 long temp4 ;
13226 int res4 = SWIG_TMPOBJ ;
13227 PyObject * obj0 = 0 ;
13228 PyObject * obj1 = 0 ;
13229 char * kwnames[] = {
13230 (char *) "self",(char *) "pt", NULL
13231 };
13232
13233 arg3 = &temp3;
13234 arg4 = &temp4;
13235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13237 if (!SWIG_IsOK(res1)) {
13238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13239 }
13240 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13241 {
13242 arg2 = &temp2;
13243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13244 }
13245 {
13246 PyThreadState* __tstate = wxPyBeginAllowThreads();
13247 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13248 wxPyEndAllowThreads(__tstate);
13249 if (PyErr_Occurred()) SWIG_fail;
13250 }
13251 resultobj = SWIG_From_int(static_cast< int >(result));
13252 if (SWIG_IsTmpObj(res3)) {
13253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13254 } else {
13255 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13257 }
13258 if (SWIG_IsTmpObj(res4)) {
13259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13260 } else {
13261 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13263 }
13264 return resultobj;
13265 fail:
13266 return NULL;
13267 }
13268
13269
13270 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13271 PyObject *resultobj = 0;
13272 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13273 wxPoint *arg2 = 0 ;
13274 long *arg3 = (long *) 0 ;
13275 wxTextCtrlHitTestResult result;
13276 void *argp1 = 0 ;
13277 int res1 = 0 ;
13278 wxPoint temp2 ;
13279 long temp3 ;
13280 int res3 = SWIG_TMPOBJ ;
13281 PyObject * obj0 = 0 ;
13282 PyObject * obj1 = 0 ;
13283 char * kwnames[] = {
13284 (char *) "self",(char *) "pt", NULL
13285 };
13286
13287 arg3 = &temp3;
13288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13290 if (!SWIG_IsOK(res1)) {
13291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13292 }
13293 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13294 {
13295 arg2 = &temp2;
13296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13301 wxPyEndAllowThreads(__tstate);
13302 if (PyErr_Occurred()) SWIG_fail;
13303 }
13304 resultobj = SWIG_From_int(static_cast< int >(result));
13305 if (SWIG_IsTmpObj(res3)) {
13306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13307 } else {
13308 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13310 }
13311 return resultobj;
13312 fail:
13313 return NULL;
13314 }
13315
13316
13317 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13318 PyObject *resultobj = 0;
13319 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13320 void *argp1 = 0 ;
13321 int res1 = 0 ;
13322 PyObject *swig_obj[1] ;
13323
13324 if (!args) SWIG_fail;
13325 swig_obj[0] = args;
13326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13327 if (!SWIG_IsOK(res1)) {
13328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13329 }
13330 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 (arg1)->Copy();
13334 wxPyEndAllowThreads(__tstate);
13335 if (PyErr_Occurred()) SWIG_fail;
13336 }
13337 resultobj = SWIG_Py_Void();
13338 return resultobj;
13339 fail:
13340 return NULL;
13341 }
13342
13343
13344 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13345 PyObject *resultobj = 0;
13346 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13347 void *argp1 = 0 ;
13348 int res1 = 0 ;
13349 PyObject *swig_obj[1] ;
13350
13351 if (!args) SWIG_fail;
13352 swig_obj[0] = args;
13353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13354 if (!SWIG_IsOK(res1)) {
13355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13356 }
13357 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13358 {
13359 PyThreadState* __tstate = wxPyBeginAllowThreads();
13360 (arg1)->Cut();
13361 wxPyEndAllowThreads(__tstate);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 }
13364 resultobj = SWIG_Py_Void();
13365 return resultobj;
13366 fail:
13367 return NULL;
13368 }
13369
13370
13371 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13372 PyObject *resultobj = 0;
13373 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13374 void *argp1 = 0 ;
13375 int res1 = 0 ;
13376 PyObject *swig_obj[1] ;
13377
13378 if (!args) SWIG_fail;
13379 swig_obj[0] = args;
13380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13381 if (!SWIG_IsOK(res1)) {
13382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13383 }
13384 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 (arg1)->Paste();
13388 wxPyEndAllowThreads(__tstate);
13389 if (PyErr_Occurred()) SWIG_fail;
13390 }
13391 resultobj = SWIG_Py_Void();
13392 return resultobj;
13393 fail:
13394 return NULL;
13395 }
13396
13397
13398 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13399 PyObject *resultobj = 0;
13400 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13401 bool result;
13402 void *argp1 = 0 ;
13403 int res1 = 0 ;
13404 PyObject *swig_obj[1] ;
13405
13406 if (!args) SWIG_fail;
13407 swig_obj[0] = args;
13408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13409 if (!SWIG_IsOK(res1)) {
13410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13411 }
13412 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13413 {
13414 PyThreadState* __tstate = wxPyBeginAllowThreads();
13415 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13416 wxPyEndAllowThreads(__tstate);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 {
13420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13421 }
13422 return resultobj;
13423 fail:
13424 return NULL;
13425 }
13426
13427
13428 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13429 PyObject *resultobj = 0;
13430 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13431 bool result;
13432 void *argp1 = 0 ;
13433 int res1 = 0 ;
13434 PyObject *swig_obj[1] ;
13435
13436 if (!args) SWIG_fail;
13437 swig_obj[0] = args;
13438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13439 if (!SWIG_IsOK(res1)) {
13440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13441 }
13442 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
13445 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 {
13450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13451 }
13452 return resultobj;
13453 fail:
13454 return NULL;
13455 }
13456
13457
13458 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13459 PyObject *resultobj = 0;
13460 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13461 bool result;
13462 void *argp1 = 0 ;
13463 int res1 = 0 ;
13464 PyObject *swig_obj[1] ;
13465
13466 if (!args) SWIG_fail;
13467 swig_obj[0] = args;
13468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13469 if (!SWIG_IsOK(res1)) {
13470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13471 }
13472 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13476 wxPyEndAllowThreads(__tstate);
13477 if (PyErr_Occurred()) SWIG_fail;
13478 }
13479 {
13480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13481 }
13482 return resultobj;
13483 fail:
13484 return NULL;
13485 }
13486
13487
13488 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13489 PyObject *resultobj = 0;
13490 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13491 void *argp1 = 0 ;
13492 int res1 = 0 ;
13493 PyObject *swig_obj[1] ;
13494
13495 if (!args) SWIG_fail;
13496 swig_obj[0] = args;
13497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13498 if (!SWIG_IsOK(res1)) {
13499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13500 }
13501 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 (arg1)->Undo();
13505 wxPyEndAllowThreads(__tstate);
13506 if (PyErr_Occurred()) SWIG_fail;
13507 }
13508 resultobj = SWIG_Py_Void();
13509 return resultobj;
13510 fail:
13511 return NULL;
13512 }
13513
13514
13515 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13516 PyObject *resultobj = 0;
13517 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13518 void *argp1 = 0 ;
13519 int res1 = 0 ;
13520 PyObject *swig_obj[1] ;
13521
13522 if (!args) SWIG_fail;
13523 swig_obj[0] = args;
13524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13525 if (!SWIG_IsOK(res1)) {
13526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13527 }
13528 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13529 {
13530 PyThreadState* __tstate = wxPyBeginAllowThreads();
13531 (arg1)->Redo();
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 resultobj = SWIG_Py_Void();
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13543 PyObject *resultobj = 0;
13544 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13545 bool result;
13546 void *argp1 = 0 ;
13547 int res1 = 0 ;
13548 PyObject *swig_obj[1] ;
13549
13550 if (!args) SWIG_fail;
13551 swig_obj[0] = args;
13552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13553 if (!SWIG_IsOK(res1)) {
13554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13555 }
13556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13557 {
13558 PyThreadState* __tstate = wxPyBeginAllowThreads();
13559 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13560 wxPyEndAllowThreads(__tstate);
13561 if (PyErr_Occurred()) SWIG_fail;
13562 }
13563 {
13564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13565 }
13566 return resultobj;
13567 fail:
13568 return NULL;
13569 }
13570
13571
13572 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13573 PyObject *resultobj = 0;
13574 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13575 bool result;
13576 void *argp1 = 0 ;
13577 int res1 = 0 ;
13578 PyObject *swig_obj[1] ;
13579
13580 if (!args) SWIG_fail;
13581 swig_obj[0] = args;
13582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13583 if (!SWIG_IsOK(res1)) {
13584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13585 }
13586 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13587 {
13588 PyThreadState* __tstate = wxPyBeginAllowThreads();
13589 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13590 wxPyEndAllowThreads(__tstate);
13591 if (PyErr_Occurred()) SWIG_fail;
13592 }
13593 {
13594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13595 }
13596 return resultobj;
13597 fail:
13598 return NULL;
13599 }
13600
13601
13602 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13603 PyObject *resultobj = 0;
13604 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13605 long arg2 ;
13606 void *argp1 = 0 ;
13607 int res1 = 0 ;
13608 long val2 ;
13609 int ecode2 = 0 ;
13610 PyObject * obj0 = 0 ;
13611 PyObject * obj1 = 0 ;
13612 char * kwnames[] = {
13613 (char *) "self",(char *) "pos", NULL
13614 };
13615
13616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13618 if (!SWIG_IsOK(res1)) {
13619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13620 }
13621 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13622 ecode2 = SWIG_AsVal_long(obj1, &val2);
13623 if (!SWIG_IsOK(ecode2)) {
13624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13625 }
13626 arg2 = static_cast< long >(val2);
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 (arg1)->SetInsertionPoint(arg2);
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 resultobj = SWIG_Py_Void();
13634 return resultobj;
13635 fail:
13636 return NULL;
13637 }
13638
13639
13640 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13641 PyObject *resultobj = 0;
13642 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13643 void *argp1 = 0 ;
13644 int res1 = 0 ;
13645 PyObject *swig_obj[1] ;
13646
13647 if (!args) SWIG_fail;
13648 swig_obj[0] = args;
13649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13650 if (!SWIG_IsOK(res1)) {
13651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13652 }
13653 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 (arg1)->SetInsertionPointEnd();
13657 wxPyEndAllowThreads(__tstate);
13658 if (PyErr_Occurred()) SWIG_fail;
13659 }
13660 resultobj = SWIG_Py_Void();
13661 return resultobj;
13662 fail:
13663 return NULL;
13664 }
13665
13666
13667 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13668 PyObject *resultobj = 0;
13669 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13670 long result;
13671 void *argp1 = 0 ;
13672 int res1 = 0 ;
13673 PyObject *swig_obj[1] ;
13674
13675 if (!args) SWIG_fail;
13676 swig_obj[0] = args;
13677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13678 if (!SWIG_IsOK(res1)) {
13679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13680 }
13681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13682 {
13683 PyThreadState* __tstate = wxPyBeginAllowThreads();
13684 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13685 wxPyEndAllowThreads(__tstate);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 }
13688 resultobj = SWIG_From_long(static_cast< long >(result));
13689 return resultobj;
13690 fail:
13691 return NULL;
13692 }
13693
13694
13695 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13696 PyObject *resultobj = 0;
13697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13698 long result;
13699 void *argp1 = 0 ;
13700 int res1 = 0 ;
13701 PyObject *swig_obj[1] ;
13702
13703 if (!args) SWIG_fail;
13704 swig_obj[0] = args;
13705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13706 if (!SWIG_IsOK(res1)) {
13707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13708 }
13709 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13713 wxPyEndAllowThreads(__tstate);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 resultobj = SWIG_From_long(static_cast< long >(result));
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13724 PyObject *resultobj = 0;
13725 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13726 long arg2 ;
13727 long arg3 ;
13728 void *argp1 = 0 ;
13729 int res1 = 0 ;
13730 long val2 ;
13731 int ecode2 = 0 ;
13732 long val3 ;
13733 int ecode3 = 0 ;
13734 PyObject * obj0 = 0 ;
13735 PyObject * obj1 = 0 ;
13736 PyObject * obj2 = 0 ;
13737 char * kwnames[] = {
13738 (char *) "self",(char *) "from",(char *) "to", NULL
13739 };
13740
13741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13743 if (!SWIG_IsOK(res1)) {
13744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13745 }
13746 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13747 ecode2 = SWIG_AsVal_long(obj1, &val2);
13748 if (!SWIG_IsOK(ecode2)) {
13749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13750 }
13751 arg2 = static_cast< long >(val2);
13752 ecode3 = SWIG_AsVal_long(obj2, &val3);
13753 if (!SWIG_IsOK(ecode3)) {
13754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13755 }
13756 arg3 = static_cast< long >(val3);
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 (arg1)->SetSelection(arg2,arg3);
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 resultobj = SWIG_Py_Void();
13764 return resultobj;
13765 fail:
13766 return NULL;
13767 }
13768
13769
13770 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13771 PyObject *resultobj = 0;
13772 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13773 void *argp1 = 0 ;
13774 int res1 = 0 ;
13775 PyObject *swig_obj[1] ;
13776
13777 if (!args) SWIG_fail;
13778 swig_obj[0] = args;
13779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13780 if (!SWIG_IsOK(res1)) {
13781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13782 }
13783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13784 {
13785 PyThreadState* __tstate = wxPyBeginAllowThreads();
13786 (arg1)->SelectAll();
13787 wxPyEndAllowThreads(__tstate);
13788 if (PyErr_Occurred()) SWIG_fail;
13789 }
13790 resultobj = SWIG_Py_Void();
13791 return resultobj;
13792 fail:
13793 return NULL;
13794 }
13795
13796
13797 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13798 PyObject *resultobj = 0;
13799 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13800 bool arg2 ;
13801 void *argp1 = 0 ;
13802 int res1 = 0 ;
13803 bool val2 ;
13804 int ecode2 = 0 ;
13805 PyObject * obj0 = 0 ;
13806 PyObject * obj1 = 0 ;
13807 char * kwnames[] = {
13808 (char *) "self",(char *) "editable", NULL
13809 };
13810
13811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13813 if (!SWIG_IsOK(res1)) {
13814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13815 }
13816 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13817 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13818 if (!SWIG_IsOK(ecode2)) {
13819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13820 }
13821 arg2 = static_cast< bool >(val2);
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 (arg1)->SetEditable(arg2);
13825 wxPyEndAllowThreads(__tstate);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 }
13828 resultobj = SWIG_Py_Void();
13829 return resultobj;
13830 fail:
13831 return NULL;
13832 }
13833
13834
13835 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13836 PyObject *resultobj = 0;
13837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13838 bool arg2 ;
13839 void *argp1 = 0 ;
13840 int res1 = 0 ;
13841 bool val2 ;
13842 int ecode2 = 0 ;
13843 PyObject * obj0 = 0 ;
13844 PyObject * obj1 = 0 ;
13845 char * kwnames[] = {
13846 (char *) "self",(char *) "check", NULL
13847 };
13848
13849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13851 if (!SWIG_IsOK(res1)) {
13852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13853 }
13854 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13855 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13856 if (!SWIG_IsOK(ecode2)) {
13857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13858 }
13859 arg2 = static_cast< bool >(val2);
13860 {
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 wxTextCtrl_MacCheckSpelling(arg1,arg2);
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 resultobj = SWIG_Py_Void();
13867 return resultobj;
13868 fail:
13869 return NULL;
13870 }
13871
13872
13873 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13874 PyObject *resultobj = 0;
13875 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13876 void *argp1 = 0 ;
13877 int res1 = 0 ;
13878 PyObject *swig_obj[1] ;
13879
13880 if (!args) SWIG_fail;
13881 swig_obj[0] = args;
13882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13883 if (!SWIG_IsOK(res1)) {
13884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13885 }
13886 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 (arg1)->SendTextUpdatedEvent();
13890 wxPyEndAllowThreads(__tstate);
13891 if (PyErr_Occurred()) SWIG_fail;
13892 }
13893 resultobj = SWIG_Py_Void();
13894 return resultobj;
13895 fail:
13896 return NULL;
13897 }
13898
13899
13900 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13901 PyObject *resultobj = 0;
13902 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13903 wxString *arg2 = 0 ;
13904 void *argp1 = 0 ;
13905 int res1 = 0 ;
13906 bool temp2 = false ;
13907 PyObject * obj0 = 0 ;
13908 PyObject * obj1 = 0 ;
13909 char * kwnames[] = {
13910 (char *) "self",(char *) "text", NULL
13911 };
13912
13913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13915 if (!SWIG_IsOK(res1)) {
13916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13917 }
13918 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13919 {
13920 arg2 = wxString_in_helper(obj1);
13921 if (arg2 == NULL) SWIG_fail;
13922 temp2 = true;
13923 }
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 resultobj = SWIG_Py_Void();
13931 {
13932 if (temp2)
13933 delete arg2;
13934 }
13935 return resultobj;
13936 fail:
13937 {
13938 if (temp2)
13939 delete arg2;
13940 }
13941 return NULL;
13942 }
13943
13944
13945 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13946 PyObject *resultobj = 0;
13947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13948 long arg2 ;
13949 long arg3 ;
13950 wxString result;
13951 void *argp1 = 0 ;
13952 int res1 = 0 ;
13953 long val2 ;
13954 int ecode2 = 0 ;
13955 long val3 ;
13956 int ecode3 = 0 ;
13957 PyObject * obj0 = 0 ;
13958 PyObject * obj1 = 0 ;
13959 PyObject * obj2 = 0 ;
13960 char * kwnames[] = {
13961 (char *) "self",(char *) "from",(char *) "to", NULL
13962 };
13963
13964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13966 if (!SWIG_IsOK(res1)) {
13967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13968 }
13969 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13970 ecode2 = SWIG_AsVal_long(obj1, &val2);
13971 if (!SWIG_IsOK(ecode2)) {
13972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13973 }
13974 arg2 = static_cast< long >(val2);
13975 ecode3 = SWIG_AsVal_long(obj2, &val3);
13976 if (!SWIG_IsOK(ecode3)) {
13977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13978 }
13979 arg3 = static_cast< long >(val3);
13980 {
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 {
13987 #if wxUSE_UNICODE
13988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13989 #else
13990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13991 #endif
13992 }
13993 return resultobj;
13994 fail:
13995 return NULL;
13996 }
13997
13998
13999 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14000 PyObject *resultobj = 0;
14001 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14002 SwigValueWrapper<wxVisualAttributes > result;
14003 int val1 ;
14004 int ecode1 = 0 ;
14005 PyObject * obj0 = 0 ;
14006 char * kwnames[] = {
14007 (char *) "variant", NULL
14008 };
14009
14010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14011 if (obj0) {
14012 ecode1 = SWIG_AsVal_int(obj0, &val1);
14013 if (!SWIG_IsOK(ecode1)) {
14014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14015 }
14016 arg1 = static_cast< wxWindowVariant >(val1);
14017 }
14018 {
14019 if (!wxPyCheckForApp()) SWIG_fail;
14020 PyThreadState* __tstate = wxPyBeginAllowThreads();
14021 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14022 wxPyEndAllowThreads(__tstate);
14023 if (PyErr_Occurred()) SWIG_fail;
14024 }
14025 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14026 return resultobj;
14027 fail:
14028 return NULL;
14029 }
14030
14031
14032 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14033 PyObject *obj;
14034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14035 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14036 return SWIG_Py_Void();
14037 }
14038
14039 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14040 return SWIG_Python_InitShadowInstance(args);
14041 }
14042
14043 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj = 0;
14045 int arg1 ;
14046 wxMouseEvent *arg2 = 0 ;
14047 long arg3 ;
14048 long arg4 ;
14049 wxTextUrlEvent *result = 0 ;
14050 int val1 ;
14051 int ecode1 = 0 ;
14052 void *argp2 = 0 ;
14053 int res2 = 0 ;
14054 long val3 ;
14055 int ecode3 = 0 ;
14056 long val4 ;
14057 int ecode4 = 0 ;
14058 PyObject * obj0 = 0 ;
14059 PyObject * obj1 = 0 ;
14060 PyObject * obj2 = 0 ;
14061 PyObject * obj3 = 0 ;
14062 char * kwnames[] = {
14063 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14064 };
14065
14066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14067 ecode1 = SWIG_AsVal_int(obj0, &val1);
14068 if (!SWIG_IsOK(ecode1)) {
14069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14070 }
14071 arg1 = static_cast< int >(val1);
14072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14073 if (!SWIG_IsOK(res2)) {
14074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14075 }
14076 if (!argp2) {
14077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14078 }
14079 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14080 ecode3 = SWIG_AsVal_long(obj2, &val3);
14081 if (!SWIG_IsOK(ecode3)) {
14082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14083 }
14084 arg3 = static_cast< long >(val3);
14085 ecode4 = SWIG_AsVal_long(obj3, &val4);
14086 if (!SWIG_IsOK(ecode4)) {
14087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14088 }
14089 arg4 = static_cast< long >(val4);
14090 {
14091 PyThreadState* __tstate = wxPyBeginAllowThreads();
14092 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14093 wxPyEndAllowThreads(__tstate);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 }
14096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14097 return resultobj;
14098 fail:
14099 return NULL;
14100 }
14101
14102
14103 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14104 PyObject *resultobj = 0;
14105 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14106 wxMouseEvent *result = 0 ;
14107 void *argp1 = 0 ;
14108 int res1 = 0 ;
14109 PyObject *swig_obj[1] ;
14110
14111 if (!args) SWIG_fail;
14112 swig_obj[0] = args;
14113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14114 if (!SWIG_IsOK(res1)) {
14115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14116 }
14117 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14118 {
14119 PyThreadState* __tstate = wxPyBeginAllowThreads();
14120 {
14121 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14122 result = (wxMouseEvent *) &_result_ref;
14123 }
14124 wxPyEndAllowThreads(__tstate);
14125 if (PyErr_Occurred()) SWIG_fail;
14126 }
14127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14128 return resultobj;
14129 fail:
14130 return NULL;
14131 }
14132
14133
14134 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14135 PyObject *resultobj = 0;
14136 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14137 long result;
14138 void *argp1 = 0 ;
14139 int res1 = 0 ;
14140 PyObject *swig_obj[1] ;
14141
14142 if (!args) SWIG_fail;
14143 swig_obj[0] = args;
14144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14145 if (!SWIG_IsOK(res1)) {
14146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14147 }
14148 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 resultobj = SWIG_From_long(static_cast< long >(result));
14156 return resultobj;
14157 fail:
14158 return NULL;
14159 }
14160
14161
14162 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14163 PyObject *resultobj = 0;
14164 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14165 long result;
14166 void *argp1 = 0 ;
14167 int res1 = 0 ;
14168 PyObject *swig_obj[1] ;
14169
14170 if (!args) SWIG_fail;
14171 swig_obj[0] = args;
14172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14173 if (!SWIG_IsOK(res1)) {
14174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14175 }
14176 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14177 {
14178 PyThreadState* __tstate = wxPyBeginAllowThreads();
14179 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14180 wxPyEndAllowThreads(__tstate);
14181 if (PyErr_Occurred()) SWIG_fail;
14182 }
14183 resultobj = SWIG_From_long(static_cast< long >(result));
14184 return resultobj;
14185 fail:
14186 return NULL;
14187 }
14188
14189
14190 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14191 PyObject *obj;
14192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14193 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14194 return SWIG_Py_Void();
14195 }
14196
14197 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14198 return SWIG_Python_InitShadowInstance(args);
14199 }
14200
14201 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14202 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14203 return 1;
14204 }
14205
14206
14207 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14208 PyObject *pyobj = 0;
14209
14210 {
14211 #if wxUSE_UNICODE
14212 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14213 #else
14214 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14215 #endif
14216 }
14217 return pyobj;
14218 }
14219
14220
14221 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14222 PyObject *resultobj = 0;
14223 wxWindow *arg1 = (wxWindow *) 0 ;
14224 int arg2 = (int) -1 ;
14225 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14226 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14227 wxSize const &arg4_defvalue = wxDefaultSize ;
14228 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14229 long arg5 = (long) wxSB_HORIZONTAL ;
14230 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14231 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14232 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14233 wxString *arg7 = (wxString *) &arg7_defvalue ;
14234 wxScrollBar *result = 0 ;
14235 void *argp1 = 0 ;
14236 int res1 = 0 ;
14237 int val2 ;
14238 int ecode2 = 0 ;
14239 wxPoint temp3 ;
14240 wxSize temp4 ;
14241 long val5 ;
14242 int ecode5 = 0 ;
14243 void *argp6 = 0 ;
14244 int res6 = 0 ;
14245 bool temp7 = false ;
14246 PyObject * obj0 = 0 ;
14247 PyObject * obj1 = 0 ;
14248 PyObject * obj2 = 0 ;
14249 PyObject * obj3 = 0 ;
14250 PyObject * obj4 = 0 ;
14251 PyObject * obj5 = 0 ;
14252 PyObject * obj6 = 0 ;
14253 char * kwnames[] = {
14254 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14255 };
14256
14257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14259 if (!SWIG_IsOK(res1)) {
14260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14261 }
14262 arg1 = reinterpret_cast< wxWindow * >(argp1);
14263 if (obj1) {
14264 ecode2 = SWIG_AsVal_int(obj1, &val2);
14265 if (!SWIG_IsOK(ecode2)) {
14266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14267 }
14268 arg2 = static_cast< int >(val2);
14269 }
14270 if (obj2) {
14271 {
14272 arg3 = &temp3;
14273 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14274 }
14275 }
14276 if (obj3) {
14277 {
14278 arg4 = &temp4;
14279 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14280 }
14281 }
14282 if (obj4) {
14283 ecode5 = SWIG_AsVal_long(obj4, &val5);
14284 if (!SWIG_IsOK(ecode5)) {
14285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14286 }
14287 arg5 = static_cast< long >(val5);
14288 }
14289 if (obj5) {
14290 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14291 if (!SWIG_IsOK(res6)) {
14292 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14293 }
14294 if (!argp6) {
14295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14296 }
14297 arg6 = reinterpret_cast< wxValidator * >(argp6);
14298 }
14299 if (obj6) {
14300 {
14301 arg7 = wxString_in_helper(obj6);
14302 if (arg7 == NULL) SWIG_fail;
14303 temp7 = true;
14304 }
14305 }
14306 {
14307 if (!wxPyCheckForApp()) SWIG_fail;
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14310 wxPyEndAllowThreads(__tstate);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14314 {
14315 if (temp7)
14316 delete arg7;
14317 }
14318 return resultobj;
14319 fail:
14320 {
14321 if (temp7)
14322 delete arg7;
14323 }
14324 return NULL;
14325 }
14326
14327
14328 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14329 PyObject *resultobj = 0;
14330 wxScrollBar *result = 0 ;
14331
14332 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14333 {
14334 if (!wxPyCheckForApp()) SWIG_fail;
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 result = (wxScrollBar *)new wxScrollBar();
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14341 return resultobj;
14342 fail:
14343 return NULL;
14344 }
14345
14346
14347 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14348 PyObject *resultobj = 0;
14349 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14350 wxWindow *arg2 = (wxWindow *) 0 ;
14351 int arg3 = (int) -1 ;
14352 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14353 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14354 wxSize const &arg5_defvalue = wxDefaultSize ;
14355 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14356 long arg6 = (long) wxSB_HORIZONTAL ;
14357 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14358 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14359 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14360 wxString *arg8 = (wxString *) &arg8_defvalue ;
14361 bool result;
14362 void *argp1 = 0 ;
14363 int res1 = 0 ;
14364 void *argp2 = 0 ;
14365 int res2 = 0 ;
14366 int val3 ;
14367 int ecode3 = 0 ;
14368 wxPoint temp4 ;
14369 wxSize temp5 ;
14370 long val6 ;
14371 int ecode6 = 0 ;
14372 void *argp7 = 0 ;
14373 int res7 = 0 ;
14374 bool temp8 = false ;
14375 PyObject * obj0 = 0 ;
14376 PyObject * obj1 = 0 ;
14377 PyObject * obj2 = 0 ;
14378 PyObject * obj3 = 0 ;
14379 PyObject * obj4 = 0 ;
14380 PyObject * obj5 = 0 ;
14381 PyObject * obj6 = 0 ;
14382 PyObject * obj7 = 0 ;
14383 char * kwnames[] = {
14384 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14385 };
14386
14387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14389 if (!SWIG_IsOK(res1)) {
14390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14391 }
14392 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14393 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14394 if (!SWIG_IsOK(res2)) {
14395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14396 }
14397 arg2 = reinterpret_cast< wxWindow * >(argp2);
14398 if (obj2) {
14399 ecode3 = SWIG_AsVal_int(obj2, &val3);
14400 if (!SWIG_IsOK(ecode3)) {
14401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14402 }
14403 arg3 = static_cast< int >(val3);
14404 }
14405 if (obj3) {
14406 {
14407 arg4 = &temp4;
14408 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14409 }
14410 }
14411 if (obj4) {
14412 {
14413 arg5 = &temp5;
14414 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14415 }
14416 }
14417 if (obj5) {
14418 ecode6 = SWIG_AsVal_long(obj5, &val6);
14419 if (!SWIG_IsOK(ecode6)) {
14420 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14421 }
14422 arg6 = static_cast< long >(val6);
14423 }
14424 if (obj6) {
14425 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14426 if (!SWIG_IsOK(res7)) {
14427 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14428 }
14429 if (!argp7) {
14430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14431 }
14432 arg7 = reinterpret_cast< wxValidator * >(argp7);
14433 }
14434 if (obj7) {
14435 {
14436 arg8 = wxString_in_helper(obj7);
14437 if (arg8 == NULL) SWIG_fail;
14438 temp8 = true;
14439 }
14440 }
14441 {
14442 PyThreadState* __tstate = wxPyBeginAllowThreads();
14443 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14444 wxPyEndAllowThreads(__tstate);
14445 if (PyErr_Occurred()) SWIG_fail;
14446 }
14447 {
14448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14449 }
14450 {
14451 if (temp8)
14452 delete arg8;
14453 }
14454 return resultobj;
14455 fail:
14456 {
14457 if (temp8)
14458 delete arg8;
14459 }
14460 return NULL;
14461 }
14462
14463
14464 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14465 PyObject *resultobj = 0;
14466 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14467 int result;
14468 void *argp1 = 0 ;
14469 int res1 = 0 ;
14470 PyObject *swig_obj[1] ;
14471
14472 if (!args) SWIG_fail;
14473 swig_obj[0] = args;
14474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14475 if (!SWIG_IsOK(res1)) {
14476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14477 }
14478 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14479 {
14480 PyThreadState* __tstate = wxPyBeginAllowThreads();
14481 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 resultobj = SWIG_From_int(static_cast< int >(result));
14486 return resultobj;
14487 fail:
14488 return NULL;
14489 }
14490
14491
14492 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14493 PyObject *resultobj = 0;
14494 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14495 int result;
14496 void *argp1 = 0 ;
14497 int res1 = 0 ;
14498 PyObject *swig_obj[1] ;
14499
14500 if (!args) SWIG_fail;
14501 swig_obj[0] = args;
14502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14503 if (!SWIG_IsOK(res1)) {
14504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14505 }
14506 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14507 {
14508 PyThreadState* __tstate = wxPyBeginAllowThreads();
14509 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 resultobj = SWIG_From_int(static_cast< int >(result));
14514 return resultobj;
14515 fail:
14516 return NULL;
14517 }
14518
14519
14520 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14521 PyObject *resultobj = 0;
14522 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14523 int result;
14524 void *argp1 = 0 ;
14525 int res1 = 0 ;
14526 PyObject *swig_obj[1] ;
14527
14528 if (!args) SWIG_fail;
14529 swig_obj[0] = args;
14530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14531 if (!SWIG_IsOK(res1)) {
14532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14533 }
14534 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14535 {
14536 PyThreadState* __tstate = wxPyBeginAllowThreads();
14537 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14538 wxPyEndAllowThreads(__tstate);
14539 if (PyErr_Occurred()) SWIG_fail;
14540 }
14541 resultobj = SWIG_From_int(static_cast< int >(result));
14542 return resultobj;
14543 fail:
14544 return NULL;
14545 }
14546
14547
14548 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14549 PyObject *resultobj = 0;
14550 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14551 int result;
14552 void *argp1 = 0 ;
14553 int res1 = 0 ;
14554 PyObject *swig_obj[1] ;
14555
14556 if (!args) SWIG_fail;
14557 swig_obj[0] = args;
14558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14559 if (!SWIG_IsOK(res1)) {
14560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14561 }
14562 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 result = (int)((wxScrollBar const *)arg1)->GetRange();
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 resultobj = SWIG_From_int(static_cast< int >(result));
14570 return resultobj;
14571 fail:
14572 return NULL;
14573 }
14574
14575
14576 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14577 PyObject *resultobj = 0;
14578 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14579 bool result;
14580 void *argp1 = 0 ;
14581 int res1 = 0 ;
14582 PyObject *swig_obj[1] ;
14583
14584 if (!args) SWIG_fail;
14585 swig_obj[0] = args;
14586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14587 if (!SWIG_IsOK(res1)) {
14588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14589 }
14590 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 {
14598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14599 }
14600 return resultobj;
14601 fail:
14602 return NULL;
14603 }
14604
14605
14606 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14607 PyObject *resultobj = 0;
14608 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14609 int arg2 ;
14610 void *argp1 = 0 ;
14611 int res1 = 0 ;
14612 int val2 ;
14613 int ecode2 = 0 ;
14614 PyObject * obj0 = 0 ;
14615 PyObject * obj1 = 0 ;
14616 char * kwnames[] = {
14617 (char *) "self",(char *) "viewStart", NULL
14618 };
14619
14620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14622 if (!SWIG_IsOK(res1)) {
14623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14624 }
14625 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14626 ecode2 = SWIG_AsVal_int(obj1, &val2);
14627 if (!SWIG_IsOK(ecode2)) {
14628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14629 }
14630 arg2 = static_cast< int >(val2);
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 (arg1)->SetThumbPosition(arg2);
14634 wxPyEndAllowThreads(__tstate);
14635 if (PyErr_Occurred()) SWIG_fail;
14636 }
14637 resultobj = SWIG_Py_Void();
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14645 PyObject *resultobj = 0;
14646 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14647 SwigValueWrapper<wxVisualAttributes > result;
14648 int val1 ;
14649 int ecode1 = 0 ;
14650 PyObject * obj0 = 0 ;
14651 char * kwnames[] = {
14652 (char *) "variant", NULL
14653 };
14654
14655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14656 if (obj0) {
14657 ecode1 = SWIG_AsVal_int(obj0, &val1);
14658 if (!SWIG_IsOK(ecode1)) {
14659 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14660 }
14661 arg1 = static_cast< wxWindowVariant >(val1);
14662 }
14663 {
14664 if (!wxPyCheckForApp()) SWIG_fail;
14665 PyThreadState* __tstate = wxPyBeginAllowThreads();
14666 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14667 wxPyEndAllowThreads(__tstate);
14668 if (PyErr_Occurred()) SWIG_fail;
14669 }
14670 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14671 return resultobj;
14672 fail:
14673 return NULL;
14674 }
14675
14676
14677 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14678 PyObject *obj;
14679 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14680 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14681 return SWIG_Py_Void();
14682 }
14683
14684 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14685 return SWIG_Python_InitShadowInstance(args);
14686 }
14687
14688 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14689 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14690 return 1;
14691 }
14692
14693
14694 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14695 PyObject *pyobj = 0;
14696
14697 {
14698 #if wxUSE_UNICODE
14699 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14700 #else
14701 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14702 #endif
14703 }
14704 return pyobj;
14705 }
14706
14707
14708 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14709 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14710 return 1;
14711 }
14712
14713
14714 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14715 PyObject *pyobj = 0;
14716
14717 {
14718 #if wxUSE_UNICODE
14719 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14720 #else
14721 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14722 #endif
14723 }
14724 return pyobj;
14725 }
14726
14727
14728 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj = 0;
14730 wxWindow *arg1 = (wxWindow *) 0 ;
14731 int arg2 = (int) -1 ;
14732 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14733 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14734 wxSize const &arg4_defvalue = wxDefaultSize ;
14735 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14736 long arg5 = (long) wxSP_HORIZONTAL ;
14737 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14738 wxString *arg6 = (wxString *) &arg6_defvalue ;
14739 wxSpinButton *result = 0 ;
14740 void *argp1 = 0 ;
14741 int res1 = 0 ;
14742 int val2 ;
14743 int ecode2 = 0 ;
14744 wxPoint temp3 ;
14745 wxSize temp4 ;
14746 long val5 ;
14747 int ecode5 = 0 ;
14748 bool temp6 = false ;
14749 PyObject * obj0 = 0 ;
14750 PyObject * obj1 = 0 ;
14751 PyObject * obj2 = 0 ;
14752 PyObject * obj3 = 0 ;
14753 PyObject * obj4 = 0 ;
14754 PyObject * obj5 = 0 ;
14755 char * kwnames[] = {
14756 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14757 };
14758
14759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14761 if (!SWIG_IsOK(res1)) {
14762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14763 }
14764 arg1 = reinterpret_cast< wxWindow * >(argp1);
14765 if (obj1) {
14766 ecode2 = SWIG_AsVal_int(obj1, &val2);
14767 if (!SWIG_IsOK(ecode2)) {
14768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14769 }
14770 arg2 = static_cast< int >(val2);
14771 }
14772 if (obj2) {
14773 {
14774 arg3 = &temp3;
14775 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14776 }
14777 }
14778 if (obj3) {
14779 {
14780 arg4 = &temp4;
14781 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14782 }
14783 }
14784 if (obj4) {
14785 ecode5 = SWIG_AsVal_long(obj4, &val5);
14786 if (!SWIG_IsOK(ecode5)) {
14787 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14788 }
14789 arg5 = static_cast< long >(val5);
14790 }
14791 if (obj5) {
14792 {
14793 arg6 = wxString_in_helper(obj5);
14794 if (arg6 == NULL) SWIG_fail;
14795 temp6 = true;
14796 }
14797 }
14798 {
14799 if (!wxPyCheckForApp()) SWIG_fail;
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14806 {
14807 if (temp6)
14808 delete arg6;
14809 }
14810 return resultobj;
14811 fail:
14812 {
14813 if (temp6)
14814 delete arg6;
14815 }
14816 return NULL;
14817 }
14818
14819
14820 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14821 PyObject *resultobj = 0;
14822 wxSpinButton *result = 0 ;
14823
14824 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14825 {
14826 if (!wxPyCheckForApp()) SWIG_fail;
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 result = (wxSpinButton *)new wxSpinButton();
14829 wxPyEndAllowThreads(__tstate);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14833 return resultobj;
14834 fail:
14835 return NULL;
14836 }
14837
14838
14839 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14840 PyObject *resultobj = 0;
14841 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14842 wxWindow *arg2 = (wxWindow *) 0 ;
14843 int arg3 = (int) -1 ;
14844 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14845 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14846 wxSize const &arg5_defvalue = wxDefaultSize ;
14847 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14848 long arg6 = (long) wxSP_HORIZONTAL ;
14849 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14850 wxString *arg7 = (wxString *) &arg7_defvalue ;
14851 bool result;
14852 void *argp1 = 0 ;
14853 int res1 = 0 ;
14854 void *argp2 = 0 ;
14855 int res2 = 0 ;
14856 int val3 ;
14857 int ecode3 = 0 ;
14858 wxPoint temp4 ;
14859 wxSize temp5 ;
14860 long val6 ;
14861 int ecode6 = 0 ;
14862 bool temp7 = false ;
14863 PyObject * obj0 = 0 ;
14864 PyObject * obj1 = 0 ;
14865 PyObject * obj2 = 0 ;
14866 PyObject * obj3 = 0 ;
14867 PyObject * obj4 = 0 ;
14868 PyObject * obj5 = 0 ;
14869 PyObject * obj6 = 0 ;
14870 char * kwnames[] = {
14871 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14872 };
14873
14874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14876 if (!SWIG_IsOK(res1)) {
14877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14878 }
14879 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14881 if (!SWIG_IsOK(res2)) {
14882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14883 }
14884 arg2 = reinterpret_cast< wxWindow * >(argp2);
14885 if (obj2) {
14886 ecode3 = SWIG_AsVal_int(obj2, &val3);
14887 if (!SWIG_IsOK(ecode3)) {
14888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14889 }
14890 arg3 = static_cast< int >(val3);
14891 }
14892 if (obj3) {
14893 {
14894 arg4 = &temp4;
14895 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14896 }
14897 }
14898 if (obj4) {
14899 {
14900 arg5 = &temp5;
14901 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14902 }
14903 }
14904 if (obj5) {
14905 ecode6 = SWIG_AsVal_long(obj5, &val6);
14906 if (!SWIG_IsOK(ecode6)) {
14907 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14908 }
14909 arg6 = static_cast< long >(val6);
14910 }
14911 if (obj6) {
14912 {
14913 arg7 = wxString_in_helper(obj6);
14914 if (arg7 == NULL) SWIG_fail;
14915 temp7 = true;
14916 }
14917 }
14918 {
14919 PyThreadState* __tstate = wxPyBeginAllowThreads();
14920 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14921 wxPyEndAllowThreads(__tstate);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 }
14924 {
14925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14926 }
14927 {
14928 if (temp7)
14929 delete arg7;
14930 }
14931 return resultobj;
14932 fail:
14933 {
14934 if (temp7)
14935 delete arg7;
14936 }
14937 return NULL;
14938 }
14939
14940
14941 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14942 PyObject *resultobj = 0;
14943 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14944 int result;
14945 void *argp1 = 0 ;
14946 int res1 = 0 ;
14947 PyObject *swig_obj[1] ;
14948
14949 if (!args) SWIG_fail;
14950 swig_obj[0] = args;
14951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14952 if (!SWIG_IsOK(res1)) {
14953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14954 }
14955 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14956 {
14957 PyThreadState* __tstate = wxPyBeginAllowThreads();
14958 result = (int)((wxSpinButton const *)arg1)->GetValue();
14959 wxPyEndAllowThreads(__tstate);
14960 if (PyErr_Occurred()) SWIG_fail;
14961 }
14962 resultobj = SWIG_From_int(static_cast< int >(result));
14963 return resultobj;
14964 fail:
14965 return NULL;
14966 }
14967
14968
14969 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14970 PyObject *resultobj = 0;
14971 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14972 int result;
14973 void *argp1 = 0 ;
14974 int res1 = 0 ;
14975 PyObject *swig_obj[1] ;
14976
14977 if (!args) SWIG_fail;
14978 swig_obj[0] = args;
14979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14980 if (!SWIG_IsOK(res1)) {
14981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14982 }
14983 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14984 {
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 result = (int)((wxSpinButton const *)arg1)->GetMin();
14987 wxPyEndAllowThreads(__tstate);
14988 if (PyErr_Occurred()) SWIG_fail;
14989 }
14990 resultobj = SWIG_From_int(static_cast< int >(result));
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14998 PyObject *resultobj = 0;
14999 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15000 int result;
15001 void *argp1 = 0 ;
15002 int res1 = 0 ;
15003 PyObject *swig_obj[1] ;
15004
15005 if (!args) SWIG_fail;
15006 swig_obj[0] = args;
15007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15008 if (!SWIG_IsOK(res1)) {
15009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15010 }
15011 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 result = (int)((wxSpinButton const *)arg1)->GetMax();
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_From_int(static_cast< int >(result));
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj = 0;
15027 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15028 int arg2 ;
15029 void *argp1 = 0 ;
15030 int res1 = 0 ;
15031 int val2 ;
15032 int ecode2 = 0 ;
15033 PyObject * obj0 = 0 ;
15034 PyObject * obj1 = 0 ;
15035 char * kwnames[] = {
15036 (char *) "self",(char *) "val", NULL
15037 };
15038
15039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15041 if (!SWIG_IsOK(res1)) {
15042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15043 }
15044 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15045 ecode2 = SWIG_AsVal_int(obj1, &val2);
15046 if (!SWIG_IsOK(ecode2)) {
15047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15048 }
15049 arg2 = static_cast< int >(val2);
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 (arg1)->SetValue(arg2);
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 resultobj = SWIG_Py_Void();
15057 return resultobj;
15058 fail:
15059 return NULL;
15060 }
15061
15062
15063 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15064 PyObject *resultobj = 0;
15065 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15066 int arg2 ;
15067 void *argp1 = 0 ;
15068 int res1 = 0 ;
15069 int val2 ;
15070 int ecode2 = 0 ;
15071 PyObject * obj0 = 0 ;
15072 PyObject * obj1 = 0 ;
15073 char * kwnames[] = {
15074 (char *) "self",(char *) "minVal", NULL
15075 };
15076
15077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15079 if (!SWIG_IsOK(res1)) {
15080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15081 }
15082 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15083 ecode2 = SWIG_AsVal_int(obj1, &val2);
15084 if (!SWIG_IsOK(ecode2)) {
15085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15086 }
15087 arg2 = static_cast< int >(val2);
15088 {
15089 PyThreadState* __tstate = wxPyBeginAllowThreads();
15090 (arg1)->SetMin(arg2);
15091 wxPyEndAllowThreads(__tstate);
15092 if (PyErr_Occurred()) SWIG_fail;
15093 }
15094 resultobj = SWIG_Py_Void();
15095 return resultobj;
15096 fail:
15097 return NULL;
15098 }
15099
15100
15101 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15102 PyObject *resultobj = 0;
15103 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15104 int arg2 ;
15105 void *argp1 = 0 ;
15106 int res1 = 0 ;
15107 int val2 ;
15108 int ecode2 = 0 ;
15109 PyObject * obj0 = 0 ;
15110 PyObject * obj1 = 0 ;
15111 char * kwnames[] = {
15112 (char *) "self",(char *) "maxVal", NULL
15113 };
15114
15115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15117 if (!SWIG_IsOK(res1)) {
15118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15119 }
15120 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15121 ecode2 = SWIG_AsVal_int(obj1, &val2);
15122 if (!SWIG_IsOK(ecode2)) {
15123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15124 }
15125 arg2 = static_cast< int >(val2);
15126 {
15127 PyThreadState* __tstate = wxPyBeginAllowThreads();
15128 (arg1)->SetMax(arg2);
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_Py_Void();
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15140 PyObject *resultobj = 0;
15141 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15142 int arg2 ;
15143 int arg3 ;
15144 void *argp1 = 0 ;
15145 int res1 = 0 ;
15146 int val2 ;
15147 int ecode2 = 0 ;
15148 int val3 ;
15149 int ecode3 = 0 ;
15150 PyObject * obj0 = 0 ;
15151 PyObject * obj1 = 0 ;
15152 PyObject * obj2 = 0 ;
15153 char * kwnames[] = {
15154 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15155 };
15156
15157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15159 if (!SWIG_IsOK(res1)) {
15160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15161 }
15162 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15163 ecode2 = SWIG_AsVal_int(obj1, &val2);
15164 if (!SWIG_IsOK(ecode2)) {
15165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15166 }
15167 arg2 = static_cast< int >(val2);
15168 ecode3 = SWIG_AsVal_int(obj2, &val3);
15169 if (!SWIG_IsOK(ecode3)) {
15170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15171 }
15172 arg3 = static_cast< int >(val3);
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 (arg1)->SetRange(arg2,arg3);
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_Py_Void();
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15187 PyObject *resultobj = 0;
15188 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15189 bool result;
15190 void *argp1 = 0 ;
15191 int res1 = 0 ;
15192 PyObject *swig_obj[1] ;
15193
15194 if (!args) SWIG_fail;
15195 swig_obj[0] = args;
15196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15197 if (!SWIG_IsOK(res1)) {
15198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15199 }
15200 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15201 {
15202 PyThreadState* __tstate = wxPyBeginAllowThreads();
15203 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15204 wxPyEndAllowThreads(__tstate);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 {
15208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15209 }
15210 return resultobj;
15211 fail:
15212 return NULL;
15213 }
15214
15215
15216 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15217 PyObject *resultobj = 0;
15218 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15219 SwigValueWrapper<wxVisualAttributes > result;
15220 int val1 ;
15221 int ecode1 = 0 ;
15222 PyObject * obj0 = 0 ;
15223 char * kwnames[] = {
15224 (char *) "variant", NULL
15225 };
15226
15227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15228 if (obj0) {
15229 ecode1 = SWIG_AsVal_int(obj0, &val1);
15230 if (!SWIG_IsOK(ecode1)) {
15231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15232 }
15233 arg1 = static_cast< wxWindowVariant >(val1);
15234 }
15235 {
15236 if (!wxPyCheckForApp()) SWIG_fail;
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15243 return resultobj;
15244 fail:
15245 return NULL;
15246 }
15247
15248
15249 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15250 PyObject *obj;
15251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15252 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15253 return SWIG_Py_Void();
15254 }
15255
15256 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15257 return SWIG_Python_InitShadowInstance(args);
15258 }
15259
15260 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15261 PyObject *resultobj = 0;
15262 wxWindow *arg1 = (wxWindow *) 0 ;
15263 int arg2 = (int) -1 ;
15264 wxString const &arg3_defvalue = wxPyEmptyString ;
15265 wxString *arg3 = (wxString *) &arg3_defvalue ;
15266 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15267 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15268 wxSize const &arg5_defvalue = wxDefaultSize ;
15269 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15270 long arg6 = (long) wxSP_ARROW_KEYS ;
15271 int arg7 = (int) 0 ;
15272 int arg8 = (int) 100 ;
15273 int arg9 = (int) 0 ;
15274 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15275 wxString *arg10 = (wxString *) &arg10_defvalue ;
15276 wxSpinCtrl *result = 0 ;
15277 void *argp1 = 0 ;
15278 int res1 = 0 ;
15279 int val2 ;
15280 int ecode2 = 0 ;
15281 bool temp3 = false ;
15282 wxPoint temp4 ;
15283 wxSize temp5 ;
15284 long val6 ;
15285 int ecode6 = 0 ;
15286 int val7 ;
15287 int ecode7 = 0 ;
15288 int val8 ;
15289 int ecode8 = 0 ;
15290 int val9 ;
15291 int ecode9 = 0 ;
15292 bool temp10 = false ;
15293 PyObject * obj0 = 0 ;
15294 PyObject * obj1 = 0 ;
15295 PyObject * obj2 = 0 ;
15296 PyObject * obj3 = 0 ;
15297 PyObject * obj4 = 0 ;
15298 PyObject * obj5 = 0 ;
15299 PyObject * obj6 = 0 ;
15300 PyObject * obj7 = 0 ;
15301 PyObject * obj8 = 0 ;
15302 PyObject * obj9 = 0 ;
15303 char * kwnames[] = {
15304 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15305 };
15306
15307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15309 if (!SWIG_IsOK(res1)) {
15310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15311 }
15312 arg1 = reinterpret_cast< wxWindow * >(argp1);
15313 if (obj1) {
15314 ecode2 = SWIG_AsVal_int(obj1, &val2);
15315 if (!SWIG_IsOK(ecode2)) {
15316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15317 }
15318 arg2 = static_cast< int >(val2);
15319 }
15320 if (obj2) {
15321 {
15322 arg3 = wxString_in_helper(obj2);
15323 if (arg3 == NULL) SWIG_fail;
15324 temp3 = true;
15325 }
15326 }
15327 if (obj3) {
15328 {
15329 arg4 = &temp4;
15330 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15331 }
15332 }
15333 if (obj4) {
15334 {
15335 arg5 = &temp5;
15336 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15337 }
15338 }
15339 if (obj5) {
15340 ecode6 = SWIG_AsVal_long(obj5, &val6);
15341 if (!SWIG_IsOK(ecode6)) {
15342 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15343 }
15344 arg6 = static_cast< long >(val6);
15345 }
15346 if (obj6) {
15347 ecode7 = SWIG_AsVal_int(obj6, &val7);
15348 if (!SWIG_IsOK(ecode7)) {
15349 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15350 }
15351 arg7 = static_cast< int >(val7);
15352 }
15353 if (obj7) {
15354 ecode8 = SWIG_AsVal_int(obj7, &val8);
15355 if (!SWIG_IsOK(ecode8)) {
15356 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15357 }
15358 arg8 = static_cast< int >(val8);
15359 }
15360 if (obj8) {
15361 ecode9 = SWIG_AsVal_int(obj8, &val9);
15362 if (!SWIG_IsOK(ecode9)) {
15363 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15364 }
15365 arg9 = static_cast< int >(val9);
15366 }
15367 if (obj9) {
15368 {
15369 arg10 = wxString_in_helper(obj9);
15370 if (arg10 == NULL) SWIG_fail;
15371 temp10 = true;
15372 }
15373 }
15374 {
15375 if (!wxPyCheckForApp()) SWIG_fail;
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15382 {
15383 if (temp3)
15384 delete arg3;
15385 }
15386 {
15387 if (temp10)
15388 delete arg10;
15389 }
15390 return resultobj;
15391 fail:
15392 {
15393 if (temp3)
15394 delete arg3;
15395 }
15396 {
15397 if (temp10)
15398 delete arg10;
15399 }
15400 return NULL;
15401 }
15402
15403
15404 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15405 PyObject *resultobj = 0;
15406 wxSpinCtrl *result = 0 ;
15407
15408 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15409 {
15410 if (!wxPyCheckForApp()) SWIG_fail;
15411 PyThreadState* __tstate = wxPyBeginAllowThreads();
15412 result = (wxSpinCtrl *)new wxSpinCtrl();
15413 wxPyEndAllowThreads(__tstate);
15414 if (PyErr_Occurred()) SWIG_fail;
15415 }
15416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15417 return resultobj;
15418 fail:
15419 return NULL;
15420 }
15421
15422
15423 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15424 PyObject *resultobj = 0;
15425 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15426 wxWindow *arg2 = (wxWindow *) 0 ;
15427 int arg3 = (int) -1 ;
15428 wxString const &arg4_defvalue = wxPyEmptyString ;
15429 wxString *arg4 = (wxString *) &arg4_defvalue ;
15430 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15431 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15432 wxSize const &arg6_defvalue = wxDefaultSize ;
15433 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15434 long arg7 = (long) wxSP_ARROW_KEYS ;
15435 int arg8 = (int) 0 ;
15436 int arg9 = (int) 100 ;
15437 int arg10 = (int) 0 ;
15438 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15439 wxString *arg11 = (wxString *) &arg11_defvalue ;
15440 bool result;
15441 void *argp1 = 0 ;
15442 int res1 = 0 ;
15443 void *argp2 = 0 ;
15444 int res2 = 0 ;
15445 int val3 ;
15446 int ecode3 = 0 ;
15447 bool temp4 = false ;
15448 wxPoint temp5 ;
15449 wxSize temp6 ;
15450 long val7 ;
15451 int ecode7 = 0 ;
15452 int val8 ;
15453 int ecode8 = 0 ;
15454 int val9 ;
15455 int ecode9 = 0 ;
15456 int val10 ;
15457 int ecode10 = 0 ;
15458 bool temp11 = false ;
15459 PyObject * obj0 = 0 ;
15460 PyObject * obj1 = 0 ;
15461 PyObject * obj2 = 0 ;
15462 PyObject * obj3 = 0 ;
15463 PyObject * obj4 = 0 ;
15464 PyObject * obj5 = 0 ;
15465 PyObject * obj6 = 0 ;
15466 PyObject * obj7 = 0 ;
15467 PyObject * obj8 = 0 ;
15468 PyObject * obj9 = 0 ;
15469 PyObject * obj10 = 0 ;
15470 char * kwnames[] = {
15471 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15472 };
15473
15474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15476 if (!SWIG_IsOK(res1)) {
15477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15478 }
15479 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15480 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15481 if (!SWIG_IsOK(res2)) {
15482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15483 }
15484 arg2 = reinterpret_cast< wxWindow * >(argp2);
15485 if (obj2) {
15486 ecode3 = SWIG_AsVal_int(obj2, &val3);
15487 if (!SWIG_IsOK(ecode3)) {
15488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15489 }
15490 arg3 = static_cast< int >(val3);
15491 }
15492 if (obj3) {
15493 {
15494 arg4 = wxString_in_helper(obj3);
15495 if (arg4 == NULL) SWIG_fail;
15496 temp4 = true;
15497 }
15498 }
15499 if (obj4) {
15500 {
15501 arg5 = &temp5;
15502 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15503 }
15504 }
15505 if (obj5) {
15506 {
15507 arg6 = &temp6;
15508 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15509 }
15510 }
15511 if (obj6) {
15512 ecode7 = SWIG_AsVal_long(obj6, &val7);
15513 if (!SWIG_IsOK(ecode7)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15515 }
15516 arg7 = static_cast< long >(val7);
15517 }
15518 if (obj7) {
15519 ecode8 = SWIG_AsVal_int(obj7, &val8);
15520 if (!SWIG_IsOK(ecode8)) {
15521 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15522 }
15523 arg8 = static_cast< int >(val8);
15524 }
15525 if (obj8) {
15526 ecode9 = SWIG_AsVal_int(obj8, &val9);
15527 if (!SWIG_IsOK(ecode9)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15529 }
15530 arg9 = static_cast< int >(val9);
15531 }
15532 if (obj9) {
15533 ecode10 = SWIG_AsVal_int(obj9, &val10);
15534 if (!SWIG_IsOK(ecode10)) {
15535 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15536 }
15537 arg10 = static_cast< int >(val10);
15538 }
15539 if (obj10) {
15540 {
15541 arg11 = wxString_in_helper(obj10);
15542 if (arg11 == NULL) SWIG_fail;
15543 temp11 = true;
15544 }
15545 }
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 {
15553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15554 }
15555 {
15556 if (temp4)
15557 delete arg4;
15558 }
15559 {
15560 if (temp11)
15561 delete arg11;
15562 }
15563 return resultobj;
15564 fail:
15565 {
15566 if (temp4)
15567 delete arg4;
15568 }
15569 {
15570 if (temp11)
15571 delete arg11;
15572 }
15573 return NULL;
15574 }
15575
15576
15577 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15578 PyObject *resultobj = 0;
15579 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15580 int result;
15581 void *argp1 = 0 ;
15582 int res1 = 0 ;
15583 PyObject *swig_obj[1] ;
15584
15585 if (!args) SWIG_fail;
15586 swig_obj[0] = args;
15587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15588 if (!SWIG_IsOK(res1)) {
15589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15590 }
15591 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15592 {
15593 PyThreadState* __tstate = wxPyBeginAllowThreads();
15594 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15595 wxPyEndAllowThreads(__tstate);
15596 if (PyErr_Occurred()) SWIG_fail;
15597 }
15598 resultobj = SWIG_From_int(static_cast< int >(result));
15599 return resultobj;
15600 fail:
15601 return NULL;
15602 }
15603
15604
15605 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15606 PyObject *resultobj = 0;
15607 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15608 int arg2 ;
15609 void *argp1 = 0 ;
15610 int res1 = 0 ;
15611 int val2 ;
15612 int ecode2 = 0 ;
15613 PyObject * obj0 = 0 ;
15614 PyObject * obj1 = 0 ;
15615 char * kwnames[] = {
15616 (char *) "self",(char *) "value", NULL
15617 };
15618
15619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15621 if (!SWIG_IsOK(res1)) {
15622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15623 }
15624 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15625 ecode2 = SWIG_AsVal_int(obj1, &val2);
15626 if (!SWIG_IsOK(ecode2)) {
15627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15628 }
15629 arg2 = static_cast< int >(val2);
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 (arg1)->SetValue(arg2);
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = SWIG_Py_Void();
15637 return resultobj;
15638 fail:
15639 return NULL;
15640 }
15641
15642
15643 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15644 PyObject *resultobj = 0;
15645 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15646 wxString *arg2 = 0 ;
15647 void *argp1 = 0 ;
15648 int res1 = 0 ;
15649 bool temp2 = false ;
15650 PyObject * obj0 = 0 ;
15651 PyObject * obj1 = 0 ;
15652 char * kwnames[] = {
15653 (char *) "self",(char *) "text", NULL
15654 };
15655
15656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15658 if (!SWIG_IsOK(res1)) {
15659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15660 }
15661 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15662 {
15663 arg2 = wxString_in_helper(obj1);
15664 if (arg2 == NULL) SWIG_fail;
15665 temp2 = true;
15666 }
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 (arg1)->SetValue((wxString const &)*arg2);
15670 wxPyEndAllowThreads(__tstate);
15671 if (PyErr_Occurred()) SWIG_fail;
15672 }
15673 resultobj = SWIG_Py_Void();
15674 {
15675 if (temp2)
15676 delete arg2;
15677 }
15678 return resultobj;
15679 fail:
15680 {
15681 if (temp2)
15682 delete arg2;
15683 }
15684 return NULL;
15685 }
15686
15687
15688 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj = 0;
15690 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15691 int arg2 ;
15692 int arg3 ;
15693 void *argp1 = 0 ;
15694 int res1 = 0 ;
15695 int val2 ;
15696 int ecode2 = 0 ;
15697 int val3 ;
15698 int ecode3 = 0 ;
15699 PyObject * obj0 = 0 ;
15700 PyObject * obj1 = 0 ;
15701 PyObject * obj2 = 0 ;
15702 char * kwnames[] = {
15703 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15704 };
15705
15706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15708 if (!SWIG_IsOK(res1)) {
15709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15710 }
15711 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15712 ecode2 = SWIG_AsVal_int(obj1, &val2);
15713 if (!SWIG_IsOK(ecode2)) {
15714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15715 }
15716 arg2 = static_cast< int >(val2);
15717 ecode3 = SWIG_AsVal_int(obj2, &val3);
15718 if (!SWIG_IsOK(ecode3)) {
15719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15720 }
15721 arg3 = static_cast< int >(val3);
15722 {
15723 PyThreadState* __tstate = wxPyBeginAllowThreads();
15724 (arg1)->SetRange(arg2,arg3);
15725 wxPyEndAllowThreads(__tstate);
15726 if (PyErr_Occurred()) SWIG_fail;
15727 }
15728 resultobj = SWIG_Py_Void();
15729 return resultobj;
15730 fail:
15731 return NULL;
15732 }
15733
15734
15735 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15736 PyObject *resultobj = 0;
15737 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15738 int result;
15739 void *argp1 = 0 ;
15740 int res1 = 0 ;
15741 PyObject *swig_obj[1] ;
15742
15743 if (!args) SWIG_fail;
15744 swig_obj[0] = args;
15745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15746 if (!SWIG_IsOK(res1)) {
15747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15748 }
15749 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15753 wxPyEndAllowThreads(__tstate);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
15756 resultobj = SWIG_From_int(static_cast< int >(result));
15757 return resultobj;
15758 fail:
15759 return NULL;
15760 }
15761
15762
15763 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15764 PyObject *resultobj = 0;
15765 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15766 int result;
15767 void *argp1 = 0 ;
15768 int res1 = 0 ;
15769 PyObject *swig_obj[1] ;
15770
15771 if (!args) SWIG_fail;
15772 swig_obj[0] = args;
15773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15774 if (!SWIG_IsOK(res1)) {
15775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15776 }
15777 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 resultobj = SWIG_From_int(static_cast< int >(result));
15785 return resultobj;
15786 fail:
15787 return NULL;
15788 }
15789
15790
15791 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = 0;
15793 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15794 long arg2 ;
15795 long arg3 ;
15796 void *argp1 = 0 ;
15797 int res1 = 0 ;
15798 long val2 ;
15799 int ecode2 = 0 ;
15800 long val3 ;
15801 int ecode3 = 0 ;
15802 PyObject * obj0 = 0 ;
15803 PyObject * obj1 = 0 ;
15804 PyObject * obj2 = 0 ;
15805 char * kwnames[] = {
15806 (char *) "self",(char *) "from",(char *) "to", NULL
15807 };
15808
15809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15811 if (!SWIG_IsOK(res1)) {
15812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15813 }
15814 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15815 ecode2 = SWIG_AsVal_long(obj1, &val2);
15816 if (!SWIG_IsOK(ecode2)) {
15817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15818 }
15819 arg2 = static_cast< long >(val2);
15820 ecode3 = SWIG_AsVal_long(obj2, &val3);
15821 if (!SWIG_IsOK(ecode3)) {
15822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15823 }
15824 arg3 = static_cast< long >(val3);
15825 {
15826 PyThreadState* __tstate = wxPyBeginAllowThreads();
15827 (arg1)->SetSelection(arg2,arg3);
15828 wxPyEndAllowThreads(__tstate);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 }
15831 resultobj = SWIG_Py_Void();
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj = 0;
15840 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15841 SwigValueWrapper<wxVisualAttributes > result;
15842 int val1 ;
15843 int ecode1 = 0 ;
15844 PyObject * obj0 = 0 ;
15845 char * kwnames[] = {
15846 (char *) "variant", NULL
15847 };
15848
15849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15850 if (obj0) {
15851 ecode1 = SWIG_AsVal_int(obj0, &val1);
15852 if (!SWIG_IsOK(ecode1)) {
15853 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15854 }
15855 arg1 = static_cast< wxWindowVariant >(val1);
15856 }
15857 {
15858 if (!wxPyCheckForApp()) SWIG_fail;
15859 PyThreadState* __tstate = wxPyBeginAllowThreads();
15860 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15861 wxPyEndAllowThreads(__tstate);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15865 return resultobj;
15866 fail:
15867 return NULL;
15868 }
15869
15870
15871 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15872 PyObject *obj;
15873 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15874 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15875 return SWIG_Py_Void();
15876 }
15877
15878 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15879 return SWIG_Python_InitShadowInstance(args);
15880 }
15881
15882 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15883 PyObject *resultobj = 0;
15884 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15885 int arg2 = (int) 0 ;
15886 wxSpinEvent *result = 0 ;
15887 int val1 ;
15888 int ecode1 = 0 ;
15889 int val2 ;
15890 int ecode2 = 0 ;
15891 PyObject * obj0 = 0 ;
15892 PyObject * obj1 = 0 ;
15893 char * kwnames[] = {
15894 (char *) "commandType",(char *) "winid", NULL
15895 };
15896
15897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15898 if (obj0) {
15899 ecode1 = SWIG_AsVal_int(obj0, &val1);
15900 if (!SWIG_IsOK(ecode1)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15902 }
15903 arg1 = static_cast< wxEventType >(val1);
15904 }
15905 if (obj1) {
15906 ecode2 = SWIG_AsVal_int(obj1, &val2);
15907 if (!SWIG_IsOK(ecode2)) {
15908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15909 }
15910 arg2 = static_cast< int >(val2);
15911 }
15912 {
15913 PyThreadState* __tstate = wxPyBeginAllowThreads();
15914 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15915 wxPyEndAllowThreads(__tstate);
15916 if (PyErr_Occurred()) SWIG_fail;
15917 }
15918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15919 return resultobj;
15920 fail:
15921 return NULL;
15922 }
15923
15924
15925 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15926 PyObject *resultobj = 0;
15927 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15928 int result;
15929 void *argp1 = 0 ;
15930 int res1 = 0 ;
15931 PyObject *swig_obj[1] ;
15932
15933 if (!args) SWIG_fail;
15934 swig_obj[0] = args;
15935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15936 if (!SWIG_IsOK(res1)) {
15937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15938 }
15939 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15940 {
15941 PyThreadState* __tstate = wxPyBeginAllowThreads();
15942 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 resultobj = SWIG_From_int(static_cast< int >(result));
15947 return resultobj;
15948 fail:
15949 return NULL;
15950 }
15951
15952
15953 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj = 0;
15955 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15956 int arg2 ;
15957 void *argp1 = 0 ;
15958 int res1 = 0 ;
15959 int val2 ;
15960 int ecode2 = 0 ;
15961 PyObject * obj0 = 0 ;
15962 PyObject * obj1 = 0 ;
15963 char * kwnames[] = {
15964 (char *) "self",(char *) "pos", NULL
15965 };
15966
15967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15969 if (!SWIG_IsOK(res1)) {
15970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15971 }
15972 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15973 ecode2 = SWIG_AsVal_int(obj1, &val2);
15974 if (!SWIG_IsOK(ecode2)) {
15975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15976 }
15977 arg2 = static_cast< int >(val2);
15978 {
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 (arg1)->SetPosition(arg2);
15981 wxPyEndAllowThreads(__tstate);
15982 if (PyErr_Occurred()) SWIG_fail;
15983 }
15984 resultobj = SWIG_Py_Void();
15985 return resultobj;
15986 fail:
15987 return NULL;
15988 }
15989
15990
15991 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15992 PyObject *obj;
15993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15994 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15995 return SWIG_Py_Void();
15996 }
15997
15998 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15999 return SWIG_Python_InitShadowInstance(args);
16000 }
16001
16002 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16003 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16004 return 1;
16005 }
16006
16007
16008 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16009 PyObject *pyobj = 0;
16010
16011 {
16012 #if wxUSE_UNICODE
16013 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16014 #else
16015 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16016 #endif
16017 }
16018 return pyobj;
16019 }
16020
16021
16022 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16023 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16024 return 1;
16025 }
16026
16027
16028 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16029 PyObject *pyobj = 0;
16030
16031 {
16032 #if wxUSE_UNICODE
16033 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16034 #else
16035 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16036 #endif
16037 }
16038 return pyobj;
16039 }
16040
16041
16042 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16043 PyObject *resultobj = 0;
16044 wxWindow *arg1 = (wxWindow *) 0 ;
16045 int arg2 = (int) -1 ;
16046 wxString const &arg3_defvalue = wxPyEmptyString ;
16047 wxString *arg3 = (wxString *) &arg3_defvalue ;
16048 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16049 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16050 wxSize const &arg5_defvalue = wxDefaultSize ;
16051 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16052 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16053 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16054 int arg7 = (int) 0 ;
16055 long arg8 = (long) wxRA_HORIZONTAL ;
16056 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16057 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16058 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16059 wxString *arg10 = (wxString *) &arg10_defvalue ;
16060 wxRadioBox *result = 0 ;
16061 void *argp1 = 0 ;
16062 int res1 = 0 ;
16063 int val2 ;
16064 int ecode2 = 0 ;
16065 bool temp3 = false ;
16066 wxPoint temp4 ;
16067 wxSize temp5 ;
16068 bool temp6 = false ;
16069 int val7 ;
16070 int ecode7 = 0 ;
16071 long val8 ;
16072 int ecode8 = 0 ;
16073 void *argp9 = 0 ;
16074 int res9 = 0 ;
16075 bool temp10 = false ;
16076 PyObject * obj0 = 0 ;
16077 PyObject * obj1 = 0 ;
16078 PyObject * obj2 = 0 ;
16079 PyObject * obj3 = 0 ;
16080 PyObject * obj4 = 0 ;
16081 PyObject * obj5 = 0 ;
16082 PyObject * obj6 = 0 ;
16083 PyObject * obj7 = 0 ;
16084 PyObject * obj8 = 0 ;
16085 PyObject * obj9 = 0 ;
16086 char * kwnames[] = {
16087 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16088 };
16089
16090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16092 if (!SWIG_IsOK(res1)) {
16093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16094 }
16095 arg1 = reinterpret_cast< wxWindow * >(argp1);
16096 if (obj1) {
16097 ecode2 = SWIG_AsVal_int(obj1, &val2);
16098 if (!SWIG_IsOK(ecode2)) {
16099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16100 }
16101 arg2 = static_cast< int >(val2);
16102 }
16103 if (obj2) {
16104 {
16105 arg3 = wxString_in_helper(obj2);
16106 if (arg3 == NULL) SWIG_fail;
16107 temp3 = true;
16108 }
16109 }
16110 if (obj3) {
16111 {
16112 arg4 = &temp4;
16113 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16114 }
16115 }
16116 if (obj4) {
16117 {
16118 arg5 = &temp5;
16119 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16120 }
16121 }
16122 if (obj5) {
16123 {
16124 if (! PySequence_Check(obj5)) {
16125 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16126 SWIG_fail;
16127 }
16128 arg6 = new wxArrayString;
16129 temp6 = true;
16130 int i, len=PySequence_Length(obj5);
16131 for (i=0; i<len; i++) {
16132 PyObject* item = PySequence_GetItem(obj5, i);
16133 wxString* s = wxString_in_helper(item);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 arg6->Add(*s);
16136 delete s;
16137 Py_DECREF(item);
16138 }
16139 }
16140 }
16141 if (obj6) {
16142 ecode7 = SWIG_AsVal_int(obj6, &val7);
16143 if (!SWIG_IsOK(ecode7)) {
16144 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16145 }
16146 arg7 = static_cast< int >(val7);
16147 }
16148 if (obj7) {
16149 ecode8 = SWIG_AsVal_long(obj7, &val8);
16150 if (!SWIG_IsOK(ecode8)) {
16151 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16152 }
16153 arg8 = static_cast< long >(val8);
16154 }
16155 if (obj8) {
16156 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16157 if (!SWIG_IsOK(res9)) {
16158 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16159 }
16160 if (!argp9) {
16161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16162 }
16163 arg9 = reinterpret_cast< wxValidator * >(argp9);
16164 }
16165 if (obj9) {
16166 {
16167 arg10 = wxString_in_helper(obj9);
16168 if (arg10 == NULL) SWIG_fail;
16169 temp10 = true;
16170 }
16171 }
16172 {
16173 if (!wxPyCheckForApp()) SWIG_fail;
16174 PyThreadState* __tstate = wxPyBeginAllowThreads();
16175 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);
16176 wxPyEndAllowThreads(__tstate);
16177 if (PyErr_Occurred()) SWIG_fail;
16178 }
16179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16180 {
16181 if (temp3)
16182 delete arg3;
16183 }
16184 {
16185 if (temp6) delete arg6;
16186 }
16187 {
16188 if (temp10)
16189 delete arg10;
16190 }
16191 return resultobj;
16192 fail:
16193 {
16194 if (temp3)
16195 delete arg3;
16196 }
16197 {
16198 if (temp6) delete arg6;
16199 }
16200 {
16201 if (temp10)
16202 delete arg10;
16203 }
16204 return NULL;
16205 }
16206
16207
16208 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16209 PyObject *resultobj = 0;
16210 wxRadioBox *result = 0 ;
16211
16212 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16213 {
16214 if (!wxPyCheckForApp()) SWIG_fail;
16215 PyThreadState* __tstate = wxPyBeginAllowThreads();
16216 result = (wxRadioBox *)new wxRadioBox();
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj = 0;
16229 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16230 wxWindow *arg2 = (wxWindow *) 0 ;
16231 int arg3 = (int) -1 ;
16232 wxString const &arg4_defvalue = wxPyEmptyString ;
16233 wxString *arg4 = (wxString *) &arg4_defvalue ;
16234 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16235 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16236 wxSize const &arg6_defvalue = wxDefaultSize ;
16237 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16238 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16239 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16240 int arg8 = (int) 0 ;
16241 long arg9 = (long) wxRA_HORIZONTAL ;
16242 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16243 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16244 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16245 wxString *arg11 = (wxString *) &arg11_defvalue ;
16246 bool result;
16247 void *argp1 = 0 ;
16248 int res1 = 0 ;
16249 void *argp2 = 0 ;
16250 int res2 = 0 ;
16251 int val3 ;
16252 int ecode3 = 0 ;
16253 bool temp4 = false ;
16254 wxPoint temp5 ;
16255 wxSize temp6 ;
16256 bool temp7 = false ;
16257 int val8 ;
16258 int ecode8 = 0 ;
16259 long val9 ;
16260 int ecode9 = 0 ;
16261 void *argp10 = 0 ;
16262 int res10 = 0 ;
16263 bool temp11 = false ;
16264 PyObject * obj0 = 0 ;
16265 PyObject * obj1 = 0 ;
16266 PyObject * obj2 = 0 ;
16267 PyObject * obj3 = 0 ;
16268 PyObject * obj4 = 0 ;
16269 PyObject * obj5 = 0 ;
16270 PyObject * obj6 = 0 ;
16271 PyObject * obj7 = 0 ;
16272 PyObject * obj8 = 0 ;
16273 PyObject * obj9 = 0 ;
16274 PyObject * obj10 = 0 ;
16275 char * kwnames[] = {
16276 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16277 };
16278
16279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16281 if (!SWIG_IsOK(res1)) {
16282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16283 }
16284 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16286 if (!SWIG_IsOK(res2)) {
16287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16288 }
16289 arg2 = reinterpret_cast< wxWindow * >(argp2);
16290 if (obj2) {
16291 ecode3 = SWIG_AsVal_int(obj2, &val3);
16292 if (!SWIG_IsOK(ecode3)) {
16293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16294 }
16295 arg3 = static_cast< int >(val3);
16296 }
16297 if (obj3) {
16298 {
16299 arg4 = wxString_in_helper(obj3);
16300 if (arg4 == NULL) SWIG_fail;
16301 temp4 = true;
16302 }
16303 }
16304 if (obj4) {
16305 {
16306 arg5 = &temp5;
16307 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16308 }
16309 }
16310 if (obj5) {
16311 {
16312 arg6 = &temp6;
16313 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16314 }
16315 }
16316 if (obj6) {
16317 {
16318 if (! PySequence_Check(obj6)) {
16319 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16320 SWIG_fail;
16321 }
16322 arg7 = new wxArrayString;
16323 temp7 = true;
16324 int i, len=PySequence_Length(obj6);
16325 for (i=0; i<len; i++) {
16326 PyObject* item = PySequence_GetItem(obj6, i);
16327 wxString* s = wxString_in_helper(item);
16328 if (PyErr_Occurred()) SWIG_fail;
16329 arg7->Add(*s);
16330 delete s;
16331 Py_DECREF(item);
16332 }
16333 }
16334 }
16335 if (obj7) {
16336 ecode8 = SWIG_AsVal_int(obj7, &val8);
16337 if (!SWIG_IsOK(ecode8)) {
16338 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16339 }
16340 arg8 = static_cast< int >(val8);
16341 }
16342 if (obj8) {
16343 ecode9 = SWIG_AsVal_long(obj8, &val9);
16344 if (!SWIG_IsOK(ecode9)) {
16345 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16346 }
16347 arg9 = static_cast< long >(val9);
16348 }
16349 if (obj9) {
16350 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16351 if (!SWIG_IsOK(res10)) {
16352 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16353 }
16354 if (!argp10) {
16355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16356 }
16357 arg10 = reinterpret_cast< wxValidator * >(argp10);
16358 }
16359 if (obj10) {
16360 {
16361 arg11 = wxString_in_helper(obj10);
16362 if (arg11 == NULL) SWIG_fail;
16363 temp11 = true;
16364 }
16365 }
16366 {
16367 PyThreadState* __tstate = wxPyBeginAllowThreads();
16368 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);
16369 wxPyEndAllowThreads(__tstate);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 }
16372 {
16373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16374 }
16375 {
16376 if (temp4)
16377 delete arg4;
16378 }
16379 {
16380 if (temp7) delete arg7;
16381 }
16382 {
16383 if (temp11)
16384 delete arg11;
16385 }
16386 return resultobj;
16387 fail:
16388 {
16389 if (temp4)
16390 delete arg4;
16391 }
16392 {
16393 if (temp7) delete arg7;
16394 }
16395 {
16396 if (temp11)
16397 delete arg11;
16398 }
16399 return NULL;
16400 }
16401
16402
16403 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16404 PyObject *resultobj = 0;
16405 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16406 int arg2 ;
16407 void *argp1 = 0 ;
16408 int res1 = 0 ;
16409 int val2 ;
16410 int ecode2 = 0 ;
16411 PyObject * obj0 = 0 ;
16412 PyObject * obj1 = 0 ;
16413 char * kwnames[] = {
16414 (char *) "self",(char *) "n", NULL
16415 };
16416
16417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16419 if (!SWIG_IsOK(res1)) {
16420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16421 }
16422 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16423 ecode2 = SWIG_AsVal_int(obj1, &val2);
16424 if (!SWIG_IsOK(ecode2)) {
16425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16426 }
16427 arg2 = static_cast< int >(val2);
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 (arg1)->SetSelection(arg2);
16431 wxPyEndAllowThreads(__tstate);
16432 if (PyErr_Occurred()) SWIG_fail;
16433 }
16434 resultobj = SWIG_Py_Void();
16435 return resultobj;
16436 fail:
16437 return NULL;
16438 }
16439
16440
16441 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16442 PyObject *resultobj = 0;
16443 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16444 int result;
16445 void *argp1 = 0 ;
16446 int res1 = 0 ;
16447 PyObject *swig_obj[1] ;
16448
16449 if (!args) SWIG_fail;
16450 swig_obj[0] = args;
16451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16452 if (!SWIG_IsOK(res1)) {
16453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16454 }
16455 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16456 {
16457 PyThreadState* __tstate = wxPyBeginAllowThreads();
16458 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
16462 resultobj = SWIG_From_int(static_cast< int >(result));
16463 return resultobj;
16464 fail:
16465 return NULL;
16466 }
16467
16468
16469 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16470 PyObject *resultobj = 0;
16471 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16472 wxString result;
16473 void *argp1 = 0 ;
16474 int res1 = 0 ;
16475 PyObject *swig_obj[1] ;
16476
16477 if (!args) SWIG_fail;
16478 swig_obj[0] = args;
16479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16480 if (!SWIG_IsOK(res1)) {
16481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16482 }
16483 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 {
16491 #if wxUSE_UNICODE
16492 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16493 #else
16494 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16495 #endif
16496 }
16497 return resultobj;
16498 fail:
16499 return NULL;
16500 }
16501
16502
16503 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj = 0;
16505 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16506 wxString *arg2 = 0 ;
16507 bool result;
16508 void *argp1 = 0 ;
16509 int res1 = 0 ;
16510 bool temp2 = false ;
16511 PyObject * obj0 = 0 ;
16512 PyObject * obj1 = 0 ;
16513 char * kwnames[] = {
16514 (char *) "self",(char *) "s", NULL
16515 };
16516
16517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16519 if (!SWIG_IsOK(res1)) {
16520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16521 }
16522 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16523 {
16524 arg2 = wxString_in_helper(obj1);
16525 if (arg2 == NULL) SWIG_fail;
16526 temp2 = true;
16527 }
16528 {
16529 PyThreadState* __tstate = wxPyBeginAllowThreads();
16530 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 {
16535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16536 }
16537 {
16538 if (temp2)
16539 delete arg2;
16540 }
16541 return resultobj;
16542 fail:
16543 {
16544 if (temp2)
16545 delete arg2;
16546 }
16547 return NULL;
16548 }
16549
16550
16551 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16552 PyObject *resultobj = 0;
16553 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16554 size_t result;
16555 void *argp1 = 0 ;
16556 int res1 = 0 ;
16557 PyObject *swig_obj[1] ;
16558
16559 if (!args) SWIG_fail;
16560 swig_obj[0] = args;
16561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16562 if (!SWIG_IsOK(res1)) {
16563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16564 }
16565 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16566 {
16567 PyThreadState* __tstate = wxPyBeginAllowThreads();
16568 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16569 wxPyEndAllowThreads(__tstate);
16570 if (PyErr_Occurred()) SWIG_fail;
16571 }
16572 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16573 return resultobj;
16574 fail:
16575 return NULL;
16576 }
16577
16578
16579 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16580 PyObject *resultobj = 0;
16581 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16582 wxString *arg2 = 0 ;
16583 int result;
16584 void *argp1 = 0 ;
16585 int res1 = 0 ;
16586 bool temp2 = false ;
16587 PyObject * obj0 = 0 ;
16588 PyObject * obj1 = 0 ;
16589 char * kwnames[] = {
16590 (char *) "self",(char *) "s", NULL
16591 };
16592
16593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16595 if (!SWIG_IsOK(res1)) {
16596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16597 }
16598 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16599 {
16600 arg2 = wxString_in_helper(obj1);
16601 if (arg2 == NULL) SWIG_fail;
16602 temp2 = true;
16603 }
16604 {
16605 PyThreadState* __tstate = wxPyBeginAllowThreads();
16606 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16607 wxPyEndAllowThreads(__tstate);
16608 if (PyErr_Occurred()) SWIG_fail;
16609 }
16610 resultobj = SWIG_From_int(static_cast< int >(result));
16611 {
16612 if (temp2)
16613 delete arg2;
16614 }
16615 return resultobj;
16616 fail:
16617 {
16618 if (temp2)
16619 delete arg2;
16620 }
16621 return NULL;
16622 }
16623
16624
16625 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16626 PyObject *resultobj = 0;
16627 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16628 int arg2 ;
16629 wxString result;
16630 void *argp1 = 0 ;
16631 int res1 = 0 ;
16632 int val2 ;
16633 int ecode2 = 0 ;
16634 PyObject * obj0 = 0 ;
16635 PyObject * obj1 = 0 ;
16636 char * kwnames[] = {
16637 (char *) "self",(char *) "n", NULL
16638 };
16639
16640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16642 if (!SWIG_IsOK(res1)) {
16643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16644 }
16645 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16646 ecode2 = SWIG_AsVal_int(obj1, &val2);
16647 if (!SWIG_IsOK(ecode2)) {
16648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16649 }
16650 arg2 = static_cast< int >(val2);
16651 {
16652 PyThreadState* __tstate = wxPyBeginAllowThreads();
16653 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16654 wxPyEndAllowThreads(__tstate);
16655 if (PyErr_Occurred()) SWIG_fail;
16656 }
16657 {
16658 #if wxUSE_UNICODE
16659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16660 #else
16661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16662 #endif
16663 }
16664 return resultobj;
16665 fail:
16666 return NULL;
16667 }
16668
16669
16670 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16671 PyObject *resultobj = 0;
16672 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16673 int arg2 ;
16674 wxString *arg3 = 0 ;
16675 void *argp1 = 0 ;
16676 int res1 = 0 ;
16677 int val2 ;
16678 int ecode2 = 0 ;
16679 bool temp3 = false ;
16680 PyObject * obj0 = 0 ;
16681 PyObject * obj1 = 0 ;
16682 PyObject * obj2 = 0 ;
16683 char * kwnames[] = {
16684 (char *) "self",(char *) "n",(char *) "label", NULL
16685 };
16686
16687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16689 if (!SWIG_IsOK(res1)) {
16690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16691 }
16692 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16693 ecode2 = SWIG_AsVal_int(obj1, &val2);
16694 if (!SWIG_IsOK(ecode2)) {
16695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16696 }
16697 arg2 = static_cast< int >(val2);
16698 {
16699 arg3 = wxString_in_helper(obj2);
16700 if (arg3 == NULL) SWIG_fail;
16701 temp3 = true;
16702 }
16703 {
16704 PyThreadState* __tstate = wxPyBeginAllowThreads();
16705 (arg1)->SetString(arg2,(wxString const &)*arg3);
16706 wxPyEndAllowThreads(__tstate);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
16709 resultobj = SWIG_Py_Void();
16710 {
16711 if (temp3)
16712 delete arg3;
16713 }
16714 return resultobj;
16715 fail:
16716 {
16717 if (temp3)
16718 delete arg3;
16719 }
16720 return NULL;
16721 }
16722
16723
16724 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16725 PyObject *resultobj = 0;
16726 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16727 unsigned int arg2 ;
16728 bool arg3 = (bool) true ;
16729 void *argp1 = 0 ;
16730 int res1 = 0 ;
16731 unsigned int val2 ;
16732 int ecode2 = 0 ;
16733 bool val3 ;
16734 int ecode3 = 0 ;
16735 PyObject * obj0 = 0 ;
16736 PyObject * obj1 = 0 ;
16737 PyObject * obj2 = 0 ;
16738 char * kwnames[] = {
16739 (char *) "self",(char *) "n",(char *) "enable", NULL
16740 };
16741
16742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16744 if (!SWIG_IsOK(res1)) {
16745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16746 }
16747 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16748 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16749 if (!SWIG_IsOK(ecode2)) {
16750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16751 }
16752 arg2 = static_cast< unsigned int >(val2);
16753 if (obj2) {
16754 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16755 if (!SWIG_IsOK(ecode3)) {
16756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16757 }
16758 arg3 = static_cast< bool >(val3);
16759 }
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 (arg1)->Enable(arg2,arg3);
16763 wxPyEndAllowThreads(__tstate);
16764 if (PyErr_Occurred()) SWIG_fail;
16765 }
16766 resultobj = SWIG_Py_Void();
16767 return resultobj;
16768 fail:
16769 return NULL;
16770 }
16771
16772
16773 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16774 PyObject *resultobj = 0;
16775 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16776 unsigned int arg2 ;
16777 bool arg3 = (bool) true ;
16778 void *argp1 = 0 ;
16779 int res1 = 0 ;
16780 unsigned int val2 ;
16781 int ecode2 = 0 ;
16782 bool val3 ;
16783 int ecode3 = 0 ;
16784 PyObject * obj0 = 0 ;
16785 PyObject * obj1 = 0 ;
16786 PyObject * obj2 = 0 ;
16787 char * kwnames[] = {
16788 (char *) "self",(char *) "n",(char *) "show", NULL
16789 };
16790
16791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16793 if (!SWIG_IsOK(res1)) {
16794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16795 }
16796 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16797 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16798 if (!SWIG_IsOK(ecode2)) {
16799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16800 }
16801 arg2 = static_cast< unsigned int >(val2);
16802 if (obj2) {
16803 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16804 if (!SWIG_IsOK(ecode3)) {
16805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16806 }
16807 arg3 = static_cast< bool >(val3);
16808 }
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 (arg1)->Show(arg2,arg3);
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 resultobj = SWIG_Py_Void();
16816 return resultobj;
16817 fail:
16818 return NULL;
16819 }
16820
16821
16822 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16823 PyObject *resultobj = 0;
16824 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16825 unsigned int arg2 ;
16826 bool result;
16827 void *argp1 = 0 ;
16828 int res1 = 0 ;
16829 unsigned int val2 ;
16830 int ecode2 = 0 ;
16831 PyObject * obj0 = 0 ;
16832 PyObject * obj1 = 0 ;
16833 char * kwnames[] = {
16834 (char *) "self",(char *) "n", NULL
16835 };
16836
16837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16839 if (!SWIG_IsOK(res1)) {
16840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16841 }
16842 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16843 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16844 if (!SWIG_IsOK(ecode2)) {
16845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16846 }
16847 arg2 = static_cast< unsigned int >(val2);
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16851 wxPyEndAllowThreads(__tstate);
16852 if (PyErr_Occurred()) SWIG_fail;
16853 }
16854 {
16855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16856 }
16857 return resultobj;
16858 fail:
16859 return NULL;
16860 }
16861
16862
16863 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16864 PyObject *resultobj = 0;
16865 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16866 unsigned int arg2 ;
16867 bool result;
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
16870 unsigned int val2 ;
16871 int ecode2 = 0 ;
16872 PyObject * obj0 = 0 ;
16873 PyObject * obj1 = 0 ;
16874 char * kwnames[] = {
16875 (char *) "self",(char *) "n", NULL
16876 };
16877
16878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16880 if (!SWIG_IsOK(res1)) {
16881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16882 }
16883 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16884 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16885 if (!SWIG_IsOK(ecode2)) {
16886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16887 }
16888 arg2 = static_cast< unsigned int >(val2);
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
16891 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 {
16896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16897 }
16898 return resultobj;
16899 fail:
16900 return NULL;
16901 }
16902
16903
16904 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16905 PyObject *resultobj = 0;
16906 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16907 unsigned int result;
16908 void *argp1 = 0 ;
16909 int res1 = 0 ;
16910 PyObject *swig_obj[1] ;
16911
16912 if (!args) SWIG_fail;
16913 swig_obj[0] = args;
16914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16915 if (!SWIG_IsOK(res1)) {
16916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16917 }
16918 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16919 {
16920 PyThreadState* __tstate = wxPyBeginAllowThreads();
16921 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16922 wxPyEndAllowThreads(__tstate);
16923 if (PyErr_Occurred()) SWIG_fail;
16924 }
16925 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16926 return resultobj;
16927 fail:
16928 return NULL;
16929 }
16930
16931
16932 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16933 PyObject *resultobj = 0;
16934 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16935 unsigned int result;
16936 void *argp1 = 0 ;
16937 int res1 = 0 ;
16938 PyObject *swig_obj[1] ;
16939
16940 if (!args) SWIG_fail;
16941 swig_obj[0] = args;
16942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16943 if (!SWIG_IsOK(res1)) {
16944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16945 }
16946 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16947 {
16948 PyThreadState* __tstate = wxPyBeginAllowThreads();
16949 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16950 wxPyEndAllowThreads(__tstate);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 }
16953 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16954 return resultobj;
16955 fail:
16956 return NULL;
16957 }
16958
16959
16960 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16961 PyObject *resultobj = 0;
16962 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16963 int arg2 ;
16964 wxDirection arg3 ;
16965 long arg4 ;
16966 int result;
16967 void *argp1 = 0 ;
16968 int res1 = 0 ;
16969 int val2 ;
16970 int ecode2 = 0 ;
16971 int val3 ;
16972 int ecode3 = 0 ;
16973 long val4 ;
16974 int ecode4 = 0 ;
16975 PyObject * obj0 = 0 ;
16976 PyObject * obj1 = 0 ;
16977 PyObject * obj2 = 0 ;
16978 PyObject * obj3 = 0 ;
16979 char * kwnames[] = {
16980 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16981 };
16982
16983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16985 if (!SWIG_IsOK(res1)) {
16986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16987 }
16988 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16989 ecode2 = SWIG_AsVal_int(obj1, &val2);
16990 if (!SWIG_IsOK(ecode2)) {
16991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16992 }
16993 arg2 = static_cast< int >(val2);
16994 ecode3 = SWIG_AsVal_int(obj2, &val3);
16995 if (!SWIG_IsOK(ecode3)) {
16996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16997 }
16998 arg3 = static_cast< wxDirection >(val3);
16999 ecode4 = SWIG_AsVal_long(obj3, &val4);
17000 if (!SWIG_IsOK(ecode4)) {
17001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17002 }
17003 arg4 = static_cast< long >(val4);
17004 {
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
17006 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 resultobj = SWIG_From_int(static_cast< int >(result));
17011 return resultobj;
17012 fail:
17013 return NULL;
17014 }
17015
17016
17017 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17018 PyObject *resultobj = 0;
17019 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17020 unsigned int arg2 ;
17021 wxString *arg3 = 0 ;
17022 void *argp1 = 0 ;
17023 int res1 = 0 ;
17024 unsigned int val2 ;
17025 int ecode2 = 0 ;
17026 bool temp3 = false ;
17027 PyObject * obj0 = 0 ;
17028 PyObject * obj1 = 0 ;
17029 PyObject * obj2 = 0 ;
17030 char * kwnames[] = {
17031 (char *) "self",(char *) "item",(char *) "text", NULL
17032 };
17033
17034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17036 if (!SWIG_IsOK(res1)) {
17037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17038 }
17039 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17040 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17041 if (!SWIG_IsOK(ecode2)) {
17042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17043 }
17044 arg2 = static_cast< unsigned int >(val2);
17045 {
17046 arg3 = wxString_in_helper(obj2);
17047 if (arg3 == NULL) SWIG_fail;
17048 temp3 = true;
17049 }
17050 {
17051 PyThreadState* __tstate = wxPyBeginAllowThreads();
17052 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 resultobj = SWIG_Py_Void();
17057 {
17058 if (temp3)
17059 delete arg3;
17060 }
17061 return resultobj;
17062 fail:
17063 {
17064 if (temp3)
17065 delete arg3;
17066 }
17067 return NULL;
17068 }
17069
17070
17071 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17072 PyObject *resultobj = 0;
17073 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17074 unsigned int arg2 ;
17075 wxToolTip *result = 0 ;
17076 void *argp1 = 0 ;
17077 int res1 = 0 ;
17078 unsigned int val2 ;
17079 int ecode2 = 0 ;
17080 PyObject * obj0 = 0 ;
17081 PyObject * obj1 = 0 ;
17082 char * kwnames[] = {
17083 (char *) "self",(char *) "item", NULL
17084 };
17085
17086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17088 if (!SWIG_IsOK(res1)) {
17089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17090 }
17091 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17092 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17093 if (!SWIG_IsOK(ecode2)) {
17094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17095 }
17096 arg2 = static_cast< unsigned int >(val2);
17097 {
17098 PyThreadState* __tstate = wxPyBeginAllowThreads();
17099 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17100 wxPyEndAllowThreads(__tstate);
17101 if (PyErr_Occurred()) SWIG_fail;
17102 }
17103 {
17104 resultobj = wxPyMake_wxObject(result, (bool)0);
17105 }
17106 return resultobj;
17107 fail:
17108 return NULL;
17109 }
17110
17111
17112 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17113 PyObject *resultobj = 0;
17114 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17115 unsigned int arg2 ;
17116 wxString *arg3 = 0 ;
17117 void *argp1 = 0 ;
17118 int res1 = 0 ;
17119 unsigned int val2 ;
17120 int ecode2 = 0 ;
17121 bool temp3 = false ;
17122 PyObject * obj0 = 0 ;
17123 PyObject * obj1 = 0 ;
17124 PyObject * obj2 = 0 ;
17125 char * kwnames[] = {
17126 (char *) "self",(char *) "n",(char *) "helpText", NULL
17127 };
17128
17129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17131 if (!SWIG_IsOK(res1)) {
17132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17133 }
17134 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17135 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17136 if (!SWIG_IsOK(ecode2)) {
17137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17138 }
17139 arg2 = static_cast< unsigned int >(val2);
17140 {
17141 arg3 = wxString_in_helper(obj2);
17142 if (arg3 == NULL) SWIG_fail;
17143 temp3 = true;
17144 }
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 resultobj = SWIG_Py_Void();
17152 {
17153 if (temp3)
17154 delete arg3;
17155 }
17156 return resultobj;
17157 fail:
17158 {
17159 if (temp3)
17160 delete arg3;
17161 }
17162 return NULL;
17163 }
17164
17165
17166 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj = 0;
17168 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17169 unsigned int arg2 ;
17170 wxString result;
17171 void *argp1 = 0 ;
17172 int res1 = 0 ;
17173 unsigned int val2 ;
17174 int ecode2 = 0 ;
17175 PyObject * obj0 = 0 ;
17176 PyObject * obj1 = 0 ;
17177 char * kwnames[] = {
17178 (char *) "self",(char *) "n", NULL
17179 };
17180
17181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17183 if (!SWIG_IsOK(res1)) {
17184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17185 }
17186 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17187 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17188 if (!SWIG_IsOK(ecode2)) {
17189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17190 }
17191 arg2 = static_cast< unsigned int >(val2);
17192 {
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
17198 {
17199 #if wxUSE_UNICODE
17200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17201 #else
17202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17203 #endif
17204 }
17205 return resultobj;
17206 fail:
17207 return NULL;
17208 }
17209
17210
17211 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17212 PyObject *resultobj = 0;
17213 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17214 SwigValueWrapper<wxVisualAttributes > result;
17215 int val1 ;
17216 int ecode1 = 0 ;
17217 PyObject * obj0 = 0 ;
17218 char * kwnames[] = {
17219 (char *) "variant", NULL
17220 };
17221
17222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17223 if (obj0) {
17224 ecode1 = SWIG_AsVal_int(obj0, &val1);
17225 if (!SWIG_IsOK(ecode1)) {
17226 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17227 }
17228 arg1 = static_cast< wxWindowVariant >(val1);
17229 }
17230 {
17231 if (!wxPyCheckForApp()) SWIG_fail;
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17238 return resultobj;
17239 fail:
17240 return NULL;
17241 }
17242
17243
17244 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17245 PyObject *obj;
17246 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17247 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17248 return SWIG_Py_Void();
17249 }
17250
17251 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17252 return SWIG_Python_InitShadowInstance(args);
17253 }
17254
17255 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17256 PyObject *resultobj = 0;
17257 wxWindow *arg1 = (wxWindow *) 0 ;
17258 int arg2 = (int) -1 ;
17259 wxString const &arg3_defvalue = wxPyEmptyString ;
17260 wxString *arg3 = (wxString *) &arg3_defvalue ;
17261 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17262 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17263 wxSize const &arg5_defvalue = wxDefaultSize ;
17264 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17265 long arg6 = (long) 0 ;
17266 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17267 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17268 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17269 wxString *arg8 = (wxString *) &arg8_defvalue ;
17270 wxRadioButton *result = 0 ;
17271 void *argp1 = 0 ;
17272 int res1 = 0 ;
17273 int val2 ;
17274 int ecode2 = 0 ;
17275 bool temp3 = false ;
17276 wxPoint temp4 ;
17277 wxSize temp5 ;
17278 long val6 ;
17279 int ecode6 = 0 ;
17280 void *argp7 = 0 ;
17281 int res7 = 0 ;
17282 bool temp8 = false ;
17283 PyObject * obj0 = 0 ;
17284 PyObject * obj1 = 0 ;
17285 PyObject * obj2 = 0 ;
17286 PyObject * obj3 = 0 ;
17287 PyObject * obj4 = 0 ;
17288 PyObject * obj5 = 0 ;
17289 PyObject * obj6 = 0 ;
17290 PyObject * obj7 = 0 ;
17291 char * kwnames[] = {
17292 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17293 };
17294
17295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17297 if (!SWIG_IsOK(res1)) {
17298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17299 }
17300 arg1 = reinterpret_cast< wxWindow * >(argp1);
17301 if (obj1) {
17302 ecode2 = SWIG_AsVal_int(obj1, &val2);
17303 if (!SWIG_IsOK(ecode2)) {
17304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17305 }
17306 arg2 = static_cast< int >(val2);
17307 }
17308 if (obj2) {
17309 {
17310 arg3 = wxString_in_helper(obj2);
17311 if (arg3 == NULL) SWIG_fail;
17312 temp3 = true;
17313 }
17314 }
17315 if (obj3) {
17316 {
17317 arg4 = &temp4;
17318 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17319 }
17320 }
17321 if (obj4) {
17322 {
17323 arg5 = &temp5;
17324 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17325 }
17326 }
17327 if (obj5) {
17328 ecode6 = SWIG_AsVal_long(obj5, &val6);
17329 if (!SWIG_IsOK(ecode6)) {
17330 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17331 }
17332 arg6 = static_cast< long >(val6);
17333 }
17334 if (obj6) {
17335 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17336 if (!SWIG_IsOK(res7)) {
17337 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17338 }
17339 if (!argp7) {
17340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17341 }
17342 arg7 = reinterpret_cast< wxValidator * >(argp7);
17343 }
17344 if (obj7) {
17345 {
17346 arg8 = wxString_in_helper(obj7);
17347 if (arg8 == NULL) SWIG_fail;
17348 temp8 = true;
17349 }
17350 }
17351 {
17352 if (!wxPyCheckForApp()) SWIG_fail;
17353 PyThreadState* __tstate = wxPyBeginAllowThreads();
17354 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17355 wxPyEndAllowThreads(__tstate);
17356 if (PyErr_Occurred()) SWIG_fail;
17357 }
17358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17359 {
17360 if (temp3)
17361 delete arg3;
17362 }
17363 {
17364 if (temp8)
17365 delete arg8;
17366 }
17367 return resultobj;
17368 fail:
17369 {
17370 if (temp3)
17371 delete arg3;
17372 }
17373 {
17374 if (temp8)
17375 delete arg8;
17376 }
17377 return NULL;
17378 }
17379
17380
17381 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17382 PyObject *resultobj = 0;
17383 wxRadioButton *result = 0 ;
17384
17385 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17386 {
17387 if (!wxPyCheckForApp()) SWIG_fail;
17388 PyThreadState* __tstate = wxPyBeginAllowThreads();
17389 result = (wxRadioButton *)new wxRadioButton();
17390 wxPyEndAllowThreads(__tstate);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 }
17393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17394 return resultobj;
17395 fail:
17396 return NULL;
17397 }
17398
17399
17400 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17401 PyObject *resultobj = 0;
17402 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17403 wxWindow *arg2 = (wxWindow *) 0 ;
17404 int arg3 = (int) -1 ;
17405 wxString const &arg4_defvalue = wxPyEmptyString ;
17406 wxString *arg4 = (wxString *) &arg4_defvalue ;
17407 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17408 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17409 wxSize const &arg6_defvalue = wxDefaultSize ;
17410 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17411 long arg7 = (long) 0 ;
17412 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17413 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17414 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17415 wxString *arg9 = (wxString *) &arg9_defvalue ;
17416 bool result;
17417 void *argp1 = 0 ;
17418 int res1 = 0 ;
17419 void *argp2 = 0 ;
17420 int res2 = 0 ;
17421 int val3 ;
17422 int ecode3 = 0 ;
17423 bool temp4 = false ;
17424 wxPoint temp5 ;
17425 wxSize temp6 ;
17426 long val7 ;
17427 int ecode7 = 0 ;
17428 void *argp8 = 0 ;
17429 int res8 = 0 ;
17430 bool temp9 = false ;
17431 PyObject * obj0 = 0 ;
17432 PyObject * obj1 = 0 ;
17433 PyObject * obj2 = 0 ;
17434 PyObject * obj3 = 0 ;
17435 PyObject * obj4 = 0 ;
17436 PyObject * obj5 = 0 ;
17437 PyObject * obj6 = 0 ;
17438 PyObject * obj7 = 0 ;
17439 PyObject * obj8 = 0 ;
17440 char * kwnames[] = {
17441 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17442 };
17443
17444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17446 if (!SWIG_IsOK(res1)) {
17447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17448 }
17449 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17451 if (!SWIG_IsOK(res2)) {
17452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17453 }
17454 arg2 = reinterpret_cast< wxWindow * >(argp2);
17455 if (obj2) {
17456 ecode3 = SWIG_AsVal_int(obj2, &val3);
17457 if (!SWIG_IsOK(ecode3)) {
17458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17459 }
17460 arg3 = static_cast< int >(val3);
17461 }
17462 if (obj3) {
17463 {
17464 arg4 = wxString_in_helper(obj3);
17465 if (arg4 == NULL) SWIG_fail;
17466 temp4 = true;
17467 }
17468 }
17469 if (obj4) {
17470 {
17471 arg5 = &temp5;
17472 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17473 }
17474 }
17475 if (obj5) {
17476 {
17477 arg6 = &temp6;
17478 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17479 }
17480 }
17481 if (obj6) {
17482 ecode7 = SWIG_AsVal_long(obj6, &val7);
17483 if (!SWIG_IsOK(ecode7)) {
17484 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17485 }
17486 arg7 = static_cast< long >(val7);
17487 }
17488 if (obj7) {
17489 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17490 if (!SWIG_IsOK(res8)) {
17491 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17492 }
17493 if (!argp8) {
17494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17495 }
17496 arg8 = reinterpret_cast< wxValidator * >(argp8);
17497 }
17498 if (obj8) {
17499 {
17500 arg9 = wxString_in_helper(obj8);
17501 if (arg9 == NULL) SWIG_fail;
17502 temp9 = true;
17503 }
17504 }
17505 {
17506 PyThreadState* __tstate = wxPyBeginAllowThreads();
17507 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17508 wxPyEndAllowThreads(__tstate);
17509 if (PyErr_Occurred()) SWIG_fail;
17510 }
17511 {
17512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17513 }
17514 {
17515 if (temp4)
17516 delete arg4;
17517 }
17518 {
17519 if (temp9)
17520 delete arg9;
17521 }
17522 return resultobj;
17523 fail:
17524 {
17525 if (temp4)
17526 delete arg4;
17527 }
17528 {
17529 if (temp9)
17530 delete arg9;
17531 }
17532 return NULL;
17533 }
17534
17535
17536 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17537 PyObject *resultobj = 0;
17538 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17539 bool result;
17540 void *argp1 = 0 ;
17541 int res1 = 0 ;
17542 PyObject *swig_obj[1] ;
17543
17544 if (!args) SWIG_fail;
17545 swig_obj[0] = args;
17546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17547 if (!SWIG_IsOK(res1)) {
17548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17549 }
17550 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17551 {
17552 PyThreadState* __tstate = wxPyBeginAllowThreads();
17553 result = (bool)(arg1)->GetValue();
17554 wxPyEndAllowThreads(__tstate);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 {
17558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17559 }
17560 return resultobj;
17561 fail:
17562 return NULL;
17563 }
17564
17565
17566 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17567 PyObject *resultobj = 0;
17568 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17569 bool arg2 ;
17570 void *argp1 = 0 ;
17571 int res1 = 0 ;
17572 bool val2 ;
17573 int ecode2 = 0 ;
17574 PyObject * obj0 = 0 ;
17575 PyObject * obj1 = 0 ;
17576 char * kwnames[] = {
17577 (char *) "self",(char *) "value", NULL
17578 };
17579
17580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17582 if (!SWIG_IsOK(res1)) {
17583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17584 }
17585 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17586 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17587 if (!SWIG_IsOK(ecode2)) {
17588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17589 }
17590 arg2 = static_cast< bool >(val2);
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 (arg1)->SetValue(arg2);
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 resultobj = SWIG_Py_Void();
17598 return resultobj;
17599 fail:
17600 return NULL;
17601 }
17602
17603
17604 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17605 PyObject *resultobj = 0;
17606 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17607 SwigValueWrapper<wxVisualAttributes > result;
17608 int val1 ;
17609 int ecode1 = 0 ;
17610 PyObject * obj0 = 0 ;
17611 char * kwnames[] = {
17612 (char *) "variant", NULL
17613 };
17614
17615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17616 if (obj0) {
17617 ecode1 = SWIG_AsVal_int(obj0, &val1);
17618 if (!SWIG_IsOK(ecode1)) {
17619 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17620 }
17621 arg1 = static_cast< wxWindowVariant >(val1);
17622 }
17623 {
17624 if (!wxPyCheckForApp()) SWIG_fail;
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17631 return resultobj;
17632 fail:
17633 return NULL;
17634 }
17635
17636
17637 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17638 PyObject *obj;
17639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17640 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17641 return SWIG_Py_Void();
17642 }
17643
17644 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17645 return SWIG_Python_InitShadowInstance(args);
17646 }
17647
17648 SWIGINTERN int SliderNameStr_set(PyObject *) {
17649 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17650 return 1;
17651 }
17652
17653
17654 SWIGINTERN PyObject *SliderNameStr_get(void) {
17655 PyObject *pyobj = 0;
17656
17657 {
17658 #if wxUSE_UNICODE
17659 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17660 #else
17661 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17662 #endif
17663 }
17664 return pyobj;
17665 }
17666
17667
17668 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj = 0;
17670 wxWindow *arg1 = (wxWindow *) 0 ;
17671 int arg2 = (int) -1 ;
17672 int arg3 = (int) 0 ;
17673 int arg4 = (int) 0 ;
17674 int arg5 = (int) 100 ;
17675 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17676 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17677 wxSize const &arg7_defvalue = wxDefaultSize ;
17678 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17679 long arg8 = (long) wxSL_HORIZONTAL ;
17680 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17681 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17682 wxString const &arg10_defvalue = wxPySliderNameStr ;
17683 wxString *arg10 = (wxString *) &arg10_defvalue ;
17684 wxSlider *result = 0 ;
17685 void *argp1 = 0 ;
17686 int res1 = 0 ;
17687 int val2 ;
17688 int ecode2 = 0 ;
17689 int val3 ;
17690 int ecode3 = 0 ;
17691 int val4 ;
17692 int ecode4 = 0 ;
17693 int val5 ;
17694 int ecode5 = 0 ;
17695 wxPoint temp6 ;
17696 wxSize temp7 ;
17697 long val8 ;
17698 int ecode8 = 0 ;
17699 void *argp9 = 0 ;
17700 int res9 = 0 ;
17701 bool temp10 = false ;
17702 PyObject * obj0 = 0 ;
17703 PyObject * obj1 = 0 ;
17704 PyObject * obj2 = 0 ;
17705 PyObject * obj3 = 0 ;
17706 PyObject * obj4 = 0 ;
17707 PyObject * obj5 = 0 ;
17708 PyObject * obj6 = 0 ;
17709 PyObject * obj7 = 0 ;
17710 PyObject * obj8 = 0 ;
17711 PyObject * obj9 = 0 ;
17712 char * kwnames[] = {
17713 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17714 };
17715
17716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17718 if (!SWIG_IsOK(res1)) {
17719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17720 }
17721 arg1 = reinterpret_cast< wxWindow * >(argp1);
17722 if (obj1) {
17723 ecode2 = SWIG_AsVal_int(obj1, &val2);
17724 if (!SWIG_IsOK(ecode2)) {
17725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17726 }
17727 arg2 = static_cast< int >(val2);
17728 }
17729 if (obj2) {
17730 ecode3 = SWIG_AsVal_int(obj2, &val3);
17731 if (!SWIG_IsOK(ecode3)) {
17732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17733 }
17734 arg3 = static_cast< int >(val3);
17735 }
17736 if (obj3) {
17737 ecode4 = SWIG_AsVal_int(obj3, &val4);
17738 if (!SWIG_IsOK(ecode4)) {
17739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17740 }
17741 arg4 = static_cast< int >(val4);
17742 }
17743 if (obj4) {
17744 ecode5 = SWIG_AsVal_int(obj4, &val5);
17745 if (!SWIG_IsOK(ecode5)) {
17746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17747 }
17748 arg5 = static_cast< int >(val5);
17749 }
17750 if (obj5) {
17751 {
17752 arg6 = &temp6;
17753 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17754 }
17755 }
17756 if (obj6) {
17757 {
17758 arg7 = &temp7;
17759 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17760 }
17761 }
17762 if (obj7) {
17763 ecode8 = SWIG_AsVal_long(obj7, &val8);
17764 if (!SWIG_IsOK(ecode8)) {
17765 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17766 }
17767 arg8 = static_cast< long >(val8);
17768 }
17769 if (obj8) {
17770 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17771 if (!SWIG_IsOK(res9)) {
17772 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17773 }
17774 if (!argp9) {
17775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17776 }
17777 arg9 = reinterpret_cast< wxValidator * >(argp9);
17778 }
17779 if (obj9) {
17780 {
17781 arg10 = wxString_in_helper(obj9);
17782 if (arg10 == NULL) SWIG_fail;
17783 temp10 = true;
17784 }
17785 }
17786 {
17787 if (!wxPyCheckForApp()) SWIG_fail;
17788 PyThreadState* __tstate = wxPyBeginAllowThreads();
17789 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17794 {
17795 if (temp10)
17796 delete arg10;
17797 }
17798 return resultobj;
17799 fail:
17800 {
17801 if (temp10)
17802 delete arg10;
17803 }
17804 return NULL;
17805 }
17806
17807
17808 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17809 PyObject *resultobj = 0;
17810 wxSlider *result = 0 ;
17811
17812 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17813 {
17814 if (!wxPyCheckForApp()) SWIG_fail;
17815 PyThreadState* __tstate = wxPyBeginAllowThreads();
17816 result = (wxSlider *)new wxSlider();
17817 wxPyEndAllowThreads(__tstate);
17818 if (PyErr_Occurred()) SWIG_fail;
17819 }
17820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17821 return resultobj;
17822 fail:
17823 return NULL;
17824 }
17825
17826
17827 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17828 PyObject *resultobj = 0;
17829 wxSlider *arg1 = (wxSlider *) 0 ;
17830 wxWindow *arg2 = (wxWindow *) 0 ;
17831 int arg3 = (int) -1 ;
17832 int arg4 = (int) 0 ;
17833 int arg5 = (int) 0 ;
17834 int arg6 = (int) 100 ;
17835 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17836 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17837 wxSize const &arg8_defvalue = wxDefaultSize ;
17838 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17839 long arg9 = (long) wxSL_HORIZONTAL ;
17840 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17841 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17842 wxString const &arg11_defvalue = wxPySliderNameStr ;
17843 wxString *arg11 = (wxString *) &arg11_defvalue ;
17844 bool result;
17845 void *argp1 = 0 ;
17846 int res1 = 0 ;
17847 void *argp2 = 0 ;
17848 int res2 = 0 ;
17849 int val3 ;
17850 int ecode3 = 0 ;
17851 int val4 ;
17852 int ecode4 = 0 ;
17853 int val5 ;
17854 int ecode5 = 0 ;
17855 int val6 ;
17856 int ecode6 = 0 ;
17857 wxPoint temp7 ;
17858 wxSize temp8 ;
17859 long val9 ;
17860 int ecode9 = 0 ;
17861 void *argp10 = 0 ;
17862 int res10 = 0 ;
17863 bool temp11 = false ;
17864 PyObject * obj0 = 0 ;
17865 PyObject * obj1 = 0 ;
17866 PyObject * obj2 = 0 ;
17867 PyObject * obj3 = 0 ;
17868 PyObject * obj4 = 0 ;
17869 PyObject * obj5 = 0 ;
17870 PyObject * obj6 = 0 ;
17871 PyObject * obj7 = 0 ;
17872 PyObject * obj8 = 0 ;
17873 PyObject * obj9 = 0 ;
17874 PyObject * obj10 = 0 ;
17875 char * kwnames[] = {
17876 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17877 };
17878
17879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17881 if (!SWIG_IsOK(res1)) {
17882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17883 }
17884 arg1 = reinterpret_cast< wxSlider * >(argp1);
17885 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17886 if (!SWIG_IsOK(res2)) {
17887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17888 }
17889 arg2 = reinterpret_cast< wxWindow * >(argp2);
17890 if (obj2) {
17891 ecode3 = SWIG_AsVal_int(obj2, &val3);
17892 if (!SWIG_IsOK(ecode3)) {
17893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17894 }
17895 arg3 = static_cast< int >(val3);
17896 }
17897 if (obj3) {
17898 ecode4 = SWIG_AsVal_int(obj3, &val4);
17899 if (!SWIG_IsOK(ecode4)) {
17900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17901 }
17902 arg4 = static_cast< int >(val4);
17903 }
17904 if (obj4) {
17905 ecode5 = SWIG_AsVal_int(obj4, &val5);
17906 if (!SWIG_IsOK(ecode5)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17908 }
17909 arg5 = static_cast< int >(val5);
17910 }
17911 if (obj5) {
17912 ecode6 = SWIG_AsVal_int(obj5, &val6);
17913 if (!SWIG_IsOK(ecode6)) {
17914 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17915 }
17916 arg6 = static_cast< int >(val6);
17917 }
17918 if (obj6) {
17919 {
17920 arg7 = &temp7;
17921 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17922 }
17923 }
17924 if (obj7) {
17925 {
17926 arg8 = &temp8;
17927 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17928 }
17929 }
17930 if (obj8) {
17931 ecode9 = SWIG_AsVal_long(obj8, &val9);
17932 if (!SWIG_IsOK(ecode9)) {
17933 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17934 }
17935 arg9 = static_cast< long >(val9);
17936 }
17937 if (obj9) {
17938 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17939 if (!SWIG_IsOK(res10)) {
17940 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17941 }
17942 if (!argp10) {
17943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17944 }
17945 arg10 = reinterpret_cast< wxValidator * >(argp10);
17946 }
17947 if (obj10) {
17948 {
17949 arg11 = wxString_in_helper(obj10);
17950 if (arg11 == NULL) SWIG_fail;
17951 temp11 = true;
17952 }
17953 }
17954 {
17955 PyThreadState* __tstate = wxPyBeginAllowThreads();
17956 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17957 wxPyEndAllowThreads(__tstate);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
17960 {
17961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17962 }
17963 {
17964 if (temp11)
17965 delete arg11;
17966 }
17967 return resultobj;
17968 fail:
17969 {
17970 if (temp11)
17971 delete arg11;
17972 }
17973 return NULL;
17974 }
17975
17976
17977 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17978 PyObject *resultobj = 0;
17979 wxSlider *arg1 = (wxSlider *) 0 ;
17980 int result;
17981 void *argp1 = 0 ;
17982 int res1 = 0 ;
17983 PyObject *swig_obj[1] ;
17984
17985 if (!args) SWIG_fail;
17986 swig_obj[0] = args;
17987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17988 if (!SWIG_IsOK(res1)) {
17989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17990 }
17991 arg1 = reinterpret_cast< wxSlider * >(argp1);
17992 {
17993 PyThreadState* __tstate = wxPyBeginAllowThreads();
17994 result = (int)((wxSlider const *)arg1)->GetValue();
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 resultobj = SWIG_From_int(static_cast< int >(result));
17999 return resultobj;
18000 fail:
18001 return NULL;
18002 }
18003
18004
18005 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18006 PyObject *resultobj = 0;
18007 wxSlider *arg1 = (wxSlider *) 0 ;
18008 int arg2 ;
18009 void *argp1 = 0 ;
18010 int res1 = 0 ;
18011 int val2 ;
18012 int ecode2 = 0 ;
18013 PyObject * obj0 = 0 ;
18014 PyObject * obj1 = 0 ;
18015 char * kwnames[] = {
18016 (char *) "self",(char *) "value", NULL
18017 };
18018
18019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18021 if (!SWIG_IsOK(res1)) {
18022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18023 }
18024 arg1 = reinterpret_cast< wxSlider * >(argp1);
18025 ecode2 = SWIG_AsVal_int(obj1, &val2);
18026 if (!SWIG_IsOK(ecode2)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18028 }
18029 arg2 = static_cast< int >(val2);
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 (arg1)->SetValue(arg2);
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 resultobj = SWIG_Py_Void();
18037 return resultobj;
18038 fail:
18039 return NULL;
18040 }
18041
18042
18043 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj = 0;
18045 wxSlider *arg1 = (wxSlider *) 0 ;
18046 int arg2 ;
18047 int arg3 ;
18048 void *argp1 = 0 ;
18049 int res1 = 0 ;
18050 int val2 ;
18051 int ecode2 = 0 ;
18052 int val3 ;
18053 int ecode3 = 0 ;
18054 PyObject * obj0 = 0 ;
18055 PyObject * obj1 = 0 ;
18056 PyObject * obj2 = 0 ;
18057 char * kwnames[] = {
18058 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18059 };
18060
18061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18063 if (!SWIG_IsOK(res1)) {
18064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18065 }
18066 arg1 = reinterpret_cast< wxSlider * >(argp1);
18067 ecode2 = SWIG_AsVal_int(obj1, &val2);
18068 if (!SWIG_IsOK(ecode2)) {
18069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18070 }
18071 arg2 = static_cast< int >(val2);
18072 ecode3 = SWIG_AsVal_int(obj2, &val3);
18073 if (!SWIG_IsOK(ecode3)) {
18074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18075 }
18076 arg3 = static_cast< int >(val3);
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 (arg1)->SetRange(arg2,arg3);
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 resultobj = SWIG_Py_Void();
18084 return resultobj;
18085 fail:
18086 return NULL;
18087 }
18088
18089
18090 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18091 PyObject *resultobj = 0;
18092 wxSlider *arg1 = (wxSlider *) 0 ;
18093 int result;
18094 void *argp1 = 0 ;
18095 int res1 = 0 ;
18096 PyObject *swig_obj[1] ;
18097
18098 if (!args) SWIG_fail;
18099 swig_obj[0] = args;
18100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18101 if (!SWIG_IsOK(res1)) {
18102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18103 }
18104 arg1 = reinterpret_cast< wxSlider * >(argp1);
18105 {
18106 PyThreadState* __tstate = wxPyBeginAllowThreads();
18107 result = (int)((wxSlider const *)arg1)->GetMin();
18108 wxPyEndAllowThreads(__tstate);
18109 if (PyErr_Occurred()) SWIG_fail;
18110 }
18111 resultobj = SWIG_From_int(static_cast< int >(result));
18112 return resultobj;
18113 fail:
18114 return NULL;
18115 }
18116
18117
18118 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18119 PyObject *resultobj = 0;
18120 wxSlider *arg1 = (wxSlider *) 0 ;
18121 int result;
18122 void *argp1 = 0 ;
18123 int res1 = 0 ;
18124 PyObject *swig_obj[1] ;
18125
18126 if (!args) SWIG_fail;
18127 swig_obj[0] = args;
18128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18129 if (!SWIG_IsOK(res1)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18131 }
18132 arg1 = reinterpret_cast< wxSlider * >(argp1);
18133 {
18134 PyThreadState* __tstate = wxPyBeginAllowThreads();
18135 result = (int)((wxSlider const *)arg1)->GetMax();
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 resultobj = SWIG_From_int(static_cast< int >(result));
18140 return resultobj;
18141 fail:
18142 return NULL;
18143 }
18144
18145
18146 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj = 0;
18148 wxSlider *arg1 = (wxSlider *) 0 ;
18149 int arg2 ;
18150 void *argp1 = 0 ;
18151 int res1 = 0 ;
18152 int val2 ;
18153 int ecode2 = 0 ;
18154 PyObject * obj0 = 0 ;
18155 PyObject * obj1 = 0 ;
18156 char * kwnames[] = {
18157 (char *) "self",(char *) "minValue", NULL
18158 };
18159
18160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18162 if (!SWIG_IsOK(res1)) {
18163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18164 }
18165 arg1 = reinterpret_cast< wxSlider * >(argp1);
18166 ecode2 = SWIG_AsVal_int(obj1, &val2);
18167 if (!SWIG_IsOK(ecode2)) {
18168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18169 }
18170 arg2 = static_cast< int >(val2);
18171 {
18172 PyThreadState* __tstate = wxPyBeginAllowThreads();
18173 (arg1)->SetMin(arg2);
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 resultobj = SWIG_Py_Void();
18178 return resultobj;
18179 fail:
18180 return NULL;
18181 }
18182
18183
18184 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj = 0;
18186 wxSlider *arg1 = (wxSlider *) 0 ;
18187 int arg2 ;
18188 void *argp1 = 0 ;
18189 int res1 = 0 ;
18190 int val2 ;
18191 int ecode2 = 0 ;
18192 PyObject * obj0 = 0 ;
18193 PyObject * obj1 = 0 ;
18194 char * kwnames[] = {
18195 (char *) "self",(char *) "maxValue", NULL
18196 };
18197
18198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18200 if (!SWIG_IsOK(res1)) {
18201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18202 }
18203 arg1 = reinterpret_cast< wxSlider * >(argp1);
18204 ecode2 = SWIG_AsVal_int(obj1, &val2);
18205 if (!SWIG_IsOK(ecode2)) {
18206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18207 }
18208 arg2 = static_cast< int >(val2);
18209 {
18210 PyThreadState* __tstate = wxPyBeginAllowThreads();
18211 (arg1)->SetMax(arg2);
18212 wxPyEndAllowThreads(__tstate);
18213 if (PyErr_Occurred()) SWIG_fail;
18214 }
18215 resultobj = SWIG_Py_Void();
18216 return resultobj;
18217 fail:
18218 return NULL;
18219 }
18220
18221
18222 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18223 PyObject *resultobj = 0;
18224 wxSlider *arg1 = (wxSlider *) 0 ;
18225 int arg2 ;
18226 void *argp1 = 0 ;
18227 int res1 = 0 ;
18228 int val2 ;
18229 int ecode2 = 0 ;
18230 PyObject * obj0 = 0 ;
18231 PyObject * obj1 = 0 ;
18232 char * kwnames[] = {
18233 (char *) "self",(char *) "lineSize", NULL
18234 };
18235
18236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18238 if (!SWIG_IsOK(res1)) {
18239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18240 }
18241 arg1 = reinterpret_cast< wxSlider * >(argp1);
18242 ecode2 = SWIG_AsVal_int(obj1, &val2);
18243 if (!SWIG_IsOK(ecode2)) {
18244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18245 }
18246 arg2 = static_cast< int >(val2);
18247 {
18248 PyThreadState* __tstate = wxPyBeginAllowThreads();
18249 (arg1)->SetLineSize(arg2);
18250 wxPyEndAllowThreads(__tstate);
18251 if (PyErr_Occurred()) SWIG_fail;
18252 }
18253 resultobj = SWIG_Py_Void();
18254 return resultobj;
18255 fail:
18256 return NULL;
18257 }
18258
18259
18260 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18261 PyObject *resultobj = 0;
18262 wxSlider *arg1 = (wxSlider *) 0 ;
18263 int arg2 ;
18264 void *argp1 = 0 ;
18265 int res1 = 0 ;
18266 int val2 ;
18267 int ecode2 = 0 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 char * kwnames[] = {
18271 (char *) "self",(char *) "pageSize", NULL
18272 };
18273
18274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18276 if (!SWIG_IsOK(res1)) {
18277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18278 }
18279 arg1 = reinterpret_cast< wxSlider * >(argp1);
18280 ecode2 = SWIG_AsVal_int(obj1, &val2);
18281 if (!SWIG_IsOK(ecode2)) {
18282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18283 }
18284 arg2 = static_cast< int >(val2);
18285 {
18286 PyThreadState* __tstate = wxPyBeginAllowThreads();
18287 (arg1)->SetPageSize(arg2);
18288 wxPyEndAllowThreads(__tstate);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 }
18291 resultobj = SWIG_Py_Void();
18292 return resultobj;
18293 fail:
18294 return NULL;
18295 }
18296
18297
18298 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18299 PyObject *resultobj = 0;
18300 wxSlider *arg1 = (wxSlider *) 0 ;
18301 int result;
18302 void *argp1 = 0 ;
18303 int res1 = 0 ;
18304 PyObject *swig_obj[1] ;
18305
18306 if (!args) SWIG_fail;
18307 swig_obj[0] = args;
18308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18309 if (!SWIG_IsOK(res1)) {
18310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18311 }
18312 arg1 = reinterpret_cast< wxSlider * >(argp1);
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 result = (int)((wxSlider const *)arg1)->GetLineSize();
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 resultobj = SWIG_From_int(static_cast< int >(result));
18320 return resultobj;
18321 fail:
18322 return NULL;
18323 }
18324
18325
18326 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18327 PyObject *resultobj = 0;
18328 wxSlider *arg1 = (wxSlider *) 0 ;
18329 int result;
18330 void *argp1 = 0 ;
18331 int res1 = 0 ;
18332 PyObject *swig_obj[1] ;
18333
18334 if (!args) SWIG_fail;
18335 swig_obj[0] = args;
18336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18337 if (!SWIG_IsOK(res1)) {
18338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18339 }
18340 arg1 = reinterpret_cast< wxSlider * >(argp1);
18341 {
18342 PyThreadState* __tstate = wxPyBeginAllowThreads();
18343 result = (int)((wxSlider const *)arg1)->GetPageSize();
18344 wxPyEndAllowThreads(__tstate);
18345 if (PyErr_Occurred()) SWIG_fail;
18346 }
18347 resultobj = SWIG_From_int(static_cast< int >(result));
18348 return resultobj;
18349 fail:
18350 return NULL;
18351 }
18352
18353
18354 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18355 PyObject *resultobj = 0;
18356 wxSlider *arg1 = (wxSlider *) 0 ;
18357 int arg2 ;
18358 void *argp1 = 0 ;
18359 int res1 = 0 ;
18360 int val2 ;
18361 int ecode2 = 0 ;
18362 PyObject * obj0 = 0 ;
18363 PyObject * obj1 = 0 ;
18364 char * kwnames[] = {
18365 (char *) "self",(char *) "lenPixels", NULL
18366 };
18367
18368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18372 }
18373 arg1 = reinterpret_cast< wxSlider * >(argp1);
18374 ecode2 = SWIG_AsVal_int(obj1, &val2);
18375 if (!SWIG_IsOK(ecode2)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18377 }
18378 arg2 = static_cast< int >(val2);
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 (arg1)->SetThumbLength(arg2);
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 resultobj = SWIG_Py_Void();
18386 return resultobj;
18387 fail:
18388 return NULL;
18389 }
18390
18391
18392 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18393 PyObject *resultobj = 0;
18394 wxSlider *arg1 = (wxSlider *) 0 ;
18395 int result;
18396 void *argp1 = 0 ;
18397 int res1 = 0 ;
18398 PyObject *swig_obj[1] ;
18399
18400 if (!args) SWIG_fail;
18401 swig_obj[0] = args;
18402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18403 if (!SWIG_IsOK(res1)) {
18404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18405 }
18406 arg1 = reinterpret_cast< wxSlider * >(argp1);
18407 {
18408 PyThreadState* __tstate = wxPyBeginAllowThreads();
18409 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18410 wxPyEndAllowThreads(__tstate);
18411 if (PyErr_Occurred()) SWIG_fail;
18412 }
18413 resultobj = SWIG_From_int(static_cast< int >(result));
18414 return resultobj;
18415 fail:
18416 return NULL;
18417 }
18418
18419
18420 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18421 PyObject *resultobj = 0;
18422 wxSlider *arg1 = (wxSlider *) 0 ;
18423 int arg2 ;
18424 int arg3 = (int) 1 ;
18425 void *argp1 = 0 ;
18426 int res1 = 0 ;
18427 int val2 ;
18428 int ecode2 = 0 ;
18429 int val3 ;
18430 int ecode3 = 0 ;
18431 PyObject * obj0 = 0 ;
18432 PyObject * obj1 = 0 ;
18433 PyObject * obj2 = 0 ;
18434 char * kwnames[] = {
18435 (char *) "self",(char *) "n",(char *) "pos", NULL
18436 };
18437
18438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18440 if (!SWIG_IsOK(res1)) {
18441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18442 }
18443 arg1 = reinterpret_cast< wxSlider * >(argp1);
18444 ecode2 = SWIG_AsVal_int(obj1, &val2);
18445 if (!SWIG_IsOK(ecode2)) {
18446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18447 }
18448 arg2 = static_cast< int >(val2);
18449 if (obj2) {
18450 ecode3 = SWIG_AsVal_int(obj2, &val3);
18451 if (!SWIG_IsOK(ecode3)) {
18452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18453 }
18454 arg3 = static_cast< int >(val3);
18455 }
18456 {
18457 PyThreadState* __tstate = wxPyBeginAllowThreads();
18458 (arg1)->SetTickFreq(arg2,arg3);
18459 wxPyEndAllowThreads(__tstate);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 }
18462 resultobj = SWIG_Py_Void();
18463 return resultobj;
18464 fail:
18465 return NULL;
18466 }
18467
18468
18469 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18470 PyObject *resultobj = 0;
18471 wxSlider *arg1 = (wxSlider *) 0 ;
18472 int result;
18473 void *argp1 = 0 ;
18474 int res1 = 0 ;
18475 PyObject *swig_obj[1] ;
18476
18477 if (!args) SWIG_fail;
18478 swig_obj[0] = args;
18479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18480 if (!SWIG_IsOK(res1)) {
18481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18482 }
18483 arg1 = reinterpret_cast< wxSlider * >(argp1);
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_From_int(static_cast< int >(result));
18491 return resultobj;
18492 fail:
18493 return NULL;
18494 }
18495
18496
18497 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18498 PyObject *resultobj = 0;
18499 wxSlider *arg1 = (wxSlider *) 0 ;
18500 void *argp1 = 0 ;
18501 int res1 = 0 ;
18502 PyObject *swig_obj[1] ;
18503
18504 if (!args) SWIG_fail;
18505 swig_obj[0] = args;
18506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18507 if (!SWIG_IsOK(res1)) {
18508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18509 }
18510 arg1 = reinterpret_cast< wxSlider * >(argp1);
18511 {
18512 PyThreadState* __tstate = wxPyBeginAllowThreads();
18513 (arg1)->ClearTicks();
18514 wxPyEndAllowThreads(__tstate);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 }
18517 resultobj = SWIG_Py_Void();
18518 return resultobj;
18519 fail:
18520 return NULL;
18521 }
18522
18523
18524 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18525 PyObject *resultobj = 0;
18526 wxSlider *arg1 = (wxSlider *) 0 ;
18527 int arg2 ;
18528 void *argp1 = 0 ;
18529 int res1 = 0 ;
18530 int val2 ;
18531 int ecode2 = 0 ;
18532 PyObject * obj0 = 0 ;
18533 PyObject * obj1 = 0 ;
18534 char * kwnames[] = {
18535 (char *) "self",(char *) "tickPos", NULL
18536 };
18537
18538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18540 if (!SWIG_IsOK(res1)) {
18541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18542 }
18543 arg1 = reinterpret_cast< wxSlider * >(argp1);
18544 ecode2 = SWIG_AsVal_int(obj1, &val2);
18545 if (!SWIG_IsOK(ecode2)) {
18546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18547 }
18548 arg2 = static_cast< int >(val2);
18549 {
18550 PyThreadState* __tstate = wxPyBeginAllowThreads();
18551 (arg1)->SetTick(arg2);
18552 wxPyEndAllowThreads(__tstate);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 resultobj = SWIG_Py_Void();
18556 return resultobj;
18557 fail:
18558 return NULL;
18559 }
18560
18561
18562 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18563 PyObject *resultobj = 0;
18564 wxSlider *arg1 = (wxSlider *) 0 ;
18565 void *argp1 = 0 ;
18566 int res1 = 0 ;
18567 PyObject *swig_obj[1] ;
18568
18569 if (!args) SWIG_fail;
18570 swig_obj[0] = args;
18571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18572 if (!SWIG_IsOK(res1)) {
18573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18574 }
18575 arg1 = reinterpret_cast< wxSlider * >(argp1);
18576 {
18577 PyThreadState* __tstate = wxPyBeginAllowThreads();
18578 (arg1)->ClearSel();
18579 wxPyEndAllowThreads(__tstate);
18580 if (PyErr_Occurred()) SWIG_fail;
18581 }
18582 resultobj = SWIG_Py_Void();
18583 return resultobj;
18584 fail:
18585 return NULL;
18586 }
18587
18588
18589 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18590 PyObject *resultobj = 0;
18591 wxSlider *arg1 = (wxSlider *) 0 ;
18592 int result;
18593 void *argp1 = 0 ;
18594 int res1 = 0 ;
18595 PyObject *swig_obj[1] ;
18596
18597 if (!args) SWIG_fail;
18598 swig_obj[0] = args;
18599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18600 if (!SWIG_IsOK(res1)) {
18601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18602 }
18603 arg1 = reinterpret_cast< wxSlider * >(argp1);
18604 {
18605 PyThreadState* __tstate = wxPyBeginAllowThreads();
18606 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18607 wxPyEndAllowThreads(__tstate);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 resultobj = SWIG_From_int(static_cast< int >(result));
18611 return resultobj;
18612 fail:
18613 return NULL;
18614 }
18615
18616
18617 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18618 PyObject *resultobj = 0;
18619 wxSlider *arg1 = (wxSlider *) 0 ;
18620 int result;
18621 void *argp1 = 0 ;
18622 int res1 = 0 ;
18623 PyObject *swig_obj[1] ;
18624
18625 if (!args) SWIG_fail;
18626 swig_obj[0] = args;
18627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18628 if (!SWIG_IsOK(res1)) {
18629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18630 }
18631 arg1 = reinterpret_cast< wxSlider * >(argp1);
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 result = (int)((wxSlider const *)arg1)->GetSelStart();
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 resultobj = SWIG_From_int(static_cast< int >(result));
18639 return resultobj;
18640 fail:
18641 return NULL;
18642 }
18643
18644
18645 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18646 PyObject *resultobj = 0;
18647 wxSlider *arg1 = (wxSlider *) 0 ;
18648 int arg2 ;
18649 int arg3 ;
18650 void *argp1 = 0 ;
18651 int res1 = 0 ;
18652 int val2 ;
18653 int ecode2 = 0 ;
18654 int val3 ;
18655 int ecode3 = 0 ;
18656 PyObject * obj0 = 0 ;
18657 PyObject * obj1 = 0 ;
18658 PyObject * obj2 = 0 ;
18659 char * kwnames[] = {
18660 (char *) "self",(char *) "min",(char *) "max", NULL
18661 };
18662
18663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18665 if (!SWIG_IsOK(res1)) {
18666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18667 }
18668 arg1 = reinterpret_cast< wxSlider * >(argp1);
18669 ecode2 = SWIG_AsVal_int(obj1, &val2);
18670 if (!SWIG_IsOK(ecode2)) {
18671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18672 }
18673 arg2 = static_cast< int >(val2);
18674 ecode3 = SWIG_AsVal_int(obj2, &val3);
18675 if (!SWIG_IsOK(ecode3)) {
18676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18677 }
18678 arg3 = static_cast< int >(val3);
18679 {
18680 PyThreadState* __tstate = wxPyBeginAllowThreads();
18681 (arg1)->SetSelection(arg2,arg3);
18682 wxPyEndAllowThreads(__tstate);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 }
18685 resultobj = SWIG_Py_Void();
18686 return resultobj;
18687 fail:
18688 return NULL;
18689 }
18690
18691
18692 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18693 PyObject *resultobj = 0;
18694 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18695 SwigValueWrapper<wxVisualAttributes > result;
18696 int val1 ;
18697 int ecode1 = 0 ;
18698 PyObject * obj0 = 0 ;
18699 char * kwnames[] = {
18700 (char *) "variant", NULL
18701 };
18702
18703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18704 if (obj0) {
18705 ecode1 = SWIG_AsVal_int(obj0, &val1);
18706 if (!SWIG_IsOK(ecode1)) {
18707 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18708 }
18709 arg1 = static_cast< wxWindowVariant >(val1);
18710 }
18711 {
18712 if (!wxPyCheckForApp()) SWIG_fail;
18713 PyThreadState* __tstate = wxPyBeginAllowThreads();
18714 result = wxSlider::GetClassDefaultAttributes(arg1);
18715 wxPyEndAllowThreads(__tstate);
18716 if (PyErr_Occurred()) SWIG_fail;
18717 }
18718 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18719 return resultobj;
18720 fail:
18721 return NULL;
18722 }
18723
18724
18725 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18726 PyObject *obj;
18727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18728 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18729 return SWIG_Py_Void();
18730 }
18731
18732 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18733 return SWIG_Python_InitShadowInstance(args);
18734 }
18735
18736 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18737 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18738 return 1;
18739 }
18740
18741
18742 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18743 PyObject *pyobj = 0;
18744
18745 {
18746 #if wxUSE_UNICODE
18747 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18748 #else
18749 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18750 #endif
18751 }
18752 return pyobj;
18753 }
18754
18755
18756 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18757 PyObject *resultobj = 0;
18758 wxWindow *arg1 = (wxWindow *) 0 ;
18759 int arg2 = (int) -1 ;
18760 wxString const &arg3_defvalue = wxPyEmptyString ;
18761 wxString *arg3 = (wxString *) &arg3_defvalue ;
18762 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18763 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18764 wxSize const &arg5_defvalue = wxDefaultSize ;
18765 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18766 long arg6 = (long) 0 ;
18767 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18768 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18769 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18770 wxString *arg8 = (wxString *) &arg8_defvalue ;
18771 wxToggleButton *result = 0 ;
18772 void *argp1 = 0 ;
18773 int res1 = 0 ;
18774 int val2 ;
18775 int ecode2 = 0 ;
18776 bool temp3 = false ;
18777 wxPoint temp4 ;
18778 wxSize temp5 ;
18779 long val6 ;
18780 int ecode6 = 0 ;
18781 void *argp7 = 0 ;
18782 int res7 = 0 ;
18783 bool temp8 = false ;
18784 PyObject * obj0 = 0 ;
18785 PyObject * obj1 = 0 ;
18786 PyObject * obj2 = 0 ;
18787 PyObject * obj3 = 0 ;
18788 PyObject * obj4 = 0 ;
18789 PyObject * obj5 = 0 ;
18790 PyObject * obj6 = 0 ;
18791 PyObject * obj7 = 0 ;
18792 char * kwnames[] = {
18793 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18794 };
18795
18796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18798 if (!SWIG_IsOK(res1)) {
18799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18800 }
18801 arg1 = reinterpret_cast< wxWindow * >(argp1);
18802 if (obj1) {
18803 ecode2 = SWIG_AsVal_int(obj1, &val2);
18804 if (!SWIG_IsOK(ecode2)) {
18805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18806 }
18807 arg2 = static_cast< int >(val2);
18808 }
18809 if (obj2) {
18810 {
18811 arg3 = wxString_in_helper(obj2);
18812 if (arg3 == NULL) SWIG_fail;
18813 temp3 = true;
18814 }
18815 }
18816 if (obj3) {
18817 {
18818 arg4 = &temp4;
18819 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18820 }
18821 }
18822 if (obj4) {
18823 {
18824 arg5 = &temp5;
18825 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18826 }
18827 }
18828 if (obj5) {
18829 ecode6 = SWIG_AsVal_long(obj5, &val6);
18830 if (!SWIG_IsOK(ecode6)) {
18831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18832 }
18833 arg6 = static_cast< long >(val6);
18834 }
18835 if (obj6) {
18836 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18837 if (!SWIG_IsOK(res7)) {
18838 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18839 }
18840 if (!argp7) {
18841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18842 }
18843 arg7 = reinterpret_cast< wxValidator * >(argp7);
18844 }
18845 if (obj7) {
18846 {
18847 arg8 = wxString_in_helper(obj7);
18848 if (arg8 == NULL) SWIG_fail;
18849 temp8 = true;
18850 }
18851 }
18852 {
18853 if (!wxPyCheckForApp()) SWIG_fail;
18854 PyThreadState* __tstate = wxPyBeginAllowThreads();
18855 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18856 wxPyEndAllowThreads(__tstate);
18857 if (PyErr_Occurred()) SWIG_fail;
18858 }
18859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18860 {
18861 if (temp3)
18862 delete arg3;
18863 }
18864 {
18865 if (temp8)
18866 delete arg8;
18867 }
18868 return resultobj;
18869 fail:
18870 {
18871 if (temp3)
18872 delete arg3;
18873 }
18874 {
18875 if (temp8)
18876 delete arg8;
18877 }
18878 return NULL;
18879 }
18880
18881
18882 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18883 PyObject *resultobj = 0;
18884 wxToggleButton *result = 0 ;
18885
18886 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18887 {
18888 if (!wxPyCheckForApp()) SWIG_fail;
18889 PyThreadState* __tstate = wxPyBeginAllowThreads();
18890 result = (wxToggleButton *)new wxToggleButton();
18891 wxPyEndAllowThreads(__tstate);
18892 if (PyErr_Occurred()) SWIG_fail;
18893 }
18894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18895 return resultobj;
18896 fail:
18897 return NULL;
18898 }
18899
18900
18901 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18902 PyObject *resultobj = 0;
18903 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18904 wxWindow *arg2 = (wxWindow *) 0 ;
18905 int arg3 = (int) -1 ;
18906 wxString const &arg4_defvalue = wxPyEmptyString ;
18907 wxString *arg4 = (wxString *) &arg4_defvalue ;
18908 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18909 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18910 wxSize const &arg6_defvalue = wxDefaultSize ;
18911 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18912 long arg7 = (long) 0 ;
18913 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18914 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18915 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18916 wxString *arg9 = (wxString *) &arg9_defvalue ;
18917 bool result;
18918 void *argp1 = 0 ;
18919 int res1 = 0 ;
18920 void *argp2 = 0 ;
18921 int res2 = 0 ;
18922 int val3 ;
18923 int ecode3 = 0 ;
18924 bool temp4 = false ;
18925 wxPoint temp5 ;
18926 wxSize temp6 ;
18927 long val7 ;
18928 int ecode7 = 0 ;
18929 void *argp8 = 0 ;
18930 int res8 = 0 ;
18931 bool temp9 = false ;
18932 PyObject * obj0 = 0 ;
18933 PyObject * obj1 = 0 ;
18934 PyObject * obj2 = 0 ;
18935 PyObject * obj3 = 0 ;
18936 PyObject * obj4 = 0 ;
18937 PyObject * obj5 = 0 ;
18938 PyObject * obj6 = 0 ;
18939 PyObject * obj7 = 0 ;
18940 PyObject * obj8 = 0 ;
18941 char * kwnames[] = {
18942 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18943 };
18944
18945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18947 if (!SWIG_IsOK(res1)) {
18948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18949 }
18950 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18952 if (!SWIG_IsOK(res2)) {
18953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18954 }
18955 arg2 = reinterpret_cast< wxWindow * >(argp2);
18956 if (obj2) {
18957 ecode3 = SWIG_AsVal_int(obj2, &val3);
18958 if (!SWIG_IsOK(ecode3)) {
18959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18960 }
18961 arg3 = static_cast< int >(val3);
18962 }
18963 if (obj3) {
18964 {
18965 arg4 = wxString_in_helper(obj3);
18966 if (arg4 == NULL) SWIG_fail;
18967 temp4 = true;
18968 }
18969 }
18970 if (obj4) {
18971 {
18972 arg5 = &temp5;
18973 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18974 }
18975 }
18976 if (obj5) {
18977 {
18978 arg6 = &temp6;
18979 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18980 }
18981 }
18982 if (obj6) {
18983 ecode7 = SWIG_AsVal_long(obj6, &val7);
18984 if (!SWIG_IsOK(ecode7)) {
18985 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18986 }
18987 arg7 = static_cast< long >(val7);
18988 }
18989 if (obj7) {
18990 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18991 if (!SWIG_IsOK(res8)) {
18992 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18993 }
18994 if (!argp8) {
18995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18996 }
18997 arg8 = reinterpret_cast< wxValidator * >(argp8);
18998 }
18999 if (obj8) {
19000 {
19001 arg9 = wxString_in_helper(obj8);
19002 if (arg9 == NULL) SWIG_fail;
19003 temp9 = true;
19004 }
19005 }
19006 {
19007 PyThreadState* __tstate = wxPyBeginAllowThreads();
19008 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19009 wxPyEndAllowThreads(__tstate);
19010 if (PyErr_Occurred()) SWIG_fail;
19011 }
19012 {
19013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19014 }
19015 {
19016 if (temp4)
19017 delete arg4;
19018 }
19019 {
19020 if (temp9)
19021 delete arg9;
19022 }
19023 return resultobj;
19024 fail:
19025 {
19026 if (temp4)
19027 delete arg4;
19028 }
19029 {
19030 if (temp9)
19031 delete arg9;
19032 }
19033 return NULL;
19034 }
19035
19036
19037 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19038 PyObject *resultobj = 0;
19039 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19040 bool arg2 ;
19041 void *argp1 = 0 ;
19042 int res1 = 0 ;
19043 bool val2 ;
19044 int ecode2 = 0 ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 char * kwnames[] = {
19048 (char *) "self",(char *) "value", NULL
19049 };
19050
19051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19053 if (!SWIG_IsOK(res1)) {
19054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19055 }
19056 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19057 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19058 if (!SWIG_IsOK(ecode2)) {
19059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19060 }
19061 arg2 = static_cast< bool >(val2);
19062 {
19063 PyThreadState* __tstate = wxPyBeginAllowThreads();
19064 (arg1)->SetValue(arg2);
19065 wxPyEndAllowThreads(__tstate);
19066 if (PyErr_Occurred()) SWIG_fail;
19067 }
19068 resultobj = SWIG_Py_Void();
19069 return resultobj;
19070 fail:
19071 return NULL;
19072 }
19073
19074
19075 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19076 PyObject *resultobj = 0;
19077 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19078 bool result;
19079 void *argp1 = 0 ;
19080 int res1 = 0 ;
19081 PyObject *swig_obj[1] ;
19082
19083 if (!args) SWIG_fail;
19084 swig_obj[0] = args;
19085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19086 if (!SWIG_IsOK(res1)) {
19087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19088 }
19089 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19090 {
19091 PyThreadState* __tstate = wxPyBeginAllowThreads();
19092 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19093 wxPyEndAllowThreads(__tstate);
19094 if (PyErr_Occurred()) SWIG_fail;
19095 }
19096 {
19097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19098 }
19099 return resultobj;
19100 fail:
19101 return NULL;
19102 }
19103
19104
19105 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19106 PyObject *resultobj = 0;
19107 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19108 SwigValueWrapper<wxVisualAttributes > result;
19109 int val1 ;
19110 int ecode1 = 0 ;
19111 PyObject * obj0 = 0 ;
19112 char * kwnames[] = {
19113 (char *) "variant", NULL
19114 };
19115
19116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19117 if (obj0) {
19118 ecode1 = SWIG_AsVal_int(obj0, &val1);
19119 if (!SWIG_IsOK(ecode1)) {
19120 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19121 }
19122 arg1 = static_cast< wxWindowVariant >(val1);
19123 }
19124 {
19125 if (!wxPyCheckForApp()) SWIG_fail;
19126 PyThreadState* __tstate = wxPyBeginAllowThreads();
19127 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19128 wxPyEndAllowThreads(__tstate);
19129 if (PyErr_Occurred()) SWIG_fail;
19130 }
19131 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19132 return resultobj;
19133 fail:
19134 return NULL;
19135 }
19136
19137
19138 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19139 PyObject *obj;
19140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19141 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19142 return SWIG_Py_Void();
19143 }
19144
19145 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19146 return SWIG_Python_InitShadowInstance(args);
19147 }
19148
19149 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19150 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19151 return 1;
19152 }
19153
19154
19155 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19156 PyObject *pyobj = 0;
19157
19158 {
19159 #if wxUSE_UNICODE
19160 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19161 #else
19162 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19163 #endif
19164 }
19165 return pyobj;
19166 }
19167
19168
19169 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19170 PyObject *resultobj = 0;
19171 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19172 size_t result;
19173 void *argp1 = 0 ;
19174 int res1 = 0 ;
19175 PyObject *swig_obj[1] ;
19176
19177 if (!args) SWIG_fail;
19178 swig_obj[0] = args;
19179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19180 if (!SWIG_IsOK(res1)) {
19181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19182 }
19183 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj = 0;
19199 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19200 size_t arg2 ;
19201 wxWindow *result = 0 ;
19202 void *argp1 = 0 ;
19203 int res1 = 0 ;
19204 size_t val2 ;
19205 int ecode2 = 0 ;
19206 PyObject * obj0 = 0 ;
19207 PyObject * obj1 = 0 ;
19208 char * kwnames[] = {
19209 (char *) "self",(char *) "n", NULL
19210 };
19211
19212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19214 if (!SWIG_IsOK(res1)) {
19215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19216 }
19217 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19218 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19219 if (!SWIG_IsOK(ecode2)) {
19220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19221 }
19222 arg2 = static_cast< size_t >(val2);
19223 {
19224 PyThreadState* __tstate = wxPyBeginAllowThreads();
19225 result = (wxWindow *)(arg1)->GetPage(arg2);
19226 wxPyEndAllowThreads(__tstate);
19227 if (PyErr_Occurred()) SWIG_fail;
19228 }
19229 {
19230 resultobj = wxPyMake_wxObject(result, 0);
19231 }
19232 return resultobj;
19233 fail:
19234 return NULL;
19235 }
19236
19237
19238 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19239 PyObject *resultobj = 0;
19240 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19241 wxWindow *result = 0 ;
19242 void *argp1 = 0 ;
19243 int res1 = 0 ;
19244 PyObject *swig_obj[1] ;
19245
19246 if (!args) SWIG_fail;
19247 swig_obj[0] = args;
19248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19249 if (!SWIG_IsOK(res1)) {
19250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19251 }
19252 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19253 {
19254 PyThreadState* __tstate = wxPyBeginAllowThreads();
19255 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19256 wxPyEndAllowThreads(__tstate);
19257 if (PyErr_Occurred()) SWIG_fail;
19258 }
19259 {
19260 resultobj = wxPyMake_wxObject(result, 0);
19261 }
19262 return resultobj;
19263 fail:
19264 return NULL;
19265 }
19266
19267
19268 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19269 PyObject *resultobj = 0;
19270 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19271 int result;
19272 void *argp1 = 0 ;
19273 int res1 = 0 ;
19274 PyObject *swig_obj[1] ;
19275
19276 if (!args) SWIG_fail;
19277 swig_obj[0] = args;
19278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19279 if (!SWIG_IsOK(res1)) {
19280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19281 }
19282 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19283 {
19284 PyThreadState* __tstate = wxPyBeginAllowThreads();
19285 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 resultobj = SWIG_From_int(static_cast< int >(result));
19290 return resultobj;
19291 fail:
19292 return NULL;
19293 }
19294
19295
19296 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19297 PyObject *resultobj = 0;
19298 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19299 size_t arg2 ;
19300 wxString *arg3 = 0 ;
19301 bool result;
19302 void *argp1 = 0 ;
19303 int res1 = 0 ;
19304 size_t val2 ;
19305 int ecode2 = 0 ;
19306 bool temp3 = false ;
19307 PyObject * obj0 = 0 ;
19308 PyObject * obj1 = 0 ;
19309 PyObject * obj2 = 0 ;
19310 char * kwnames[] = {
19311 (char *) "self",(char *) "n",(char *) "strText", NULL
19312 };
19313
19314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19316 if (!SWIG_IsOK(res1)) {
19317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19318 }
19319 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19320 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19321 if (!SWIG_IsOK(ecode2)) {
19322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19323 }
19324 arg2 = static_cast< size_t >(val2);
19325 {
19326 arg3 = wxString_in_helper(obj2);
19327 if (arg3 == NULL) SWIG_fail;
19328 temp3 = true;
19329 }
19330 {
19331 PyThreadState* __tstate = wxPyBeginAllowThreads();
19332 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19333 wxPyEndAllowThreads(__tstate);
19334 if (PyErr_Occurred()) SWIG_fail;
19335 }
19336 {
19337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19338 }
19339 {
19340 if (temp3)
19341 delete arg3;
19342 }
19343 return resultobj;
19344 fail:
19345 {
19346 if (temp3)
19347 delete arg3;
19348 }
19349 return NULL;
19350 }
19351
19352
19353 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19356 size_t arg2 ;
19357 wxString result;
19358 void *argp1 = 0 ;
19359 int res1 = 0 ;
19360 size_t val2 ;
19361 int ecode2 = 0 ;
19362 PyObject * obj0 = 0 ;
19363 PyObject * obj1 = 0 ;
19364 char * kwnames[] = {
19365 (char *) "self",(char *) "n", NULL
19366 };
19367
19368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19370 if (!SWIG_IsOK(res1)) {
19371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19372 }
19373 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19374 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19375 if (!SWIG_IsOK(ecode2)) {
19376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19377 }
19378 arg2 = static_cast< size_t >(val2);
19379 {
19380 PyThreadState* __tstate = wxPyBeginAllowThreads();
19381 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19382 wxPyEndAllowThreads(__tstate);
19383 if (PyErr_Occurred()) SWIG_fail;
19384 }
19385 {
19386 #if wxUSE_UNICODE
19387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19388 #else
19389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19390 #endif
19391 }
19392 return resultobj;
19393 fail:
19394 return NULL;
19395 }
19396
19397
19398 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19399 PyObject *resultobj = 0;
19400 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19401 wxImageList *arg2 = (wxImageList *) 0 ;
19402 void *argp1 = 0 ;
19403 int res1 = 0 ;
19404 void *argp2 = 0 ;
19405 int res2 = 0 ;
19406 PyObject * obj0 = 0 ;
19407 PyObject * obj1 = 0 ;
19408 char * kwnames[] = {
19409 (char *) "self",(char *) "imageList", NULL
19410 };
19411
19412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19414 if (!SWIG_IsOK(res1)) {
19415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19416 }
19417 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19418 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19419 if (!SWIG_IsOK(res2)) {
19420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19421 }
19422 arg2 = reinterpret_cast< wxImageList * >(argp2);
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 (arg1)->SetImageList(arg2);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_Py_Void();
19430 return resultobj;
19431 fail:
19432 return NULL;
19433 }
19434
19435
19436 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19437 PyObject *resultobj = 0;
19438 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19439 wxImageList *arg2 = (wxImageList *) 0 ;
19440 void *argp1 = 0 ;
19441 int res1 = 0 ;
19442 int res2 = 0 ;
19443 PyObject * obj0 = 0 ;
19444 PyObject * obj1 = 0 ;
19445 char * kwnames[] = {
19446 (char *) "self",(char *) "imageList", NULL
19447 };
19448
19449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",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_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19453 }
19454 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19455 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19456 if (!SWIG_IsOK(res2)) {
19457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19458 }
19459 {
19460 PyThreadState* __tstate = wxPyBeginAllowThreads();
19461 (arg1)->AssignImageList(arg2);
19462 wxPyEndAllowThreads(__tstate);
19463 if (PyErr_Occurred()) SWIG_fail;
19464 }
19465 resultobj = SWIG_Py_Void();
19466 return resultobj;
19467 fail:
19468 return NULL;
19469 }
19470
19471
19472 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19473 PyObject *resultobj = 0;
19474 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19475 wxImageList *result = 0 ;
19476 void *argp1 = 0 ;
19477 int res1 = 0 ;
19478 PyObject *swig_obj[1] ;
19479
19480 if (!args) SWIG_fail;
19481 swig_obj[0] = args;
19482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19483 if (!SWIG_IsOK(res1)) {
19484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19485 }
19486 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19487 {
19488 PyThreadState* __tstate = wxPyBeginAllowThreads();
19489 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19490 wxPyEndAllowThreads(__tstate);
19491 if (PyErr_Occurred()) SWIG_fail;
19492 }
19493 {
19494 resultobj = wxPyMake_wxObject(result, (bool)0);
19495 }
19496 return resultobj;
19497 fail:
19498 return NULL;
19499 }
19500
19501
19502 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19503 PyObject *resultobj = 0;
19504 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19505 size_t arg2 ;
19506 int result;
19507 void *argp1 = 0 ;
19508 int res1 = 0 ;
19509 size_t val2 ;
19510 int ecode2 = 0 ;
19511 PyObject * obj0 = 0 ;
19512 PyObject * obj1 = 0 ;
19513 char * kwnames[] = {
19514 (char *) "self",(char *) "n", NULL
19515 };
19516
19517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19519 if (!SWIG_IsOK(res1)) {
19520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19521 }
19522 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19523 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19524 if (!SWIG_IsOK(ecode2)) {
19525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19526 }
19527 arg2 = static_cast< size_t >(val2);
19528 {
19529 PyThreadState* __tstate = wxPyBeginAllowThreads();
19530 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19531 wxPyEndAllowThreads(__tstate);
19532 if (PyErr_Occurred()) SWIG_fail;
19533 }
19534 resultobj = SWIG_From_int(static_cast< int >(result));
19535 return resultobj;
19536 fail:
19537 return NULL;
19538 }
19539
19540
19541 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19542 PyObject *resultobj = 0;
19543 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19544 size_t arg2 ;
19545 int arg3 ;
19546 bool result;
19547 void *argp1 = 0 ;
19548 int res1 = 0 ;
19549 size_t val2 ;
19550 int ecode2 = 0 ;
19551 int val3 ;
19552 int ecode3 = 0 ;
19553 PyObject * obj0 = 0 ;
19554 PyObject * obj1 = 0 ;
19555 PyObject * obj2 = 0 ;
19556 char * kwnames[] = {
19557 (char *) "self",(char *) "n",(char *) "imageId", NULL
19558 };
19559
19560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19562 if (!SWIG_IsOK(res1)) {
19563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19564 }
19565 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19566 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19567 if (!SWIG_IsOK(ecode2)) {
19568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19569 }
19570 arg2 = static_cast< size_t >(val2);
19571 ecode3 = SWIG_AsVal_int(obj2, &val3);
19572 if (!SWIG_IsOK(ecode3)) {
19573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19574 }
19575 arg3 = static_cast< int >(val3);
19576 {
19577 PyThreadState* __tstate = wxPyBeginAllowThreads();
19578 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19579 wxPyEndAllowThreads(__tstate);
19580 if (PyErr_Occurred()) SWIG_fail;
19581 }
19582 {
19583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19584 }
19585 return resultobj;
19586 fail:
19587 return NULL;
19588 }
19589
19590
19591 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19592 PyObject *resultobj = 0;
19593 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19594 wxSize *arg2 = 0 ;
19595 void *argp1 = 0 ;
19596 int res1 = 0 ;
19597 wxSize temp2 ;
19598 PyObject * obj0 = 0 ;
19599 PyObject * obj1 = 0 ;
19600 char * kwnames[] = {
19601 (char *) "self",(char *) "size", NULL
19602 };
19603
19604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19606 if (!SWIG_IsOK(res1)) {
19607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19608 }
19609 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19610 {
19611 arg2 = &temp2;
19612 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19613 }
19614 {
19615 PyThreadState* __tstate = wxPyBeginAllowThreads();
19616 (arg1)->SetPageSize((wxSize const &)*arg2);
19617 wxPyEndAllowThreads(__tstate);
19618 if (PyErr_Occurred()) SWIG_fail;
19619 }
19620 resultobj = SWIG_Py_Void();
19621 return resultobj;
19622 fail:
19623 return NULL;
19624 }
19625
19626
19627 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19628 PyObject *resultobj = 0;
19629 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19630 wxSize *arg2 = 0 ;
19631 wxSize result;
19632 void *argp1 = 0 ;
19633 int res1 = 0 ;
19634 wxSize temp2 ;
19635 PyObject * obj0 = 0 ;
19636 PyObject * obj1 = 0 ;
19637 char * kwnames[] = {
19638 (char *) "self",(char *) "sizePage", NULL
19639 };
19640
19641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19643 if (!SWIG_IsOK(res1)) {
19644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19645 }
19646 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19647 {
19648 arg2 = &temp2;
19649 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19650 }
19651 {
19652 PyThreadState* __tstate = wxPyBeginAllowThreads();
19653 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19654 wxPyEndAllowThreads(__tstate);
19655 if (PyErr_Occurred()) SWIG_fail;
19656 }
19657 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19658 return resultobj;
19659 fail:
19660 return NULL;
19661 }
19662
19663
19664 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19665 PyObject *resultobj = 0;
19666 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19667 unsigned int result;
19668 void *argp1 = 0 ;
19669 int res1 = 0 ;
19670 PyObject *swig_obj[1] ;
19671
19672 if (!args) SWIG_fail;
19673 swig_obj[0] = args;
19674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19675 if (!SWIG_IsOK(res1)) {
19676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19677 }
19678 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19679 {
19680 PyThreadState* __tstate = wxPyBeginAllowThreads();
19681 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19682 wxPyEndAllowThreads(__tstate);
19683 if (PyErr_Occurred()) SWIG_fail;
19684 }
19685 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19686 return resultobj;
19687 fail:
19688 return NULL;
19689 }
19690
19691
19692 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19693 PyObject *resultobj = 0;
19694 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19695 unsigned int arg2 ;
19696 void *argp1 = 0 ;
19697 int res1 = 0 ;
19698 unsigned int val2 ;
19699 int ecode2 = 0 ;
19700 PyObject * obj0 = 0 ;
19701 PyObject * obj1 = 0 ;
19702 char * kwnames[] = {
19703 (char *) "self",(char *) "internalBorder", NULL
19704 };
19705
19706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",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_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19710 }
19711 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19712 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19713 if (!SWIG_IsOK(ecode2)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19715 }
19716 arg2 = static_cast< unsigned int >(val2);
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 (arg1)->SetInternalBorder(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_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19731 PyObject *resultobj = 0;
19732 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19733 bool 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_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19743 }
19744 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19745 {
19746 PyThreadState* __tstate = wxPyBeginAllowThreads();
19747 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 {
19752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19753 }
19754 return resultobj;
19755 fail:
19756 return NULL;
19757 }
19758
19759
19760 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19761 PyObject *resultobj = 0;
19762 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19763 int arg2 ;
19764 void *argp1 = 0 ;
19765 int res1 = 0 ;
19766 int val2 ;
19767 int ecode2 = 0 ;
19768 PyObject * obj0 = 0 ;
19769 PyObject * obj1 = 0 ;
19770 char * kwnames[] = {
19771 (char *) "self",(char *) "margin", NULL
19772 };
19773
19774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19776 if (!SWIG_IsOK(res1)) {
19777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19778 }
19779 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19780 ecode2 = SWIG_AsVal_int(obj1, &val2);
19781 if (!SWIG_IsOK(ecode2)) {
19782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19783 }
19784 arg2 = static_cast< int >(val2);
19785 {
19786 PyThreadState* __tstate = wxPyBeginAllowThreads();
19787 (arg1)->SetControlMargin(arg2);
19788 wxPyEndAllowThreads(__tstate);
19789 if (PyErr_Occurred()) SWIG_fail;
19790 }
19791 resultobj = SWIG_Py_Void();
19792 return resultobj;
19793 fail:
19794 return NULL;
19795 }
19796
19797
19798 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19799 PyObject *resultobj = 0;
19800 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19801 int result;
19802 void *argp1 = 0 ;
19803 int res1 = 0 ;
19804 PyObject *swig_obj[1] ;
19805
19806 if (!args) SWIG_fail;
19807 swig_obj[0] = args;
19808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19809 if (!SWIG_IsOK(res1)) {
19810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19811 }
19812 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19813 {
19814 PyThreadState* __tstate = wxPyBeginAllowThreads();
19815 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19816 wxPyEndAllowThreads(__tstate);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
19819 resultobj = SWIG_From_int(static_cast< int >(result));
19820 return resultobj;
19821 fail:
19822 return NULL;
19823 }
19824
19825
19826 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19827 PyObject *resultobj = 0;
19828 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19829 bool arg2 ;
19830 void *argp1 = 0 ;
19831 int res1 = 0 ;
19832 bool val2 ;
19833 int ecode2 = 0 ;
19834 PyObject * obj0 = 0 ;
19835 PyObject * obj1 = 0 ;
19836 char * kwnames[] = {
19837 (char *) "self",(char *) "fit", NULL
19838 };
19839
19840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19842 if (!SWIG_IsOK(res1)) {
19843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19844 }
19845 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19846 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19847 if (!SWIG_IsOK(ecode2)) {
19848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19849 }
19850 arg2 = static_cast< bool >(val2);
19851 {
19852 PyThreadState* __tstate = wxPyBeginAllowThreads();
19853 (arg1)->SetFitToCurrentPage(arg2);
19854 wxPyEndAllowThreads(__tstate);
19855 if (PyErr_Occurred()) SWIG_fail;
19856 }
19857 resultobj = SWIG_Py_Void();
19858 return resultobj;
19859 fail:
19860 return NULL;
19861 }
19862
19863
19864 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19865 PyObject *resultobj = 0;
19866 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19867 bool result;
19868 void *argp1 = 0 ;
19869 int res1 = 0 ;
19870 PyObject *swig_obj[1] ;
19871
19872 if (!args) SWIG_fail;
19873 swig_obj[0] = args;
19874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19875 if (!SWIG_IsOK(res1)) {
19876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19877 }
19878 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19879 {
19880 PyThreadState* __tstate = wxPyBeginAllowThreads();
19881 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19882 wxPyEndAllowThreads(__tstate);
19883 if (PyErr_Occurred()) SWIG_fail;
19884 }
19885 {
19886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19887 }
19888 return resultobj;
19889 fail:
19890 return NULL;
19891 }
19892
19893
19894 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19895 PyObject *resultobj = 0;
19896 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19897 wxSizer *result = 0 ;
19898 void *argp1 = 0 ;
19899 int res1 = 0 ;
19900 PyObject *swig_obj[1] ;
19901
19902 if (!args) SWIG_fail;
19903 swig_obj[0] = args;
19904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19905 if (!SWIG_IsOK(res1)) {
19906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19907 }
19908 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19909 {
19910 PyThreadState* __tstate = wxPyBeginAllowThreads();
19911 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19912 wxPyEndAllowThreads(__tstate);
19913 if (PyErr_Occurred()) SWIG_fail;
19914 }
19915 {
19916 resultobj = wxPyMake_wxObject(result, (bool)0);
19917 }
19918 return resultobj;
19919 fail:
19920 return NULL;
19921 }
19922
19923
19924 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19925 PyObject *resultobj = 0;
19926 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19927 size_t arg2 ;
19928 bool result;
19929 void *argp1 = 0 ;
19930 int res1 = 0 ;
19931 size_t val2 ;
19932 int ecode2 = 0 ;
19933 PyObject * obj0 = 0 ;
19934 PyObject * obj1 = 0 ;
19935 char * kwnames[] = {
19936 (char *) "self",(char *) "n", NULL
19937 };
19938
19939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19941 if (!SWIG_IsOK(res1)) {
19942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19943 }
19944 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19945 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19946 if (!SWIG_IsOK(ecode2)) {
19947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19948 }
19949 arg2 = static_cast< size_t >(val2);
19950 {
19951 PyThreadState* __tstate = wxPyBeginAllowThreads();
19952 result = (bool)(arg1)->DeletePage(arg2);
19953 wxPyEndAllowThreads(__tstate);
19954 if (PyErr_Occurred()) SWIG_fail;
19955 }
19956 {
19957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19958 }
19959 return resultobj;
19960 fail:
19961 return NULL;
19962 }
19963
19964
19965 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19966 PyObject *resultobj = 0;
19967 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19968 size_t arg2 ;
19969 bool result;
19970 void *argp1 = 0 ;
19971 int res1 = 0 ;
19972 size_t val2 ;
19973 int ecode2 = 0 ;
19974 PyObject * obj0 = 0 ;
19975 PyObject * obj1 = 0 ;
19976 char * kwnames[] = {
19977 (char *) "self",(char *) "n", NULL
19978 };
19979
19980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19982 if (!SWIG_IsOK(res1)) {
19983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19984 }
19985 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19986 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19987 if (!SWIG_IsOK(ecode2)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19989 }
19990 arg2 = static_cast< size_t >(val2);
19991 {
19992 PyThreadState* __tstate = wxPyBeginAllowThreads();
19993 result = (bool)(arg1)->RemovePage(arg2);
19994 wxPyEndAllowThreads(__tstate);
19995 if (PyErr_Occurred()) SWIG_fail;
19996 }
19997 {
19998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19999 }
20000 return resultobj;
20001 fail:
20002 return NULL;
20003 }
20004
20005
20006 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20007 PyObject *resultobj = 0;
20008 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20009 bool result;
20010 void *argp1 = 0 ;
20011 int res1 = 0 ;
20012 PyObject *swig_obj[1] ;
20013
20014 if (!args) SWIG_fail;
20015 swig_obj[0] = args;
20016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20017 if (!SWIG_IsOK(res1)) {
20018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20019 }
20020 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20021 {
20022 PyThreadState* __tstate = wxPyBeginAllowThreads();
20023 result = (bool)(arg1)->DeleteAllPages();
20024 wxPyEndAllowThreads(__tstate);
20025 if (PyErr_Occurred()) SWIG_fail;
20026 }
20027 {
20028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20029 }
20030 return resultobj;
20031 fail:
20032 return NULL;
20033 }
20034
20035
20036 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20037 PyObject *resultobj = 0;
20038 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20039 wxWindow *arg2 = (wxWindow *) 0 ;
20040 wxString *arg3 = 0 ;
20041 bool arg4 = (bool) false ;
20042 int arg5 = (int) -1 ;
20043 bool result;
20044 void *argp1 = 0 ;
20045 int res1 = 0 ;
20046 void *argp2 = 0 ;
20047 int res2 = 0 ;
20048 bool temp3 = false ;
20049 bool val4 ;
20050 int ecode4 = 0 ;
20051 int val5 ;
20052 int ecode5 = 0 ;
20053 PyObject * obj0 = 0 ;
20054 PyObject * obj1 = 0 ;
20055 PyObject * obj2 = 0 ;
20056 PyObject * obj3 = 0 ;
20057 PyObject * obj4 = 0 ;
20058 char * kwnames[] = {
20059 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20060 };
20061
20062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20064 if (!SWIG_IsOK(res1)) {
20065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20066 }
20067 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20068 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20069 if (!SWIG_IsOK(res2)) {
20070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20071 }
20072 arg2 = reinterpret_cast< wxWindow * >(argp2);
20073 {
20074 arg3 = wxString_in_helper(obj2);
20075 if (arg3 == NULL) SWIG_fail;
20076 temp3 = true;
20077 }
20078 if (obj3) {
20079 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20080 if (!SWIG_IsOK(ecode4)) {
20081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20082 }
20083 arg4 = static_cast< bool >(val4);
20084 }
20085 if (obj4) {
20086 ecode5 = SWIG_AsVal_int(obj4, &val5);
20087 if (!SWIG_IsOK(ecode5)) {
20088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20089 }
20090 arg5 = static_cast< int >(val5);
20091 }
20092 {
20093 PyThreadState* __tstate = wxPyBeginAllowThreads();
20094 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20095 wxPyEndAllowThreads(__tstate);
20096 if (PyErr_Occurred()) SWIG_fail;
20097 }
20098 {
20099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20100 }
20101 {
20102 if (temp3)
20103 delete arg3;
20104 }
20105 return resultobj;
20106 fail:
20107 {
20108 if (temp3)
20109 delete arg3;
20110 }
20111 return NULL;
20112 }
20113
20114
20115 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj = 0;
20117 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20118 size_t arg2 ;
20119 wxWindow *arg3 = (wxWindow *) 0 ;
20120 wxString *arg4 = 0 ;
20121 bool arg5 = (bool) false ;
20122 int arg6 = (int) -1 ;
20123 bool result;
20124 void *argp1 = 0 ;
20125 int res1 = 0 ;
20126 size_t val2 ;
20127 int ecode2 = 0 ;
20128 void *argp3 = 0 ;
20129 int res3 = 0 ;
20130 bool temp4 = false ;
20131 bool val5 ;
20132 int ecode5 = 0 ;
20133 int val6 ;
20134 int ecode6 = 0 ;
20135 PyObject * obj0 = 0 ;
20136 PyObject * obj1 = 0 ;
20137 PyObject * obj2 = 0 ;
20138 PyObject * obj3 = 0 ;
20139 PyObject * obj4 = 0 ;
20140 PyObject * obj5 = 0 ;
20141 char * kwnames[] = {
20142 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20143 };
20144
20145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20147 if (!SWIG_IsOK(res1)) {
20148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20149 }
20150 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20151 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20152 if (!SWIG_IsOK(ecode2)) {
20153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20154 }
20155 arg2 = static_cast< size_t >(val2);
20156 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20157 if (!SWIG_IsOK(res3)) {
20158 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20159 }
20160 arg3 = reinterpret_cast< wxWindow * >(argp3);
20161 {
20162 arg4 = wxString_in_helper(obj3);
20163 if (arg4 == NULL) SWIG_fail;
20164 temp4 = true;
20165 }
20166 if (obj4) {
20167 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20168 if (!SWIG_IsOK(ecode5)) {
20169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20170 }
20171 arg5 = static_cast< bool >(val5);
20172 }
20173 if (obj5) {
20174 ecode6 = SWIG_AsVal_int(obj5, &val6);
20175 if (!SWIG_IsOK(ecode6)) {
20176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20177 }
20178 arg6 = static_cast< int >(val6);
20179 }
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20183 wxPyEndAllowThreads(__tstate);
20184 if (PyErr_Occurred()) SWIG_fail;
20185 }
20186 {
20187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20188 }
20189 {
20190 if (temp4)
20191 delete arg4;
20192 }
20193 return resultobj;
20194 fail:
20195 {
20196 if (temp4)
20197 delete arg4;
20198 }
20199 return NULL;
20200 }
20201
20202
20203 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20204 PyObject *resultobj = 0;
20205 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20206 size_t arg2 ;
20207 int result;
20208 void *argp1 = 0 ;
20209 int res1 = 0 ;
20210 size_t val2 ;
20211 int ecode2 = 0 ;
20212 PyObject * obj0 = 0 ;
20213 PyObject * obj1 = 0 ;
20214 char * kwnames[] = {
20215 (char *) "self",(char *) "n", NULL
20216 };
20217
20218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20220 if (!SWIG_IsOK(res1)) {
20221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20222 }
20223 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20224 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20225 if (!SWIG_IsOK(ecode2)) {
20226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20227 }
20228 arg2 = static_cast< size_t >(val2);
20229 {
20230 PyThreadState* __tstate = wxPyBeginAllowThreads();
20231 result = (int)(arg1)->SetSelection(arg2);
20232 wxPyEndAllowThreads(__tstate);
20233 if (PyErr_Occurred()) SWIG_fail;
20234 }
20235 resultobj = SWIG_From_int(static_cast< int >(result));
20236 return resultobj;
20237 fail:
20238 return NULL;
20239 }
20240
20241
20242 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20243 PyObject *resultobj = 0;
20244 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20245 size_t arg2 ;
20246 int result;
20247 void *argp1 = 0 ;
20248 int res1 = 0 ;
20249 size_t val2 ;
20250 int ecode2 = 0 ;
20251 PyObject * obj0 = 0 ;
20252 PyObject * obj1 = 0 ;
20253 char * kwnames[] = {
20254 (char *) "self",(char *) "n", NULL
20255 };
20256
20257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20259 if (!SWIG_IsOK(res1)) {
20260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20261 }
20262 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20263 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20264 if (!SWIG_IsOK(ecode2)) {
20265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20266 }
20267 arg2 = static_cast< size_t >(val2);
20268 {
20269 PyThreadState* __tstate = wxPyBeginAllowThreads();
20270 result = (int)(arg1)->ChangeSelection(arg2);
20271 wxPyEndAllowThreads(__tstate);
20272 if (PyErr_Occurred()) SWIG_fail;
20273 }
20274 resultobj = SWIG_From_int(static_cast< int >(result));
20275 return resultobj;
20276 fail:
20277 return NULL;
20278 }
20279
20280
20281 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20282 PyObject *resultobj = 0;
20283 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20284 bool arg2 = (bool) true ;
20285 void *argp1 = 0 ;
20286 int res1 = 0 ;
20287 bool val2 ;
20288 int ecode2 = 0 ;
20289 PyObject * obj0 = 0 ;
20290 PyObject * obj1 = 0 ;
20291 char * kwnames[] = {
20292 (char *) "self",(char *) "forward", NULL
20293 };
20294
20295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20297 if (!SWIG_IsOK(res1)) {
20298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20299 }
20300 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20301 if (obj1) {
20302 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20303 if (!SWIG_IsOK(ecode2)) {
20304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20305 }
20306 arg2 = static_cast< bool >(val2);
20307 }
20308 {
20309 PyThreadState* __tstate = wxPyBeginAllowThreads();
20310 (arg1)->AdvanceSelection(arg2);
20311 wxPyEndAllowThreads(__tstate);
20312 if (PyErr_Occurred()) SWIG_fail;
20313 }
20314 resultobj = SWIG_Py_Void();
20315 return resultobj;
20316 fail:
20317 return NULL;
20318 }
20319
20320
20321 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20322 PyObject *resultobj = 0;
20323 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20324 wxPoint *arg2 = 0 ;
20325 long *arg3 = (long *) 0 ;
20326 int result;
20327 void *argp1 = 0 ;
20328 int res1 = 0 ;
20329 wxPoint temp2 ;
20330 long temp3 ;
20331 int res3 = SWIG_TMPOBJ ;
20332 PyObject * obj0 = 0 ;
20333 PyObject * obj1 = 0 ;
20334 char * kwnames[] = {
20335 (char *) "self",(char *) "pt", NULL
20336 };
20337
20338 arg3 = &temp3;
20339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20341 if (!SWIG_IsOK(res1)) {
20342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20343 }
20344 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20345 {
20346 arg2 = &temp2;
20347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20348 }
20349 {
20350 PyThreadState* __tstate = wxPyBeginAllowThreads();
20351 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20352 wxPyEndAllowThreads(__tstate);
20353 if (PyErr_Occurred()) SWIG_fail;
20354 }
20355 resultobj = SWIG_From_int(static_cast< int >(result));
20356 if (SWIG_IsTmpObj(res3)) {
20357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20358 } else {
20359 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20361 }
20362 return resultobj;
20363 fail:
20364 return NULL;
20365 }
20366
20367
20368 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20369 PyObject *resultobj = 0;
20370 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20371 SwigValueWrapper<wxVisualAttributes > result;
20372 int val1 ;
20373 int ecode1 = 0 ;
20374 PyObject * obj0 = 0 ;
20375 char * kwnames[] = {
20376 (char *) "variant", NULL
20377 };
20378
20379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20380 if (obj0) {
20381 ecode1 = SWIG_AsVal_int(obj0, &val1);
20382 if (!SWIG_IsOK(ecode1)) {
20383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20384 }
20385 arg1 = static_cast< wxWindowVariant >(val1);
20386 }
20387 {
20388 if (!wxPyCheckForApp()) SWIG_fail;
20389 PyThreadState* __tstate = wxPyBeginAllowThreads();
20390 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20391 wxPyEndAllowThreads(__tstate);
20392 if (PyErr_Occurred()) SWIG_fail;
20393 }
20394 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20395 return resultobj;
20396 fail:
20397 return NULL;
20398 }
20399
20400
20401 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20402 PyObject *obj;
20403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20404 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20405 return SWIG_Py_Void();
20406 }
20407
20408 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20409 PyObject *resultobj = 0;
20410 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20411 int arg2 = (int) 0 ;
20412 int arg3 = (int) -1 ;
20413 int arg4 = (int) -1 ;
20414 wxBookCtrlBaseEvent *result = 0 ;
20415 int val1 ;
20416 int ecode1 = 0 ;
20417 int val2 ;
20418 int ecode2 = 0 ;
20419 int val3 ;
20420 int ecode3 = 0 ;
20421 int val4 ;
20422 int ecode4 = 0 ;
20423 PyObject * obj0 = 0 ;
20424 PyObject * obj1 = 0 ;
20425 PyObject * obj2 = 0 ;
20426 PyObject * obj3 = 0 ;
20427 char * kwnames[] = {
20428 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20429 };
20430
20431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20432 if (obj0) {
20433 ecode1 = SWIG_AsVal_int(obj0, &val1);
20434 if (!SWIG_IsOK(ecode1)) {
20435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20436 }
20437 arg1 = static_cast< wxEventType >(val1);
20438 }
20439 if (obj1) {
20440 ecode2 = SWIG_AsVal_int(obj1, &val2);
20441 if (!SWIG_IsOK(ecode2)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20443 }
20444 arg2 = static_cast< int >(val2);
20445 }
20446 if (obj2) {
20447 ecode3 = SWIG_AsVal_int(obj2, &val3);
20448 if (!SWIG_IsOK(ecode3)) {
20449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20450 }
20451 arg3 = static_cast< int >(val3);
20452 }
20453 if (obj3) {
20454 ecode4 = SWIG_AsVal_int(obj3, &val4);
20455 if (!SWIG_IsOK(ecode4)) {
20456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20457 }
20458 arg4 = static_cast< int >(val4);
20459 }
20460 {
20461 PyThreadState* __tstate = wxPyBeginAllowThreads();
20462 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20463 wxPyEndAllowThreads(__tstate);
20464 if (PyErr_Occurred()) SWIG_fail;
20465 }
20466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20467 return resultobj;
20468 fail:
20469 return NULL;
20470 }
20471
20472
20473 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20474 PyObject *resultobj = 0;
20475 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20476 int result;
20477 void *argp1 = 0 ;
20478 int res1 = 0 ;
20479 PyObject *swig_obj[1] ;
20480
20481 if (!args) SWIG_fail;
20482 swig_obj[0] = args;
20483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20484 if (!SWIG_IsOK(res1)) {
20485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20486 }
20487 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20488 {
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = SWIG_From_int(static_cast< int >(result));
20495 return resultobj;
20496 fail:
20497 return NULL;
20498 }
20499
20500
20501 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20502 PyObject *resultobj = 0;
20503 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20504 int arg2 ;
20505 void *argp1 = 0 ;
20506 int res1 = 0 ;
20507 int val2 ;
20508 int ecode2 = 0 ;
20509 PyObject * obj0 = 0 ;
20510 PyObject * obj1 = 0 ;
20511 char * kwnames[] = {
20512 (char *) "self",(char *) "nSel", NULL
20513 };
20514
20515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20517 if (!SWIG_IsOK(res1)) {
20518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20519 }
20520 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20521 ecode2 = SWIG_AsVal_int(obj1, &val2);
20522 if (!SWIG_IsOK(ecode2)) {
20523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20524 }
20525 arg2 = static_cast< int >(val2);
20526 {
20527 PyThreadState* __tstate = wxPyBeginAllowThreads();
20528 (arg1)->SetSelection(arg2);
20529 wxPyEndAllowThreads(__tstate);
20530 if (PyErr_Occurred()) SWIG_fail;
20531 }
20532 resultobj = SWIG_Py_Void();
20533 return resultobj;
20534 fail:
20535 return NULL;
20536 }
20537
20538
20539 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20540 PyObject *resultobj = 0;
20541 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20542 int result;
20543 void *argp1 = 0 ;
20544 int res1 = 0 ;
20545 PyObject *swig_obj[1] ;
20546
20547 if (!args) SWIG_fail;
20548 swig_obj[0] = args;
20549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20550 if (!SWIG_IsOK(res1)) {
20551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20552 }
20553 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20554 {
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20557 wxPyEndAllowThreads(__tstate);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 }
20560 resultobj = SWIG_From_int(static_cast< int >(result));
20561 return resultobj;
20562 fail:
20563 return NULL;
20564 }
20565
20566
20567 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20568 PyObject *resultobj = 0;
20569 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20570 int arg2 ;
20571 void *argp1 = 0 ;
20572 int res1 = 0 ;
20573 int val2 ;
20574 int ecode2 = 0 ;
20575 PyObject * obj0 = 0 ;
20576 PyObject * obj1 = 0 ;
20577 char * kwnames[] = {
20578 (char *) "self",(char *) "nOldSel", NULL
20579 };
20580
20581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20583 if (!SWIG_IsOK(res1)) {
20584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20585 }
20586 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20587 ecode2 = SWIG_AsVal_int(obj1, &val2);
20588 if (!SWIG_IsOK(ecode2)) {
20589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20590 }
20591 arg2 = static_cast< int >(val2);
20592 {
20593 PyThreadState* __tstate = wxPyBeginAllowThreads();
20594 (arg1)->SetOldSelection(arg2);
20595 wxPyEndAllowThreads(__tstate);
20596 if (PyErr_Occurred()) SWIG_fail;
20597 }
20598 resultobj = SWIG_Py_Void();
20599 return resultobj;
20600 fail:
20601 return NULL;
20602 }
20603
20604
20605 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 PyObject *obj;
20607 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20608 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20609 return SWIG_Py_Void();
20610 }
20611
20612 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20613 return SWIG_Python_InitShadowInstance(args);
20614 }
20615
20616 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj = 0;
20618 wxWindow *arg1 = (wxWindow *) 0 ;
20619 int arg2 = (int) -1 ;
20620 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20621 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20622 wxSize const &arg4_defvalue = wxDefaultSize ;
20623 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20624 long arg5 = (long) 0 ;
20625 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20626 wxString *arg6 = (wxString *) &arg6_defvalue ;
20627 wxNotebook *result = 0 ;
20628 void *argp1 = 0 ;
20629 int res1 = 0 ;
20630 int val2 ;
20631 int ecode2 = 0 ;
20632 wxPoint temp3 ;
20633 wxSize temp4 ;
20634 long val5 ;
20635 int ecode5 = 0 ;
20636 bool temp6 = false ;
20637 PyObject * obj0 = 0 ;
20638 PyObject * obj1 = 0 ;
20639 PyObject * obj2 = 0 ;
20640 PyObject * obj3 = 0 ;
20641 PyObject * obj4 = 0 ;
20642 PyObject * obj5 = 0 ;
20643 char * kwnames[] = {
20644 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20645 };
20646
20647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20649 if (!SWIG_IsOK(res1)) {
20650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20651 }
20652 arg1 = reinterpret_cast< wxWindow * >(argp1);
20653 if (obj1) {
20654 ecode2 = SWIG_AsVal_int(obj1, &val2);
20655 if (!SWIG_IsOK(ecode2)) {
20656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20657 }
20658 arg2 = static_cast< int >(val2);
20659 }
20660 if (obj2) {
20661 {
20662 arg3 = &temp3;
20663 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20664 }
20665 }
20666 if (obj3) {
20667 {
20668 arg4 = &temp4;
20669 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20670 }
20671 }
20672 if (obj4) {
20673 ecode5 = SWIG_AsVal_long(obj4, &val5);
20674 if (!SWIG_IsOK(ecode5)) {
20675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20676 }
20677 arg5 = static_cast< long >(val5);
20678 }
20679 if (obj5) {
20680 {
20681 arg6 = wxString_in_helper(obj5);
20682 if (arg6 == NULL) SWIG_fail;
20683 temp6 = true;
20684 }
20685 }
20686 {
20687 if (!wxPyCheckForApp()) SWIG_fail;
20688 PyThreadState* __tstate = wxPyBeginAllowThreads();
20689 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20690 wxPyEndAllowThreads(__tstate);
20691 if (PyErr_Occurred()) SWIG_fail;
20692 }
20693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20694 {
20695 if (temp6)
20696 delete arg6;
20697 }
20698 return resultobj;
20699 fail:
20700 {
20701 if (temp6)
20702 delete arg6;
20703 }
20704 return NULL;
20705 }
20706
20707
20708 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20709 PyObject *resultobj = 0;
20710 wxNotebook *result = 0 ;
20711
20712 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20713 {
20714 if (!wxPyCheckForApp()) SWIG_fail;
20715 PyThreadState* __tstate = wxPyBeginAllowThreads();
20716 result = (wxNotebook *)new wxNotebook();
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20728 PyObject *resultobj = 0;
20729 wxNotebook *arg1 = (wxNotebook *) 0 ;
20730 wxWindow *arg2 = (wxWindow *) 0 ;
20731 int arg3 = (int) -1 ;
20732 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20733 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20734 wxSize const &arg5_defvalue = wxDefaultSize ;
20735 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20736 long arg6 = (long) 0 ;
20737 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20738 wxString *arg7 = (wxString *) &arg7_defvalue ;
20739 bool result;
20740 void *argp1 = 0 ;
20741 int res1 = 0 ;
20742 void *argp2 = 0 ;
20743 int res2 = 0 ;
20744 int val3 ;
20745 int ecode3 = 0 ;
20746 wxPoint temp4 ;
20747 wxSize temp5 ;
20748 long val6 ;
20749 int ecode6 = 0 ;
20750 bool temp7 = false ;
20751 PyObject * obj0 = 0 ;
20752 PyObject * obj1 = 0 ;
20753 PyObject * obj2 = 0 ;
20754 PyObject * obj3 = 0 ;
20755 PyObject * obj4 = 0 ;
20756 PyObject * obj5 = 0 ;
20757 PyObject * obj6 = 0 ;
20758 char * kwnames[] = {
20759 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20760 };
20761
20762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20764 if (!SWIG_IsOK(res1)) {
20765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20766 }
20767 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20768 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20769 if (!SWIG_IsOK(res2)) {
20770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20771 }
20772 arg2 = reinterpret_cast< wxWindow * >(argp2);
20773 if (obj2) {
20774 ecode3 = SWIG_AsVal_int(obj2, &val3);
20775 if (!SWIG_IsOK(ecode3)) {
20776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20777 }
20778 arg3 = static_cast< int >(val3);
20779 }
20780 if (obj3) {
20781 {
20782 arg4 = &temp4;
20783 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20784 }
20785 }
20786 if (obj4) {
20787 {
20788 arg5 = &temp5;
20789 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20790 }
20791 }
20792 if (obj5) {
20793 ecode6 = SWIG_AsVal_long(obj5, &val6);
20794 if (!SWIG_IsOK(ecode6)) {
20795 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20796 }
20797 arg6 = static_cast< long >(val6);
20798 }
20799 if (obj6) {
20800 {
20801 arg7 = wxString_in_helper(obj6);
20802 if (arg7 == NULL) SWIG_fail;
20803 temp7 = true;
20804 }
20805 }
20806 {
20807 PyThreadState* __tstate = wxPyBeginAllowThreads();
20808 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20809 wxPyEndAllowThreads(__tstate);
20810 if (PyErr_Occurred()) SWIG_fail;
20811 }
20812 {
20813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20814 }
20815 {
20816 if (temp7)
20817 delete arg7;
20818 }
20819 return resultobj;
20820 fail:
20821 {
20822 if (temp7)
20823 delete arg7;
20824 }
20825 return NULL;
20826 }
20827
20828
20829 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20830 PyObject *resultobj = 0;
20831 wxNotebook *arg1 = (wxNotebook *) 0 ;
20832 int result;
20833 void *argp1 = 0 ;
20834 int res1 = 0 ;
20835 PyObject *swig_obj[1] ;
20836
20837 if (!args) SWIG_fail;
20838 swig_obj[0] = args;
20839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20840 if (!SWIG_IsOK(res1)) {
20841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20842 }
20843 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20844 {
20845 PyThreadState* __tstate = wxPyBeginAllowThreads();
20846 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20847 wxPyEndAllowThreads(__tstate);
20848 if (PyErr_Occurred()) SWIG_fail;
20849 }
20850 resultobj = SWIG_From_int(static_cast< int >(result));
20851 return resultobj;
20852 fail:
20853 return NULL;
20854 }
20855
20856
20857 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20858 PyObject *resultobj = 0;
20859 wxNotebook *arg1 = (wxNotebook *) 0 ;
20860 wxSize *arg2 = 0 ;
20861 void *argp1 = 0 ;
20862 int res1 = 0 ;
20863 wxSize temp2 ;
20864 PyObject * obj0 = 0 ;
20865 PyObject * obj1 = 0 ;
20866 char * kwnames[] = {
20867 (char *) "self",(char *) "padding", NULL
20868 };
20869
20870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20872 if (!SWIG_IsOK(res1)) {
20873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20874 }
20875 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20876 {
20877 arg2 = &temp2;
20878 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20879 }
20880 {
20881 PyThreadState* __tstate = wxPyBeginAllowThreads();
20882 (arg1)->SetPadding((wxSize const &)*arg2);
20883 wxPyEndAllowThreads(__tstate);
20884 if (PyErr_Occurred()) SWIG_fail;
20885 }
20886 resultobj = SWIG_Py_Void();
20887 return resultobj;
20888 fail:
20889 return NULL;
20890 }
20891
20892
20893 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20894 PyObject *resultobj = 0;
20895 wxNotebook *arg1 = (wxNotebook *) 0 ;
20896 wxSize *arg2 = 0 ;
20897 void *argp1 = 0 ;
20898 int res1 = 0 ;
20899 wxSize temp2 ;
20900 PyObject * obj0 = 0 ;
20901 PyObject * obj1 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "self",(char *) "sz", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20910 }
20911 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20912 {
20913 arg2 = &temp2;
20914 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20915 }
20916 {
20917 PyThreadState* __tstate = wxPyBeginAllowThreads();
20918 (arg1)->SetTabSize((wxSize const &)*arg2);
20919 wxPyEndAllowThreads(__tstate);
20920 if (PyErr_Occurred()) SWIG_fail;
20921 }
20922 resultobj = SWIG_Py_Void();
20923 return resultobj;
20924 fail:
20925 return NULL;
20926 }
20927
20928
20929 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20930 PyObject *resultobj = 0;
20931 wxNotebook *arg1 = (wxNotebook *) 0 ;
20932 wxColour result;
20933 void *argp1 = 0 ;
20934 int res1 = 0 ;
20935 PyObject *swig_obj[1] ;
20936
20937 if (!args) SWIG_fail;
20938 swig_obj[0] = args;
20939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20940 if (!SWIG_IsOK(res1)) {
20941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20942 }
20943 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20944 {
20945 PyThreadState* __tstate = wxPyBeginAllowThreads();
20946 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20947 wxPyEndAllowThreads(__tstate);
20948 if (PyErr_Occurred()) SWIG_fail;
20949 }
20950 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20951 return resultobj;
20952 fail:
20953 return NULL;
20954 }
20955
20956
20957 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20958 PyObject *resultobj = 0;
20959 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20960 SwigValueWrapper<wxVisualAttributes > result;
20961 int val1 ;
20962 int ecode1 = 0 ;
20963 PyObject * obj0 = 0 ;
20964 char * kwnames[] = {
20965 (char *) "variant", NULL
20966 };
20967
20968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20969 if (obj0) {
20970 ecode1 = SWIG_AsVal_int(obj0, &val1);
20971 if (!SWIG_IsOK(ecode1)) {
20972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20973 }
20974 arg1 = static_cast< wxWindowVariant >(val1);
20975 }
20976 {
20977 if (!wxPyCheckForApp()) SWIG_fail;
20978 PyThreadState* __tstate = wxPyBeginAllowThreads();
20979 result = wxNotebook::GetClassDefaultAttributes(arg1);
20980 wxPyEndAllowThreads(__tstate);
20981 if (PyErr_Occurred()) SWIG_fail;
20982 }
20983 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20984 return resultobj;
20985 fail:
20986 return NULL;
20987 }
20988
20989
20990 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20991 PyObject *resultobj = 0;
20992 wxNotebook *arg1 = (wxNotebook *) 0 ;
20993 int arg2 ;
20994 bool result;
20995 void *argp1 = 0 ;
20996 int res1 = 0 ;
20997 int val2 ;
20998 int ecode2 = 0 ;
20999 PyObject * obj0 = 0 ;
21000 PyObject * obj1 = 0 ;
21001 char * kwnames[] = {
21002 (char *) "self",(char *) "nPage", NULL
21003 };
21004
21005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21007 if (!SWIG_IsOK(res1)) {
21008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21009 }
21010 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21011 ecode2 = SWIG_AsVal_int(obj1, &val2);
21012 if (!SWIG_IsOK(ecode2)) {
21013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21014 }
21015 arg2 = static_cast< int >(val2);
21016 {
21017 PyThreadState* __tstate = wxPyBeginAllowThreads();
21018 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 {
21023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21024 }
21025 return resultobj;
21026 fail:
21027 return NULL;
21028 }
21029
21030
21031 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21032 PyObject *resultobj = 0;
21033 wxNotebook *arg1 = (wxNotebook *) 0 ;
21034 int arg2 ;
21035 int arg3 = (int) -1 ;
21036 void *argp1 = 0 ;
21037 int res1 = 0 ;
21038 int val2 ;
21039 int ecode2 = 0 ;
21040 int val3 ;
21041 int ecode3 = 0 ;
21042 PyObject * obj0 = 0 ;
21043 PyObject * obj1 = 0 ;
21044 PyObject * obj2 = 0 ;
21045 char * kwnames[] = {
21046 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21047 };
21048
21049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21051 if (!SWIG_IsOK(res1)) {
21052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21053 }
21054 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21055 ecode2 = SWIG_AsVal_int(obj1, &val2);
21056 if (!SWIG_IsOK(ecode2)) {
21057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21058 }
21059 arg2 = static_cast< int >(val2);
21060 if (obj2) {
21061 ecode3 = SWIG_AsVal_int(obj2, &val3);
21062 if (!SWIG_IsOK(ecode3)) {
21063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21064 }
21065 arg3 = static_cast< int >(val3);
21066 }
21067 {
21068 PyThreadState* __tstate = wxPyBeginAllowThreads();
21069 (arg1)->SendPageChangedEvent(arg2,arg3);
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 resultobj = SWIG_Py_Void();
21074 return resultobj;
21075 fail:
21076 return NULL;
21077 }
21078
21079
21080 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21081 PyObject *obj;
21082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21083 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21084 return SWIG_Py_Void();
21085 }
21086
21087 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21088 return SWIG_Python_InitShadowInstance(args);
21089 }
21090
21091 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21092 PyObject *resultobj = 0;
21093 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21094 int arg2 = (int) 0 ;
21095 int arg3 = (int) -1 ;
21096 int arg4 = (int) -1 ;
21097 wxNotebookEvent *result = 0 ;
21098 int val1 ;
21099 int ecode1 = 0 ;
21100 int val2 ;
21101 int ecode2 = 0 ;
21102 int val3 ;
21103 int ecode3 = 0 ;
21104 int val4 ;
21105 int ecode4 = 0 ;
21106 PyObject * obj0 = 0 ;
21107 PyObject * obj1 = 0 ;
21108 PyObject * obj2 = 0 ;
21109 PyObject * obj3 = 0 ;
21110 char * kwnames[] = {
21111 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21112 };
21113
21114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21115 if (obj0) {
21116 ecode1 = SWIG_AsVal_int(obj0, &val1);
21117 if (!SWIG_IsOK(ecode1)) {
21118 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21119 }
21120 arg1 = static_cast< wxEventType >(val1);
21121 }
21122 if (obj1) {
21123 ecode2 = SWIG_AsVal_int(obj1, &val2);
21124 if (!SWIG_IsOK(ecode2)) {
21125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21126 }
21127 arg2 = static_cast< int >(val2);
21128 }
21129 if (obj2) {
21130 ecode3 = SWIG_AsVal_int(obj2, &val3);
21131 if (!SWIG_IsOK(ecode3)) {
21132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21133 }
21134 arg3 = static_cast< int >(val3);
21135 }
21136 if (obj3) {
21137 ecode4 = SWIG_AsVal_int(obj3, &val4);
21138 if (!SWIG_IsOK(ecode4)) {
21139 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21140 }
21141 arg4 = static_cast< int >(val4);
21142 }
21143 {
21144 PyThreadState* __tstate = wxPyBeginAllowThreads();
21145 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21146 wxPyEndAllowThreads(__tstate);
21147 if (PyErr_Occurred()) SWIG_fail;
21148 }
21149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21150 return resultobj;
21151 fail:
21152 return NULL;
21153 }
21154
21155
21156 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21157 PyObject *obj;
21158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21159 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21160 return SWIG_Py_Void();
21161 }
21162
21163 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21164 return SWIG_Python_InitShadowInstance(args);
21165 }
21166
21167 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21168 PyObject *resultobj = 0;
21169 wxWindow *arg1 = (wxWindow *) 0 ;
21170 int arg2 = (int) -1 ;
21171 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21172 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21173 wxSize const &arg4_defvalue = wxDefaultSize ;
21174 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21175 long arg5 = (long) 0 ;
21176 wxString const &arg6_defvalue = wxPyEmptyString ;
21177 wxString *arg6 = (wxString *) &arg6_defvalue ;
21178 wxListbook *result = 0 ;
21179 void *argp1 = 0 ;
21180 int res1 = 0 ;
21181 int val2 ;
21182 int ecode2 = 0 ;
21183 wxPoint temp3 ;
21184 wxSize temp4 ;
21185 long val5 ;
21186 int ecode5 = 0 ;
21187 bool temp6 = false ;
21188 PyObject * obj0 = 0 ;
21189 PyObject * obj1 = 0 ;
21190 PyObject * obj2 = 0 ;
21191 PyObject * obj3 = 0 ;
21192 PyObject * obj4 = 0 ;
21193 PyObject * obj5 = 0 ;
21194 char * kwnames[] = {
21195 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21196 };
21197
21198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21200 if (!SWIG_IsOK(res1)) {
21201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21202 }
21203 arg1 = reinterpret_cast< wxWindow * >(argp1);
21204 if (obj1) {
21205 ecode2 = SWIG_AsVal_int(obj1, &val2);
21206 if (!SWIG_IsOK(ecode2)) {
21207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21208 }
21209 arg2 = static_cast< int >(val2);
21210 }
21211 if (obj2) {
21212 {
21213 arg3 = &temp3;
21214 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21215 }
21216 }
21217 if (obj3) {
21218 {
21219 arg4 = &temp4;
21220 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21221 }
21222 }
21223 if (obj4) {
21224 ecode5 = SWIG_AsVal_long(obj4, &val5);
21225 if (!SWIG_IsOK(ecode5)) {
21226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21227 }
21228 arg5 = static_cast< long >(val5);
21229 }
21230 if (obj5) {
21231 {
21232 arg6 = wxString_in_helper(obj5);
21233 if (arg6 == NULL) SWIG_fail;
21234 temp6 = true;
21235 }
21236 }
21237 {
21238 if (!wxPyCheckForApp()) SWIG_fail;
21239 PyThreadState* __tstate = wxPyBeginAllowThreads();
21240 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21241 wxPyEndAllowThreads(__tstate);
21242 if (PyErr_Occurred()) SWIG_fail;
21243 }
21244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21245 {
21246 if (temp6)
21247 delete arg6;
21248 }
21249 return resultobj;
21250 fail:
21251 {
21252 if (temp6)
21253 delete arg6;
21254 }
21255 return NULL;
21256 }
21257
21258
21259 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21260 PyObject *resultobj = 0;
21261 wxListbook *result = 0 ;
21262
21263 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21264 {
21265 if (!wxPyCheckForApp()) SWIG_fail;
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 result = (wxListbook *)new wxListbook();
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21272 return resultobj;
21273 fail:
21274 return NULL;
21275 }
21276
21277
21278 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21279 PyObject *resultobj = 0;
21280 wxListbook *arg1 = (wxListbook *) 0 ;
21281 wxWindow *arg2 = (wxWindow *) 0 ;
21282 int arg3 = (int) -1 ;
21283 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21284 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21285 wxSize const &arg5_defvalue = wxDefaultSize ;
21286 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21287 long arg6 = (long) 0 ;
21288 wxString const &arg7_defvalue = wxPyEmptyString ;
21289 wxString *arg7 = (wxString *) &arg7_defvalue ;
21290 bool result;
21291 void *argp1 = 0 ;
21292 int res1 = 0 ;
21293 void *argp2 = 0 ;
21294 int res2 = 0 ;
21295 int val3 ;
21296 int ecode3 = 0 ;
21297 wxPoint temp4 ;
21298 wxSize temp5 ;
21299 long val6 ;
21300 int ecode6 = 0 ;
21301 bool temp7 = false ;
21302 PyObject * obj0 = 0 ;
21303 PyObject * obj1 = 0 ;
21304 PyObject * obj2 = 0 ;
21305 PyObject * obj3 = 0 ;
21306 PyObject * obj4 = 0 ;
21307 PyObject * obj5 = 0 ;
21308 PyObject * obj6 = 0 ;
21309 char * kwnames[] = {
21310 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21311 };
21312
21313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21315 if (!SWIG_IsOK(res1)) {
21316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21317 }
21318 arg1 = reinterpret_cast< wxListbook * >(argp1);
21319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21320 if (!SWIG_IsOK(res2)) {
21321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21322 }
21323 arg2 = reinterpret_cast< wxWindow * >(argp2);
21324 if (obj2) {
21325 ecode3 = SWIG_AsVal_int(obj2, &val3);
21326 if (!SWIG_IsOK(ecode3)) {
21327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21328 }
21329 arg3 = static_cast< int >(val3);
21330 }
21331 if (obj3) {
21332 {
21333 arg4 = &temp4;
21334 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21335 }
21336 }
21337 if (obj4) {
21338 {
21339 arg5 = &temp5;
21340 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21341 }
21342 }
21343 if (obj5) {
21344 ecode6 = SWIG_AsVal_long(obj5, &val6);
21345 if (!SWIG_IsOK(ecode6)) {
21346 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21347 }
21348 arg6 = static_cast< long >(val6);
21349 }
21350 if (obj6) {
21351 {
21352 arg7 = wxString_in_helper(obj6);
21353 if (arg7 == NULL) SWIG_fail;
21354 temp7 = true;
21355 }
21356 }
21357 {
21358 PyThreadState* __tstate = wxPyBeginAllowThreads();
21359 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21360 wxPyEndAllowThreads(__tstate);
21361 if (PyErr_Occurred()) SWIG_fail;
21362 }
21363 {
21364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21365 }
21366 {
21367 if (temp7)
21368 delete arg7;
21369 }
21370 return resultobj;
21371 fail:
21372 {
21373 if (temp7)
21374 delete arg7;
21375 }
21376 return NULL;
21377 }
21378
21379
21380 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21381 PyObject *resultobj = 0;
21382 wxListbook *arg1 = (wxListbook *) 0 ;
21383 wxListView *result = 0 ;
21384 void *argp1 = 0 ;
21385 int res1 = 0 ;
21386 PyObject *swig_obj[1] ;
21387
21388 if (!args) SWIG_fail;
21389 swig_obj[0] = args;
21390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21391 if (!SWIG_IsOK(res1)) {
21392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21393 }
21394 arg1 = reinterpret_cast< wxListbook * >(argp1);
21395 {
21396 PyThreadState* __tstate = wxPyBeginAllowThreads();
21397 result = (wxListView *)(arg1)->GetListView();
21398 wxPyEndAllowThreads(__tstate);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 }
21401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21402 return resultobj;
21403 fail:
21404 return NULL;
21405 }
21406
21407
21408 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21409 PyObject *obj;
21410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21411 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21412 return SWIG_Py_Void();
21413 }
21414
21415 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21416 return SWIG_Python_InitShadowInstance(args);
21417 }
21418
21419 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21420 PyObject *resultobj = 0;
21421 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21422 int arg2 = (int) 0 ;
21423 int arg3 = (int) -1 ;
21424 int arg4 = (int) -1 ;
21425 wxListbookEvent *result = 0 ;
21426 int val1 ;
21427 int ecode1 = 0 ;
21428 int val2 ;
21429 int ecode2 = 0 ;
21430 int val3 ;
21431 int ecode3 = 0 ;
21432 int val4 ;
21433 int ecode4 = 0 ;
21434 PyObject * obj0 = 0 ;
21435 PyObject * obj1 = 0 ;
21436 PyObject * obj2 = 0 ;
21437 PyObject * obj3 = 0 ;
21438 char * kwnames[] = {
21439 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21440 };
21441
21442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21443 if (obj0) {
21444 ecode1 = SWIG_AsVal_int(obj0, &val1);
21445 if (!SWIG_IsOK(ecode1)) {
21446 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21447 }
21448 arg1 = static_cast< wxEventType >(val1);
21449 }
21450 if (obj1) {
21451 ecode2 = SWIG_AsVal_int(obj1, &val2);
21452 if (!SWIG_IsOK(ecode2)) {
21453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21454 }
21455 arg2 = static_cast< int >(val2);
21456 }
21457 if (obj2) {
21458 ecode3 = SWIG_AsVal_int(obj2, &val3);
21459 if (!SWIG_IsOK(ecode3)) {
21460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21461 }
21462 arg3 = static_cast< int >(val3);
21463 }
21464 if (obj3) {
21465 ecode4 = SWIG_AsVal_int(obj3, &val4);
21466 if (!SWIG_IsOK(ecode4)) {
21467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21468 }
21469 arg4 = static_cast< int >(val4);
21470 }
21471 {
21472 PyThreadState* __tstate = wxPyBeginAllowThreads();
21473 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21474 wxPyEndAllowThreads(__tstate);
21475 if (PyErr_Occurred()) SWIG_fail;
21476 }
21477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21478 return resultobj;
21479 fail:
21480 return NULL;
21481 }
21482
21483
21484 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21485 PyObject *obj;
21486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21487 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21488 return SWIG_Py_Void();
21489 }
21490
21491 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21492 return SWIG_Python_InitShadowInstance(args);
21493 }
21494
21495 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21496 PyObject *resultobj = 0;
21497 wxWindow *arg1 = (wxWindow *) 0 ;
21498 int arg2 ;
21499 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21500 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21501 wxSize const &arg4_defvalue = wxDefaultSize ;
21502 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21503 long arg5 = (long) 0 ;
21504 wxString const &arg6_defvalue = wxPyEmptyString ;
21505 wxString *arg6 = (wxString *) &arg6_defvalue ;
21506 wxChoicebook *result = 0 ;
21507 void *argp1 = 0 ;
21508 int res1 = 0 ;
21509 int val2 ;
21510 int ecode2 = 0 ;
21511 wxPoint temp3 ;
21512 wxSize temp4 ;
21513 long val5 ;
21514 int ecode5 = 0 ;
21515 bool temp6 = false ;
21516 PyObject * obj0 = 0 ;
21517 PyObject * obj1 = 0 ;
21518 PyObject * obj2 = 0 ;
21519 PyObject * obj3 = 0 ;
21520 PyObject * obj4 = 0 ;
21521 PyObject * obj5 = 0 ;
21522 char * kwnames[] = {
21523 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21524 };
21525
21526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21528 if (!SWIG_IsOK(res1)) {
21529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21530 }
21531 arg1 = reinterpret_cast< wxWindow * >(argp1);
21532 ecode2 = SWIG_AsVal_int(obj1, &val2);
21533 if (!SWIG_IsOK(ecode2)) {
21534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21535 }
21536 arg2 = static_cast< int >(val2);
21537 if (obj2) {
21538 {
21539 arg3 = &temp3;
21540 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21541 }
21542 }
21543 if (obj3) {
21544 {
21545 arg4 = &temp4;
21546 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21547 }
21548 }
21549 if (obj4) {
21550 ecode5 = SWIG_AsVal_long(obj4, &val5);
21551 if (!SWIG_IsOK(ecode5)) {
21552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21553 }
21554 arg5 = static_cast< long >(val5);
21555 }
21556 if (obj5) {
21557 {
21558 arg6 = wxString_in_helper(obj5);
21559 if (arg6 == NULL) SWIG_fail;
21560 temp6 = true;
21561 }
21562 }
21563 {
21564 if (!wxPyCheckForApp()) SWIG_fail;
21565 PyThreadState* __tstate = wxPyBeginAllowThreads();
21566 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21567 wxPyEndAllowThreads(__tstate);
21568 if (PyErr_Occurred()) SWIG_fail;
21569 }
21570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21571 {
21572 if (temp6)
21573 delete arg6;
21574 }
21575 return resultobj;
21576 fail:
21577 {
21578 if (temp6)
21579 delete arg6;
21580 }
21581 return NULL;
21582 }
21583
21584
21585 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21586 PyObject *resultobj = 0;
21587 wxChoicebook *result = 0 ;
21588
21589 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21590 {
21591 if (!wxPyCheckForApp()) SWIG_fail;
21592 PyThreadState* __tstate = wxPyBeginAllowThreads();
21593 result = (wxChoicebook *)new wxChoicebook();
21594 wxPyEndAllowThreads(__tstate);
21595 if (PyErr_Occurred()) SWIG_fail;
21596 }
21597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21598 return resultobj;
21599 fail:
21600 return NULL;
21601 }
21602
21603
21604 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21605 PyObject *resultobj = 0;
21606 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21607 wxWindow *arg2 = (wxWindow *) 0 ;
21608 int arg3 ;
21609 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21610 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21611 wxSize const &arg5_defvalue = wxDefaultSize ;
21612 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21613 long arg6 = (long) 0 ;
21614 wxString const &arg7_defvalue = wxPyEmptyString ;
21615 wxString *arg7 = (wxString *) &arg7_defvalue ;
21616 bool result;
21617 void *argp1 = 0 ;
21618 int res1 = 0 ;
21619 void *argp2 = 0 ;
21620 int res2 = 0 ;
21621 int val3 ;
21622 int ecode3 = 0 ;
21623 wxPoint temp4 ;
21624 wxSize temp5 ;
21625 long val6 ;
21626 int ecode6 = 0 ;
21627 bool temp7 = false ;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 PyObject * obj2 = 0 ;
21631 PyObject * obj3 = 0 ;
21632 PyObject * obj4 = 0 ;
21633 PyObject * obj5 = 0 ;
21634 PyObject * obj6 = 0 ;
21635 char * kwnames[] = {
21636 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21637 };
21638
21639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21641 if (!SWIG_IsOK(res1)) {
21642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21643 }
21644 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21645 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21646 if (!SWIG_IsOK(res2)) {
21647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21648 }
21649 arg2 = reinterpret_cast< wxWindow * >(argp2);
21650 ecode3 = SWIG_AsVal_int(obj2, &val3);
21651 if (!SWIG_IsOK(ecode3)) {
21652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21653 }
21654 arg3 = static_cast< int >(val3);
21655 if (obj3) {
21656 {
21657 arg4 = &temp4;
21658 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21659 }
21660 }
21661 if (obj4) {
21662 {
21663 arg5 = &temp5;
21664 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21665 }
21666 }
21667 if (obj5) {
21668 ecode6 = SWIG_AsVal_long(obj5, &val6);
21669 if (!SWIG_IsOK(ecode6)) {
21670 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21671 }
21672 arg6 = static_cast< long >(val6);
21673 }
21674 if (obj6) {
21675 {
21676 arg7 = wxString_in_helper(obj6);
21677 if (arg7 == NULL) SWIG_fail;
21678 temp7 = true;
21679 }
21680 }
21681 {
21682 PyThreadState* __tstate = wxPyBeginAllowThreads();
21683 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21684 wxPyEndAllowThreads(__tstate);
21685 if (PyErr_Occurred()) SWIG_fail;
21686 }
21687 {
21688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21689 }
21690 {
21691 if (temp7)
21692 delete arg7;
21693 }
21694 return resultobj;
21695 fail:
21696 {
21697 if (temp7)
21698 delete arg7;
21699 }
21700 return NULL;
21701 }
21702
21703
21704 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21705 PyObject *resultobj = 0;
21706 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21707 wxChoice *result = 0 ;
21708 void *argp1 = 0 ;
21709 int res1 = 0 ;
21710 PyObject *swig_obj[1] ;
21711
21712 if (!args) SWIG_fail;
21713 swig_obj[0] = args;
21714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21717 }
21718 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21719 {
21720 PyThreadState* __tstate = wxPyBeginAllowThreads();
21721 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21722 wxPyEndAllowThreads(__tstate);
21723 if (PyErr_Occurred()) SWIG_fail;
21724 }
21725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21726 return resultobj;
21727 fail:
21728 return NULL;
21729 }
21730
21731
21732 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21733 PyObject *obj;
21734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21735 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21736 return SWIG_Py_Void();
21737 }
21738
21739 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21740 return SWIG_Python_InitShadowInstance(args);
21741 }
21742
21743 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21744 PyObject *resultobj = 0;
21745 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21746 int arg2 = (int) 0 ;
21747 int arg3 = (int) -1 ;
21748 int arg4 = (int) -1 ;
21749 wxChoicebookEvent *result = 0 ;
21750 int val1 ;
21751 int ecode1 = 0 ;
21752 int val2 ;
21753 int ecode2 = 0 ;
21754 int val3 ;
21755 int ecode3 = 0 ;
21756 int val4 ;
21757 int ecode4 = 0 ;
21758 PyObject * obj0 = 0 ;
21759 PyObject * obj1 = 0 ;
21760 PyObject * obj2 = 0 ;
21761 PyObject * obj3 = 0 ;
21762 char * kwnames[] = {
21763 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21764 };
21765
21766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21767 if (obj0) {
21768 ecode1 = SWIG_AsVal_int(obj0, &val1);
21769 if (!SWIG_IsOK(ecode1)) {
21770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21771 }
21772 arg1 = static_cast< wxEventType >(val1);
21773 }
21774 if (obj1) {
21775 ecode2 = SWIG_AsVal_int(obj1, &val2);
21776 if (!SWIG_IsOK(ecode2)) {
21777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21778 }
21779 arg2 = static_cast< int >(val2);
21780 }
21781 if (obj2) {
21782 ecode3 = SWIG_AsVal_int(obj2, &val3);
21783 if (!SWIG_IsOK(ecode3)) {
21784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21785 }
21786 arg3 = static_cast< int >(val3);
21787 }
21788 if (obj3) {
21789 ecode4 = SWIG_AsVal_int(obj3, &val4);
21790 if (!SWIG_IsOK(ecode4)) {
21791 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21792 }
21793 arg4 = static_cast< int >(val4);
21794 }
21795 {
21796 PyThreadState* __tstate = wxPyBeginAllowThreads();
21797 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21798 wxPyEndAllowThreads(__tstate);
21799 if (PyErr_Occurred()) SWIG_fail;
21800 }
21801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21802 return resultobj;
21803 fail:
21804 return NULL;
21805 }
21806
21807
21808 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21809 PyObject *obj;
21810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21811 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21812 return SWIG_Py_Void();
21813 }
21814
21815 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21816 return SWIG_Python_InitShadowInstance(args);
21817 }
21818
21819 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21820 PyObject *resultobj = 0;
21821 wxWindow *arg1 = (wxWindow *) 0 ;
21822 int arg2 ;
21823 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21824 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21825 wxSize const &arg4_defvalue = wxDefaultSize ;
21826 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21827 long arg5 = (long) wxBK_DEFAULT ;
21828 wxString const &arg6_defvalue = wxPyEmptyString ;
21829 wxString *arg6 = (wxString *) &arg6_defvalue ;
21830 wxTreebook *result = 0 ;
21831 void *argp1 = 0 ;
21832 int res1 = 0 ;
21833 int val2 ;
21834 int ecode2 = 0 ;
21835 wxPoint temp3 ;
21836 wxSize temp4 ;
21837 long val5 ;
21838 int ecode5 = 0 ;
21839 bool temp6 = false ;
21840 PyObject * obj0 = 0 ;
21841 PyObject * obj1 = 0 ;
21842 PyObject * obj2 = 0 ;
21843 PyObject * obj3 = 0 ;
21844 PyObject * obj4 = 0 ;
21845 PyObject * obj5 = 0 ;
21846 char * kwnames[] = {
21847 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21848 };
21849
21850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21852 if (!SWIG_IsOK(res1)) {
21853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21854 }
21855 arg1 = reinterpret_cast< wxWindow * >(argp1);
21856 ecode2 = SWIG_AsVal_int(obj1, &val2);
21857 if (!SWIG_IsOK(ecode2)) {
21858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21859 }
21860 arg2 = static_cast< int >(val2);
21861 if (obj2) {
21862 {
21863 arg3 = &temp3;
21864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21865 }
21866 }
21867 if (obj3) {
21868 {
21869 arg4 = &temp4;
21870 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21871 }
21872 }
21873 if (obj4) {
21874 ecode5 = SWIG_AsVal_long(obj4, &val5);
21875 if (!SWIG_IsOK(ecode5)) {
21876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21877 }
21878 arg5 = static_cast< long >(val5);
21879 }
21880 if (obj5) {
21881 {
21882 arg6 = wxString_in_helper(obj5);
21883 if (arg6 == NULL) SWIG_fail;
21884 temp6 = true;
21885 }
21886 }
21887 {
21888 if (!wxPyCheckForApp()) SWIG_fail;
21889 PyThreadState* __tstate = wxPyBeginAllowThreads();
21890 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21891 wxPyEndAllowThreads(__tstate);
21892 if (PyErr_Occurred()) SWIG_fail;
21893 }
21894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21895 {
21896 if (temp6)
21897 delete arg6;
21898 }
21899 return resultobj;
21900 fail:
21901 {
21902 if (temp6)
21903 delete arg6;
21904 }
21905 return NULL;
21906 }
21907
21908
21909 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21910 PyObject *resultobj = 0;
21911 wxTreebook *result = 0 ;
21912
21913 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21914 {
21915 if (!wxPyCheckForApp()) SWIG_fail;
21916 PyThreadState* __tstate = wxPyBeginAllowThreads();
21917 result = (wxTreebook *)new wxTreebook();
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21922 return resultobj;
21923 fail:
21924 return NULL;
21925 }
21926
21927
21928 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21929 PyObject *resultobj = 0;
21930 wxTreebook *arg1 = (wxTreebook *) 0 ;
21931 wxWindow *arg2 = (wxWindow *) 0 ;
21932 int arg3 ;
21933 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21934 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21935 wxSize const &arg5_defvalue = wxDefaultSize ;
21936 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21937 long arg6 = (long) wxBK_DEFAULT ;
21938 wxString const &arg7_defvalue = wxPyEmptyString ;
21939 wxString *arg7 = (wxString *) &arg7_defvalue ;
21940 bool result;
21941 void *argp1 = 0 ;
21942 int res1 = 0 ;
21943 void *argp2 = 0 ;
21944 int res2 = 0 ;
21945 int val3 ;
21946 int ecode3 = 0 ;
21947 wxPoint temp4 ;
21948 wxSize temp5 ;
21949 long val6 ;
21950 int ecode6 = 0 ;
21951 bool temp7 = false ;
21952 PyObject * obj0 = 0 ;
21953 PyObject * obj1 = 0 ;
21954 PyObject * obj2 = 0 ;
21955 PyObject * obj3 = 0 ;
21956 PyObject * obj4 = 0 ;
21957 PyObject * obj5 = 0 ;
21958 PyObject * obj6 = 0 ;
21959 char * kwnames[] = {
21960 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21961 };
21962
21963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21967 }
21968 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21970 if (!SWIG_IsOK(res2)) {
21971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21972 }
21973 arg2 = reinterpret_cast< wxWindow * >(argp2);
21974 ecode3 = SWIG_AsVal_int(obj2, &val3);
21975 if (!SWIG_IsOK(ecode3)) {
21976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21977 }
21978 arg3 = static_cast< int >(val3);
21979 if (obj3) {
21980 {
21981 arg4 = &temp4;
21982 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21983 }
21984 }
21985 if (obj4) {
21986 {
21987 arg5 = &temp5;
21988 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21989 }
21990 }
21991 if (obj5) {
21992 ecode6 = SWIG_AsVal_long(obj5, &val6);
21993 if (!SWIG_IsOK(ecode6)) {
21994 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21995 }
21996 arg6 = static_cast< long >(val6);
21997 }
21998 if (obj6) {
21999 {
22000 arg7 = wxString_in_helper(obj6);
22001 if (arg7 == NULL) SWIG_fail;
22002 temp7 = true;
22003 }
22004 }
22005 {
22006 PyThreadState* __tstate = wxPyBeginAllowThreads();
22007 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
22011 {
22012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22013 }
22014 {
22015 if (temp7)
22016 delete arg7;
22017 }
22018 return resultobj;
22019 fail:
22020 {
22021 if (temp7)
22022 delete arg7;
22023 }
22024 return NULL;
22025 }
22026
22027
22028 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22029 PyObject *resultobj = 0;
22030 wxTreebook *arg1 = (wxTreebook *) 0 ;
22031 size_t arg2 ;
22032 wxWindow *arg3 = (wxWindow *) 0 ;
22033 wxString *arg4 = 0 ;
22034 bool arg5 = (bool) false ;
22035 int arg6 = (int) wxNOT_FOUND ;
22036 bool result;
22037 void *argp1 = 0 ;
22038 int res1 = 0 ;
22039 size_t val2 ;
22040 int ecode2 = 0 ;
22041 void *argp3 = 0 ;
22042 int res3 = 0 ;
22043 bool temp4 = false ;
22044 bool val5 ;
22045 int ecode5 = 0 ;
22046 int val6 ;
22047 int ecode6 = 0 ;
22048 PyObject * obj0 = 0 ;
22049 PyObject * obj1 = 0 ;
22050 PyObject * obj2 = 0 ;
22051 PyObject * obj3 = 0 ;
22052 PyObject * obj4 = 0 ;
22053 PyObject * obj5 = 0 ;
22054 char * kwnames[] = {
22055 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22056 };
22057
22058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_InsertSubPage" "', 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_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22067 }
22068 arg2 = static_cast< size_t >(val2);
22069 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22070 if (!SWIG_IsOK(res3)) {
22071 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22072 }
22073 arg3 = reinterpret_cast< wxWindow * >(argp3);
22074 {
22075 arg4 = wxString_in_helper(obj3);
22076 if (arg4 == NULL) SWIG_fail;
22077 temp4 = true;
22078 }
22079 if (obj4) {
22080 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22081 if (!SWIG_IsOK(ecode5)) {
22082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22083 }
22084 arg5 = static_cast< bool >(val5);
22085 }
22086 if (obj5) {
22087 ecode6 = SWIG_AsVal_int(obj5, &val6);
22088 if (!SWIG_IsOK(ecode6)) {
22089 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22090 }
22091 arg6 = static_cast< int >(val6);
22092 }
22093 {
22094 PyThreadState* __tstate = wxPyBeginAllowThreads();
22095 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22096 wxPyEndAllowThreads(__tstate);
22097 if (PyErr_Occurred()) SWIG_fail;
22098 }
22099 {
22100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22101 }
22102 {
22103 if (temp4)
22104 delete arg4;
22105 }
22106 return resultobj;
22107 fail:
22108 {
22109 if (temp4)
22110 delete arg4;
22111 }
22112 return NULL;
22113 }
22114
22115
22116 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22117 PyObject *resultobj = 0;
22118 wxTreebook *arg1 = (wxTreebook *) 0 ;
22119 wxWindow *arg2 = (wxWindow *) 0 ;
22120 wxString *arg3 = 0 ;
22121 bool arg4 = (bool) false ;
22122 int arg5 = (int) wxNOT_FOUND ;
22123 bool result;
22124 void *argp1 = 0 ;
22125 int res1 = 0 ;
22126 void *argp2 = 0 ;
22127 int res2 = 0 ;
22128 bool temp3 = false ;
22129 bool val4 ;
22130 int ecode4 = 0 ;
22131 int val5 ;
22132 int ecode5 = 0 ;
22133 PyObject * obj0 = 0 ;
22134 PyObject * obj1 = 0 ;
22135 PyObject * obj2 = 0 ;
22136 PyObject * obj3 = 0 ;
22137 PyObject * obj4 = 0 ;
22138 char * kwnames[] = {
22139 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22140 };
22141
22142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22144 if (!SWIG_IsOK(res1)) {
22145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22146 }
22147 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22149 if (!SWIG_IsOK(res2)) {
22150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22151 }
22152 arg2 = reinterpret_cast< wxWindow * >(argp2);
22153 {
22154 arg3 = wxString_in_helper(obj2);
22155 if (arg3 == NULL) SWIG_fail;
22156 temp3 = true;
22157 }
22158 if (obj3) {
22159 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22160 if (!SWIG_IsOK(ecode4)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22162 }
22163 arg4 = static_cast< bool >(val4);
22164 }
22165 if (obj4) {
22166 ecode5 = SWIG_AsVal_int(obj4, &val5);
22167 if (!SWIG_IsOK(ecode5)) {
22168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22169 }
22170 arg5 = static_cast< int >(val5);
22171 }
22172 {
22173 PyThreadState* __tstate = wxPyBeginAllowThreads();
22174 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22175 wxPyEndAllowThreads(__tstate);
22176 if (PyErr_Occurred()) SWIG_fail;
22177 }
22178 {
22179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22180 }
22181 {
22182 if (temp3)
22183 delete arg3;
22184 }
22185 return resultobj;
22186 fail:
22187 {
22188 if (temp3)
22189 delete arg3;
22190 }
22191 return NULL;
22192 }
22193
22194
22195 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22196 PyObject *resultobj = 0;
22197 wxTreebook *arg1 = (wxTreebook *) 0 ;
22198 size_t arg2 ;
22199 bool result;
22200 void *argp1 = 0 ;
22201 int res1 = 0 ;
22202 size_t val2 ;
22203 int ecode2 = 0 ;
22204 PyObject * obj0 = 0 ;
22205 PyObject * obj1 = 0 ;
22206 char * kwnames[] = {
22207 (char *) "self",(char *) "pos", NULL
22208 };
22209
22210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22212 if (!SWIG_IsOK(res1)) {
22213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22214 }
22215 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22216 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22217 if (!SWIG_IsOK(ecode2)) {
22218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22219 }
22220 arg2 = static_cast< size_t >(val2);
22221 {
22222 PyThreadState* __tstate = wxPyBeginAllowThreads();
22223 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22224 wxPyEndAllowThreads(__tstate);
22225 if (PyErr_Occurred()) SWIG_fail;
22226 }
22227 {
22228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22229 }
22230 return resultobj;
22231 fail:
22232 return NULL;
22233 }
22234
22235
22236 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22237 PyObject *resultobj = 0;
22238 wxTreebook *arg1 = (wxTreebook *) 0 ;
22239 size_t arg2 ;
22240 bool arg3 = (bool) true ;
22241 bool result;
22242 void *argp1 = 0 ;
22243 int res1 = 0 ;
22244 size_t val2 ;
22245 int ecode2 = 0 ;
22246 bool val3 ;
22247 int ecode3 = 0 ;
22248 PyObject * obj0 = 0 ;
22249 PyObject * obj1 = 0 ;
22250 PyObject * obj2 = 0 ;
22251 char * kwnames[] = {
22252 (char *) "self",(char *) "pos",(char *) "expand", NULL
22253 };
22254
22255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22257 if (!SWIG_IsOK(res1)) {
22258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22259 }
22260 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22261 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22262 if (!SWIG_IsOK(ecode2)) {
22263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22264 }
22265 arg2 = static_cast< size_t >(val2);
22266 if (obj2) {
22267 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22268 if (!SWIG_IsOK(ecode3)) {
22269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22270 }
22271 arg3 = static_cast< bool >(val3);
22272 }
22273 {
22274 PyThreadState* __tstate = wxPyBeginAllowThreads();
22275 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22276 wxPyEndAllowThreads(__tstate);
22277 if (PyErr_Occurred()) SWIG_fail;
22278 }
22279 {
22280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22281 }
22282 return resultobj;
22283 fail:
22284 return NULL;
22285 }
22286
22287
22288 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22289 PyObject *resultobj = 0;
22290 wxTreebook *arg1 = (wxTreebook *) 0 ;
22291 size_t arg2 ;
22292 bool result;
22293 void *argp1 = 0 ;
22294 int res1 = 0 ;
22295 size_t val2 ;
22296 int ecode2 = 0 ;
22297 PyObject * obj0 = 0 ;
22298 PyObject * obj1 = 0 ;
22299 char * kwnames[] = {
22300 (char *) "self",(char *) "pos", NULL
22301 };
22302
22303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22305 if (!SWIG_IsOK(res1)) {
22306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22307 }
22308 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22309 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22310 if (!SWIG_IsOK(ecode2)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22312 }
22313 arg2 = static_cast< size_t >(val2);
22314 {
22315 PyThreadState* __tstate = wxPyBeginAllowThreads();
22316 result = (bool)(arg1)->CollapseNode(arg2);
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 {
22321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22322 }
22323 return resultobj;
22324 fail:
22325 return NULL;
22326 }
22327
22328
22329 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22330 PyObject *resultobj = 0;
22331 wxTreebook *arg1 = (wxTreebook *) 0 ;
22332 size_t arg2 ;
22333 int result;
22334 void *argp1 = 0 ;
22335 int res1 = 0 ;
22336 size_t val2 ;
22337 int ecode2 = 0 ;
22338 PyObject * obj0 = 0 ;
22339 PyObject * obj1 = 0 ;
22340 char * kwnames[] = {
22341 (char *) "self",(char *) "pos", NULL
22342 };
22343
22344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22346 if (!SWIG_IsOK(res1)) {
22347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22348 }
22349 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22350 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22351 if (!SWIG_IsOK(ecode2)) {
22352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22353 }
22354 arg2 = static_cast< size_t >(val2);
22355 {
22356 PyThreadState* __tstate = wxPyBeginAllowThreads();
22357 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 resultobj = SWIG_From_int(static_cast< int >(result));
22362 return resultobj;
22363 fail:
22364 return NULL;
22365 }
22366
22367
22368 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22369 PyObject *resultobj = 0;
22370 wxTreebook *arg1 = (wxTreebook *) 0 ;
22371 wxPyTreeCtrl *result = 0 ;
22372 void *argp1 = 0 ;
22373 int res1 = 0 ;
22374 PyObject *swig_obj[1] ;
22375
22376 if (!args) SWIG_fail;
22377 swig_obj[0] = args;
22378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22379 if (!SWIG_IsOK(res1)) {
22380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22381 }
22382 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22383 {
22384 PyThreadState* __tstate = wxPyBeginAllowThreads();
22385 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22386 wxPyEndAllowThreads(__tstate);
22387 if (PyErr_Occurred()) SWIG_fail;
22388 }
22389 {
22390 resultobj = wxPyMake_wxObject(result, (bool)0);
22391 }
22392 return resultobj;
22393 fail:
22394 return NULL;
22395 }
22396
22397
22398 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22399 PyObject *obj;
22400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22401 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22402 return SWIG_Py_Void();
22403 }
22404
22405 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22406 return SWIG_Python_InitShadowInstance(args);
22407 }
22408
22409 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22410 PyObject *resultobj = 0;
22411 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22412 int arg2 = (int) 0 ;
22413 int arg3 = (int) wxNOT_FOUND ;
22414 int arg4 = (int) wxNOT_FOUND ;
22415 wxTreebookEvent *result = 0 ;
22416 int val1 ;
22417 int ecode1 = 0 ;
22418 int val2 ;
22419 int ecode2 = 0 ;
22420 int val3 ;
22421 int ecode3 = 0 ;
22422 int val4 ;
22423 int ecode4 = 0 ;
22424 PyObject * obj0 = 0 ;
22425 PyObject * obj1 = 0 ;
22426 PyObject * obj2 = 0 ;
22427 PyObject * obj3 = 0 ;
22428 char * kwnames[] = {
22429 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22430 };
22431
22432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22433 if (obj0) {
22434 ecode1 = SWIG_AsVal_int(obj0, &val1);
22435 if (!SWIG_IsOK(ecode1)) {
22436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22437 }
22438 arg1 = static_cast< wxEventType >(val1);
22439 }
22440 if (obj1) {
22441 ecode2 = SWIG_AsVal_int(obj1, &val2);
22442 if (!SWIG_IsOK(ecode2)) {
22443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22444 }
22445 arg2 = static_cast< int >(val2);
22446 }
22447 if (obj2) {
22448 ecode3 = SWIG_AsVal_int(obj2, &val3);
22449 if (!SWIG_IsOK(ecode3)) {
22450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22451 }
22452 arg3 = static_cast< int >(val3);
22453 }
22454 if (obj3) {
22455 ecode4 = SWIG_AsVal_int(obj3, &val4);
22456 if (!SWIG_IsOK(ecode4)) {
22457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22458 }
22459 arg4 = static_cast< int >(val4);
22460 }
22461 {
22462 PyThreadState* __tstate = wxPyBeginAllowThreads();
22463 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22475 PyObject *obj;
22476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22477 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22478 return SWIG_Py_Void();
22479 }
22480
22481 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22482 return SWIG_Python_InitShadowInstance(args);
22483 }
22484
22485 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22486 PyObject *resultobj = 0;
22487 wxWindow *arg1 = (wxWindow *) 0 ;
22488 int arg2 ;
22489 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22490 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22491 wxSize const &arg4_defvalue = wxDefaultSize ;
22492 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22493 long arg5 = (long) wxBK_DEFAULT ;
22494 wxString const &arg6_defvalue = wxPyEmptyString ;
22495 wxString *arg6 = (wxString *) &arg6_defvalue ;
22496 wxToolbook *result = 0 ;
22497 void *argp1 = 0 ;
22498 int res1 = 0 ;
22499 int val2 ;
22500 int ecode2 = 0 ;
22501 wxPoint temp3 ;
22502 wxSize temp4 ;
22503 long val5 ;
22504 int ecode5 = 0 ;
22505 bool temp6 = false ;
22506 PyObject * obj0 = 0 ;
22507 PyObject * obj1 = 0 ;
22508 PyObject * obj2 = 0 ;
22509 PyObject * obj3 = 0 ;
22510 PyObject * obj4 = 0 ;
22511 PyObject * obj5 = 0 ;
22512 char * kwnames[] = {
22513 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22514 };
22515
22516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22518 if (!SWIG_IsOK(res1)) {
22519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22520 }
22521 arg1 = reinterpret_cast< wxWindow * >(argp1);
22522 ecode2 = SWIG_AsVal_int(obj1, &val2);
22523 if (!SWIG_IsOK(ecode2)) {
22524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22525 }
22526 arg2 = static_cast< int >(val2);
22527 if (obj2) {
22528 {
22529 arg3 = &temp3;
22530 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22531 }
22532 }
22533 if (obj3) {
22534 {
22535 arg4 = &temp4;
22536 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22537 }
22538 }
22539 if (obj4) {
22540 ecode5 = SWIG_AsVal_long(obj4, &val5);
22541 if (!SWIG_IsOK(ecode5)) {
22542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22543 }
22544 arg5 = static_cast< long >(val5);
22545 }
22546 if (obj5) {
22547 {
22548 arg6 = wxString_in_helper(obj5);
22549 if (arg6 == NULL) SWIG_fail;
22550 temp6 = true;
22551 }
22552 }
22553 {
22554 PyThreadState* __tstate = wxPyBeginAllowThreads();
22555 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22556 wxPyEndAllowThreads(__tstate);
22557 if (PyErr_Occurred()) SWIG_fail;
22558 }
22559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22560 {
22561 if (temp6)
22562 delete arg6;
22563 }
22564 return resultobj;
22565 fail:
22566 {
22567 if (temp6)
22568 delete arg6;
22569 }
22570 return NULL;
22571 }
22572
22573
22574 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22575 PyObject *resultobj = 0;
22576 wxToolbook *result = 0 ;
22577
22578 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22579 {
22580 PyThreadState* __tstate = wxPyBeginAllowThreads();
22581 result = (wxToolbook *)new wxToolbook();
22582 wxPyEndAllowThreads(__tstate);
22583 if (PyErr_Occurred()) SWIG_fail;
22584 }
22585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22586 return resultobj;
22587 fail:
22588 return NULL;
22589 }
22590
22591
22592 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22593 PyObject *resultobj = 0;
22594 wxToolbook *arg1 = (wxToolbook *) 0 ;
22595 wxWindow *arg2 = (wxWindow *) 0 ;
22596 int arg3 ;
22597 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22598 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22599 wxSize const &arg5_defvalue = wxDefaultSize ;
22600 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22601 long arg6 = (long) 0 ;
22602 wxString const &arg7_defvalue = wxEmptyString ;
22603 wxString *arg7 = (wxString *) &arg7_defvalue ;
22604 bool result;
22605 void *argp1 = 0 ;
22606 int res1 = 0 ;
22607 void *argp2 = 0 ;
22608 int res2 = 0 ;
22609 int val3 ;
22610 int ecode3 = 0 ;
22611 wxPoint temp4 ;
22612 wxSize temp5 ;
22613 long val6 ;
22614 int ecode6 = 0 ;
22615 bool temp7 = false ;
22616 PyObject * obj0 = 0 ;
22617 PyObject * obj1 = 0 ;
22618 PyObject * obj2 = 0 ;
22619 PyObject * obj3 = 0 ;
22620 PyObject * obj4 = 0 ;
22621 PyObject * obj5 = 0 ;
22622 PyObject * obj6 = 0 ;
22623 char * kwnames[] = {
22624 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22625 };
22626
22627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22629 if (!SWIG_IsOK(res1)) {
22630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22631 }
22632 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22634 if (!SWIG_IsOK(res2)) {
22635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22636 }
22637 arg2 = reinterpret_cast< wxWindow * >(argp2);
22638 ecode3 = SWIG_AsVal_int(obj2, &val3);
22639 if (!SWIG_IsOK(ecode3)) {
22640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22641 }
22642 arg3 = static_cast< int >(val3);
22643 if (obj3) {
22644 {
22645 arg4 = &temp4;
22646 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22647 }
22648 }
22649 if (obj4) {
22650 {
22651 arg5 = &temp5;
22652 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22653 }
22654 }
22655 if (obj5) {
22656 ecode6 = SWIG_AsVal_long(obj5, &val6);
22657 if (!SWIG_IsOK(ecode6)) {
22658 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22659 }
22660 arg6 = static_cast< long >(val6);
22661 }
22662 if (obj6) {
22663 {
22664 arg7 = wxString_in_helper(obj6);
22665 if (arg7 == NULL) SWIG_fail;
22666 temp7 = true;
22667 }
22668 }
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 {
22676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22677 }
22678 {
22679 if (temp7)
22680 delete arg7;
22681 }
22682 return resultobj;
22683 fail:
22684 {
22685 if (temp7)
22686 delete arg7;
22687 }
22688 return NULL;
22689 }
22690
22691
22692 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22693 PyObject *resultobj = 0;
22694 wxToolbook *arg1 = (wxToolbook *) 0 ;
22695 wxToolBarBase *result = 0 ;
22696 void *argp1 = 0 ;
22697 int res1 = 0 ;
22698 PyObject *swig_obj[1] ;
22699
22700 if (!args) SWIG_fail;
22701 swig_obj[0] = args;
22702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22703 if (!SWIG_IsOK(res1)) {
22704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22705 }
22706 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 {
22714 resultobj = wxPyMake_wxObject(result, (bool)0);
22715 }
22716 return resultobj;
22717 fail:
22718 return NULL;
22719 }
22720
22721
22722 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22723 PyObject *resultobj = 0;
22724 wxToolbook *arg1 = (wxToolbook *) 0 ;
22725 void *argp1 = 0 ;
22726 int res1 = 0 ;
22727 PyObject *swig_obj[1] ;
22728
22729 if (!args) SWIG_fail;
22730 swig_obj[0] = args;
22731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22732 if (!SWIG_IsOK(res1)) {
22733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22734 }
22735 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22736 {
22737 PyThreadState* __tstate = wxPyBeginAllowThreads();
22738 (arg1)->Realize();
22739 wxPyEndAllowThreads(__tstate);
22740 if (PyErr_Occurred()) SWIG_fail;
22741 }
22742 resultobj = SWIG_Py_Void();
22743 return resultobj;
22744 fail:
22745 return NULL;
22746 }
22747
22748
22749 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22750 PyObject *obj;
22751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22752 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22753 return SWIG_Py_Void();
22754 }
22755
22756 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22757 return SWIG_Python_InitShadowInstance(args);
22758 }
22759
22760 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22761 PyObject *resultobj = 0;
22762 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22763 int arg2 = (int) 0 ;
22764 int arg3 = (int) wxNOT_FOUND ;
22765 int arg4 = (int) wxNOT_FOUND ;
22766 wxToolbookEvent *result = 0 ;
22767 int val1 ;
22768 int ecode1 = 0 ;
22769 int val2 ;
22770 int ecode2 = 0 ;
22771 int val3 ;
22772 int ecode3 = 0 ;
22773 int val4 ;
22774 int ecode4 = 0 ;
22775 PyObject * obj0 = 0 ;
22776 PyObject * obj1 = 0 ;
22777 PyObject * obj2 = 0 ;
22778 PyObject * obj3 = 0 ;
22779 char * kwnames[] = {
22780 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22781 };
22782
22783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22784 if (obj0) {
22785 ecode1 = SWIG_AsVal_int(obj0, &val1);
22786 if (!SWIG_IsOK(ecode1)) {
22787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22788 }
22789 arg1 = static_cast< wxEventType >(val1);
22790 }
22791 if (obj1) {
22792 ecode2 = SWIG_AsVal_int(obj1, &val2);
22793 if (!SWIG_IsOK(ecode2)) {
22794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22795 }
22796 arg2 = static_cast< int >(val2);
22797 }
22798 if (obj2) {
22799 ecode3 = SWIG_AsVal_int(obj2, &val3);
22800 if (!SWIG_IsOK(ecode3)) {
22801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22802 }
22803 arg3 = static_cast< int >(val3);
22804 }
22805 if (obj3) {
22806 ecode4 = SWIG_AsVal_int(obj3, &val4);
22807 if (!SWIG_IsOK(ecode4)) {
22808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22809 }
22810 arg4 = static_cast< int >(val4);
22811 }
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22819 return resultobj;
22820 fail:
22821 return NULL;
22822 }
22823
22824
22825 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22826 PyObject *obj;
22827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22828 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22829 return SWIG_Py_Void();
22830 }
22831
22832 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22833 return SWIG_Python_InitShadowInstance(args);
22834 }
22835
22836 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22837 PyObject *resultobj = 0;
22838 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22839 int result;
22840 void *argp1 = 0 ;
22841 int res1 = 0 ;
22842 PyObject *swig_obj[1] ;
22843
22844 if (!args) SWIG_fail;
22845 swig_obj[0] = args;
22846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22847 if (!SWIG_IsOK(res1)) {
22848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22849 }
22850 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22851 {
22852 PyThreadState* __tstate = wxPyBeginAllowThreads();
22853 result = (int)(arg1)->GetId();
22854 wxPyEndAllowThreads(__tstate);
22855 if (PyErr_Occurred()) SWIG_fail;
22856 }
22857 resultobj = SWIG_From_int(static_cast< int >(result));
22858 return resultobj;
22859 fail:
22860 return NULL;
22861 }
22862
22863
22864 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22865 PyObject *resultobj = 0;
22866 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22867 wxControl *result = 0 ;
22868 void *argp1 = 0 ;
22869 int res1 = 0 ;
22870 PyObject *swig_obj[1] ;
22871
22872 if (!args) SWIG_fail;
22873 swig_obj[0] = args;
22874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22875 if (!SWIG_IsOK(res1)) {
22876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22877 }
22878 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 result = (wxControl *)(arg1)->GetControl();
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 {
22886 resultobj = wxPyMake_wxObject(result, 0);
22887 }
22888 return resultobj;
22889 fail:
22890 return NULL;
22891 }
22892
22893
22894 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22895 PyObject *resultobj = 0;
22896 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22897 wxToolBarBase *result = 0 ;
22898 void *argp1 = 0 ;
22899 int res1 = 0 ;
22900 PyObject *swig_obj[1] ;
22901
22902 if (!args) SWIG_fail;
22903 swig_obj[0] = args;
22904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22905 if (!SWIG_IsOK(res1)) {
22906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22907 }
22908 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22909 {
22910 PyThreadState* __tstate = wxPyBeginAllowThreads();
22911 result = (wxToolBarBase *)(arg1)->GetToolBar();
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 {
22916 resultobj = wxPyMake_wxObject(result, (bool)0);
22917 }
22918 return resultobj;
22919 fail:
22920 return NULL;
22921 }
22922
22923
22924 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22925 PyObject *resultobj = 0;
22926 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22927 int result;
22928 void *argp1 = 0 ;
22929 int res1 = 0 ;
22930 PyObject *swig_obj[1] ;
22931
22932 if (!args) SWIG_fail;
22933 swig_obj[0] = args;
22934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22935 if (!SWIG_IsOK(res1)) {
22936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22937 }
22938 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22939 {
22940 PyThreadState* __tstate = wxPyBeginAllowThreads();
22941 result = (int)(arg1)->IsButton();
22942 wxPyEndAllowThreads(__tstate);
22943 if (PyErr_Occurred()) SWIG_fail;
22944 }
22945 resultobj = SWIG_From_int(static_cast< int >(result));
22946 return resultobj;
22947 fail:
22948 return NULL;
22949 }
22950
22951
22952 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22953 PyObject *resultobj = 0;
22954 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22955 int result;
22956 void *argp1 = 0 ;
22957 int res1 = 0 ;
22958 PyObject *swig_obj[1] ;
22959
22960 if (!args) SWIG_fail;
22961 swig_obj[0] = args;
22962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22963 if (!SWIG_IsOK(res1)) {
22964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22965 }
22966 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22967 {
22968 PyThreadState* __tstate = wxPyBeginAllowThreads();
22969 result = (int)(arg1)->IsControl();
22970 wxPyEndAllowThreads(__tstate);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 resultobj = SWIG_From_int(static_cast< int >(result));
22974 return resultobj;
22975 fail:
22976 return NULL;
22977 }
22978
22979
22980 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22981 PyObject *resultobj = 0;
22982 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22983 int result;
22984 void *argp1 = 0 ;
22985 int res1 = 0 ;
22986 PyObject *swig_obj[1] ;
22987
22988 if (!args) SWIG_fail;
22989 swig_obj[0] = args;
22990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22991 if (!SWIG_IsOK(res1)) {
22992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22993 }
22994 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22995 {
22996 PyThreadState* __tstate = wxPyBeginAllowThreads();
22997 result = (int)(arg1)->IsSeparator();
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 resultobj = SWIG_From_int(static_cast< int >(result));
23002 return resultobj;
23003 fail:
23004 return NULL;
23005 }
23006
23007
23008 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23009 PyObject *resultobj = 0;
23010 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23011 int result;
23012 void *argp1 = 0 ;
23013 int res1 = 0 ;
23014 PyObject *swig_obj[1] ;
23015
23016 if (!args) SWIG_fail;
23017 swig_obj[0] = args;
23018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23021 }
23022 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 result = (int)(arg1)->GetStyle();
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 resultobj = SWIG_From_int(static_cast< int >(result));
23030 return resultobj;
23031 fail:
23032 return NULL;
23033 }
23034
23035
23036 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23037 PyObject *resultobj = 0;
23038 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23039 wxItemKind result;
23040 void *argp1 = 0 ;
23041 int res1 = 0 ;
23042 PyObject *swig_obj[1] ;
23043
23044 if (!args) SWIG_fail;
23045 swig_obj[0] = args;
23046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23047 if (!SWIG_IsOK(res1)) {
23048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23049 }
23050 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23051 {
23052 PyThreadState* __tstate = wxPyBeginAllowThreads();
23053 result = (wxItemKind)(arg1)->GetKind();
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 resultobj = SWIG_From_int(static_cast< int >(result));
23058 return resultobj;
23059 fail:
23060 return NULL;
23061 }
23062
23063
23064 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23065 PyObject *resultobj = 0;
23066 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23067 bool result;
23068 void *argp1 = 0 ;
23069 int res1 = 0 ;
23070 PyObject *swig_obj[1] ;
23071
23072 if (!args) SWIG_fail;
23073 swig_obj[0] = args;
23074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23075 if (!SWIG_IsOK(res1)) {
23076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23077 }
23078 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 result = (bool)(arg1)->IsEnabled();
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
23085 {
23086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23087 }
23088 return resultobj;
23089 fail:
23090 return NULL;
23091 }
23092
23093
23094 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23095 PyObject *resultobj = 0;
23096 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23097 bool result;
23098 void *argp1 = 0 ;
23099 int res1 = 0 ;
23100 PyObject *swig_obj[1] ;
23101
23102 if (!args) SWIG_fail;
23103 swig_obj[0] = args;
23104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23105 if (!SWIG_IsOK(res1)) {
23106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23107 }
23108 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23109 {
23110 PyThreadState* __tstate = wxPyBeginAllowThreads();
23111 result = (bool)(arg1)->IsToggled();
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 {
23116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23117 }
23118 return resultobj;
23119 fail:
23120 return NULL;
23121 }
23122
23123
23124 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23125 PyObject *resultobj = 0;
23126 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23127 bool result;
23128 void *argp1 = 0 ;
23129 int res1 = 0 ;
23130 PyObject *swig_obj[1] ;
23131
23132 if (!args) SWIG_fail;
23133 swig_obj[0] = args;
23134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23135 if (!SWIG_IsOK(res1)) {
23136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23137 }
23138 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (bool)(arg1)->CanBeToggled();
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 {
23146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23147 }
23148 return resultobj;
23149 fail:
23150 return NULL;
23151 }
23152
23153
23154 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23155 PyObject *resultobj = 0;
23156 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23157 wxBitmap *result = 0 ;
23158 void *argp1 = 0 ;
23159 int res1 = 0 ;
23160 PyObject *swig_obj[1] ;
23161
23162 if (!args) SWIG_fail;
23163 swig_obj[0] = args;
23164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23165 if (!SWIG_IsOK(res1)) {
23166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23167 }
23168 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23169 {
23170 PyThreadState* __tstate = wxPyBeginAllowThreads();
23171 {
23172 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23173 result = (wxBitmap *) &_result_ref;
23174 }
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 {
23179 wxBitmap* resultptr = new wxBitmap(*result);
23180 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23181 }
23182 return resultobj;
23183 fail:
23184 return NULL;
23185 }
23186
23187
23188 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23189 PyObject *resultobj = 0;
23190 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23191 wxBitmap *result = 0 ;
23192 void *argp1 = 0 ;
23193 int res1 = 0 ;
23194 PyObject *swig_obj[1] ;
23195
23196 if (!args) SWIG_fail;
23197 swig_obj[0] = args;
23198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23199 if (!SWIG_IsOK(res1)) {
23200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23201 }
23202 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23203 {
23204 PyThreadState* __tstate = wxPyBeginAllowThreads();
23205 {
23206 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23207 result = (wxBitmap *) &_result_ref;
23208 }
23209 wxPyEndAllowThreads(__tstate);
23210 if (PyErr_Occurred()) SWIG_fail;
23211 }
23212 {
23213 wxBitmap* resultptr = new wxBitmap(*result);
23214 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23215 }
23216 return resultobj;
23217 fail:
23218 return NULL;
23219 }
23220
23221
23222 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23223 PyObject *resultobj = 0;
23224 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23225 wxBitmap result;
23226 void *argp1 = 0 ;
23227 int res1 = 0 ;
23228 PyObject *swig_obj[1] ;
23229
23230 if (!args) SWIG_fail;
23231 swig_obj[0] = args;
23232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23233 if (!SWIG_IsOK(res1)) {
23234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23235 }
23236 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23237 {
23238 PyThreadState* __tstate = wxPyBeginAllowThreads();
23239 result = (arg1)->GetBitmap();
23240 wxPyEndAllowThreads(__tstate);
23241 if (PyErr_Occurred()) SWIG_fail;
23242 }
23243 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23244 return resultobj;
23245 fail:
23246 return NULL;
23247 }
23248
23249
23250 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23251 PyObject *resultobj = 0;
23252 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23253 wxString result;
23254 void *argp1 = 0 ;
23255 int res1 = 0 ;
23256 PyObject *swig_obj[1] ;
23257
23258 if (!args) SWIG_fail;
23259 swig_obj[0] = args;
23260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23261 if (!SWIG_IsOK(res1)) {
23262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23263 }
23264 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 result = (arg1)->GetLabel();
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 {
23272 #if wxUSE_UNICODE
23273 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23274 #else
23275 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23276 #endif
23277 }
23278 return resultobj;
23279 fail:
23280 return NULL;
23281 }
23282
23283
23284 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23285 PyObject *resultobj = 0;
23286 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23287 wxString result;
23288 void *argp1 = 0 ;
23289 int res1 = 0 ;
23290 PyObject *swig_obj[1] ;
23291
23292 if (!args) SWIG_fail;
23293 swig_obj[0] = args;
23294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23295 if (!SWIG_IsOK(res1)) {
23296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23297 }
23298 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23299 {
23300 PyThreadState* __tstate = wxPyBeginAllowThreads();
23301 result = (arg1)->GetShortHelp();
23302 wxPyEndAllowThreads(__tstate);
23303 if (PyErr_Occurred()) SWIG_fail;
23304 }
23305 {
23306 #if wxUSE_UNICODE
23307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23308 #else
23309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23310 #endif
23311 }
23312 return resultobj;
23313 fail:
23314 return NULL;
23315 }
23316
23317
23318 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23319 PyObject *resultobj = 0;
23320 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23321 wxString result;
23322 void *argp1 = 0 ;
23323 int res1 = 0 ;
23324 PyObject *swig_obj[1] ;
23325
23326 if (!args) SWIG_fail;
23327 swig_obj[0] = args;
23328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23329 if (!SWIG_IsOK(res1)) {
23330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23331 }
23332 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (arg1)->GetLongHelp();
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 {
23340 #if wxUSE_UNICODE
23341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23342 #else
23343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23344 #endif
23345 }
23346 return resultobj;
23347 fail:
23348 return NULL;
23349 }
23350
23351
23352 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23353 PyObject *resultobj = 0;
23354 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23355 bool arg2 ;
23356 bool result;
23357 void *argp1 = 0 ;
23358 int res1 = 0 ;
23359 bool val2 ;
23360 int ecode2 = 0 ;
23361 PyObject * obj0 = 0 ;
23362 PyObject * obj1 = 0 ;
23363 char * kwnames[] = {
23364 (char *) "self",(char *) "enable", NULL
23365 };
23366
23367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23369 if (!SWIG_IsOK(res1)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23371 }
23372 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23373 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23374 if (!SWIG_IsOK(ecode2)) {
23375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23376 }
23377 arg2 = static_cast< bool >(val2);
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 result = (bool)(arg1)->Enable(arg2);
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 {
23385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23386 }
23387 return resultobj;
23388 fail:
23389 return NULL;
23390 }
23391
23392
23393 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23394 PyObject *resultobj = 0;
23395 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23396 void *argp1 = 0 ;
23397 int res1 = 0 ;
23398 PyObject *swig_obj[1] ;
23399
23400 if (!args) SWIG_fail;
23401 swig_obj[0] = args;
23402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23403 if (!SWIG_IsOK(res1)) {
23404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23405 }
23406 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23407 {
23408 PyThreadState* __tstate = wxPyBeginAllowThreads();
23409 (arg1)->Toggle();
23410 wxPyEndAllowThreads(__tstate);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 }
23413 resultobj = SWIG_Py_Void();
23414 return resultobj;
23415 fail:
23416 return NULL;
23417 }
23418
23419
23420 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23421 PyObject *resultobj = 0;
23422 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23423 bool arg2 ;
23424 bool result;
23425 void *argp1 = 0 ;
23426 int res1 = 0 ;
23427 bool val2 ;
23428 int ecode2 = 0 ;
23429 PyObject * obj0 = 0 ;
23430 PyObject * obj1 = 0 ;
23431 char * kwnames[] = {
23432 (char *) "self",(char *) "toggle", NULL
23433 };
23434
23435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23439 }
23440 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23441 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23442 if (!SWIG_IsOK(ecode2)) {
23443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23444 }
23445 arg2 = static_cast< bool >(val2);
23446 {
23447 PyThreadState* __tstate = wxPyBeginAllowThreads();
23448 result = (bool)(arg1)->SetToggle(arg2);
23449 wxPyEndAllowThreads(__tstate);
23450 if (PyErr_Occurred()) SWIG_fail;
23451 }
23452 {
23453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23454 }
23455 return resultobj;
23456 fail:
23457 return NULL;
23458 }
23459
23460
23461 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23462 PyObject *resultobj = 0;
23463 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23464 wxString *arg2 = 0 ;
23465 bool result;
23466 void *argp1 = 0 ;
23467 int res1 = 0 ;
23468 bool temp2 = false ;
23469 PyObject * obj0 = 0 ;
23470 PyObject * obj1 = 0 ;
23471 char * kwnames[] = {
23472 (char *) "self",(char *) "help", NULL
23473 };
23474
23475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23477 if (!SWIG_IsOK(res1)) {
23478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23479 }
23480 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23481 {
23482 arg2 = wxString_in_helper(obj1);
23483 if (arg2 == NULL) SWIG_fail;
23484 temp2 = true;
23485 }
23486 {
23487 PyThreadState* __tstate = wxPyBeginAllowThreads();
23488 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23489 wxPyEndAllowThreads(__tstate);
23490 if (PyErr_Occurred()) SWIG_fail;
23491 }
23492 {
23493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23494 }
23495 {
23496 if (temp2)
23497 delete arg2;
23498 }
23499 return resultobj;
23500 fail:
23501 {
23502 if (temp2)
23503 delete arg2;
23504 }
23505 return NULL;
23506 }
23507
23508
23509 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23510 PyObject *resultobj = 0;
23511 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23512 wxString *arg2 = 0 ;
23513 bool result;
23514 void *argp1 = 0 ;
23515 int res1 = 0 ;
23516 bool temp2 = false ;
23517 PyObject * obj0 = 0 ;
23518 PyObject * obj1 = 0 ;
23519 char * kwnames[] = {
23520 (char *) "self",(char *) "help", NULL
23521 };
23522
23523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23525 if (!SWIG_IsOK(res1)) {
23526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23527 }
23528 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23529 {
23530 arg2 = wxString_in_helper(obj1);
23531 if (arg2 == NULL) SWIG_fail;
23532 temp2 = true;
23533 }
23534 {
23535 PyThreadState* __tstate = wxPyBeginAllowThreads();
23536 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23537 wxPyEndAllowThreads(__tstate);
23538 if (PyErr_Occurred()) SWIG_fail;
23539 }
23540 {
23541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23542 }
23543 {
23544 if (temp2)
23545 delete arg2;
23546 }
23547 return resultobj;
23548 fail:
23549 {
23550 if (temp2)
23551 delete arg2;
23552 }
23553 return NULL;
23554 }
23555
23556
23557 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23558 PyObject *resultobj = 0;
23559 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23560 wxBitmap *arg2 = 0 ;
23561 void *argp1 = 0 ;
23562 int res1 = 0 ;
23563 void *argp2 = 0 ;
23564 int res2 = 0 ;
23565 PyObject * obj0 = 0 ;
23566 PyObject * obj1 = 0 ;
23567 char * kwnames[] = {
23568 (char *) "self",(char *) "bmp", NULL
23569 };
23570
23571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23573 if (!SWIG_IsOK(res1)) {
23574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23575 }
23576 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23578 if (!SWIG_IsOK(res2)) {
23579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23580 }
23581 if (!argp2) {
23582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23583 }
23584 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23585 {
23586 PyThreadState* __tstate = wxPyBeginAllowThreads();
23587 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23588 wxPyEndAllowThreads(__tstate);
23589 if (PyErr_Occurred()) SWIG_fail;
23590 }
23591 resultobj = SWIG_Py_Void();
23592 return resultobj;
23593 fail:
23594 return NULL;
23595 }
23596
23597
23598 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23599 PyObject *resultobj = 0;
23600 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23601 wxBitmap *arg2 = 0 ;
23602 void *argp1 = 0 ;
23603 int res1 = 0 ;
23604 void *argp2 = 0 ;
23605 int res2 = 0 ;
23606 PyObject * obj0 = 0 ;
23607 PyObject * obj1 = 0 ;
23608 char * kwnames[] = {
23609 (char *) "self",(char *) "bmp", NULL
23610 };
23611
23612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23614 if (!SWIG_IsOK(res1)) {
23615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23616 }
23617 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23619 if (!SWIG_IsOK(res2)) {
23620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23621 }
23622 if (!argp2) {
23623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23624 }
23625 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23626 {
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
23628 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23629 wxPyEndAllowThreads(__tstate);
23630 if (PyErr_Occurred()) SWIG_fail;
23631 }
23632 resultobj = SWIG_Py_Void();
23633 return resultobj;
23634 fail:
23635 return NULL;
23636 }
23637
23638
23639 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23640 PyObject *resultobj = 0;
23641 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23642 wxString *arg2 = 0 ;
23643 void *argp1 = 0 ;
23644 int res1 = 0 ;
23645 bool temp2 = false ;
23646 PyObject * obj0 = 0 ;
23647 PyObject * obj1 = 0 ;
23648 char * kwnames[] = {
23649 (char *) "self",(char *) "label", NULL
23650 };
23651
23652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23654 if (!SWIG_IsOK(res1)) {
23655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23656 }
23657 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23658 {
23659 arg2 = wxString_in_helper(obj1);
23660 if (arg2 == NULL) SWIG_fail;
23661 temp2 = true;
23662 }
23663 {
23664 PyThreadState* __tstate = wxPyBeginAllowThreads();
23665 (arg1)->SetLabel((wxString const &)*arg2);
23666 wxPyEndAllowThreads(__tstate);
23667 if (PyErr_Occurred()) SWIG_fail;
23668 }
23669 resultobj = SWIG_Py_Void();
23670 {
23671 if (temp2)
23672 delete arg2;
23673 }
23674 return resultobj;
23675 fail:
23676 {
23677 if (temp2)
23678 delete arg2;
23679 }
23680 return NULL;
23681 }
23682
23683
23684 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23685 PyObject *resultobj = 0;
23686 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23687 void *argp1 = 0 ;
23688 int res1 = 0 ;
23689 PyObject *swig_obj[1] ;
23690
23691 if (!args) SWIG_fail;
23692 swig_obj[0] = args;
23693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23694 if (!SWIG_IsOK(res1)) {
23695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23696 }
23697 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23698 {
23699 PyThreadState* __tstate = wxPyBeginAllowThreads();
23700 (arg1)->Detach();
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 resultobj = SWIG_Py_Void();
23705 return resultobj;
23706 fail:
23707 return NULL;
23708 }
23709
23710
23711 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23712 PyObject *resultobj = 0;
23713 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23714 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23715 void *argp1 = 0 ;
23716 int res1 = 0 ;
23717 void *argp2 = 0 ;
23718 int res2 = 0 ;
23719 PyObject * obj0 = 0 ;
23720 PyObject * obj1 = 0 ;
23721 char * kwnames[] = {
23722 (char *) "self",(char *) "tbar", NULL
23723 };
23724
23725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23727 if (!SWIG_IsOK(res1)) {
23728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23729 }
23730 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23731 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23732 if (!SWIG_IsOK(res2)) {
23733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23734 }
23735 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23736 {
23737 PyThreadState* __tstate = wxPyBeginAllowThreads();
23738 (arg1)->Attach(arg2);
23739 wxPyEndAllowThreads(__tstate);
23740 if (PyErr_Occurred()) SWIG_fail;
23741 }
23742 resultobj = SWIG_Py_Void();
23743 return resultobj;
23744 fail:
23745 return NULL;
23746 }
23747
23748
23749 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23750 PyObject *resultobj = 0;
23751 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23752 PyObject *result = 0 ;
23753 void *argp1 = 0 ;
23754 int res1 = 0 ;
23755 PyObject *swig_obj[1] ;
23756
23757 if (!args) SWIG_fail;
23758 swig_obj[0] = args;
23759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23760 if (!SWIG_IsOK(res1)) {
23761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23762 }
23763 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 resultobj = result;
23771 return resultobj;
23772 fail:
23773 return NULL;
23774 }
23775
23776
23777 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj = 0;
23779 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23780 PyObject *arg2 = (PyObject *) 0 ;
23781 void *argp1 = 0 ;
23782 int res1 = 0 ;
23783 PyObject * obj0 = 0 ;
23784 PyObject * obj1 = 0 ;
23785 char * kwnames[] = {
23786 (char *) "self",(char *) "clientData", NULL
23787 };
23788
23789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23791 if (!SWIG_IsOK(res1)) {
23792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23793 }
23794 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23795 arg2 = obj1;
23796 {
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 wxToolBarToolBase_SetClientData(arg1,arg2);
23799 wxPyEndAllowThreads(__tstate);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 }
23802 resultobj = SWIG_Py_Void();
23803 return resultobj;
23804 fail:
23805 return NULL;
23806 }
23807
23808
23809 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23810 PyObject *obj;
23811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23812 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23813 return SWIG_Py_Void();
23814 }
23815
23816 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23817 PyObject *resultobj = 0;
23818 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23819 int arg2 ;
23820 wxString *arg3 = 0 ;
23821 wxBitmap *arg4 = 0 ;
23822 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23823 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23824 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23825 wxString const &arg7_defvalue = wxPyEmptyString ;
23826 wxString *arg7 = (wxString *) &arg7_defvalue ;
23827 wxString const &arg8_defvalue = wxPyEmptyString ;
23828 wxString *arg8 = (wxString *) &arg8_defvalue ;
23829 PyObject *arg9 = (PyObject *) NULL ;
23830 wxToolBarToolBase *result = 0 ;
23831 void *argp1 = 0 ;
23832 int res1 = 0 ;
23833 int val2 ;
23834 int ecode2 = 0 ;
23835 bool temp3 = false ;
23836 void *argp4 = 0 ;
23837 int res4 = 0 ;
23838 void *argp5 = 0 ;
23839 int res5 = 0 ;
23840 int val6 ;
23841 int ecode6 = 0 ;
23842 bool temp7 = false ;
23843 bool temp8 = false ;
23844 PyObject * obj0 = 0 ;
23845 PyObject * obj1 = 0 ;
23846 PyObject * obj2 = 0 ;
23847 PyObject * obj3 = 0 ;
23848 PyObject * obj4 = 0 ;
23849 PyObject * obj5 = 0 ;
23850 PyObject * obj6 = 0 ;
23851 PyObject * obj7 = 0 ;
23852 PyObject * obj8 = 0 ;
23853 char * kwnames[] = {
23854 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23855 };
23856
23857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23859 if (!SWIG_IsOK(res1)) {
23860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23861 }
23862 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23863 ecode2 = SWIG_AsVal_int(obj1, &val2);
23864 if (!SWIG_IsOK(ecode2)) {
23865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23866 }
23867 arg2 = static_cast< int >(val2);
23868 {
23869 arg3 = wxString_in_helper(obj2);
23870 if (arg3 == NULL) SWIG_fail;
23871 temp3 = true;
23872 }
23873 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23874 if (!SWIG_IsOK(res4)) {
23875 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23876 }
23877 if (!argp4) {
23878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23879 }
23880 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23881 if (obj4) {
23882 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23883 if (!SWIG_IsOK(res5)) {
23884 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23885 }
23886 if (!argp5) {
23887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23888 }
23889 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23890 }
23891 if (obj5) {
23892 ecode6 = SWIG_AsVal_int(obj5, &val6);
23893 if (!SWIG_IsOK(ecode6)) {
23894 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23895 }
23896 arg6 = static_cast< wxItemKind >(val6);
23897 }
23898 if (obj6) {
23899 {
23900 arg7 = wxString_in_helper(obj6);
23901 if (arg7 == NULL) SWIG_fail;
23902 temp7 = true;
23903 }
23904 }
23905 if (obj7) {
23906 {
23907 arg8 = wxString_in_helper(obj7);
23908 if (arg8 == NULL) SWIG_fail;
23909 temp8 = true;
23910 }
23911 }
23912 if (obj8) {
23913 arg9 = obj8;
23914 }
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23918 wxPyEndAllowThreads(__tstate);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 }
23921 {
23922 resultobj = wxPyMake_wxObject(result, (bool)0);
23923 }
23924 {
23925 if (temp3)
23926 delete arg3;
23927 }
23928 {
23929 if (temp7)
23930 delete arg7;
23931 }
23932 {
23933 if (temp8)
23934 delete arg8;
23935 }
23936 return resultobj;
23937 fail:
23938 {
23939 if (temp3)
23940 delete arg3;
23941 }
23942 {
23943 if (temp7)
23944 delete arg7;
23945 }
23946 {
23947 if (temp8)
23948 delete arg8;
23949 }
23950 return NULL;
23951 }
23952
23953
23954 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23955 PyObject *resultobj = 0;
23956 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23957 size_t arg2 ;
23958 int arg3 ;
23959 wxString *arg4 = 0 ;
23960 wxBitmap *arg5 = 0 ;
23961 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23962 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23963 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23964 wxString const &arg8_defvalue = wxPyEmptyString ;
23965 wxString *arg8 = (wxString *) &arg8_defvalue ;
23966 wxString const &arg9_defvalue = wxPyEmptyString ;
23967 wxString *arg9 = (wxString *) &arg9_defvalue ;
23968 PyObject *arg10 = (PyObject *) NULL ;
23969 wxToolBarToolBase *result = 0 ;
23970 void *argp1 = 0 ;
23971 int res1 = 0 ;
23972 size_t val2 ;
23973 int ecode2 = 0 ;
23974 int val3 ;
23975 int ecode3 = 0 ;
23976 bool temp4 = false ;
23977 void *argp5 = 0 ;
23978 int res5 = 0 ;
23979 void *argp6 = 0 ;
23980 int res6 = 0 ;
23981 int val7 ;
23982 int ecode7 = 0 ;
23983 bool temp8 = false ;
23984 bool temp9 = false ;
23985 PyObject * obj0 = 0 ;
23986 PyObject * obj1 = 0 ;
23987 PyObject * obj2 = 0 ;
23988 PyObject * obj3 = 0 ;
23989 PyObject * obj4 = 0 ;
23990 PyObject * obj5 = 0 ;
23991 PyObject * obj6 = 0 ;
23992 PyObject * obj7 = 0 ;
23993 PyObject * obj8 = 0 ;
23994 PyObject * obj9 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24003 }
24004 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24005 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24006 if (!SWIG_IsOK(ecode2)) {
24007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24008 }
24009 arg2 = static_cast< size_t >(val2);
24010 ecode3 = SWIG_AsVal_int(obj2, &val3);
24011 if (!SWIG_IsOK(ecode3)) {
24012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24013 }
24014 arg3 = static_cast< int >(val3);
24015 {
24016 arg4 = wxString_in_helper(obj3);
24017 if (arg4 == NULL) SWIG_fail;
24018 temp4 = true;
24019 }
24020 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24021 if (!SWIG_IsOK(res5)) {
24022 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24023 }
24024 if (!argp5) {
24025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24026 }
24027 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24028 if (obj5) {
24029 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24030 if (!SWIG_IsOK(res6)) {
24031 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24032 }
24033 if (!argp6) {
24034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24035 }
24036 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24037 }
24038 if (obj6) {
24039 ecode7 = SWIG_AsVal_int(obj6, &val7);
24040 if (!SWIG_IsOK(ecode7)) {
24041 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24042 }
24043 arg7 = static_cast< wxItemKind >(val7);
24044 }
24045 if (obj7) {
24046 {
24047 arg8 = wxString_in_helper(obj7);
24048 if (arg8 == NULL) SWIG_fail;
24049 temp8 = true;
24050 }
24051 }
24052 if (obj8) {
24053 {
24054 arg9 = wxString_in_helper(obj8);
24055 if (arg9 == NULL) SWIG_fail;
24056 temp9 = true;
24057 }
24058 }
24059 if (obj9) {
24060 arg10 = obj9;
24061 }
24062 {
24063 PyThreadState* __tstate = wxPyBeginAllowThreads();
24064 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24065 wxPyEndAllowThreads(__tstate);
24066 if (PyErr_Occurred()) SWIG_fail;
24067 }
24068 {
24069 resultobj = wxPyMake_wxObject(result, (bool)0);
24070 }
24071 {
24072 if (temp4)
24073 delete arg4;
24074 }
24075 {
24076 if (temp8)
24077 delete arg8;
24078 }
24079 {
24080 if (temp9)
24081 delete arg9;
24082 }
24083 return resultobj;
24084 fail:
24085 {
24086 if (temp4)
24087 delete arg4;
24088 }
24089 {
24090 if (temp8)
24091 delete arg8;
24092 }
24093 {
24094 if (temp9)
24095 delete arg9;
24096 }
24097 return NULL;
24098 }
24099
24100
24101 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24102 PyObject *resultobj = 0;
24103 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24104 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24105 wxToolBarToolBase *result = 0 ;
24106 void *argp1 = 0 ;
24107 int res1 = 0 ;
24108 void *argp2 = 0 ;
24109 int res2 = 0 ;
24110 PyObject * obj0 = 0 ;
24111 PyObject * obj1 = 0 ;
24112 char * kwnames[] = {
24113 (char *) "self",(char *) "tool", NULL
24114 };
24115
24116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24118 if (!SWIG_IsOK(res1)) {
24119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24120 }
24121 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24123 if (!SWIG_IsOK(res2)) {
24124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24125 }
24126 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24127 {
24128 PyThreadState* __tstate = wxPyBeginAllowThreads();
24129 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24130 wxPyEndAllowThreads(__tstate);
24131 if (PyErr_Occurred()) SWIG_fail;
24132 }
24133 {
24134 resultobj = wxPyMake_wxObject(result, (bool)0);
24135 }
24136 return resultobj;
24137 fail:
24138 return NULL;
24139 }
24140
24141
24142 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24143 PyObject *resultobj = 0;
24144 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24145 size_t arg2 ;
24146 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24147 wxToolBarToolBase *result = 0 ;
24148 void *argp1 = 0 ;
24149 int res1 = 0 ;
24150 size_t val2 ;
24151 int ecode2 = 0 ;
24152 void *argp3 = 0 ;
24153 int res3 = 0 ;
24154 PyObject * obj0 = 0 ;
24155 PyObject * obj1 = 0 ;
24156 PyObject * obj2 = 0 ;
24157 char * kwnames[] = {
24158 (char *) "self",(char *) "pos",(char *) "tool", NULL
24159 };
24160
24161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24163 if (!SWIG_IsOK(res1)) {
24164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24165 }
24166 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24167 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24168 if (!SWIG_IsOK(ecode2)) {
24169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24170 }
24171 arg2 = static_cast< size_t >(val2);
24172 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24173 if (!SWIG_IsOK(res3)) {
24174 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24175 }
24176 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24177 {
24178 PyThreadState* __tstate = wxPyBeginAllowThreads();
24179 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24180 wxPyEndAllowThreads(__tstate);
24181 if (PyErr_Occurred()) SWIG_fail;
24182 }
24183 {
24184 resultobj = wxPyMake_wxObject(result, (bool)0);
24185 }
24186 return resultobj;
24187 fail:
24188 return NULL;
24189 }
24190
24191
24192 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24193 PyObject *resultobj = 0;
24194 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24195 wxControl *arg2 = (wxControl *) 0 ;
24196 wxToolBarToolBase *result = 0 ;
24197 void *argp1 = 0 ;
24198 int res1 = 0 ;
24199 void *argp2 = 0 ;
24200 int res2 = 0 ;
24201 PyObject * obj0 = 0 ;
24202 PyObject * obj1 = 0 ;
24203 char * kwnames[] = {
24204 (char *) "self",(char *) "control", NULL
24205 };
24206
24207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24209 if (!SWIG_IsOK(res1)) {
24210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24211 }
24212 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24213 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24214 if (!SWIG_IsOK(res2)) {
24215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24216 }
24217 arg2 = reinterpret_cast< wxControl * >(argp2);
24218 {
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24221 wxPyEndAllowThreads(__tstate);
24222 if (PyErr_Occurred()) SWIG_fail;
24223 }
24224 {
24225 resultobj = wxPyMake_wxObject(result, (bool)0);
24226 }
24227 return resultobj;
24228 fail:
24229 return NULL;
24230 }
24231
24232
24233 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24234 PyObject *resultobj = 0;
24235 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24236 size_t arg2 ;
24237 wxControl *arg3 = (wxControl *) 0 ;
24238 wxToolBarToolBase *result = 0 ;
24239 void *argp1 = 0 ;
24240 int res1 = 0 ;
24241 size_t val2 ;
24242 int ecode2 = 0 ;
24243 void *argp3 = 0 ;
24244 int res3 = 0 ;
24245 PyObject * obj0 = 0 ;
24246 PyObject * obj1 = 0 ;
24247 PyObject * obj2 = 0 ;
24248 char * kwnames[] = {
24249 (char *) "self",(char *) "pos",(char *) "control", NULL
24250 };
24251
24252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) 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_InsertControl" "', 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_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24261 }
24262 arg2 = static_cast< size_t >(val2);
24263 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24264 if (!SWIG_IsOK(res3)) {
24265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24266 }
24267 arg3 = reinterpret_cast< wxControl * >(argp3);
24268 {
24269 PyThreadState* __tstate = wxPyBeginAllowThreads();
24270 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24271 wxPyEndAllowThreads(__tstate);
24272 if (PyErr_Occurred()) SWIG_fail;
24273 }
24274 {
24275 resultobj = wxPyMake_wxObject(result, (bool)0);
24276 }
24277 return resultobj;
24278 fail:
24279 return NULL;
24280 }
24281
24282
24283 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24284 PyObject *resultobj = 0;
24285 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24286 int arg2 ;
24287 wxControl *result = 0 ;
24288 void *argp1 = 0 ;
24289 int res1 = 0 ;
24290 int val2 ;
24291 int ecode2 = 0 ;
24292 PyObject * obj0 = 0 ;
24293 PyObject * obj1 = 0 ;
24294 char * kwnames[] = {
24295 (char *) "self",(char *) "id", NULL
24296 };
24297
24298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24300 if (!SWIG_IsOK(res1)) {
24301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24302 }
24303 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24304 ecode2 = SWIG_AsVal_int(obj1, &val2);
24305 if (!SWIG_IsOK(ecode2)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24307 }
24308 arg2 = static_cast< int >(val2);
24309 {
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 result = (wxControl *)(arg1)->FindControl(arg2);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 {
24316 resultobj = wxPyMake_wxObject(result, 0);
24317 }
24318 return resultobj;
24319 fail:
24320 return NULL;
24321 }
24322
24323
24324 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24325 PyObject *resultobj = 0;
24326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24327 wxToolBarToolBase *result = 0 ;
24328 void *argp1 = 0 ;
24329 int res1 = 0 ;
24330 PyObject *swig_obj[1] ;
24331
24332 if (!args) SWIG_fail;
24333 swig_obj[0] = args;
24334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24335 if (!SWIG_IsOK(res1)) {
24336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24337 }
24338 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24339 {
24340 PyThreadState* __tstate = wxPyBeginAllowThreads();
24341 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24342 wxPyEndAllowThreads(__tstate);
24343 if (PyErr_Occurred()) SWIG_fail;
24344 }
24345 {
24346 resultobj = wxPyMake_wxObject(result, (bool)0);
24347 }
24348 return resultobj;
24349 fail:
24350 return NULL;
24351 }
24352
24353
24354 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24355 PyObject *resultobj = 0;
24356 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24357 size_t arg2 ;
24358 wxToolBarToolBase *result = 0 ;
24359 void *argp1 = 0 ;
24360 int res1 = 0 ;
24361 size_t val2 ;
24362 int ecode2 = 0 ;
24363 PyObject * obj0 = 0 ;
24364 PyObject * obj1 = 0 ;
24365 char * kwnames[] = {
24366 (char *) "self",(char *) "pos", NULL
24367 };
24368
24369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24371 if (!SWIG_IsOK(res1)) {
24372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24373 }
24374 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24375 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24376 if (!SWIG_IsOK(ecode2)) {
24377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24378 }
24379 arg2 = static_cast< size_t >(val2);
24380 {
24381 PyThreadState* __tstate = wxPyBeginAllowThreads();
24382 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24383 wxPyEndAllowThreads(__tstate);
24384 if (PyErr_Occurred()) SWIG_fail;
24385 }
24386 {
24387 resultobj = wxPyMake_wxObject(result, (bool)0);
24388 }
24389 return resultobj;
24390 fail:
24391 return NULL;
24392 }
24393
24394
24395 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24396 PyObject *resultobj = 0;
24397 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24398 int arg2 ;
24399 wxToolBarToolBase *result = 0 ;
24400 void *argp1 = 0 ;
24401 int res1 = 0 ;
24402 int val2 ;
24403 int ecode2 = 0 ;
24404 PyObject * obj0 = 0 ;
24405 PyObject * obj1 = 0 ;
24406 char * kwnames[] = {
24407 (char *) "self",(char *) "id", NULL
24408 };
24409
24410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24414 }
24415 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24416 ecode2 = SWIG_AsVal_int(obj1, &val2);
24417 if (!SWIG_IsOK(ecode2)) {
24418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24419 }
24420 arg2 = static_cast< int >(val2);
24421 {
24422 PyThreadState* __tstate = wxPyBeginAllowThreads();
24423 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24424 wxPyEndAllowThreads(__tstate);
24425 if (PyErr_Occurred()) SWIG_fail;
24426 }
24427 {
24428 resultobj = wxPyMake_wxObject(result, (bool)0);
24429 }
24430 return resultobj;
24431 fail:
24432 return NULL;
24433 }
24434
24435
24436 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24437 PyObject *resultobj = 0;
24438 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24439 size_t arg2 ;
24440 bool result;
24441 void *argp1 = 0 ;
24442 int res1 = 0 ;
24443 size_t val2 ;
24444 int ecode2 = 0 ;
24445 PyObject * obj0 = 0 ;
24446 PyObject * obj1 = 0 ;
24447 char * kwnames[] = {
24448 (char *) "self",(char *) "pos", NULL
24449 };
24450
24451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24453 if (!SWIG_IsOK(res1)) {
24454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24455 }
24456 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24457 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24458 if (!SWIG_IsOK(ecode2)) {
24459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24460 }
24461 arg2 = static_cast< size_t >(val2);
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 result = (bool)(arg1)->DeleteToolByPos(arg2);
24465 wxPyEndAllowThreads(__tstate);
24466 if (PyErr_Occurred()) SWIG_fail;
24467 }
24468 {
24469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24470 }
24471 return resultobj;
24472 fail:
24473 return NULL;
24474 }
24475
24476
24477 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24478 PyObject *resultobj = 0;
24479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24480 int arg2 ;
24481 bool result;
24482 void *argp1 = 0 ;
24483 int res1 = 0 ;
24484 int val2 ;
24485 int ecode2 = 0 ;
24486 PyObject * obj0 = 0 ;
24487 PyObject * obj1 = 0 ;
24488 char * kwnames[] = {
24489 (char *) "self",(char *) "id", NULL
24490 };
24491
24492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24494 if (!SWIG_IsOK(res1)) {
24495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24496 }
24497 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24498 ecode2 = SWIG_AsVal_int(obj1, &val2);
24499 if (!SWIG_IsOK(ecode2)) {
24500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24501 }
24502 arg2 = static_cast< int >(val2);
24503 {
24504 PyThreadState* __tstate = wxPyBeginAllowThreads();
24505 result = (bool)(arg1)->DeleteTool(arg2);
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 {
24510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24511 }
24512 return resultobj;
24513 fail:
24514 return NULL;
24515 }
24516
24517
24518 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24519 PyObject *resultobj = 0;
24520 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24521 void *argp1 = 0 ;
24522 int res1 = 0 ;
24523 PyObject *swig_obj[1] ;
24524
24525 if (!args) SWIG_fail;
24526 swig_obj[0] = args;
24527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24528 if (!SWIG_IsOK(res1)) {
24529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24530 }
24531 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24532 {
24533 PyThreadState* __tstate = wxPyBeginAllowThreads();
24534 (arg1)->ClearTools();
24535 wxPyEndAllowThreads(__tstate);
24536 if (PyErr_Occurred()) SWIG_fail;
24537 }
24538 resultobj = SWIG_Py_Void();
24539 return resultobj;
24540 fail:
24541 return NULL;
24542 }
24543
24544
24545 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24546 PyObject *resultobj = 0;
24547 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24548 bool result;
24549 void *argp1 = 0 ;
24550 int res1 = 0 ;
24551 PyObject *swig_obj[1] ;
24552
24553 if (!args) SWIG_fail;
24554 swig_obj[0] = args;
24555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24556 if (!SWIG_IsOK(res1)) {
24557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24558 }
24559 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (bool)(arg1)->Realize();
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 {
24567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24568 }
24569 return resultobj;
24570 fail:
24571 return NULL;
24572 }
24573
24574
24575 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj = 0;
24577 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24578 int arg2 ;
24579 bool arg3 ;
24580 void *argp1 = 0 ;
24581 int res1 = 0 ;
24582 int val2 ;
24583 int ecode2 = 0 ;
24584 bool val3 ;
24585 int ecode3 = 0 ;
24586 PyObject * obj0 = 0 ;
24587 PyObject * obj1 = 0 ;
24588 PyObject * obj2 = 0 ;
24589 char * kwnames[] = {
24590 (char *) "self",(char *) "id",(char *) "enable", NULL
24591 };
24592
24593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24595 if (!SWIG_IsOK(res1)) {
24596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24597 }
24598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24599 ecode2 = SWIG_AsVal_int(obj1, &val2);
24600 if (!SWIG_IsOK(ecode2)) {
24601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24602 }
24603 arg2 = static_cast< int >(val2);
24604 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24605 if (!SWIG_IsOK(ecode3)) {
24606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24607 }
24608 arg3 = static_cast< bool >(val3);
24609 {
24610 PyThreadState* __tstate = wxPyBeginAllowThreads();
24611 (arg1)->EnableTool(arg2,arg3);
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 resultobj = SWIG_Py_Void();
24616 return resultobj;
24617 fail:
24618 return NULL;
24619 }
24620
24621
24622 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24623 PyObject *resultobj = 0;
24624 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24625 int arg2 ;
24626 bool arg3 ;
24627 void *argp1 = 0 ;
24628 int res1 = 0 ;
24629 int val2 ;
24630 int ecode2 = 0 ;
24631 bool val3 ;
24632 int ecode3 = 0 ;
24633 PyObject * obj0 = 0 ;
24634 PyObject * obj1 = 0 ;
24635 PyObject * obj2 = 0 ;
24636 char * kwnames[] = {
24637 (char *) "self",(char *) "id",(char *) "toggle", NULL
24638 };
24639
24640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24642 if (!SWIG_IsOK(res1)) {
24643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24644 }
24645 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24646 ecode2 = SWIG_AsVal_int(obj1, &val2);
24647 if (!SWIG_IsOK(ecode2)) {
24648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24649 }
24650 arg2 = static_cast< int >(val2);
24651 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24652 if (!SWIG_IsOK(ecode3)) {
24653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24654 }
24655 arg3 = static_cast< bool >(val3);
24656 {
24657 PyThreadState* __tstate = wxPyBeginAllowThreads();
24658 (arg1)->ToggleTool(arg2,arg3);
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 resultobj = SWIG_Py_Void();
24663 return resultobj;
24664 fail:
24665 return NULL;
24666 }
24667
24668
24669 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj = 0;
24671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24672 int arg2 ;
24673 bool arg3 ;
24674 void *argp1 = 0 ;
24675 int res1 = 0 ;
24676 int val2 ;
24677 int ecode2 = 0 ;
24678 bool val3 ;
24679 int ecode3 = 0 ;
24680 PyObject * obj0 = 0 ;
24681 PyObject * obj1 = 0 ;
24682 PyObject * obj2 = 0 ;
24683 char * kwnames[] = {
24684 (char *) "self",(char *) "id",(char *) "toggle", NULL
24685 };
24686
24687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24689 if (!SWIG_IsOK(res1)) {
24690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24691 }
24692 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24693 ecode2 = SWIG_AsVal_int(obj1, &val2);
24694 if (!SWIG_IsOK(ecode2)) {
24695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24696 }
24697 arg2 = static_cast< int >(val2);
24698 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24699 if (!SWIG_IsOK(ecode3)) {
24700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24701 }
24702 arg3 = static_cast< bool >(val3);
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 (arg1)->SetToggle(arg2,arg3);
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 resultobj = SWIG_Py_Void();
24710 return resultobj;
24711 fail:
24712 return NULL;
24713 }
24714
24715
24716 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24717 PyObject *resultobj = 0;
24718 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24719 int arg2 ;
24720 PyObject *result = 0 ;
24721 void *argp1 = 0 ;
24722 int res1 = 0 ;
24723 int val2 ;
24724 int ecode2 = 0 ;
24725 PyObject * obj0 = 0 ;
24726 PyObject * obj1 = 0 ;
24727 char * kwnames[] = {
24728 (char *) "self",(char *) "id", NULL
24729 };
24730
24731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24733 if (!SWIG_IsOK(res1)) {
24734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24735 }
24736 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24737 ecode2 = SWIG_AsVal_int(obj1, &val2);
24738 if (!SWIG_IsOK(ecode2)) {
24739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24740 }
24741 arg2 = static_cast< int >(val2);
24742 {
24743 PyThreadState* __tstate = wxPyBeginAllowThreads();
24744 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24745 wxPyEndAllowThreads(__tstate);
24746 if (PyErr_Occurred()) SWIG_fail;
24747 }
24748 resultobj = result;
24749 return resultobj;
24750 fail:
24751 return NULL;
24752 }
24753
24754
24755 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24756 PyObject *resultobj = 0;
24757 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24758 int arg2 ;
24759 PyObject *arg3 = (PyObject *) 0 ;
24760 void *argp1 = 0 ;
24761 int res1 = 0 ;
24762 int val2 ;
24763 int ecode2 = 0 ;
24764 PyObject * obj0 = 0 ;
24765 PyObject * obj1 = 0 ;
24766 PyObject * obj2 = 0 ;
24767 char * kwnames[] = {
24768 (char *) "self",(char *) "id",(char *) "clientData", NULL
24769 };
24770
24771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24773 if (!SWIG_IsOK(res1)) {
24774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24775 }
24776 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24777 ecode2 = SWIG_AsVal_int(obj1, &val2);
24778 if (!SWIG_IsOK(ecode2)) {
24779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24780 }
24781 arg2 = static_cast< int >(val2);
24782 arg3 = obj2;
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24786 wxPyEndAllowThreads(__tstate);
24787 if (PyErr_Occurred()) SWIG_fail;
24788 }
24789 resultobj = SWIG_Py_Void();
24790 return resultobj;
24791 fail:
24792 return NULL;
24793 }
24794
24795
24796 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24797 PyObject *resultobj = 0;
24798 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24799 int arg2 ;
24800 int result;
24801 void *argp1 = 0 ;
24802 int res1 = 0 ;
24803 int val2 ;
24804 int ecode2 = 0 ;
24805 PyObject * obj0 = 0 ;
24806 PyObject * obj1 = 0 ;
24807 char * kwnames[] = {
24808 (char *) "self",(char *) "id", NULL
24809 };
24810
24811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24813 if (!SWIG_IsOK(res1)) {
24814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24815 }
24816 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24817 ecode2 = SWIG_AsVal_int(obj1, &val2);
24818 if (!SWIG_IsOK(ecode2)) {
24819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24820 }
24821 arg2 = static_cast< int >(val2);
24822 {
24823 PyThreadState* __tstate = wxPyBeginAllowThreads();
24824 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24825 wxPyEndAllowThreads(__tstate);
24826 if (PyErr_Occurred()) SWIG_fail;
24827 }
24828 resultobj = SWIG_From_int(static_cast< int >(result));
24829 return resultobj;
24830 fail:
24831 return NULL;
24832 }
24833
24834
24835 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24836 PyObject *resultobj = 0;
24837 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24838 int arg2 ;
24839 bool result;
24840 void *argp1 = 0 ;
24841 int res1 = 0 ;
24842 int val2 ;
24843 int ecode2 = 0 ;
24844 PyObject * obj0 = 0 ;
24845 PyObject * obj1 = 0 ;
24846 char * kwnames[] = {
24847 (char *) "self",(char *) "id", NULL
24848 };
24849
24850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24852 if (!SWIG_IsOK(res1)) {
24853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24854 }
24855 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24856 ecode2 = SWIG_AsVal_int(obj1, &val2);
24857 if (!SWIG_IsOK(ecode2)) {
24858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24859 }
24860 arg2 = static_cast< int >(val2);
24861 {
24862 PyThreadState* __tstate = wxPyBeginAllowThreads();
24863 result = (bool)(arg1)->GetToolState(arg2);
24864 wxPyEndAllowThreads(__tstate);
24865 if (PyErr_Occurred()) SWIG_fail;
24866 }
24867 {
24868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24869 }
24870 return resultobj;
24871 fail:
24872 return NULL;
24873 }
24874
24875
24876 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24877 PyObject *resultobj = 0;
24878 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24879 int arg2 ;
24880 bool result;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 int val2 ;
24884 int ecode2 = 0 ;
24885 PyObject * obj0 = 0 ;
24886 PyObject * obj1 = 0 ;
24887 char * kwnames[] = {
24888 (char *) "self",(char *) "id", NULL
24889 };
24890
24891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24893 if (!SWIG_IsOK(res1)) {
24894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24895 }
24896 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24897 ecode2 = SWIG_AsVal_int(obj1, &val2);
24898 if (!SWIG_IsOK(ecode2)) {
24899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24900 }
24901 arg2 = static_cast< int >(val2);
24902 {
24903 PyThreadState* __tstate = wxPyBeginAllowThreads();
24904 result = (bool)(arg1)->GetToolEnabled(arg2);
24905 wxPyEndAllowThreads(__tstate);
24906 if (PyErr_Occurred()) SWIG_fail;
24907 }
24908 {
24909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24910 }
24911 return resultobj;
24912 fail:
24913 return NULL;
24914 }
24915
24916
24917 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24918 PyObject *resultobj = 0;
24919 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24920 int arg2 ;
24921 wxString *arg3 = 0 ;
24922 void *argp1 = 0 ;
24923 int res1 = 0 ;
24924 int val2 ;
24925 int ecode2 = 0 ;
24926 bool temp3 = false ;
24927 PyObject * obj0 = 0 ;
24928 PyObject * obj1 = 0 ;
24929 PyObject * obj2 = 0 ;
24930 char * kwnames[] = {
24931 (char *) "self",(char *) "id",(char *) "helpString", NULL
24932 };
24933
24934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",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_SetToolShortHelp" "', 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_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24943 }
24944 arg2 = static_cast< int >(val2);
24945 {
24946 arg3 = wxString_in_helper(obj2);
24947 if (arg3 == NULL) SWIG_fail;
24948 temp3 = true;
24949 }
24950 {
24951 PyThreadState* __tstate = wxPyBeginAllowThreads();
24952 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 resultobj = SWIG_Py_Void();
24957 {
24958 if (temp3)
24959 delete arg3;
24960 }
24961 return resultobj;
24962 fail:
24963 {
24964 if (temp3)
24965 delete arg3;
24966 }
24967 return NULL;
24968 }
24969
24970
24971 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24972 PyObject *resultobj = 0;
24973 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24974 int arg2 ;
24975 wxString result;
24976 void *argp1 = 0 ;
24977 int res1 = 0 ;
24978 int val2 ;
24979 int ecode2 = 0 ;
24980 PyObject * obj0 = 0 ;
24981 PyObject * obj1 = 0 ;
24982 char * kwnames[] = {
24983 (char *) "self",(char *) "id", NULL
24984 };
24985
24986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24988 if (!SWIG_IsOK(res1)) {
24989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24990 }
24991 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24992 ecode2 = SWIG_AsVal_int(obj1, &val2);
24993 if (!SWIG_IsOK(ecode2)) {
24994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24995 }
24996 arg2 = static_cast< int >(val2);
24997 {
24998 PyThreadState* __tstate = wxPyBeginAllowThreads();
24999 result = (arg1)->GetToolShortHelp(arg2);
25000 wxPyEndAllowThreads(__tstate);
25001 if (PyErr_Occurred()) SWIG_fail;
25002 }
25003 {
25004 #if wxUSE_UNICODE
25005 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25006 #else
25007 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25008 #endif
25009 }
25010 return resultobj;
25011 fail:
25012 return NULL;
25013 }
25014
25015
25016 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25017 PyObject *resultobj = 0;
25018 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25019 int arg2 ;
25020 wxString *arg3 = 0 ;
25021 void *argp1 = 0 ;
25022 int res1 = 0 ;
25023 int val2 ;
25024 int ecode2 = 0 ;
25025 bool temp3 = false ;
25026 PyObject * obj0 = 0 ;
25027 PyObject * obj1 = 0 ;
25028 PyObject * obj2 = 0 ;
25029 char * kwnames[] = {
25030 (char *) "self",(char *) "id",(char *) "helpString", NULL
25031 };
25032
25033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25035 if (!SWIG_IsOK(res1)) {
25036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25037 }
25038 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25039 ecode2 = SWIG_AsVal_int(obj1, &val2);
25040 if (!SWIG_IsOK(ecode2)) {
25041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25042 }
25043 arg2 = static_cast< int >(val2);
25044 {
25045 arg3 = wxString_in_helper(obj2);
25046 if (arg3 == NULL) SWIG_fail;
25047 temp3 = true;
25048 }
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 resultobj = SWIG_Py_Void();
25056 {
25057 if (temp3)
25058 delete arg3;
25059 }
25060 return resultobj;
25061 fail:
25062 {
25063 if (temp3)
25064 delete arg3;
25065 }
25066 return NULL;
25067 }
25068
25069
25070 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25071 PyObject *resultobj = 0;
25072 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25073 int arg2 ;
25074 wxString result;
25075 void *argp1 = 0 ;
25076 int res1 = 0 ;
25077 int val2 ;
25078 int ecode2 = 0 ;
25079 PyObject * obj0 = 0 ;
25080 PyObject * obj1 = 0 ;
25081 char * kwnames[] = {
25082 (char *) "self",(char *) "id", NULL
25083 };
25084
25085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25087 if (!SWIG_IsOK(res1)) {
25088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25089 }
25090 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25091 ecode2 = SWIG_AsVal_int(obj1, &val2);
25092 if (!SWIG_IsOK(ecode2)) {
25093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25094 }
25095 arg2 = static_cast< int >(val2);
25096 {
25097 PyThreadState* __tstate = wxPyBeginAllowThreads();
25098 result = (arg1)->GetToolLongHelp(arg2);
25099 wxPyEndAllowThreads(__tstate);
25100 if (PyErr_Occurred()) SWIG_fail;
25101 }
25102 {
25103 #if wxUSE_UNICODE
25104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25105 #else
25106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25107 #endif
25108 }
25109 return resultobj;
25110 fail:
25111 return NULL;
25112 }
25113
25114
25115 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25116 PyObject *resultobj = 0;
25117 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25118 int arg2 ;
25119 int arg3 ;
25120 void *argp1 = 0 ;
25121 int res1 = 0 ;
25122 int val2 ;
25123 int ecode2 = 0 ;
25124 int val3 ;
25125 int ecode3 = 0 ;
25126 PyObject * obj0 = 0 ;
25127 PyObject * obj1 = 0 ;
25128 PyObject * obj2 = 0 ;
25129 char * kwnames[] = {
25130 (char *) "self",(char *) "x",(char *) "y", NULL
25131 };
25132
25133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25135 if (!SWIG_IsOK(res1)) {
25136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25137 }
25138 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25139 ecode2 = SWIG_AsVal_int(obj1, &val2);
25140 if (!SWIG_IsOK(ecode2)) {
25141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25142 }
25143 arg2 = static_cast< int >(val2);
25144 ecode3 = SWIG_AsVal_int(obj2, &val3);
25145 if (!SWIG_IsOK(ecode3)) {
25146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25147 }
25148 arg3 = static_cast< int >(val3);
25149 {
25150 PyThreadState* __tstate = wxPyBeginAllowThreads();
25151 (arg1)->SetMargins(arg2,arg3);
25152 wxPyEndAllowThreads(__tstate);
25153 if (PyErr_Occurred()) SWIG_fail;
25154 }
25155 resultobj = SWIG_Py_Void();
25156 return resultobj;
25157 fail:
25158 return NULL;
25159 }
25160
25161
25162 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25163 PyObject *resultobj = 0;
25164 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25165 wxSize *arg2 = 0 ;
25166 void *argp1 = 0 ;
25167 int res1 = 0 ;
25168 wxSize temp2 ;
25169 PyObject * obj0 = 0 ;
25170 PyObject * obj1 = 0 ;
25171 char * kwnames[] = {
25172 (char *) "self",(char *) "size", NULL
25173 };
25174
25175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25177 if (!SWIG_IsOK(res1)) {
25178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25179 }
25180 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25181 {
25182 arg2 = &temp2;
25183 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25184 }
25185 {
25186 PyThreadState* __tstate = wxPyBeginAllowThreads();
25187 (arg1)->SetMargins((wxSize const &)*arg2);
25188 wxPyEndAllowThreads(__tstate);
25189 if (PyErr_Occurred()) SWIG_fail;
25190 }
25191 resultobj = SWIG_Py_Void();
25192 return resultobj;
25193 fail:
25194 return NULL;
25195 }
25196
25197
25198 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25199 PyObject *resultobj = 0;
25200 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25201 int arg2 ;
25202 void *argp1 = 0 ;
25203 int res1 = 0 ;
25204 int val2 ;
25205 int ecode2 = 0 ;
25206 PyObject * obj0 = 0 ;
25207 PyObject * obj1 = 0 ;
25208 char * kwnames[] = {
25209 (char *) "self",(char *) "packing", NULL
25210 };
25211
25212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25214 if (!SWIG_IsOK(res1)) {
25215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25216 }
25217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25218 ecode2 = SWIG_AsVal_int(obj1, &val2);
25219 if (!SWIG_IsOK(ecode2)) {
25220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25221 }
25222 arg2 = static_cast< int >(val2);
25223 {
25224 PyThreadState* __tstate = wxPyBeginAllowThreads();
25225 (arg1)->SetToolPacking(arg2);
25226 wxPyEndAllowThreads(__tstate);
25227 if (PyErr_Occurred()) SWIG_fail;
25228 }
25229 resultobj = SWIG_Py_Void();
25230 return resultobj;
25231 fail:
25232 return NULL;
25233 }
25234
25235
25236 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25237 PyObject *resultobj = 0;
25238 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25239 int arg2 ;
25240 void *argp1 = 0 ;
25241 int res1 = 0 ;
25242 int val2 ;
25243 int ecode2 = 0 ;
25244 PyObject * obj0 = 0 ;
25245 PyObject * obj1 = 0 ;
25246 char * kwnames[] = {
25247 (char *) "self",(char *) "separation", NULL
25248 };
25249
25250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25252 if (!SWIG_IsOK(res1)) {
25253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25254 }
25255 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25256 ecode2 = SWIG_AsVal_int(obj1, &val2);
25257 if (!SWIG_IsOK(ecode2)) {
25258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25259 }
25260 arg2 = static_cast< int >(val2);
25261 {
25262 PyThreadState* __tstate = wxPyBeginAllowThreads();
25263 (arg1)->SetToolSeparation(arg2);
25264 wxPyEndAllowThreads(__tstate);
25265 if (PyErr_Occurred()) SWIG_fail;
25266 }
25267 resultobj = SWIG_Py_Void();
25268 return resultobj;
25269 fail:
25270 return NULL;
25271 }
25272
25273
25274 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25275 PyObject *resultobj = 0;
25276 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25277 wxSize result;
25278 void *argp1 = 0 ;
25279 int res1 = 0 ;
25280 PyObject *swig_obj[1] ;
25281
25282 if (!args) SWIG_fail;
25283 swig_obj[0] = args;
25284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25285 if (!SWIG_IsOK(res1)) {
25286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25287 }
25288 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25289 {
25290 PyThreadState* __tstate = wxPyBeginAllowThreads();
25291 result = (arg1)->GetToolMargins();
25292 wxPyEndAllowThreads(__tstate);
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25296 return resultobj;
25297 fail:
25298 return NULL;
25299 }
25300
25301
25302 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25303 PyObject *resultobj = 0;
25304 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25305 wxSize result;
25306 void *argp1 = 0 ;
25307 int res1 = 0 ;
25308 PyObject *swig_obj[1] ;
25309
25310 if (!args) SWIG_fail;
25311 swig_obj[0] = args;
25312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25313 if (!SWIG_IsOK(res1)) {
25314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25315 }
25316 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25317 {
25318 PyThreadState* __tstate = wxPyBeginAllowThreads();
25319 result = (arg1)->GetMargins();
25320 wxPyEndAllowThreads(__tstate);
25321 if (PyErr_Occurred()) SWIG_fail;
25322 }
25323 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25324 return resultobj;
25325 fail:
25326 return NULL;
25327 }
25328
25329
25330 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25331 PyObject *resultobj = 0;
25332 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25333 int result;
25334 void *argp1 = 0 ;
25335 int res1 = 0 ;
25336 PyObject *swig_obj[1] ;
25337
25338 if (!args) SWIG_fail;
25339 swig_obj[0] = args;
25340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25341 if (!SWIG_IsOK(res1)) {
25342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25343 }
25344 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25345 {
25346 PyThreadState* __tstate = wxPyBeginAllowThreads();
25347 result = (int)(arg1)->GetToolPacking();
25348 wxPyEndAllowThreads(__tstate);
25349 if (PyErr_Occurred()) SWIG_fail;
25350 }
25351 resultobj = SWIG_From_int(static_cast< int >(result));
25352 return resultobj;
25353 fail:
25354 return NULL;
25355 }
25356
25357
25358 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25359 PyObject *resultobj = 0;
25360 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25361 int result;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 PyObject *swig_obj[1] ;
25365
25366 if (!args) SWIG_fail;
25367 swig_obj[0] = args;
25368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25369 if (!SWIG_IsOK(res1)) {
25370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25371 }
25372 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25373 {
25374 PyThreadState* __tstate = wxPyBeginAllowThreads();
25375 result = (int)(arg1)->GetToolSeparation();
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 resultobj = SWIG_From_int(static_cast< int >(result));
25380 return resultobj;
25381 fail:
25382 return NULL;
25383 }
25384
25385
25386 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25387 PyObject *resultobj = 0;
25388 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25389 int arg2 ;
25390 void *argp1 = 0 ;
25391 int res1 = 0 ;
25392 int val2 ;
25393 int ecode2 = 0 ;
25394 PyObject * obj0 = 0 ;
25395 PyObject * obj1 = 0 ;
25396 char * kwnames[] = {
25397 (char *) "self",(char *) "nRows", NULL
25398 };
25399
25400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25402 if (!SWIG_IsOK(res1)) {
25403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25404 }
25405 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25406 ecode2 = SWIG_AsVal_int(obj1, &val2);
25407 if (!SWIG_IsOK(ecode2)) {
25408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25409 }
25410 arg2 = static_cast< int >(val2);
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 (arg1)->SetRows(arg2);
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 resultobj = SWIG_Py_Void();
25418 return resultobj;
25419 fail:
25420 return NULL;
25421 }
25422
25423
25424 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25425 PyObject *resultobj = 0;
25426 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25427 int arg2 ;
25428 int arg3 ;
25429 void *argp1 = 0 ;
25430 int res1 = 0 ;
25431 int val2 ;
25432 int ecode2 = 0 ;
25433 int val3 ;
25434 int ecode3 = 0 ;
25435 PyObject * obj0 = 0 ;
25436 PyObject * obj1 = 0 ;
25437 PyObject * obj2 = 0 ;
25438 char * kwnames[] = {
25439 (char *) "self",(char *) "rows",(char *) "cols", NULL
25440 };
25441
25442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25444 if (!SWIG_IsOK(res1)) {
25445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25446 }
25447 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25448 ecode2 = SWIG_AsVal_int(obj1, &val2);
25449 if (!SWIG_IsOK(ecode2)) {
25450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25451 }
25452 arg2 = static_cast< int >(val2);
25453 ecode3 = SWIG_AsVal_int(obj2, &val3);
25454 if (!SWIG_IsOK(ecode3)) {
25455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25456 }
25457 arg3 = static_cast< int >(val3);
25458 {
25459 PyThreadState* __tstate = wxPyBeginAllowThreads();
25460 (arg1)->SetMaxRowsCols(arg2,arg3);
25461 wxPyEndAllowThreads(__tstate);
25462 if (PyErr_Occurred()) SWIG_fail;
25463 }
25464 resultobj = SWIG_Py_Void();
25465 return resultobj;
25466 fail:
25467 return NULL;
25468 }
25469
25470
25471 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25472 PyObject *resultobj = 0;
25473 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25474 int result;
25475 void *argp1 = 0 ;
25476 int res1 = 0 ;
25477 PyObject *swig_obj[1] ;
25478
25479 if (!args) SWIG_fail;
25480 swig_obj[0] = args;
25481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25482 if (!SWIG_IsOK(res1)) {
25483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25484 }
25485 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25486 {
25487 PyThreadState* __tstate = wxPyBeginAllowThreads();
25488 result = (int)(arg1)->GetMaxRows();
25489 wxPyEndAllowThreads(__tstate);
25490 if (PyErr_Occurred()) SWIG_fail;
25491 }
25492 resultobj = SWIG_From_int(static_cast< int >(result));
25493 return resultobj;
25494 fail:
25495 return NULL;
25496 }
25497
25498
25499 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25500 PyObject *resultobj = 0;
25501 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25502 int result;
25503 void *argp1 = 0 ;
25504 int res1 = 0 ;
25505 PyObject *swig_obj[1] ;
25506
25507 if (!args) SWIG_fail;
25508 swig_obj[0] = args;
25509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25510 if (!SWIG_IsOK(res1)) {
25511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25512 }
25513 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25514 {
25515 PyThreadState* __tstate = wxPyBeginAllowThreads();
25516 result = (int)(arg1)->GetMaxCols();
25517 wxPyEndAllowThreads(__tstate);
25518 if (PyErr_Occurred()) SWIG_fail;
25519 }
25520 resultobj = SWIG_From_int(static_cast< int >(result));
25521 return resultobj;
25522 fail:
25523 return NULL;
25524 }
25525
25526
25527 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25528 PyObject *resultobj = 0;
25529 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25530 wxSize *arg2 = 0 ;
25531 void *argp1 = 0 ;
25532 int res1 = 0 ;
25533 wxSize temp2 ;
25534 PyObject * obj0 = 0 ;
25535 PyObject * obj1 = 0 ;
25536 char * kwnames[] = {
25537 (char *) "self",(char *) "size", NULL
25538 };
25539
25540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25542 if (!SWIG_IsOK(res1)) {
25543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25544 }
25545 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25546 {
25547 arg2 = &temp2;
25548 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25549 }
25550 {
25551 PyThreadState* __tstate = wxPyBeginAllowThreads();
25552 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25553 wxPyEndAllowThreads(__tstate);
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 resultobj = SWIG_Py_Void();
25557 return resultobj;
25558 fail:
25559 return NULL;
25560 }
25561
25562
25563 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25564 PyObject *resultobj = 0;
25565 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25566 wxSize result;
25567 void *argp1 = 0 ;
25568 int res1 = 0 ;
25569 PyObject *swig_obj[1] ;
25570
25571 if (!args) SWIG_fail;
25572 swig_obj[0] = args;
25573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25574 if (!SWIG_IsOK(res1)) {
25575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25576 }
25577 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25578 {
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 result = (arg1)->GetToolBitmapSize();
25581 wxPyEndAllowThreads(__tstate);
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25585 return resultobj;
25586 fail:
25587 return NULL;
25588 }
25589
25590
25591 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25592 PyObject *resultobj = 0;
25593 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25594 wxSize result;
25595 void *argp1 = 0 ;
25596 int res1 = 0 ;
25597 PyObject *swig_obj[1] ;
25598
25599 if (!args) SWIG_fail;
25600 swig_obj[0] = args;
25601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25602 if (!SWIG_IsOK(res1)) {
25603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25604 }
25605 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25606 {
25607 PyThreadState* __tstate = wxPyBeginAllowThreads();
25608 result = (arg1)->GetToolSize();
25609 wxPyEndAllowThreads(__tstate);
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25613 return resultobj;
25614 fail:
25615 return NULL;
25616 }
25617
25618
25619 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25620 PyObject *resultobj = 0;
25621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25622 int arg2 ;
25623 int arg3 ;
25624 wxToolBarToolBase *result = 0 ;
25625 void *argp1 = 0 ;
25626 int res1 = 0 ;
25627 int val2 ;
25628 int ecode2 = 0 ;
25629 int val3 ;
25630 int ecode3 = 0 ;
25631 PyObject * obj0 = 0 ;
25632 PyObject * obj1 = 0 ;
25633 PyObject * obj2 = 0 ;
25634 char * kwnames[] = {
25635 (char *) "self",(char *) "x",(char *) "y", NULL
25636 };
25637
25638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25640 if (!SWIG_IsOK(res1)) {
25641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25642 }
25643 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25644 ecode2 = SWIG_AsVal_int(obj1, &val2);
25645 if (!SWIG_IsOK(ecode2)) {
25646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25647 }
25648 arg2 = static_cast< int >(val2);
25649 ecode3 = SWIG_AsVal_int(obj2, &val3);
25650 if (!SWIG_IsOK(ecode3)) {
25651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25652 }
25653 arg3 = static_cast< int >(val3);
25654 {
25655 PyThreadState* __tstate = wxPyBeginAllowThreads();
25656 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25657 wxPyEndAllowThreads(__tstate);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
25660 {
25661 resultobj = wxPyMake_wxObject(result, (bool)0);
25662 }
25663 return resultobj;
25664 fail:
25665 return NULL;
25666 }
25667
25668
25669 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25670 PyObject *resultobj = 0;
25671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25672 int arg2 ;
25673 wxToolBarToolBase *result = 0 ;
25674 void *argp1 = 0 ;
25675 int res1 = 0 ;
25676 int val2 ;
25677 int ecode2 = 0 ;
25678 PyObject * obj0 = 0 ;
25679 PyObject * obj1 = 0 ;
25680 char * kwnames[] = {
25681 (char *) "self",(char *) "toolid", NULL
25682 };
25683
25684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25686 if (!SWIG_IsOK(res1)) {
25687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25688 }
25689 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25690 ecode2 = SWIG_AsVal_int(obj1, &val2);
25691 if (!SWIG_IsOK(ecode2)) {
25692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25693 }
25694 arg2 = static_cast< int >(val2);
25695 {
25696 PyThreadState* __tstate = wxPyBeginAllowThreads();
25697 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 {
25702 resultobj = wxPyMake_wxObject(result, (bool)0);
25703 }
25704 return resultobj;
25705 fail:
25706 return NULL;
25707 }
25708
25709
25710 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25711 PyObject *resultobj = 0;
25712 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25713 bool result;
25714 void *argp1 = 0 ;
25715 int res1 = 0 ;
25716 PyObject *swig_obj[1] ;
25717
25718 if (!args) SWIG_fail;
25719 swig_obj[0] = args;
25720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25721 if (!SWIG_IsOK(res1)) {
25722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25723 }
25724 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25725 {
25726 PyThreadState* __tstate = wxPyBeginAllowThreads();
25727 result = (bool)(arg1)->IsVertical();
25728 wxPyEndAllowThreads(__tstate);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
25731 {
25732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25733 }
25734 return resultobj;
25735 fail:
25736 return NULL;
25737 }
25738
25739
25740 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25741 PyObject *resultobj = 0;
25742 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25743 size_t result;
25744 void *argp1 = 0 ;
25745 int res1 = 0 ;
25746 PyObject *swig_obj[1] ;
25747
25748 if (!args) SWIG_fail;
25749 swig_obj[0] = args;
25750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25751 if (!SWIG_IsOK(res1)) {
25752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25753 }
25754 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25755 {
25756 PyThreadState* __tstate = wxPyBeginAllowThreads();
25757 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25758 wxPyEndAllowThreads(__tstate);
25759 if (PyErr_Occurred()) SWIG_fail;
25760 }
25761 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25762 return resultobj;
25763 fail:
25764 return NULL;
25765 }
25766
25767
25768 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25769 PyObject *obj;
25770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25771 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25772 return SWIG_Py_Void();
25773 }
25774
25775 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25776 PyObject *resultobj = 0;
25777 wxWindow *arg1 = (wxWindow *) 0 ;
25778 int arg2 = (int) -1 ;
25779 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25780 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25781 wxSize const &arg4_defvalue = wxDefaultSize ;
25782 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25783 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25784 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25785 wxString *arg6 = (wxString *) &arg6_defvalue ;
25786 wxToolBar *result = 0 ;
25787 void *argp1 = 0 ;
25788 int res1 = 0 ;
25789 int val2 ;
25790 int ecode2 = 0 ;
25791 wxPoint temp3 ;
25792 wxSize temp4 ;
25793 long val5 ;
25794 int ecode5 = 0 ;
25795 bool temp6 = false ;
25796 PyObject * obj0 = 0 ;
25797 PyObject * obj1 = 0 ;
25798 PyObject * obj2 = 0 ;
25799 PyObject * obj3 = 0 ;
25800 PyObject * obj4 = 0 ;
25801 PyObject * obj5 = 0 ;
25802 char * kwnames[] = {
25803 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25804 };
25805
25806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25808 if (!SWIG_IsOK(res1)) {
25809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25810 }
25811 arg1 = reinterpret_cast< wxWindow * >(argp1);
25812 if (obj1) {
25813 ecode2 = SWIG_AsVal_int(obj1, &val2);
25814 if (!SWIG_IsOK(ecode2)) {
25815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25816 }
25817 arg2 = static_cast< int >(val2);
25818 }
25819 if (obj2) {
25820 {
25821 arg3 = &temp3;
25822 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25823 }
25824 }
25825 if (obj3) {
25826 {
25827 arg4 = &temp4;
25828 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25829 }
25830 }
25831 if (obj4) {
25832 ecode5 = SWIG_AsVal_long(obj4, &val5);
25833 if (!SWIG_IsOK(ecode5)) {
25834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25835 }
25836 arg5 = static_cast< long >(val5);
25837 }
25838 if (obj5) {
25839 {
25840 arg6 = wxString_in_helper(obj5);
25841 if (arg6 == NULL) SWIG_fail;
25842 temp6 = true;
25843 }
25844 }
25845 {
25846 if (!wxPyCheckForApp()) SWIG_fail;
25847 PyThreadState* __tstate = wxPyBeginAllowThreads();
25848 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25849 wxPyEndAllowThreads(__tstate);
25850 if (PyErr_Occurred()) SWIG_fail;
25851 }
25852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25853 {
25854 if (temp6)
25855 delete arg6;
25856 }
25857 return resultobj;
25858 fail:
25859 {
25860 if (temp6)
25861 delete arg6;
25862 }
25863 return NULL;
25864 }
25865
25866
25867 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25868 PyObject *resultobj = 0;
25869 wxToolBar *result = 0 ;
25870
25871 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25872 {
25873 if (!wxPyCheckForApp()) SWIG_fail;
25874 PyThreadState* __tstate = wxPyBeginAllowThreads();
25875 result = (wxToolBar *)new wxToolBar();
25876 wxPyEndAllowThreads(__tstate);
25877 if (PyErr_Occurred()) SWIG_fail;
25878 }
25879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25880 return resultobj;
25881 fail:
25882 return NULL;
25883 }
25884
25885
25886 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25887 PyObject *resultobj = 0;
25888 wxToolBar *arg1 = (wxToolBar *) 0 ;
25889 wxWindow *arg2 = (wxWindow *) 0 ;
25890 int arg3 = (int) -1 ;
25891 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25892 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25893 wxSize const &arg5_defvalue = wxDefaultSize ;
25894 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25895 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25896 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25897 wxString *arg7 = (wxString *) &arg7_defvalue ;
25898 bool result;
25899 void *argp1 = 0 ;
25900 int res1 = 0 ;
25901 void *argp2 = 0 ;
25902 int res2 = 0 ;
25903 int val3 ;
25904 int ecode3 = 0 ;
25905 wxPoint temp4 ;
25906 wxSize temp5 ;
25907 long val6 ;
25908 int ecode6 = 0 ;
25909 bool temp7 = false ;
25910 PyObject * obj0 = 0 ;
25911 PyObject * obj1 = 0 ;
25912 PyObject * obj2 = 0 ;
25913 PyObject * obj3 = 0 ;
25914 PyObject * obj4 = 0 ;
25915 PyObject * obj5 = 0 ;
25916 PyObject * obj6 = 0 ;
25917 char * kwnames[] = {
25918 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25919 };
25920
25921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25923 if (!SWIG_IsOK(res1)) {
25924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25925 }
25926 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25928 if (!SWIG_IsOK(res2)) {
25929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25930 }
25931 arg2 = reinterpret_cast< wxWindow * >(argp2);
25932 if (obj2) {
25933 ecode3 = SWIG_AsVal_int(obj2, &val3);
25934 if (!SWIG_IsOK(ecode3)) {
25935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25936 }
25937 arg3 = static_cast< int >(val3);
25938 }
25939 if (obj3) {
25940 {
25941 arg4 = &temp4;
25942 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25943 }
25944 }
25945 if (obj4) {
25946 {
25947 arg5 = &temp5;
25948 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25949 }
25950 }
25951 if (obj5) {
25952 ecode6 = SWIG_AsVal_long(obj5, &val6);
25953 if (!SWIG_IsOK(ecode6)) {
25954 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25955 }
25956 arg6 = static_cast< long >(val6);
25957 }
25958 if (obj6) {
25959 {
25960 arg7 = wxString_in_helper(obj6);
25961 if (arg7 == NULL) SWIG_fail;
25962 temp7 = true;
25963 }
25964 }
25965 {
25966 PyThreadState* __tstate = wxPyBeginAllowThreads();
25967 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25968 wxPyEndAllowThreads(__tstate);
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 {
25972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25973 }
25974 {
25975 if (temp7)
25976 delete arg7;
25977 }
25978 return resultobj;
25979 fail:
25980 {
25981 if (temp7)
25982 delete arg7;
25983 }
25984 return NULL;
25985 }
25986
25987
25988 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25989 PyObject *resultobj = 0;
25990 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25991 SwigValueWrapper<wxVisualAttributes > result;
25992 int val1 ;
25993 int ecode1 = 0 ;
25994 PyObject * obj0 = 0 ;
25995 char * kwnames[] = {
25996 (char *) "variant", NULL
25997 };
25998
25999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26000 if (obj0) {
26001 ecode1 = SWIG_AsVal_int(obj0, &val1);
26002 if (!SWIG_IsOK(ecode1)) {
26003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26004 }
26005 arg1 = static_cast< wxWindowVariant >(val1);
26006 }
26007 {
26008 if (!wxPyCheckForApp()) SWIG_fail;
26009 PyThreadState* __tstate = wxPyBeginAllowThreads();
26010 result = wxToolBar::GetClassDefaultAttributes(arg1);
26011 wxPyEndAllowThreads(__tstate);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
26014 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26015 return resultobj;
26016 fail:
26017 return NULL;
26018 }
26019
26020
26021 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26022 PyObject *obj;
26023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26024 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26025 return SWIG_Py_Void();
26026 }
26027
26028 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26029 return SWIG_Python_InitShadowInstance(args);
26030 }
26031
26032 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26033 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26034 return 1;
26035 }
26036
26037
26038 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26039 PyObject *pyobj = 0;
26040
26041 {
26042 #if wxUSE_UNICODE
26043 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26044 #else
26045 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26046 #endif
26047 }
26048 return pyobj;
26049 }
26050
26051
26052 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26053 PyObject *resultobj = 0;
26054 wxColour const &arg1_defvalue = wxNullColour ;
26055 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26056 wxColour const &arg2_defvalue = wxNullColour ;
26057 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26058 wxFont const &arg3_defvalue = wxNullFont ;
26059 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26060 wxListItemAttr *result = 0 ;
26061 wxColour temp1 ;
26062 wxColour temp2 ;
26063 void *argp3 = 0 ;
26064 int res3 = 0 ;
26065 PyObject * obj0 = 0 ;
26066 PyObject * obj1 = 0 ;
26067 PyObject * obj2 = 0 ;
26068 char * kwnames[] = {
26069 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26070 };
26071
26072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26073 if (obj0) {
26074 {
26075 arg1 = &temp1;
26076 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26077 }
26078 }
26079 if (obj1) {
26080 {
26081 arg2 = &temp2;
26082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26083 }
26084 }
26085 if (obj2) {
26086 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26087 if (!SWIG_IsOK(res3)) {
26088 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26089 }
26090 if (!argp3) {
26091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26092 }
26093 arg3 = reinterpret_cast< wxFont * >(argp3);
26094 }
26095 {
26096 PyThreadState* __tstate = wxPyBeginAllowThreads();
26097 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26098 wxPyEndAllowThreads(__tstate);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26102 return resultobj;
26103 fail:
26104 return NULL;
26105 }
26106
26107
26108 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26109 PyObject *resultobj = 0;
26110 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26111 void *argp1 = 0 ;
26112 int res1 = 0 ;
26113 PyObject *swig_obj[1] ;
26114
26115 if (!args) SWIG_fail;
26116 swig_obj[0] = args;
26117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26118 if (!SWIG_IsOK(res1)) {
26119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26120 }
26121 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26122 {
26123 PyThreadState* __tstate = wxPyBeginAllowThreads();
26124 delete arg1;
26125
26126 wxPyEndAllowThreads(__tstate);
26127 if (PyErr_Occurred()) SWIG_fail;
26128 }
26129 resultobj = SWIG_Py_Void();
26130 return resultobj;
26131 fail:
26132 return NULL;
26133 }
26134
26135
26136 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26137 PyObject *resultobj = 0;
26138 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26139 wxColour *arg2 = 0 ;
26140 void *argp1 = 0 ;
26141 int res1 = 0 ;
26142 wxColour temp2 ;
26143 PyObject * obj0 = 0 ;
26144 PyObject * obj1 = 0 ;
26145 char * kwnames[] = {
26146 (char *) "self",(char *) "colText", NULL
26147 };
26148
26149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26151 if (!SWIG_IsOK(res1)) {
26152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26153 }
26154 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26155 {
26156 arg2 = &temp2;
26157 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26158 }
26159 {
26160 PyThreadState* __tstate = wxPyBeginAllowThreads();
26161 (arg1)->SetTextColour((wxColour const &)*arg2);
26162 wxPyEndAllowThreads(__tstate);
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 resultobj = SWIG_Py_Void();
26166 return resultobj;
26167 fail:
26168 return NULL;
26169 }
26170
26171
26172 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26173 PyObject *resultobj = 0;
26174 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26175 wxColour *arg2 = 0 ;
26176 void *argp1 = 0 ;
26177 int res1 = 0 ;
26178 wxColour temp2 ;
26179 PyObject * obj0 = 0 ;
26180 PyObject * obj1 = 0 ;
26181 char * kwnames[] = {
26182 (char *) "self",(char *) "colBack", NULL
26183 };
26184
26185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26187 if (!SWIG_IsOK(res1)) {
26188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26189 }
26190 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26191 {
26192 arg2 = &temp2;
26193 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26194 }
26195 {
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26198 wxPyEndAllowThreads(__tstate);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 }
26201 resultobj = SWIG_Py_Void();
26202 return resultobj;
26203 fail:
26204 return NULL;
26205 }
26206
26207
26208 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26209 PyObject *resultobj = 0;
26210 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26211 wxFont *arg2 = 0 ;
26212 void *argp1 = 0 ;
26213 int res1 = 0 ;
26214 void *argp2 = 0 ;
26215 int res2 = 0 ;
26216 PyObject * obj0 = 0 ;
26217 PyObject * obj1 = 0 ;
26218 char * kwnames[] = {
26219 (char *) "self",(char *) "font", NULL
26220 };
26221
26222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26224 if (!SWIG_IsOK(res1)) {
26225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26226 }
26227 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26229 if (!SWIG_IsOK(res2)) {
26230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26231 }
26232 if (!argp2) {
26233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26234 }
26235 arg2 = reinterpret_cast< wxFont * >(argp2);
26236 {
26237 PyThreadState* __tstate = wxPyBeginAllowThreads();
26238 (arg1)->SetFont((wxFont const &)*arg2);
26239 wxPyEndAllowThreads(__tstate);
26240 if (PyErr_Occurred()) SWIG_fail;
26241 }
26242 resultobj = SWIG_Py_Void();
26243 return resultobj;
26244 fail:
26245 return NULL;
26246 }
26247
26248
26249 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26250 PyObject *resultobj = 0;
26251 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26252 bool result;
26253 void *argp1 = 0 ;
26254 int res1 = 0 ;
26255 PyObject *swig_obj[1] ;
26256
26257 if (!args) SWIG_fail;
26258 swig_obj[0] = args;
26259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26260 if (!SWIG_IsOK(res1)) {
26261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26262 }
26263 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26264 {
26265 PyThreadState* __tstate = wxPyBeginAllowThreads();
26266 result = (bool)(arg1)->HasTextColour();
26267 wxPyEndAllowThreads(__tstate);
26268 if (PyErr_Occurred()) SWIG_fail;
26269 }
26270 {
26271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26272 }
26273 return resultobj;
26274 fail:
26275 return NULL;
26276 }
26277
26278
26279 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26280 PyObject *resultobj = 0;
26281 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26282 bool result;
26283 void *argp1 = 0 ;
26284 int res1 = 0 ;
26285 PyObject *swig_obj[1] ;
26286
26287 if (!args) SWIG_fail;
26288 swig_obj[0] = args;
26289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26290 if (!SWIG_IsOK(res1)) {
26291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26292 }
26293 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26294 {
26295 PyThreadState* __tstate = wxPyBeginAllowThreads();
26296 result = (bool)(arg1)->HasBackgroundColour();
26297 wxPyEndAllowThreads(__tstate);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 {
26301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26302 }
26303 return resultobj;
26304 fail:
26305 return NULL;
26306 }
26307
26308
26309 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26310 PyObject *resultobj = 0;
26311 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26312 bool result;
26313 void *argp1 = 0 ;
26314 int res1 = 0 ;
26315 PyObject *swig_obj[1] ;
26316
26317 if (!args) SWIG_fail;
26318 swig_obj[0] = args;
26319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26320 if (!SWIG_IsOK(res1)) {
26321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26322 }
26323 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26324 {
26325 PyThreadState* __tstate = wxPyBeginAllowThreads();
26326 result = (bool)(arg1)->HasFont();
26327 wxPyEndAllowThreads(__tstate);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 }
26330 {
26331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26332 }
26333 return resultobj;
26334 fail:
26335 return NULL;
26336 }
26337
26338
26339 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26340 PyObject *resultobj = 0;
26341 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26342 wxColour result;
26343 void *argp1 = 0 ;
26344 int res1 = 0 ;
26345 PyObject *swig_obj[1] ;
26346
26347 if (!args) SWIG_fail;
26348 swig_obj[0] = args;
26349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26350 if (!SWIG_IsOK(res1)) {
26351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26352 }
26353 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26354 {
26355 PyThreadState* __tstate = wxPyBeginAllowThreads();
26356 result = (arg1)->GetTextColour();
26357 wxPyEndAllowThreads(__tstate);
26358 if (PyErr_Occurred()) SWIG_fail;
26359 }
26360 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26361 return resultobj;
26362 fail:
26363 return NULL;
26364 }
26365
26366
26367 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26368 PyObject *resultobj = 0;
26369 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26370 wxColour result;
26371 void *argp1 = 0 ;
26372 int res1 = 0 ;
26373 PyObject *swig_obj[1] ;
26374
26375 if (!args) SWIG_fail;
26376 swig_obj[0] = args;
26377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26378 if (!SWIG_IsOK(res1)) {
26379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26380 }
26381 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26382 {
26383 PyThreadState* __tstate = wxPyBeginAllowThreads();
26384 result = (arg1)->GetBackgroundColour();
26385 wxPyEndAllowThreads(__tstate);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26389 return resultobj;
26390 fail:
26391 return NULL;
26392 }
26393
26394
26395 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26396 PyObject *resultobj = 0;
26397 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26398 wxFont result;
26399 void *argp1 = 0 ;
26400 int res1 = 0 ;
26401 PyObject *swig_obj[1] ;
26402
26403 if (!args) SWIG_fail;
26404 swig_obj[0] = args;
26405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26406 if (!SWIG_IsOK(res1)) {
26407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26408 }
26409 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26410 {
26411 PyThreadState* __tstate = wxPyBeginAllowThreads();
26412 result = (arg1)->GetFont();
26413 wxPyEndAllowThreads(__tstate);
26414 if (PyErr_Occurred()) SWIG_fail;
26415 }
26416 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26417 return resultobj;
26418 fail:
26419 return NULL;
26420 }
26421
26422
26423 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26424 PyObject *resultobj = 0;
26425 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26426 wxListItemAttr *arg2 = 0 ;
26427 void *argp1 = 0 ;
26428 int res1 = 0 ;
26429 void *argp2 = 0 ;
26430 int res2 = 0 ;
26431 PyObject * obj0 = 0 ;
26432 PyObject * obj1 = 0 ;
26433 char * kwnames[] = {
26434 (char *) "self",(char *) "source", NULL
26435 };
26436
26437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26439 if (!SWIG_IsOK(res1)) {
26440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26441 }
26442 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26444 if (!SWIG_IsOK(res2)) {
26445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26446 }
26447 if (!argp2) {
26448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26449 }
26450 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26451 {
26452 PyThreadState* __tstate = wxPyBeginAllowThreads();
26453 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26454 wxPyEndAllowThreads(__tstate);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 }
26457 resultobj = SWIG_Py_Void();
26458 return resultobj;
26459 fail:
26460 return NULL;
26461 }
26462
26463
26464 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26465 PyObject *resultobj = 0;
26466 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26467 void *argp1 = 0 ;
26468 int res1 = 0 ;
26469 PyObject *swig_obj[1] ;
26470
26471 if (!args) SWIG_fail;
26472 swig_obj[0] = args;
26473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26474 if (!SWIG_IsOK(res1)) {
26475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26476 }
26477 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26478 {
26479 PyThreadState* __tstate = wxPyBeginAllowThreads();
26480 wxListItemAttr_Destroy(arg1);
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 resultobj = SWIG_Py_Void();
26485 return resultobj;
26486 fail:
26487 return NULL;
26488 }
26489
26490
26491 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26492 PyObject *obj;
26493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26494 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26495 return SWIG_Py_Void();
26496 }
26497
26498 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26499 return SWIG_Python_InitShadowInstance(args);
26500 }
26501
26502 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26503 PyObject *resultobj = 0;
26504 wxListItem *result = 0 ;
26505
26506 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26507 {
26508 PyThreadState* __tstate = wxPyBeginAllowThreads();
26509 result = (wxListItem *)new wxListItem();
26510 wxPyEndAllowThreads(__tstate);
26511 if (PyErr_Occurred()) SWIG_fail;
26512 }
26513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26514 return resultobj;
26515 fail:
26516 return NULL;
26517 }
26518
26519
26520 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26521 PyObject *resultobj = 0;
26522 wxListItem *arg1 = (wxListItem *) 0 ;
26523 void *argp1 = 0 ;
26524 int res1 = 0 ;
26525 PyObject *swig_obj[1] ;
26526
26527 if (!args) SWIG_fail;
26528 swig_obj[0] = args;
26529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26530 if (!SWIG_IsOK(res1)) {
26531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26532 }
26533 arg1 = reinterpret_cast< wxListItem * >(argp1);
26534 {
26535 PyThreadState* __tstate = wxPyBeginAllowThreads();
26536 delete arg1;
26537
26538 wxPyEndAllowThreads(__tstate);
26539 if (PyErr_Occurred()) SWIG_fail;
26540 }
26541 resultobj = SWIG_Py_Void();
26542 return resultobj;
26543 fail:
26544 return NULL;
26545 }
26546
26547
26548 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26549 PyObject *resultobj = 0;
26550 wxListItem *arg1 = (wxListItem *) 0 ;
26551 void *argp1 = 0 ;
26552 int res1 = 0 ;
26553 PyObject *swig_obj[1] ;
26554
26555 if (!args) SWIG_fail;
26556 swig_obj[0] = args;
26557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26558 if (!SWIG_IsOK(res1)) {
26559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26560 }
26561 arg1 = reinterpret_cast< wxListItem * >(argp1);
26562 {
26563 PyThreadState* __tstate = wxPyBeginAllowThreads();
26564 (arg1)->Clear();
26565 wxPyEndAllowThreads(__tstate);
26566 if (PyErr_Occurred()) SWIG_fail;
26567 }
26568 resultobj = SWIG_Py_Void();
26569 return resultobj;
26570 fail:
26571 return NULL;
26572 }
26573
26574
26575 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26576 PyObject *resultobj = 0;
26577 wxListItem *arg1 = (wxListItem *) 0 ;
26578 void *argp1 = 0 ;
26579 int res1 = 0 ;
26580 PyObject *swig_obj[1] ;
26581
26582 if (!args) SWIG_fail;
26583 swig_obj[0] = args;
26584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26585 if (!SWIG_IsOK(res1)) {
26586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26587 }
26588 arg1 = reinterpret_cast< wxListItem * >(argp1);
26589 {
26590 PyThreadState* __tstate = wxPyBeginAllowThreads();
26591 (arg1)->ClearAttributes();
26592 wxPyEndAllowThreads(__tstate);
26593 if (PyErr_Occurred()) SWIG_fail;
26594 }
26595 resultobj = SWIG_Py_Void();
26596 return resultobj;
26597 fail:
26598 return NULL;
26599 }
26600
26601
26602 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26603 PyObject *resultobj = 0;
26604 wxListItem *arg1 = (wxListItem *) 0 ;
26605 long arg2 ;
26606 void *argp1 = 0 ;
26607 int res1 = 0 ;
26608 long val2 ;
26609 int ecode2 = 0 ;
26610 PyObject * obj0 = 0 ;
26611 PyObject * obj1 = 0 ;
26612 char * kwnames[] = {
26613 (char *) "self",(char *) "mask", NULL
26614 };
26615
26616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26618 if (!SWIG_IsOK(res1)) {
26619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26620 }
26621 arg1 = reinterpret_cast< wxListItem * >(argp1);
26622 ecode2 = SWIG_AsVal_long(obj1, &val2);
26623 if (!SWIG_IsOK(ecode2)) {
26624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26625 }
26626 arg2 = static_cast< long >(val2);
26627 {
26628 PyThreadState* __tstate = wxPyBeginAllowThreads();
26629 (arg1)->SetMask(arg2);
26630 wxPyEndAllowThreads(__tstate);
26631 if (PyErr_Occurred()) SWIG_fail;
26632 }
26633 resultobj = SWIG_Py_Void();
26634 return resultobj;
26635 fail:
26636 return NULL;
26637 }
26638
26639
26640 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26641 PyObject *resultobj = 0;
26642 wxListItem *arg1 = (wxListItem *) 0 ;
26643 long arg2 ;
26644 void *argp1 = 0 ;
26645 int res1 = 0 ;
26646 long val2 ;
26647 int ecode2 = 0 ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char * kwnames[] = {
26651 (char *) "self",(char *) "id", NULL
26652 };
26653
26654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",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_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26658 }
26659 arg1 = reinterpret_cast< wxListItem * >(argp1);
26660 ecode2 = SWIG_AsVal_long(obj1, &val2);
26661 if (!SWIG_IsOK(ecode2)) {
26662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26663 }
26664 arg2 = static_cast< long >(val2);
26665 {
26666 PyThreadState* __tstate = wxPyBeginAllowThreads();
26667 (arg1)->SetId(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_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26679 PyObject *resultobj = 0;
26680 wxListItem *arg1 = (wxListItem *) 0 ;
26681 int arg2 ;
26682 void *argp1 = 0 ;
26683 int res1 = 0 ;
26684 int val2 ;
26685 int ecode2 = 0 ;
26686 PyObject * obj0 = 0 ;
26687 PyObject * obj1 = 0 ;
26688 char * kwnames[] = {
26689 (char *) "self",(char *) "col", NULL
26690 };
26691
26692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",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_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26696 }
26697 arg1 = reinterpret_cast< wxListItem * >(argp1);
26698 ecode2 = SWIG_AsVal_int(obj1, &val2);
26699 if (!SWIG_IsOK(ecode2)) {
26700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26701 }
26702 arg2 = static_cast< int >(val2);
26703 {
26704 PyThreadState* __tstate = wxPyBeginAllowThreads();
26705 (arg1)->SetColumn(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_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj = 0;
26718 wxListItem *arg1 = (wxListItem *) 0 ;
26719 long arg2 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 long val2 ;
26723 int ecode2 = 0 ;
26724 PyObject * obj0 = 0 ;
26725 PyObject * obj1 = 0 ;
26726 char * kwnames[] = {
26727 (char *) "self",(char *) "state", NULL
26728 };
26729
26730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",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_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26734 }
26735 arg1 = reinterpret_cast< wxListItem * >(argp1);
26736 ecode2 = SWIG_AsVal_long(obj1, &val2);
26737 if (!SWIG_IsOK(ecode2)) {
26738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26739 }
26740 arg2 = static_cast< long >(val2);
26741 {
26742 PyThreadState* __tstate = wxPyBeginAllowThreads();
26743 (arg1)->SetState(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_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26755 PyObject *resultobj = 0;
26756 wxListItem *arg1 = (wxListItem *) 0 ;
26757 long arg2 ;
26758 void *argp1 = 0 ;
26759 int res1 = 0 ;
26760 long val2 ;
26761 int ecode2 = 0 ;
26762 PyObject * obj0 = 0 ;
26763 PyObject * obj1 = 0 ;
26764 char * kwnames[] = {
26765 (char *) "self",(char *) "stateMask", NULL
26766 };
26767
26768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",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_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26772 }
26773 arg1 = reinterpret_cast< wxListItem * >(argp1);
26774 ecode2 = SWIG_AsVal_long(obj1, &val2);
26775 if (!SWIG_IsOK(ecode2)) {
26776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26777 }
26778 arg2 = static_cast< long >(val2);
26779 {
26780 PyThreadState* __tstate = wxPyBeginAllowThreads();
26781 (arg1)->SetStateMask(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_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26793 PyObject *resultobj = 0;
26794 wxListItem *arg1 = (wxListItem *) 0 ;
26795 wxString *arg2 = 0 ;
26796 void *argp1 = 0 ;
26797 int res1 = 0 ;
26798 bool temp2 = false ;
26799 PyObject * obj0 = 0 ;
26800 PyObject * obj1 = 0 ;
26801 char * kwnames[] = {
26802 (char *) "self",(char *) "text", NULL
26803 };
26804
26805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",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_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26809 }
26810 arg1 = reinterpret_cast< wxListItem * >(argp1);
26811 {
26812 arg2 = wxString_in_helper(obj1);
26813 if (arg2 == NULL) SWIG_fail;
26814 temp2 = true;
26815 }
26816 {
26817 PyThreadState* __tstate = wxPyBeginAllowThreads();
26818 (arg1)->SetText((wxString const &)*arg2);
26819 wxPyEndAllowThreads(__tstate);
26820 if (PyErr_Occurred()) SWIG_fail;
26821 }
26822 resultobj = SWIG_Py_Void();
26823 {
26824 if (temp2)
26825 delete arg2;
26826 }
26827 return resultobj;
26828 fail:
26829 {
26830 if (temp2)
26831 delete arg2;
26832 }
26833 return NULL;
26834 }
26835
26836
26837 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26838 PyObject *resultobj = 0;
26839 wxListItem *arg1 = (wxListItem *) 0 ;
26840 int arg2 ;
26841 void *argp1 = 0 ;
26842 int res1 = 0 ;
26843 int val2 ;
26844 int ecode2 = 0 ;
26845 PyObject * obj0 = 0 ;
26846 PyObject * obj1 = 0 ;
26847 char * kwnames[] = {
26848 (char *) "self",(char *) "image", NULL
26849 };
26850
26851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26853 if (!SWIG_IsOK(res1)) {
26854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26855 }
26856 arg1 = reinterpret_cast< wxListItem * >(argp1);
26857 ecode2 = SWIG_AsVal_int(obj1, &val2);
26858 if (!SWIG_IsOK(ecode2)) {
26859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26860 }
26861 arg2 = static_cast< int >(val2);
26862 {
26863 PyThreadState* __tstate = wxPyBeginAllowThreads();
26864 (arg1)->SetImage(arg2);
26865 wxPyEndAllowThreads(__tstate);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 }
26868 resultobj = SWIG_Py_Void();
26869 return resultobj;
26870 fail:
26871 return NULL;
26872 }
26873
26874
26875 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26876 PyObject *resultobj = 0;
26877 wxListItem *arg1 = (wxListItem *) 0 ;
26878 long arg2 ;
26879 void *argp1 = 0 ;
26880 int res1 = 0 ;
26881 long val2 ;
26882 int ecode2 = 0 ;
26883 PyObject * obj0 = 0 ;
26884 PyObject * obj1 = 0 ;
26885 char * kwnames[] = {
26886 (char *) "self",(char *) "data", NULL
26887 };
26888
26889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26891 if (!SWIG_IsOK(res1)) {
26892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26893 }
26894 arg1 = reinterpret_cast< wxListItem * >(argp1);
26895 ecode2 = SWIG_AsVal_long(obj1, &val2);
26896 if (!SWIG_IsOK(ecode2)) {
26897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26898 }
26899 arg2 = static_cast< long >(val2);
26900 {
26901 PyThreadState* __tstate = wxPyBeginAllowThreads();
26902 (arg1)->SetData(arg2);
26903 wxPyEndAllowThreads(__tstate);
26904 if (PyErr_Occurred()) SWIG_fail;
26905 }
26906 resultobj = SWIG_Py_Void();
26907 return resultobj;
26908 fail:
26909 return NULL;
26910 }
26911
26912
26913 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26914 PyObject *resultobj = 0;
26915 wxListItem *arg1 = (wxListItem *) 0 ;
26916 int arg2 ;
26917 void *argp1 = 0 ;
26918 int res1 = 0 ;
26919 int val2 ;
26920 int ecode2 = 0 ;
26921 PyObject * obj0 = 0 ;
26922 PyObject * obj1 = 0 ;
26923 char * kwnames[] = {
26924 (char *) "self",(char *) "width", NULL
26925 };
26926
26927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26929 if (!SWIG_IsOK(res1)) {
26930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26931 }
26932 arg1 = reinterpret_cast< wxListItem * >(argp1);
26933 ecode2 = SWIG_AsVal_int(obj1, &val2);
26934 if (!SWIG_IsOK(ecode2)) {
26935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26936 }
26937 arg2 = static_cast< int >(val2);
26938 {
26939 PyThreadState* __tstate = wxPyBeginAllowThreads();
26940 (arg1)->SetWidth(arg2);
26941 wxPyEndAllowThreads(__tstate);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
26944 resultobj = SWIG_Py_Void();
26945 return resultobj;
26946 fail:
26947 return NULL;
26948 }
26949
26950
26951 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26952 PyObject *resultobj = 0;
26953 wxListItem *arg1 = (wxListItem *) 0 ;
26954 wxListColumnFormat arg2 ;
26955 void *argp1 = 0 ;
26956 int res1 = 0 ;
26957 int val2 ;
26958 int ecode2 = 0 ;
26959 PyObject * obj0 = 0 ;
26960 PyObject * obj1 = 0 ;
26961 char * kwnames[] = {
26962 (char *) "self",(char *) "align", NULL
26963 };
26964
26965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26967 if (!SWIG_IsOK(res1)) {
26968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26969 }
26970 arg1 = reinterpret_cast< wxListItem * >(argp1);
26971 ecode2 = SWIG_AsVal_int(obj1, &val2);
26972 if (!SWIG_IsOK(ecode2)) {
26973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26974 }
26975 arg2 = static_cast< wxListColumnFormat >(val2);
26976 {
26977 PyThreadState* __tstate = wxPyBeginAllowThreads();
26978 (arg1)->SetAlign(arg2);
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 resultobj = SWIG_Py_Void();
26983 return resultobj;
26984 fail:
26985 return NULL;
26986 }
26987
26988
26989 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26990 PyObject *resultobj = 0;
26991 wxListItem *arg1 = (wxListItem *) 0 ;
26992 wxColour *arg2 = 0 ;
26993 void *argp1 = 0 ;
26994 int res1 = 0 ;
26995 wxColour temp2 ;
26996 PyObject * obj0 = 0 ;
26997 PyObject * obj1 = 0 ;
26998 char * kwnames[] = {
26999 (char *) "self",(char *) "colText", NULL
27000 };
27001
27002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27004 if (!SWIG_IsOK(res1)) {
27005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27006 }
27007 arg1 = reinterpret_cast< wxListItem * >(argp1);
27008 {
27009 arg2 = &temp2;
27010 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27011 }
27012 {
27013 PyThreadState* __tstate = wxPyBeginAllowThreads();
27014 (arg1)->SetTextColour((wxColour const &)*arg2);
27015 wxPyEndAllowThreads(__tstate);
27016 if (PyErr_Occurred()) SWIG_fail;
27017 }
27018 resultobj = SWIG_Py_Void();
27019 return resultobj;
27020 fail:
27021 return NULL;
27022 }
27023
27024
27025 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27026 PyObject *resultobj = 0;
27027 wxListItem *arg1 = (wxListItem *) 0 ;
27028 wxColour *arg2 = 0 ;
27029 void *argp1 = 0 ;
27030 int res1 = 0 ;
27031 wxColour temp2 ;
27032 PyObject * obj0 = 0 ;
27033 PyObject * obj1 = 0 ;
27034 char * kwnames[] = {
27035 (char *) "self",(char *) "colBack", NULL
27036 };
27037
27038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27040 if (!SWIG_IsOK(res1)) {
27041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27042 }
27043 arg1 = reinterpret_cast< wxListItem * >(argp1);
27044 {
27045 arg2 = &temp2;
27046 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27047 }
27048 {
27049 PyThreadState* __tstate = wxPyBeginAllowThreads();
27050 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27051 wxPyEndAllowThreads(__tstate);
27052 if (PyErr_Occurred()) SWIG_fail;
27053 }
27054 resultobj = SWIG_Py_Void();
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27062 PyObject *resultobj = 0;
27063 wxListItem *arg1 = (wxListItem *) 0 ;
27064 wxFont *arg2 = 0 ;
27065 void *argp1 = 0 ;
27066 int res1 = 0 ;
27067 void *argp2 = 0 ;
27068 int res2 = 0 ;
27069 PyObject * obj0 = 0 ;
27070 PyObject * obj1 = 0 ;
27071 char * kwnames[] = {
27072 (char *) "self",(char *) "font", NULL
27073 };
27074
27075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27077 if (!SWIG_IsOK(res1)) {
27078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27079 }
27080 arg1 = reinterpret_cast< wxListItem * >(argp1);
27081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27082 if (!SWIG_IsOK(res2)) {
27083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27084 }
27085 if (!argp2) {
27086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27087 }
27088 arg2 = reinterpret_cast< wxFont * >(argp2);
27089 {
27090 PyThreadState* __tstate = wxPyBeginAllowThreads();
27091 (arg1)->SetFont((wxFont const &)*arg2);
27092 wxPyEndAllowThreads(__tstate);
27093 if (PyErr_Occurred()) SWIG_fail;
27094 }
27095 resultobj = SWIG_Py_Void();
27096 return resultobj;
27097 fail:
27098 return NULL;
27099 }
27100
27101
27102 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27103 PyObject *resultobj = 0;
27104 wxListItem *arg1 = (wxListItem *) 0 ;
27105 long result;
27106 void *argp1 = 0 ;
27107 int res1 = 0 ;
27108 PyObject *swig_obj[1] ;
27109
27110 if (!args) SWIG_fail;
27111 swig_obj[0] = args;
27112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27113 if (!SWIG_IsOK(res1)) {
27114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27115 }
27116 arg1 = reinterpret_cast< wxListItem * >(argp1);
27117 {
27118 PyThreadState* __tstate = wxPyBeginAllowThreads();
27119 result = (long)(arg1)->GetMask();
27120 wxPyEndAllowThreads(__tstate);
27121 if (PyErr_Occurred()) SWIG_fail;
27122 }
27123 resultobj = SWIG_From_long(static_cast< long >(result));
27124 return resultobj;
27125 fail:
27126 return NULL;
27127 }
27128
27129
27130 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27131 PyObject *resultobj = 0;
27132 wxListItem *arg1 = (wxListItem *) 0 ;
27133 long result;
27134 void *argp1 = 0 ;
27135 int res1 = 0 ;
27136 PyObject *swig_obj[1] ;
27137
27138 if (!args) SWIG_fail;
27139 swig_obj[0] = args;
27140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27141 if (!SWIG_IsOK(res1)) {
27142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27143 }
27144 arg1 = reinterpret_cast< wxListItem * >(argp1);
27145 {
27146 PyThreadState* __tstate = wxPyBeginAllowThreads();
27147 result = (long)(arg1)->GetId();
27148 wxPyEndAllowThreads(__tstate);
27149 if (PyErr_Occurred()) SWIG_fail;
27150 }
27151 resultobj = SWIG_From_long(static_cast< long >(result));
27152 return resultobj;
27153 fail:
27154 return NULL;
27155 }
27156
27157
27158 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27159 PyObject *resultobj = 0;
27160 wxListItem *arg1 = (wxListItem *) 0 ;
27161 int result;
27162 void *argp1 = 0 ;
27163 int res1 = 0 ;
27164 PyObject *swig_obj[1] ;
27165
27166 if (!args) SWIG_fail;
27167 swig_obj[0] = args;
27168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27169 if (!SWIG_IsOK(res1)) {
27170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27171 }
27172 arg1 = reinterpret_cast< wxListItem * >(argp1);
27173 {
27174 PyThreadState* __tstate = wxPyBeginAllowThreads();
27175 result = (int)(arg1)->GetColumn();
27176 wxPyEndAllowThreads(__tstate);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 resultobj = SWIG_From_int(static_cast< int >(result));
27180 return resultobj;
27181 fail:
27182 return NULL;
27183 }
27184
27185
27186 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27187 PyObject *resultobj = 0;
27188 wxListItem *arg1 = (wxListItem *) 0 ;
27189 long result;
27190 void *argp1 = 0 ;
27191 int res1 = 0 ;
27192 PyObject *swig_obj[1] ;
27193
27194 if (!args) SWIG_fail;
27195 swig_obj[0] = args;
27196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27197 if (!SWIG_IsOK(res1)) {
27198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27199 }
27200 arg1 = reinterpret_cast< wxListItem * >(argp1);
27201 {
27202 PyThreadState* __tstate = wxPyBeginAllowThreads();
27203 result = (long)(arg1)->GetState();
27204 wxPyEndAllowThreads(__tstate);
27205 if (PyErr_Occurred()) SWIG_fail;
27206 }
27207 resultobj = SWIG_From_long(static_cast< long >(result));
27208 return resultobj;
27209 fail:
27210 return NULL;
27211 }
27212
27213
27214 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27215 PyObject *resultobj = 0;
27216 wxListItem *arg1 = (wxListItem *) 0 ;
27217 wxString *result = 0 ;
27218 void *argp1 = 0 ;
27219 int res1 = 0 ;
27220 PyObject *swig_obj[1] ;
27221
27222 if (!args) SWIG_fail;
27223 swig_obj[0] = args;
27224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27225 if (!SWIG_IsOK(res1)) {
27226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27227 }
27228 arg1 = reinterpret_cast< wxListItem * >(argp1);
27229 {
27230 PyThreadState* __tstate = wxPyBeginAllowThreads();
27231 {
27232 wxString const &_result_ref = (arg1)->GetText();
27233 result = (wxString *) &_result_ref;
27234 }
27235 wxPyEndAllowThreads(__tstate);
27236 if (PyErr_Occurred()) SWIG_fail;
27237 }
27238 {
27239 #if wxUSE_UNICODE
27240 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27241 #else
27242 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27243 #endif
27244 }
27245 return resultobj;
27246 fail:
27247 return NULL;
27248 }
27249
27250
27251 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27252 PyObject *resultobj = 0;
27253 wxListItem *arg1 = (wxListItem *) 0 ;
27254 int result;
27255 void *argp1 = 0 ;
27256 int res1 = 0 ;
27257 PyObject *swig_obj[1] ;
27258
27259 if (!args) SWIG_fail;
27260 swig_obj[0] = args;
27261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27262 if (!SWIG_IsOK(res1)) {
27263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27264 }
27265 arg1 = reinterpret_cast< wxListItem * >(argp1);
27266 {
27267 PyThreadState* __tstate = wxPyBeginAllowThreads();
27268 result = (int)(arg1)->GetImage();
27269 wxPyEndAllowThreads(__tstate);
27270 if (PyErr_Occurred()) SWIG_fail;
27271 }
27272 resultobj = SWIG_From_int(static_cast< int >(result));
27273 return resultobj;
27274 fail:
27275 return NULL;
27276 }
27277
27278
27279 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27280 PyObject *resultobj = 0;
27281 wxListItem *arg1 = (wxListItem *) 0 ;
27282 long result;
27283 void *argp1 = 0 ;
27284 int res1 = 0 ;
27285 PyObject *swig_obj[1] ;
27286
27287 if (!args) SWIG_fail;
27288 swig_obj[0] = args;
27289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27290 if (!SWIG_IsOK(res1)) {
27291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27292 }
27293 arg1 = reinterpret_cast< wxListItem * >(argp1);
27294 {
27295 PyThreadState* __tstate = wxPyBeginAllowThreads();
27296 result = (long)(arg1)->GetData();
27297 wxPyEndAllowThreads(__tstate);
27298 if (PyErr_Occurred()) SWIG_fail;
27299 }
27300 resultobj = SWIG_From_long(static_cast< long >(result));
27301 return resultobj;
27302 fail:
27303 return NULL;
27304 }
27305
27306
27307 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27308 PyObject *resultobj = 0;
27309 wxListItem *arg1 = (wxListItem *) 0 ;
27310 int result;
27311 void *argp1 = 0 ;
27312 int res1 = 0 ;
27313 PyObject *swig_obj[1] ;
27314
27315 if (!args) SWIG_fail;
27316 swig_obj[0] = args;
27317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27318 if (!SWIG_IsOK(res1)) {
27319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27320 }
27321 arg1 = reinterpret_cast< wxListItem * >(argp1);
27322 {
27323 PyThreadState* __tstate = wxPyBeginAllowThreads();
27324 result = (int)(arg1)->GetWidth();
27325 wxPyEndAllowThreads(__tstate);
27326 if (PyErr_Occurred()) SWIG_fail;
27327 }
27328 resultobj = SWIG_From_int(static_cast< int >(result));
27329 return resultobj;
27330 fail:
27331 return NULL;
27332 }
27333
27334
27335 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27336 PyObject *resultobj = 0;
27337 wxListItem *arg1 = (wxListItem *) 0 ;
27338 wxListColumnFormat result;
27339 void *argp1 = 0 ;
27340 int res1 = 0 ;
27341 PyObject *swig_obj[1] ;
27342
27343 if (!args) SWIG_fail;
27344 swig_obj[0] = args;
27345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27346 if (!SWIG_IsOK(res1)) {
27347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27348 }
27349 arg1 = reinterpret_cast< wxListItem * >(argp1);
27350 {
27351 PyThreadState* __tstate = wxPyBeginAllowThreads();
27352 result = (wxListColumnFormat)(arg1)->GetAlign();
27353 wxPyEndAllowThreads(__tstate);
27354 if (PyErr_Occurred()) SWIG_fail;
27355 }
27356 resultobj = SWIG_From_int(static_cast< int >(result));
27357 return resultobj;
27358 fail:
27359 return NULL;
27360 }
27361
27362
27363 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27364 PyObject *resultobj = 0;
27365 wxListItem *arg1 = (wxListItem *) 0 ;
27366 wxListItemAttr *result = 0 ;
27367 void *argp1 = 0 ;
27368 int res1 = 0 ;
27369 PyObject *swig_obj[1] ;
27370
27371 if (!args) SWIG_fail;
27372 swig_obj[0] = args;
27373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27374 if (!SWIG_IsOK(res1)) {
27375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27376 }
27377 arg1 = reinterpret_cast< wxListItem * >(argp1);
27378 {
27379 PyThreadState* __tstate = wxPyBeginAllowThreads();
27380 result = (wxListItemAttr *)(arg1)->GetAttributes();
27381 wxPyEndAllowThreads(__tstate);
27382 if (PyErr_Occurred()) SWIG_fail;
27383 }
27384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27385 return resultobj;
27386 fail:
27387 return NULL;
27388 }
27389
27390
27391 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27392 PyObject *resultobj = 0;
27393 wxListItem *arg1 = (wxListItem *) 0 ;
27394 bool 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_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27404 }
27405 arg1 = reinterpret_cast< wxListItem * >(argp1);
27406 {
27407 PyThreadState* __tstate = wxPyBeginAllowThreads();
27408 result = (bool)(arg1)->HasAttributes();
27409 wxPyEndAllowThreads(__tstate);
27410 if (PyErr_Occurred()) SWIG_fail;
27411 }
27412 {
27413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27414 }
27415 return resultobj;
27416 fail:
27417 return NULL;
27418 }
27419
27420
27421 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27422 PyObject *resultobj = 0;
27423 wxListItem *arg1 = (wxListItem *) 0 ;
27424 wxColour result;
27425 void *argp1 = 0 ;
27426 int res1 = 0 ;
27427 PyObject *swig_obj[1] ;
27428
27429 if (!args) SWIG_fail;
27430 swig_obj[0] = args;
27431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27432 if (!SWIG_IsOK(res1)) {
27433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27434 }
27435 arg1 = reinterpret_cast< wxListItem * >(argp1);
27436 {
27437 PyThreadState* __tstate = wxPyBeginAllowThreads();
27438 result = ((wxListItem const *)arg1)->GetTextColour();
27439 wxPyEndAllowThreads(__tstate);
27440 if (PyErr_Occurred()) SWIG_fail;
27441 }
27442 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27450 PyObject *resultobj = 0;
27451 wxListItem *arg1 = (wxListItem *) 0 ;
27452 wxColour result;
27453 void *argp1 = 0 ;
27454 int res1 = 0 ;
27455 PyObject *swig_obj[1] ;
27456
27457 if (!args) SWIG_fail;
27458 swig_obj[0] = args;
27459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27460 if (!SWIG_IsOK(res1)) {
27461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27462 }
27463 arg1 = reinterpret_cast< wxListItem * >(argp1);
27464 {
27465 PyThreadState* __tstate = wxPyBeginAllowThreads();
27466 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27467 wxPyEndAllowThreads(__tstate);
27468 if (PyErr_Occurred()) SWIG_fail;
27469 }
27470 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27471 return resultobj;
27472 fail:
27473 return NULL;
27474 }
27475
27476
27477 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27478 PyObject *resultobj = 0;
27479 wxListItem *arg1 = (wxListItem *) 0 ;
27480 wxFont result;
27481 void *argp1 = 0 ;
27482 int res1 = 0 ;
27483 PyObject *swig_obj[1] ;
27484
27485 if (!args) SWIG_fail;
27486 swig_obj[0] = args;
27487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27488 if (!SWIG_IsOK(res1)) {
27489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27490 }
27491 arg1 = reinterpret_cast< wxListItem * >(argp1);
27492 {
27493 PyThreadState* __tstate = wxPyBeginAllowThreads();
27494 result = ((wxListItem const *)arg1)->GetFont();
27495 wxPyEndAllowThreads(__tstate);
27496 if (PyErr_Occurred()) SWIG_fail;
27497 }
27498 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27499 return resultobj;
27500 fail:
27501 return NULL;
27502 }
27503
27504
27505 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27506 PyObject *resultobj = 0;
27507 wxListItem *arg1 = (wxListItem *) 0 ;
27508 long arg2 ;
27509 void *argp1 = 0 ;
27510 int res1 = 0 ;
27511 long val2 ;
27512 int ecode2 = 0 ;
27513 PyObject *swig_obj[2] ;
27514
27515 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27517 if (!SWIG_IsOK(res1)) {
27518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27519 }
27520 arg1 = reinterpret_cast< wxListItem * >(argp1);
27521 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27522 if (!SWIG_IsOK(ecode2)) {
27523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27524 }
27525 arg2 = static_cast< long >(val2);
27526 if (arg1) (arg1)->m_mask = arg2;
27527
27528 resultobj = SWIG_Py_Void();
27529 return resultobj;
27530 fail:
27531 return NULL;
27532 }
27533
27534
27535 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27536 PyObject *resultobj = 0;
27537 wxListItem *arg1 = (wxListItem *) 0 ;
27538 long result;
27539 void *argp1 = 0 ;
27540 int res1 = 0 ;
27541 PyObject *swig_obj[1] ;
27542
27543 if (!args) SWIG_fail;
27544 swig_obj[0] = args;
27545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27546 if (!SWIG_IsOK(res1)) {
27547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27548 }
27549 arg1 = reinterpret_cast< wxListItem * >(argp1);
27550 result = (long) ((arg1)->m_mask);
27551 resultobj = SWIG_From_long(static_cast< long >(result));
27552 return resultobj;
27553 fail:
27554 return NULL;
27555 }
27556
27557
27558 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27559 PyObject *resultobj = 0;
27560 wxListItem *arg1 = (wxListItem *) 0 ;
27561 long arg2 ;
27562 void *argp1 = 0 ;
27563 int res1 = 0 ;
27564 long val2 ;
27565 int ecode2 = 0 ;
27566 PyObject *swig_obj[2] ;
27567
27568 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27570 if (!SWIG_IsOK(res1)) {
27571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27572 }
27573 arg1 = reinterpret_cast< wxListItem * >(argp1);
27574 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27575 if (!SWIG_IsOK(ecode2)) {
27576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27577 }
27578 arg2 = static_cast< long >(val2);
27579 if (arg1) (arg1)->m_itemId = arg2;
27580
27581 resultobj = SWIG_Py_Void();
27582 return resultobj;
27583 fail:
27584 return NULL;
27585 }
27586
27587
27588 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27589 PyObject *resultobj = 0;
27590 wxListItem *arg1 = (wxListItem *) 0 ;
27591 long result;
27592 void *argp1 = 0 ;
27593 int res1 = 0 ;
27594 PyObject *swig_obj[1] ;
27595
27596 if (!args) SWIG_fail;
27597 swig_obj[0] = args;
27598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27599 if (!SWIG_IsOK(res1)) {
27600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27601 }
27602 arg1 = reinterpret_cast< wxListItem * >(argp1);
27603 result = (long) ((arg1)->m_itemId);
27604 resultobj = SWIG_From_long(static_cast< long >(result));
27605 return resultobj;
27606 fail:
27607 return NULL;
27608 }
27609
27610
27611 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27612 PyObject *resultobj = 0;
27613 wxListItem *arg1 = (wxListItem *) 0 ;
27614 int arg2 ;
27615 void *argp1 = 0 ;
27616 int res1 = 0 ;
27617 int val2 ;
27618 int ecode2 = 0 ;
27619 PyObject *swig_obj[2] ;
27620
27621 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27623 if (!SWIG_IsOK(res1)) {
27624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27625 }
27626 arg1 = reinterpret_cast< wxListItem * >(argp1);
27627 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27628 if (!SWIG_IsOK(ecode2)) {
27629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27630 }
27631 arg2 = static_cast< int >(val2);
27632 if (arg1) (arg1)->m_col = arg2;
27633
27634 resultobj = SWIG_Py_Void();
27635 return resultobj;
27636 fail:
27637 return NULL;
27638 }
27639
27640
27641 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27642 PyObject *resultobj = 0;
27643 wxListItem *arg1 = (wxListItem *) 0 ;
27644 int result;
27645 void *argp1 = 0 ;
27646 int res1 = 0 ;
27647 PyObject *swig_obj[1] ;
27648
27649 if (!args) SWIG_fail;
27650 swig_obj[0] = args;
27651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27652 if (!SWIG_IsOK(res1)) {
27653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27654 }
27655 arg1 = reinterpret_cast< wxListItem * >(argp1);
27656 result = (int) ((arg1)->m_col);
27657 resultobj = SWIG_From_int(static_cast< int >(result));
27658 return resultobj;
27659 fail:
27660 return NULL;
27661 }
27662
27663
27664 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27665 PyObject *resultobj = 0;
27666 wxListItem *arg1 = (wxListItem *) 0 ;
27667 long arg2 ;
27668 void *argp1 = 0 ;
27669 int res1 = 0 ;
27670 long val2 ;
27671 int ecode2 = 0 ;
27672 PyObject *swig_obj[2] ;
27673
27674 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27676 if (!SWIG_IsOK(res1)) {
27677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27678 }
27679 arg1 = reinterpret_cast< wxListItem * >(argp1);
27680 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27681 if (!SWIG_IsOK(ecode2)) {
27682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27683 }
27684 arg2 = static_cast< long >(val2);
27685 if (arg1) (arg1)->m_state = arg2;
27686
27687 resultobj = SWIG_Py_Void();
27688 return resultobj;
27689 fail:
27690 return NULL;
27691 }
27692
27693
27694 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27695 PyObject *resultobj = 0;
27696 wxListItem *arg1 = (wxListItem *) 0 ;
27697 long result;
27698 void *argp1 = 0 ;
27699 int res1 = 0 ;
27700 PyObject *swig_obj[1] ;
27701
27702 if (!args) SWIG_fail;
27703 swig_obj[0] = args;
27704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27705 if (!SWIG_IsOK(res1)) {
27706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27707 }
27708 arg1 = reinterpret_cast< wxListItem * >(argp1);
27709 result = (long) ((arg1)->m_state);
27710 resultobj = SWIG_From_long(static_cast< long >(result));
27711 return resultobj;
27712 fail:
27713 return NULL;
27714 }
27715
27716
27717 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27718 PyObject *resultobj = 0;
27719 wxListItem *arg1 = (wxListItem *) 0 ;
27720 long arg2 ;
27721 void *argp1 = 0 ;
27722 int res1 = 0 ;
27723 long val2 ;
27724 int ecode2 = 0 ;
27725 PyObject *swig_obj[2] ;
27726
27727 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27729 if (!SWIG_IsOK(res1)) {
27730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27731 }
27732 arg1 = reinterpret_cast< wxListItem * >(argp1);
27733 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27734 if (!SWIG_IsOK(ecode2)) {
27735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27736 }
27737 arg2 = static_cast< long >(val2);
27738 if (arg1) (arg1)->m_stateMask = arg2;
27739
27740 resultobj = SWIG_Py_Void();
27741 return resultobj;
27742 fail:
27743 return NULL;
27744 }
27745
27746
27747 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27748 PyObject *resultobj = 0;
27749 wxListItem *arg1 = (wxListItem *) 0 ;
27750 long result;
27751 void *argp1 = 0 ;
27752 int res1 = 0 ;
27753 PyObject *swig_obj[1] ;
27754
27755 if (!args) SWIG_fail;
27756 swig_obj[0] = args;
27757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27758 if (!SWIG_IsOK(res1)) {
27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27760 }
27761 arg1 = reinterpret_cast< wxListItem * >(argp1);
27762 result = (long) ((arg1)->m_stateMask);
27763 resultobj = SWIG_From_long(static_cast< long >(result));
27764 return resultobj;
27765 fail:
27766 return NULL;
27767 }
27768
27769
27770 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27771 PyObject *resultobj = 0;
27772 wxListItem *arg1 = (wxListItem *) 0 ;
27773 wxString *arg2 = (wxString *) 0 ;
27774 void *argp1 = 0 ;
27775 int res1 = 0 ;
27776 bool temp2 = false ;
27777 PyObject *swig_obj[2] ;
27778
27779 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27781 if (!SWIG_IsOK(res1)) {
27782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27783 }
27784 arg1 = reinterpret_cast< wxListItem * >(argp1);
27785 {
27786 arg2 = wxString_in_helper(swig_obj[1]);
27787 if (arg2 == NULL) SWIG_fail;
27788 temp2 = true;
27789 }
27790 if (arg1) (arg1)->m_text = *arg2;
27791
27792 resultobj = SWIG_Py_Void();
27793 {
27794 if (temp2)
27795 delete arg2;
27796 }
27797 return resultobj;
27798 fail:
27799 {
27800 if (temp2)
27801 delete arg2;
27802 }
27803 return NULL;
27804 }
27805
27806
27807 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27808 PyObject *resultobj = 0;
27809 wxListItem *arg1 = (wxListItem *) 0 ;
27810 wxString *result = 0 ;
27811 void *argp1 = 0 ;
27812 int res1 = 0 ;
27813 PyObject *swig_obj[1] ;
27814
27815 if (!args) SWIG_fail;
27816 swig_obj[0] = args;
27817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27818 if (!SWIG_IsOK(res1)) {
27819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27820 }
27821 arg1 = reinterpret_cast< wxListItem * >(argp1);
27822 result = (wxString *)& ((arg1)->m_text);
27823 {
27824 #if wxUSE_UNICODE
27825 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27826 #else
27827 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27828 #endif
27829 }
27830 return resultobj;
27831 fail:
27832 return NULL;
27833 }
27834
27835
27836 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27837 PyObject *resultobj = 0;
27838 wxListItem *arg1 = (wxListItem *) 0 ;
27839 int arg2 ;
27840 void *argp1 = 0 ;
27841 int res1 = 0 ;
27842 int val2 ;
27843 int ecode2 = 0 ;
27844 PyObject *swig_obj[2] ;
27845
27846 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27848 if (!SWIG_IsOK(res1)) {
27849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27850 }
27851 arg1 = reinterpret_cast< wxListItem * >(argp1);
27852 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27853 if (!SWIG_IsOK(ecode2)) {
27854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27855 }
27856 arg2 = static_cast< int >(val2);
27857 if (arg1) (arg1)->m_image = arg2;
27858
27859 resultobj = SWIG_Py_Void();
27860 return resultobj;
27861 fail:
27862 return NULL;
27863 }
27864
27865
27866 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27867 PyObject *resultobj = 0;
27868 wxListItem *arg1 = (wxListItem *) 0 ;
27869 int result;
27870 void *argp1 = 0 ;
27871 int res1 = 0 ;
27872 PyObject *swig_obj[1] ;
27873
27874 if (!args) SWIG_fail;
27875 swig_obj[0] = args;
27876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27877 if (!SWIG_IsOK(res1)) {
27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27879 }
27880 arg1 = reinterpret_cast< wxListItem * >(argp1);
27881 result = (int) ((arg1)->m_image);
27882 resultobj = SWIG_From_int(static_cast< int >(result));
27883 return resultobj;
27884 fail:
27885 return NULL;
27886 }
27887
27888
27889 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27890 PyObject *resultobj = 0;
27891 wxListItem *arg1 = (wxListItem *) 0 ;
27892 long arg2 ;
27893 void *argp1 = 0 ;
27894 int res1 = 0 ;
27895 long val2 ;
27896 int ecode2 = 0 ;
27897 PyObject *swig_obj[2] ;
27898
27899 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27901 if (!SWIG_IsOK(res1)) {
27902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27903 }
27904 arg1 = reinterpret_cast< wxListItem * >(argp1);
27905 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27906 if (!SWIG_IsOK(ecode2)) {
27907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27908 }
27909 arg2 = static_cast< long >(val2);
27910 if (arg1) (arg1)->m_data = arg2;
27911
27912 resultobj = SWIG_Py_Void();
27913 return resultobj;
27914 fail:
27915 return NULL;
27916 }
27917
27918
27919 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27920 PyObject *resultobj = 0;
27921 wxListItem *arg1 = (wxListItem *) 0 ;
27922 long result;
27923 void *argp1 = 0 ;
27924 int res1 = 0 ;
27925 PyObject *swig_obj[1] ;
27926
27927 if (!args) SWIG_fail;
27928 swig_obj[0] = args;
27929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27930 if (!SWIG_IsOK(res1)) {
27931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27932 }
27933 arg1 = reinterpret_cast< wxListItem * >(argp1);
27934 result = (long) ((arg1)->m_data);
27935 resultobj = SWIG_From_long(static_cast< long >(result));
27936 return resultobj;
27937 fail:
27938 return NULL;
27939 }
27940
27941
27942 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27943 PyObject *resultobj = 0;
27944 wxListItem *arg1 = (wxListItem *) 0 ;
27945 int arg2 ;
27946 void *argp1 = 0 ;
27947 int res1 = 0 ;
27948 int val2 ;
27949 int ecode2 = 0 ;
27950 PyObject *swig_obj[2] ;
27951
27952 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27954 if (!SWIG_IsOK(res1)) {
27955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27956 }
27957 arg1 = reinterpret_cast< wxListItem * >(argp1);
27958 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27959 if (!SWIG_IsOK(ecode2)) {
27960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27961 }
27962 arg2 = static_cast< int >(val2);
27963 if (arg1) (arg1)->m_format = arg2;
27964
27965 resultobj = SWIG_Py_Void();
27966 return resultobj;
27967 fail:
27968 return NULL;
27969 }
27970
27971
27972 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27973 PyObject *resultobj = 0;
27974 wxListItem *arg1 = (wxListItem *) 0 ;
27975 int result;
27976 void *argp1 = 0 ;
27977 int res1 = 0 ;
27978 PyObject *swig_obj[1] ;
27979
27980 if (!args) SWIG_fail;
27981 swig_obj[0] = args;
27982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27983 if (!SWIG_IsOK(res1)) {
27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27985 }
27986 arg1 = reinterpret_cast< wxListItem * >(argp1);
27987 result = (int) ((arg1)->m_format);
27988 resultobj = SWIG_From_int(static_cast< int >(result));
27989 return resultobj;
27990 fail:
27991 return NULL;
27992 }
27993
27994
27995 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27996 PyObject *resultobj = 0;
27997 wxListItem *arg1 = (wxListItem *) 0 ;
27998 int arg2 ;
27999 void *argp1 = 0 ;
28000 int res1 = 0 ;
28001 int val2 ;
28002 int ecode2 = 0 ;
28003 PyObject *swig_obj[2] ;
28004
28005 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28007 if (!SWIG_IsOK(res1)) {
28008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28009 }
28010 arg1 = reinterpret_cast< wxListItem * >(argp1);
28011 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28012 if (!SWIG_IsOK(ecode2)) {
28013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28014 }
28015 arg2 = static_cast< int >(val2);
28016 if (arg1) (arg1)->m_width = arg2;
28017
28018 resultobj = SWIG_Py_Void();
28019 return resultobj;
28020 fail:
28021 return NULL;
28022 }
28023
28024
28025 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28026 PyObject *resultobj = 0;
28027 wxListItem *arg1 = (wxListItem *) 0 ;
28028 int result;
28029 void *argp1 = 0 ;
28030 int res1 = 0 ;
28031 PyObject *swig_obj[1] ;
28032
28033 if (!args) SWIG_fail;
28034 swig_obj[0] = args;
28035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28036 if (!SWIG_IsOK(res1)) {
28037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28038 }
28039 arg1 = reinterpret_cast< wxListItem * >(argp1);
28040 result = (int) ((arg1)->m_width);
28041 resultobj = SWIG_From_int(static_cast< int >(result));
28042 return resultobj;
28043 fail:
28044 return NULL;
28045 }
28046
28047
28048 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28049 PyObject *obj;
28050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28051 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28052 return SWIG_Py_Void();
28053 }
28054
28055 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28056 return SWIG_Python_InitShadowInstance(args);
28057 }
28058
28059 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28060 PyObject *resultobj = 0;
28061 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28062 int arg2 = (int) 0 ;
28063 wxListEvent *result = 0 ;
28064 int val1 ;
28065 int ecode1 = 0 ;
28066 int val2 ;
28067 int ecode2 = 0 ;
28068 PyObject * obj0 = 0 ;
28069 PyObject * obj1 = 0 ;
28070 char * kwnames[] = {
28071 (char *) "commandType",(char *) "id", NULL
28072 };
28073
28074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28075 if (obj0) {
28076 ecode1 = SWIG_AsVal_int(obj0, &val1);
28077 if (!SWIG_IsOK(ecode1)) {
28078 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28079 }
28080 arg1 = static_cast< wxEventType >(val1);
28081 }
28082 if (obj1) {
28083 ecode2 = SWIG_AsVal_int(obj1, &val2);
28084 if (!SWIG_IsOK(ecode2)) {
28085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28086 }
28087 arg2 = static_cast< int >(val2);
28088 }
28089 {
28090 PyThreadState* __tstate = wxPyBeginAllowThreads();
28091 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28092 wxPyEndAllowThreads(__tstate);
28093 if (PyErr_Occurred()) SWIG_fail;
28094 }
28095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28096 return resultobj;
28097 fail:
28098 return NULL;
28099 }
28100
28101
28102 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28103 PyObject *resultobj = 0;
28104 wxListEvent *arg1 = (wxListEvent *) 0 ;
28105 int arg2 ;
28106 void *argp1 = 0 ;
28107 int res1 = 0 ;
28108 int val2 ;
28109 int ecode2 = 0 ;
28110 PyObject *swig_obj[2] ;
28111
28112 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28114 if (!SWIG_IsOK(res1)) {
28115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28116 }
28117 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28118 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28119 if (!SWIG_IsOK(ecode2)) {
28120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28121 }
28122 arg2 = static_cast< int >(val2);
28123 if (arg1) (arg1)->m_code = arg2;
28124
28125 resultobj = SWIG_Py_Void();
28126 return resultobj;
28127 fail:
28128 return NULL;
28129 }
28130
28131
28132 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28133 PyObject *resultobj = 0;
28134 wxListEvent *arg1 = (wxListEvent *) 0 ;
28135 int result;
28136 void *argp1 = 0 ;
28137 int res1 = 0 ;
28138 PyObject *swig_obj[1] ;
28139
28140 if (!args) SWIG_fail;
28141 swig_obj[0] = args;
28142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28143 if (!SWIG_IsOK(res1)) {
28144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28145 }
28146 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28147 result = (int) ((arg1)->m_code);
28148 resultobj = SWIG_From_int(static_cast< int >(result));
28149 return resultobj;
28150 fail:
28151 return NULL;
28152 }
28153
28154
28155 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28156 PyObject *resultobj = 0;
28157 wxListEvent *arg1 = (wxListEvent *) 0 ;
28158 long arg2 ;
28159 void *argp1 = 0 ;
28160 int res1 = 0 ;
28161 long val2 ;
28162 int ecode2 = 0 ;
28163 PyObject *swig_obj[2] ;
28164
28165 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28167 if (!SWIG_IsOK(res1)) {
28168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28169 }
28170 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28171 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28172 if (!SWIG_IsOK(ecode2)) {
28173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28174 }
28175 arg2 = static_cast< long >(val2);
28176 if (arg1) (arg1)->m_oldItemIndex = arg2;
28177
28178 resultobj = SWIG_Py_Void();
28179 return resultobj;
28180 fail:
28181 return NULL;
28182 }
28183
28184
28185 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28186 PyObject *resultobj = 0;
28187 wxListEvent *arg1 = (wxListEvent *) 0 ;
28188 long result;
28189 void *argp1 = 0 ;
28190 int res1 = 0 ;
28191 PyObject *swig_obj[1] ;
28192
28193 if (!args) SWIG_fail;
28194 swig_obj[0] = args;
28195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28196 if (!SWIG_IsOK(res1)) {
28197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28198 }
28199 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28200 result = (long) ((arg1)->m_oldItemIndex);
28201 resultobj = SWIG_From_long(static_cast< long >(result));
28202 return resultobj;
28203 fail:
28204 return NULL;
28205 }
28206
28207
28208 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28209 PyObject *resultobj = 0;
28210 wxListEvent *arg1 = (wxListEvent *) 0 ;
28211 long arg2 ;
28212 void *argp1 = 0 ;
28213 int res1 = 0 ;
28214 long val2 ;
28215 int ecode2 = 0 ;
28216 PyObject *swig_obj[2] ;
28217
28218 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28220 if (!SWIG_IsOK(res1)) {
28221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28222 }
28223 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28224 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28225 if (!SWIG_IsOK(ecode2)) {
28226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28227 }
28228 arg2 = static_cast< long >(val2);
28229 if (arg1) (arg1)->m_itemIndex = arg2;
28230
28231 resultobj = SWIG_Py_Void();
28232 return resultobj;
28233 fail:
28234 return NULL;
28235 }
28236
28237
28238 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28239 PyObject *resultobj = 0;
28240 wxListEvent *arg1 = (wxListEvent *) 0 ;
28241 long result;
28242 void *argp1 = 0 ;
28243 int res1 = 0 ;
28244 PyObject *swig_obj[1] ;
28245
28246 if (!args) SWIG_fail;
28247 swig_obj[0] = args;
28248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28249 if (!SWIG_IsOK(res1)) {
28250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28251 }
28252 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28253 result = (long) ((arg1)->m_itemIndex);
28254 resultobj = SWIG_From_long(static_cast< long >(result));
28255 return resultobj;
28256 fail:
28257 return NULL;
28258 }
28259
28260
28261 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28262 PyObject *resultobj = 0;
28263 wxListEvent *arg1 = (wxListEvent *) 0 ;
28264 int arg2 ;
28265 void *argp1 = 0 ;
28266 int res1 = 0 ;
28267 int val2 ;
28268 int ecode2 = 0 ;
28269 PyObject *swig_obj[2] ;
28270
28271 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28273 if (!SWIG_IsOK(res1)) {
28274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28275 }
28276 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28277 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28278 if (!SWIG_IsOK(ecode2)) {
28279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28280 }
28281 arg2 = static_cast< int >(val2);
28282 if (arg1) (arg1)->m_col = arg2;
28283
28284 resultobj = SWIG_Py_Void();
28285 return resultobj;
28286 fail:
28287 return NULL;
28288 }
28289
28290
28291 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28292 PyObject *resultobj = 0;
28293 wxListEvent *arg1 = (wxListEvent *) 0 ;
28294 int result;
28295 void *argp1 = 0 ;
28296 int res1 = 0 ;
28297 PyObject *swig_obj[1] ;
28298
28299 if (!args) SWIG_fail;
28300 swig_obj[0] = args;
28301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28302 if (!SWIG_IsOK(res1)) {
28303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28304 }
28305 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28306 result = (int) ((arg1)->m_col);
28307 resultobj = SWIG_From_int(static_cast< int >(result));
28308 return resultobj;
28309 fail:
28310 return NULL;
28311 }
28312
28313
28314 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28315 PyObject *resultobj = 0;
28316 wxListEvent *arg1 = (wxListEvent *) 0 ;
28317 wxPoint *arg2 = (wxPoint *) 0 ;
28318 void *argp1 = 0 ;
28319 int res1 = 0 ;
28320 void *argp2 = 0 ;
28321 int res2 = 0 ;
28322 PyObject *swig_obj[2] ;
28323
28324 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28326 if (!SWIG_IsOK(res1)) {
28327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28328 }
28329 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28330 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28331 if (!SWIG_IsOK(res2)) {
28332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28333 }
28334 arg2 = reinterpret_cast< wxPoint * >(argp2);
28335 if (arg1) (arg1)->m_pointDrag = *arg2;
28336
28337 resultobj = SWIG_Py_Void();
28338 return resultobj;
28339 fail:
28340 return NULL;
28341 }
28342
28343
28344 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28345 PyObject *resultobj = 0;
28346 wxListEvent *arg1 = (wxListEvent *) 0 ;
28347 wxPoint *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_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28357 }
28358 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28359 result = (wxPoint *)& ((arg1)->m_pointDrag);
28360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28361 return resultobj;
28362 fail:
28363 return NULL;
28364 }
28365
28366
28367 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28368 PyObject *resultobj = 0;
28369 wxListEvent *arg1 = (wxListEvent *) 0 ;
28370 wxListItem *result = 0 ;
28371 void *argp1 = 0 ;
28372 int res1 = 0 ;
28373 PyObject *swig_obj[1] ;
28374
28375 if (!args) SWIG_fail;
28376 swig_obj[0] = args;
28377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28378 if (!SWIG_IsOK(res1)) {
28379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28380 }
28381 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28382 result = (wxListItem *)& ((arg1)->m_item);
28383 {
28384 resultobj = wxPyMake_wxObject(result, 0);
28385 }
28386 return resultobj;
28387 fail:
28388 return NULL;
28389 }
28390
28391
28392 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28393 PyObject *resultobj = 0;
28394 wxListEvent *arg1 = (wxListEvent *) 0 ;
28395 int result;
28396 void *argp1 = 0 ;
28397 int res1 = 0 ;
28398 PyObject *swig_obj[1] ;
28399
28400 if (!args) SWIG_fail;
28401 swig_obj[0] = args;
28402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28403 if (!SWIG_IsOK(res1)) {
28404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28405 }
28406 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28407 {
28408 PyThreadState* __tstate = wxPyBeginAllowThreads();
28409 result = (int)(arg1)->GetKeyCode();
28410 wxPyEndAllowThreads(__tstate);
28411 if (PyErr_Occurred()) SWIG_fail;
28412 }
28413 resultobj = SWIG_From_int(static_cast< int >(result));
28414 return resultobj;
28415 fail:
28416 return NULL;
28417 }
28418
28419
28420 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28421 PyObject *resultobj = 0;
28422 wxListEvent *arg1 = (wxListEvent *) 0 ;
28423 long result;
28424 void *argp1 = 0 ;
28425 int res1 = 0 ;
28426 PyObject *swig_obj[1] ;
28427
28428 if (!args) SWIG_fail;
28429 swig_obj[0] = args;
28430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28431 if (!SWIG_IsOK(res1)) {
28432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28433 }
28434 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28435 {
28436 PyThreadState* __tstate = wxPyBeginAllowThreads();
28437 result = (long)(arg1)->GetIndex();
28438 wxPyEndAllowThreads(__tstate);
28439 if (PyErr_Occurred()) SWIG_fail;
28440 }
28441 resultobj = SWIG_From_long(static_cast< long >(result));
28442 return resultobj;
28443 fail:
28444 return NULL;
28445 }
28446
28447
28448 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28449 PyObject *resultobj = 0;
28450 wxListEvent *arg1 = (wxListEvent *) 0 ;
28451 int result;
28452 void *argp1 = 0 ;
28453 int res1 = 0 ;
28454 PyObject *swig_obj[1] ;
28455
28456 if (!args) SWIG_fail;
28457 swig_obj[0] = args;
28458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28459 if (!SWIG_IsOK(res1)) {
28460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28461 }
28462 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28463 {
28464 PyThreadState* __tstate = wxPyBeginAllowThreads();
28465 result = (int)(arg1)->GetColumn();
28466 wxPyEndAllowThreads(__tstate);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 }
28469 resultobj = SWIG_From_int(static_cast< int >(result));
28470 return resultobj;
28471 fail:
28472 return NULL;
28473 }
28474
28475
28476 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28477 PyObject *resultobj = 0;
28478 wxListEvent *arg1 = (wxListEvent *) 0 ;
28479 wxPoint result;
28480 void *argp1 = 0 ;
28481 int res1 = 0 ;
28482 PyObject *swig_obj[1] ;
28483
28484 if (!args) SWIG_fail;
28485 swig_obj[0] = args;
28486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28487 if (!SWIG_IsOK(res1)) {
28488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28489 }
28490 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28491 {
28492 PyThreadState* __tstate = wxPyBeginAllowThreads();
28493 result = (arg1)->GetPoint();
28494 wxPyEndAllowThreads(__tstate);
28495 if (PyErr_Occurred()) SWIG_fail;
28496 }
28497 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28498 return resultobj;
28499 fail:
28500 return NULL;
28501 }
28502
28503
28504 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28505 PyObject *resultobj = 0;
28506 wxListEvent *arg1 = (wxListEvent *) 0 ;
28507 wxString *result = 0 ;
28508 void *argp1 = 0 ;
28509 int res1 = 0 ;
28510 PyObject *swig_obj[1] ;
28511
28512 if (!args) SWIG_fail;
28513 swig_obj[0] = args;
28514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28515 if (!SWIG_IsOK(res1)) {
28516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28517 }
28518 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28519 {
28520 PyThreadState* __tstate = wxPyBeginAllowThreads();
28521 {
28522 wxString const &_result_ref = (arg1)->GetLabel();
28523 result = (wxString *) &_result_ref;
28524 }
28525 wxPyEndAllowThreads(__tstate);
28526 if (PyErr_Occurred()) SWIG_fail;
28527 }
28528 {
28529 #if wxUSE_UNICODE
28530 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28531 #else
28532 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28533 #endif
28534 }
28535 return resultobj;
28536 fail:
28537 return NULL;
28538 }
28539
28540
28541 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28542 PyObject *resultobj = 0;
28543 wxListEvent *arg1 = (wxListEvent *) 0 ;
28544 wxString *result = 0 ;
28545 void *argp1 = 0 ;
28546 int res1 = 0 ;
28547 PyObject *swig_obj[1] ;
28548
28549 if (!args) SWIG_fail;
28550 swig_obj[0] = args;
28551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28552 if (!SWIG_IsOK(res1)) {
28553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28554 }
28555 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28556 {
28557 PyThreadState* __tstate = wxPyBeginAllowThreads();
28558 {
28559 wxString const &_result_ref = (arg1)->GetText();
28560 result = (wxString *) &_result_ref;
28561 }
28562 wxPyEndAllowThreads(__tstate);
28563 if (PyErr_Occurred()) SWIG_fail;
28564 }
28565 {
28566 #if wxUSE_UNICODE
28567 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28568 #else
28569 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28570 #endif
28571 }
28572 return resultobj;
28573 fail:
28574 return NULL;
28575 }
28576
28577
28578 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28579 PyObject *resultobj = 0;
28580 wxListEvent *arg1 = (wxListEvent *) 0 ;
28581 int result;
28582 void *argp1 = 0 ;
28583 int res1 = 0 ;
28584 PyObject *swig_obj[1] ;
28585
28586 if (!args) SWIG_fail;
28587 swig_obj[0] = args;
28588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28589 if (!SWIG_IsOK(res1)) {
28590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28591 }
28592 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28593 {
28594 PyThreadState* __tstate = wxPyBeginAllowThreads();
28595 result = (int)(arg1)->GetImage();
28596 wxPyEndAllowThreads(__tstate);
28597 if (PyErr_Occurred()) SWIG_fail;
28598 }
28599 resultobj = SWIG_From_int(static_cast< int >(result));
28600 return resultobj;
28601 fail:
28602 return NULL;
28603 }
28604
28605
28606 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28607 PyObject *resultobj = 0;
28608 wxListEvent *arg1 = (wxListEvent *) 0 ;
28609 long result;
28610 void *argp1 = 0 ;
28611 int res1 = 0 ;
28612 PyObject *swig_obj[1] ;
28613
28614 if (!args) SWIG_fail;
28615 swig_obj[0] = args;
28616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28617 if (!SWIG_IsOK(res1)) {
28618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28619 }
28620 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28621 {
28622 PyThreadState* __tstate = wxPyBeginAllowThreads();
28623 result = (long)(arg1)->GetData();
28624 wxPyEndAllowThreads(__tstate);
28625 if (PyErr_Occurred()) SWIG_fail;
28626 }
28627 resultobj = SWIG_From_long(static_cast< long >(result));
28628 return resultobj;
28629 fail:
28630 return NULL;
28631 }
28632
28633
28634 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28635 PyObject *resultobj = 0;
28636 wxListEvent *arg1 = (wxListEvent *) 0 ;
28637 long result;
28638 void *argp1 = 0 ;
28639 int res1 = 0 ;
28640 PyObject *swig_obj[1] ;
28641
28642 if (!args) SWIG_fail;
28643 swig_obj[0] = args;
28644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28645 if (!SWIG_IsOK(res1)) {
28646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28647 }
28648 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28649 {
28650 PyThreadState* __tstate = wxPyBeginAllowThreads();
28651 result = (long)(arg1)->GetMask();
28652 wxPyEndAllowThreads(__tstate);
28653 if (PyErr_Occurred()) SWIG_fail;
28654 }
28655 resultobj = SWIG_From_long(static_cast< long >(result));
28656 return resultobj;
28657 fail:
28658 return NULL;
28659 }
28660
28661
28662 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28663 PyObject *resultobj = 0;
28664 wxListEvent *arg1 = (wxListEvent *) 0 ;
28665 wxListItem *result = 0 ;
28666 void *argp1 = 0 ;
28667 int res1 = 0 ;
28668 PyObject *swig_obj[1] ;
28669
28670 if (!args) SWIG_fail;
28671 swig_obj[0] = args;
28672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28673 if (!SWIG_IsOK(res1)) {
28674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28675 }
28676 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28677 {
28678 PyThreadState* __tstate = wxPyBeginAllowThreads();
28679 {
28680 wxListItem const &_result_ref = (arg1)->GetItem();
28681 result = (wxListItem *) &_result_ref;
28682 }
28683 wxPyEndAllowThreads(__tstate);
28684 if (PyErr_Occurred()) SWIG_fail;
28685 }
28686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28687 return resultobj;
28688 fail:
28689 return NULL;
28690 }
28691
28692
28693 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28694 PyObject *resultobj = 0;
28695 wxListEvent *arg1 = (wxListEvent *) 0 ;
28696 long result;
28697 void *argp1 = 0 ;
28698 int res1 = 0 ;
28699 PyObject *swig_obj[1] ;
28700
28701 if (!args) SWIG_fail;
28702 swig_obj[0] = args;
28703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28704 if (!SWIG_IsOK(res1)) {
28705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28706 }
28707 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28708 {
28709 PyThreadState* __tstate = wxPyBeginAllowThreads();
28710 result = (long)(arg1)->GetCacheFrom();
28711 wxPyEndAllowThreads(__tstate);
28712 if (PyErr_Occurred()) SWIG_fail;
28713 }
28714 resultobj = SWIG_From_long(static_cast< long >(result));
28715 return resultobj;
28716 fail:
28717 return NULL;
28718 }
28719
28720
28721 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28722 PyObject *resultobj = 0;
28723 wxListEvent *arg1 = (wxListEvent *) 0 ;
28724 long result;
28725 void *argp1 = 0 ;
28726 int res1 = 0 ;
28727 PyObject *swig_obj[1] ;
28728
28729 if (!args) SWIG_fail;
28730 swig_obj[0] = args;
28731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28732 if (!SWIG_IsOK(res1)) {
28733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28734 }
28735 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28736 {
28737 PyThreadState* __tstate = wxPyBeginAllowThreads();
28738 result = (long)(arg1)->GetCacheTo();
28739 wxPyEndAllowThreads(__tstate);
28740 if (PyErr_Occurred()) SWIG_fail;
28741 }
28742 resultobj = SWIG_From_long(static_cast< long >(result));
28743 return resultobj;
28744 fail:
28745 return NULL;
28746 }
28747
28748
28749 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28750 PyObject *resultobj = 0;
28751 wxListEvent *arg1 = (wxListEvent *) 0 ;
28752 bool result;
28753 void *argp1 = 0 ;
28754 int res1 = 0 ;
28755 PyObject *swig_obj[1] ;
28756
28757 if (!args) SWIG_fail;
28758 swig_obj[0] = args;
28759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28760 if (!SWIG_IsOK(res1)) {
28761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28762 }
28763 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28764 {
28765 PyThreadState* __tstate = wxPyBeginAllowThreads();
28766 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28767 wxPyEndAllowThreads(__tstate);
28768 if (PyErr_Occurred()) SWIG_fail;
28769 }
28770 {
28771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28772 }
28773 return resultobj;
28774 fail:
28775 return NULL;
28776 }
28777
28778
28779 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28780 PyObject *resultobj = 0;
28781 wxListEvent *arg1 = (wxListEvent *) 0 ;
28782 bool arg2 ;
28783 void *argp1 = 0 ;
28784 int res1 = 0 ;
28785 bool val2 ;
28786 int ecode2 = 0 ;
28787 PyObject * obj0 = 0 ;
28788 PyObject * obj1 = 0 ;
28789 char * kwnames[] = {
28790 (char *) "self",(char *) "editCancelled", NULL
28791 };
28792
28793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28795 if (!SWIG_IsOK(res1)) {
28796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28797 }
28798 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28799 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28800 if (!SWIG_IsOK(ecode2)) {
28801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28802 }
28803 arg2 = static_cast< bool >(val2);
28804 {
28805 PyThreadState* __tstate = wxPyBeginAllowThreads();
28806 (arg1)->SetEditCanceled(arg2);
28807 wxPyEndAllowThreads(__tstate);
28808 if (PyErr_Occurred()) SWIG_fail;
28809 }
28810 resultobj = SWIG_Py_Void();
28811 return resultobj;
28812 fail:
28813 return NULL;
28814 }
28815
28816
28817 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28818 PyObject *obj;
28819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28820 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28821 return SWIG_Py_Void();
28822 }
28823
28824 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28825 return SWIG_Python_InitShadowInstance(args);
28826 }
28827
28828 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28829 PyObject *resultobj = 0;
28830 wxWindow *arg1 = (wxWindow *) 0 ;
28831 int arg2 = (int) -1 ;
28832 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28833 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28834 wxSize const &arg4_defvalue = wxDefaultSize ;
28835 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28836 long arg5 = (long) wxLC_ICON ;
28837 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28838 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28839 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28840 wxString *arg7 = (wxString *) &arg7_defvalue ;
28841 wxPyListCtrl *result = 0 ;
28842 void *argp1 = 0 ;
28843 int res1 = 0 ;
28844 int val2 ;
28845 int ecode2 = 0 ;
28846 wxPoint temp3 ;
28847 wxSize temp4 ;
28848 long val5 ;
28849 int ecode5 = 0 ;
28850 void *argp6 = 0 ;
28851 int res6 = 0 ;
28852 bool temp7 = false ;
28853 PyObject * obj0 = 0 ;
28854 PyObject * obj1 = 0 ;
28855 PyObject * obj2 = 0 ;
28856 PyObject * obj3 = 0 ;
28857 PyObject * obj4 = 0 ;
28858 PyObject * obj5 = 0 ;
28859 PyObject * obj6 = 0 ;
28860 char * kwnames[] = {
28861 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28862 };
28863
28864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28866 if (!SWIG_IsOK(res1)) {
28867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28868 }
28869 arg1 = reinterpret_cast< wxWindow * >(argp1);
28870 if (obj1) {
28871 ecode2 = SWIG_AsVal_int(obj1, &val2);
28872 if (!SWIG_IsOK(ecode2)) {
28873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28874 }
28875 arg2 = static_cast< int >(val2);
28876 }
28877 if (obj2) {
28878 {
28879 arg3 = &temp3;
28880 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28881 }
28882 }
28883 if (obj3) {
28884 {
28885 arg4 = &temp4;
28886 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28887 }
28888 }
28889 if (obj4) {
28890 ecode5 = SWIG_AsVal_long(obj4, &val5);
28891 if (!SWIG_IsOK(ecode5)) {
28892 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28893 }
28894 arg5 = static_cast< long >(val5);
28895 }
28896 if (obj5) {
28897 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28898 if (!SWIG_IsOK(res6)) {
28899 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28900 }
28901 if (!argp6) {
28902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28903 }
28904 arg6 = reinterpret_cast< wxValidator * >(argp6);
28905 }
28906 if (obj6) {
28907 {
28908 arg7 = wxString_in_helper(obj6);
28909 if (arg7 == NULL) SWIG_fail;
28910 temp7 = true;
28911 }
28912 }
28913 {
28914 if (!wxPyCheckForApp()) SWIG_fail;
28915 PyThreadState* __tstate = wxPyBeginAllowThreads();
28916 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28917 wxPyEndAllowThreads(__tstate);
28918 if (PyErr_Occurred()) SWIG_fail;
28919 }
28920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28921 {
28922 if (temp7)
28923 delete arg7;
28924 }
28925 return resultobj;
28926 fail:
28927 {
28928 if (temp7)
28929 delete arg7;
28930 }
28931 return NULL;
28932 }
28933
28934
28935 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28936 PyObject *resultobj = 0;
28937 wxPyListCtrl *result = 0 ;
28938
28939 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28940 {
28941 if (!wxPyCheckForApp()) SWIG_fail;
28942 PyThreadState* __tstate = wxPyBeginAllowThreads();
28943 result = (wxPyListCtrl *)new wxPyListCtrl();
28944 wxPyEndAllowThreads(__tstate);
28945 if (PyErr_Occurred()) SWIG_fail;
28946 }
28947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28948 return resultobj;
28949 fail:
28950 return NULL;
28951 }
28952
28953
28954 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28955 PyObject *resultobj = 0;
28956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28957 wxWindow *arg2 = (wxWindow *) 0 ;
28958 int arg3 = (int) -1 ;
28959 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28960 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28961 wxSize const &arg5_defvalue = wxDefaultSize ;
28962 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28963 long arg6 = (long) wxLC_ICON ;
28964 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28965 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28966 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28967 wxString *arg8 = (wxString *) &arg8_defvalue ;
28968 bool result;
28969 void *argp1 = 0 ;
28970 int res1 = 0 ;
28971 void *argp2 = 0 ;
28972 int res2 = 0 ;
28973 int val3 ;
28974 int ecode3 = 0 ;
28975 wxPoint temp4 ;
28976 wxSize temp5 ;
28977 long val6 ;
28978 int ecode6 = 0 ;
28979 void *argp7 = 0 ;
28980 int res7 = 0 ;
28981 bool temp8 = false ;
28982 PyObject * obj0 = 0 ;
28983 PyObject * obj1 = 0 ;
28984 PyObject * obj2 = 0 ;
28985 PyObject * obj3 = 0 ;
28986 PyObject * obj4 = 0 ;
28987 PyObject * obj5 = 0 ;
28988 PyObject * obj6 = 0 ;
28989 PyObject * obj7 = 0 ;
28990 char * kwnames[] = {
28991 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28992 };
28993
28994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28996 if (!SWIG_IsOK(res1)) {
28997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28998 }
28999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29001 if (!SWIG_IsOK(res2)) {
29002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29003 }
29004 arg2 = reinterpret_cast< wxWindow * >(argp2);
29005 if (obj2) {
29006 ecode3 = SWIG_AsVal_int(obj2, &val3);
29007 if (!SWIG_IsOK(ecode3)) {
29008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29009 }
29010 arg3 = static_cast< int >(val3);
29011 }
29012 if (obj3) {
29013 {
29014 arg4 = &temp4;
29015 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29016 }
29017 }
29018 if (obj4) {
29019 {
29020 arg5 = &temp5;
29021 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29022 }
29023 }
29024 if (obj5) {
29025 ecode6 = SWIG_AsVal_long(obj5, &val6);
29026 if (!SWIG_IsOK(ecode6)) {
29027 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29028 }
29029 arg6 = static_cast< long >(val6);
29030 }
29031 if (obj6) {
29032 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29033 if (!SWIG_IsOK(res7)) {
29034 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29035 }
29036 if (!argp7) {
29037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29038 }
29039 arg7 = reinterpret_cast< wxValidator * >(argp7);
29040 }
29041 if (obj7) {
29042 {
29043 arg8 = wxString_in_helper(obj7);
29044 if (arg8 == NULL) SWIG_fail;
29045 temp8 = true;
29046 }
29047 }
29048 {
29049 PyThreadState* __tstate = wxPyBeginAllowThreads();
29050 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29051 wxPyEndAllowThreads(__tstate);
29052 if (PyErr_Occurred()) SWIG_fail;
29053 }
29054 {
29055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29056 }
29057 {
29058 if (temp8)
29059 delete arg8;
29060 }
29061 return resultobj;
29062 fail:
29063 {
29064 if (temp8)
29065 delete arg8;
29066 }
29067 return NULL;
29068 }
29069
29070
29071 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29072 PyObject *resultobj = 0;
29073 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29074 PyObject *arg2 = (PyObject *) 0 ;
29075 PyObject *arg3 = (PyObject *) 0 ;
29076 void *argp1 = 0 ;
29077 int res1 = 0 ;
29078 PyObject * obj0 = 0 ;
29079 PyObject * obj1 = 0 ;
29080 PyObject * obj2 = 0 ;
29081 char * kwnames[] = {
29082 (char *) "self",(char *) "self",(char *) "_class", NULL
29083 };
29084
29085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29087 if (!SWIG_IsOK(res1)) {
29088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29089 }
29090 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29091 arg2 = obj1;
29092 arg3 = obj2;
29093 {
29094 PyThreadState* __tstate = wxPyBeginAllowThreads();
29095 (arg1)->_setCallbackInfo(arg2,arg3);
29096 wxPyEndAllowThreads(__tstate);
29097 if (PyErr_Occurred()) SWIG_fail;
29098 }
29099 resultobj = SWIG_Py_Void();
29100 return resultobj;
29101 fail:
29102 return NULL;
29103 }
29104
29105
29106 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29107 PyObject *resultobj = 0;
29108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29109 int arg2 ;
29110 wxListItem *result = 0 ;
29111 void *argp1 = 0 ;
29112 int res1 = 0 ;
29113 int val2 ;
29114 int ecode2 = 0 ;
29115 PyObject * obj0 = 0 ;
29116 PyObject * obj1 = 0 ;
29117 char * kwnames[] = {
29118 (char *) "self",(char *) "col", NULL
29119 };
29120
29121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29123 if (!SWIG_IsOK(res1)) {
29124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29125 }
29126 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29127 ecode2 = SWIG_AsVal_int(obj1, &val2);
29128 if (!SWIG_IsOK(ecode2)) {
29129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29130 }
29131 arg2 = static_cast< int >(val2);
29132 {
29133 PyThreadState* __tstate = wxPyBeginAllowThreads();
29134 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29135 wxPyEndAllowThreads(__tstate);
29136 if (PyErr_Occurred()) SWIG_fail;
29137 }
29138 {
29139 resultobj = wxPyMake_wxObject(result, 0);
29140 }
29141 return resultobj;
29142 fail:
29143 return NULL;
29144 }
29145
29146
29147 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29148 PyObject *resultobj = 0;
29149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29150 int arg2 ;
29151 wxListItem *arg3 = 0 ;
29152 bool result;
29153 void *argp1 = 0 ;
29154 int res1 = 0 ;
29155 int val2 ;
29156 int ecode2 = 0 ;
29157 void *argp3 = 0 ;
29158 int res3 = 0 ;
29159 PyObject * obj0 = 0 ;
29160 PyObject * obj1 = 0 ;
29161 PyObject * obj2 = 0 ;
29162 char * kwnames[] = {
29163 (char *) "self",(char *) "col",(char *) "item", NULL
29164 };
29165
29166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29168 if (!SWIG_IsOK(res1)) {
29169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29170 }
29171 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29172 ecode2 = SWIG_AsVal_int(obj1, &val2);
29173 if (!SWIG_IsOK(ecode2)) {
29174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29175 }
29176 arg2 = static_cast< int >(val2);
29177 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29178 if (!SWIG_IsOK(res3)) {
29179 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29180 }
29181 if (!argp3) {
29182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29183 }
29184 arg3 = reinterpret_cast< wxListItem * >(argp3);
29185 {
29186 PyThreadState* __tstate = wxPyBeginAllowThreads();
29187 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29188 wxPyEndAllowThreads(__tstate);
29189 if (PyErr_Occurred()) SWIG_fail;
29190 }
29191 {
29192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29193 }
29194 return resultobj;
29195 fail:
29196 return NULL;
29197 }
29198
29199
29200 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29201 PyObject *resultobj = 0;
29202 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29203 int arg2 ;
29204 int result;
29205 void *argp1 = 0 ;
29206 int res1 = 0 ;
29207 int val2 ;
29208 int ecode2 = 0 ;
29209 PyObject * obj0 = 0 ;
29210 PyObject * obj1 = 0 ;
29211 char * kwnames[] = {
29212 (char *) "self",(char *) "col", NULL
29213 };
29214
29215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29217 if (!SWIG_IsOK(res1)) {
29218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29219 }
29220 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29221 ecode2 = SWIG_AsVal_int(obj1, &val2);
29222 if (!SWIG_IsOK(ecode2)) {
29223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29224 }
29225 arg2 = static_cast< int >(val2);
29226 {
29227 PyThreadState* __tstate = wxPyBeginAllowThreads();
29228 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29229 wxPyEndAllowThreads(__tstate);
29230 if (PyErr_Occurred()) SWIG_fail;
29231 }
29232 resultobj = SWIG_From_int(static_cast< int >(result));
29233 return resultobj;
29234 fail:
29235 return NULL;
29236 }
29237
29238
29239 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29240 PyObject *resultobj = 0;
29241 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29242 int arg2 ;
29243 int arg3 ;
29244 bool result;
29245 void *argp1 = 0 ;
29246 int res1 = 0 ;
29247 int val2 ;
29248 int ecode2 = 0 ;
29249 int val3 ;
29250 int ecode3 = 0 ;
29251 PyObject * obj0 = 0 ;
29252 PyObject * obj1 = 0 ;
29253 PyObject * obj2 = 0 ;
29254 char * kwnames[] = {
29255 (char *) "self",(char *) "col",(char *) "width", NULL
29256 };
29257
29258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29260 if (!SWIG_IsOK(res1)) {
29261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29262 }
29263 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29264 ecode2 = SWIG_AsVal_int(obj1, &val2);
29265 if (!SWIG_IsOK(ecode2)) {
29266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29267 }
29268 arg2 = static_cast< int >(val2);
29269 ecode3 = SWIG_AsVal_int(obj2, &val3);
29270 if (!SWIG_IsOK(ecode3)) {
29271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29272 }
29273 arg3 = static_cast< int >(val3);
29274 {
29275 PyThreadState* __tstate = wxPyBeginAllowThreads();
29276 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29277 wxPyEndAllowThreads(__tstate);
29278 if (PyErr_Occurred()) SWIG_fail;
29279 }
29280 {
29281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29282 }
29283 return resultobj;
29284 fail:
29285 return NULL;
29286 }
29287
29288
29289 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29290 PyObject *resultobj = 0;
29291 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29292 int result;
29293 void *argp1 = 0 ;
29294 int res1 = 0 ;
29295 PyObject *swig_obj[1] ;
29296
29297 if (!args) SWIG_fail;
29298 swig_obj[0] = args;
29299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29300 if (!SWIG_IsOK(res1)) {
29301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29302 }
29303 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29304 {
29305 PyThreadState* __tstate = wxPyBeginAllowThreads();
29306 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29307 wxPyEndAllowThreads(__tstate);
29308 if (PyErr_Occurred()) SWIG_fail;
29309 }
29310 resultobj = SWIG_From_int(static_cast< int >(result));
29311 return resultobj;
29312 fail:
29313 return NULL;
29314 }
29315
29316
29317 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29318 PyObject *resultobj = 0;
29319 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29320 wxRect result;
29321 void *argp1 = 0 ;
29322 int res1 = 0 ;
29323 PyObject *swig_obj[1] ;
29324
29325 if (!args) SWIG_fail;
29326 swig_obj[0] = args;
29327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29328 if (!SWIG_IsOK(res1)) {
29329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29330 }
29331 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29332 {
29333 PyThreadState* __tstate = wxPyBeginAllowThreads();
29334 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29335 wxPyEndAllowThreads(__tstate);
29336 if (PyErr_Occurred()) SWIG_fail;
29337 }
29338 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29339 return resultobj;
29340 fail:
29341 return NULL;
29342 }
29343
29344
29345 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29346 PyObject *resultobj = 0;
29347 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29348 wxTextCtrl *result = 0 ;
29349 void *argp1 = 0 ;
29350 int res1 = 0 ;
29351 PyObject *swig_obj[1] ;
29352
29353 if (!args) SWIG_fail;
29354 swig_obj[0] = args;
29355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29356 if (!SWIG_IsOK(res1)) {
29357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29358 }
29359 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29360 {
29361 PyThreadState* __tstate = wxPyBeginAllowThreads();
29362 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29363 wxPyEndAllowThreads(__tstate);
29364 if (PyErr_Occurred()) SWIG_fail;
29365 }
29366 {
29367 resultobj = wxPyMake_wxObject(result, 0);
29368 }
29369 return resultobj;
29370 fail:
29371 return NULL;
29372 }
29373
29374
29375 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29376 PyObject *resultobj = 0;
29377 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29378 long arg2 ;
29379 int arg3 = (int) 0 ;
29380 wxListItem *result = 0 ;
29381 void *argp1 = 0 ;
29382 int res1 = 0 ;
29383 long val2 ;
29384 int ecode2 = 0 ;
29385 int val3 ;
29386 int ecode3 = 0 ;
29387 PyObject * obj0 = 0 ;
29388 PyObject * obj1 = 0 ;
29389 PyObject * obj2 = 0 ;
29390 char * kwnames[] = {
29391 (char *) "self",(char *) "itemId",(char *) "col", NULL
29392 };
29393
29394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29396 if (!SWIG_IsOK(res1)) {
29397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29398 }
29399 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29400 ecode2 = SWIG_AsVal_long(obj1, &val2);
29401 if (!SWIG_IsOK(ecode2)) {
29402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29403 }
29404 arg2 = static_cast< long >(val2);
29405 if (obj2) {
29406 ecode3 = SWIG_AsVal_int(obj2, &val3);
29407 if (!SWIG_IsOK(ecode3)) {
29408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29409 }
29410 arg3 = static_cast< int >(val3);
29411 }
29412 {
29413 PyThreadState* __tstate = wxPyBeginAllowThreads();
29414 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29415 wxPyEndAllowThreads(__tstate);
29416 if (PyErr_Occurred()) SWIG_fail;
29417 }
29418 {
29419 resultobj = wxPyMake_wxObject(result, 0);
29420 }
29421 return resultobj;
29422 fail:
29423 return NULL;
29424 }
29425
29426
29427 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29428 PyObject *resultobj = 0;
29429 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29430 wxListItem *arg2 = 0 ;
29431 bool result;
29432 void *argp1 = 0 ;
29433 int res1 = 0 ;
29434 void *argp2 = 0 ;
29435 int res2 = 0 ;
29436 PyObject * obj0 = 0 ;
29437 PyObject * obj1 = 0 ;
29438 char * kwnames[] = {
29439 (char *) "self",(char *) "info", NULL
29440 };
29441
29442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29446 }
29447 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29449 if (!SWIG_IsOK(res2)) {
29450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29451 }
29452 if (!argp2) {
29453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29454 }
29455 arg2 = reinterpret_cast< wxListItem * >(argp2);
29456 {
29457 PyThreadState* __tstate = wxPyBeginAllowThreads();
29458 result = (bool)(arg1)->SetItem(*arg2);
29459 wxPyEndAllowThreads(__tstate);
29460 if (PyErr_Occurred()) SWIG_fail;
29461 }
29462 {
29463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29464 }
29465 return resultobj;
29466 fail:
29467 return NULL;
29468 }
29469
29470
29471 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29472 PyObject *resultobj = 0;
29473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29474 long arg2 ;
29475 int arg3 ;
29476 wxString *arg4 = 0 ;
29477 int arg5 = (int) -1 ;
29478 long result;
29479 void *argp1 = 0 ;
29480 int res1 = 0 ;
29481 long val2 ;
29482 int ecode2 = 0 ;
29483 int val3 ;
29484 int ecode3 = 0 ;
29485 bool temp4 = false ;
29486 int val5 ;
29487 int ecode5 = 0 ;
29488 PyObject * obj0 = 0 ;
29489 PyObject * obj1 = 0 ;
29490 PyObject * obj2 = 0 ;
29491 PyObject * obj3 = 0 ;
29492 PyObject * obj4 = 0 ;
29493 char * kwnames[] = {
29494 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29495 };
29496
29497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29499 if (!SWIG_IsOK(res1)) {
29500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29501 }
29502 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29503 ecode2 = SWIG_AsVal_long(obj1, &val2);
29504 if (!SWIG_IsOK(ecode2)) {
29505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29506 }
29507 arg2 = static_cast< long >(val2);
29508 ecode3 = SWIG_AsVal_int(obj2, &val3);
29509 if (!SWIG_IsOK(ecode3)) {
29510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29511 }
29512 arg3 = static_cast< int >(val3);
29513 {
29514 arg4 = wxString_in_helper(obj3);
29515 if (arg4 == NULL) SWIG_fail;
29516 temp4 = true;
29517 }
29518 if (obj4) {
29519 ecode5 = SWIG_AsVal_int(obj4, &val5);
29520 if (!SWIG_IsOK(ecode5)) {
29521 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29522 }
29523 arg5 = static_cast< int >(val5);
29524 }
29525 {
29526 PyThreadState* __tstate = wxPyBeginAllowThreads();
29527 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29528 wxPyEndAllowThreads(__tstate);
29529 if (PyErr_Occurred()) SWIG_fail;
29530 }
29531 resultobj = SWIG_From_long(static_cast< long >(result));
29532 {
29533 if (temp4)
29534 delete arg4;
29535 }
29536 return resultobj;
29537 fail:
29538 {
29539 if (temp4)
29540 delete arg4;
29541 }
29542 return NULL;
29543 }
29544
29545
29546 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29547 PyObject *resultobj = 0;
29548 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29549 long arg2 ;
29550 long arg3 ;
29551 int result;
29552 void *argp1 = 0 ;
29553 int res1 = 0 ;
29554 long val2 ;
29555 int ecode2 = 0 ;
29556 long val3 ;
29557 int ecode3 = 0 ;
29558 PyObject * obj0 = 0 ;
29559 PyObject * obj1 = 0 ;
29560 PyObject * obj2 = 0 ;
29561 char * kwnames[] = {
29562 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29563 };
29564
29565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29567 if (!SWIG_IsOK(res1)) {
29568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29569 }
29570 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29571 ecode2 = SWIG_AsVal_long(obj1, &val2);
29572 if (!SWIG_IsOK(ecode2)) {
29573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29574 }
29575 arg2 = static_cast< long >(val2);
29576 ecode3 = SWIG_AsVal_long(obj2, &val3);
29577 if (!SWIG_IsOK(ecode3)) {
29578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29579 }
29580 arg3 = static_cast< long >(val3);
29581 {
29582 PyThreadState* __tstate = wxPyBeginAllowThreads();
29583 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29584 wxPyEndAllowThreads(__tstate);
29585 if (PyErr_Occurred()) SWIG_fail;
29586 }
29587 resultobj = SWIG_From_int(static_cast< int >(result));
29588 return resultobj;
29589 fail:
29590 return NULL;
29591 }
29592
29593
29594 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29595 PyObject *resultobj = 0;
29596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29597 long arg2 ;
29598 long arg3 ;
29599 long arg4 ;
29600 bool result;
29601 void *argp1 = 0 ;
29602 int res1 = 0 ;
29603 long val2 ;
29604 int ecode2 = 0 ;
29605 long val3 ;
29606 int ecode3 = 0 ;
29607 long val4 ;
29608 int ecode4 = 0 ;
29609 PyObject * obj0 = 0 ;
29610 PyObject * obj1 = 0 ;
29611 PyObject * obj2 = 0 ;
29612 PyObject * obj3 = 0 ;
29613 char * kwnames[] = {
29614 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29615 };
29616
29617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29619 if (!SWIG_IsOK(res1)) {
29620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29621 }
29622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29623 ecode2 = SWIG_AsVal_long(obj1, &val2);
29624 if (!SWIG_IsOK(ecode2)) {
29625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29626 }
29627 arg2 = static_cast< long >(val2);
29628 ecode3 = SWIG_AsVal_long(obj2, &val3);
29629 if (!SWIG_IsOK(ecode3)) {
29630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29631 }
29632 arg3 = static_cast< long >(val3);
29633 ecode4 = SWIG_AsVal_long(obj3, &val4);
29634 if (!SWIG_IsOK(ecode4)) {
29635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29636 }
29637 arg4 = static_cast< long >(val4);
29638 {
29639 PyThreadState* __tstate = wxPyBeginAllowThreads();
29640 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29641 wxPyEndAllowThreads(__tstate);
29642 if (PyErr_Occurred()) SWIG_fail;
29643 }
29644 {
29645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29646 }
29647 return resultobj;
29648 fail:
29649 return NULL;
29650 }
29651
29652
29653 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29654 PyObject *resultobj = 0;
29655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29656 long arg2 ;
29657 int arg3 ;
29658 int arg4 = (int) -1 ;
29659 bool result;
29660 void *argp1 = 0 ;
29661 int res1 = 0 ;
29662 long val2 ;
29663 int ecode2 = 0 ;
29664 int val3 ;
29665 int ecode3 = 0 ;
29666 int val4 ;
29667 int ecode4 = 0 ;
29668 PyObject * obj0 = 0 ;
29669 PyObject * obj1 = 0 ;
29670 PyObject * obj2 = 0 ;
29671 PyObject * obj3 = 0 ;
29672 char * kwnames[] = {
29673 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29674 };
29675
29676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29678 if (!SWIG_IsOK(res1)) {
29679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29680 }
29681 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29682 ecode2 = SWIG_AsVal_long(obj1, &val2);
29683 if (!SWIG_IsOK(ecode2)) {
29684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29685 }
29686 arg2 = static_cast< long >(val2);
29687 ecode3 = SWIG_AsVal_int(obj2, &val3);
29688 if (!SWIG_IsOK(ecode3)) {
29689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29690 }
29691 arg3 = static_cast< int >(val3);
29692 if (obj3) {
29693 ecode4 = SWIG_AsVal_int(obj3, &val4);
29694 if (!SWIG_IsOK(ecode4)) {
29695 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29696 }
29697 arg4 = static_cast< int >(val4);
29698 }
29699 {
29700 PyThreadState* __tstate = wxPyBeginAllowThreads();
29701 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29702 wxPyEndAllowThreads(__tstate);
29703 if (PyErr_Occurred()) SWIG_fail;
29704 }
29705 {
29706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29707 }
29708 return resultobj;
29709 fail:
29710 return NULL;
29711 }
29712
29713
29714 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29715 PyObject *resultobj = 0;
29716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29717 long arg2 ;
29718 long arg3 ;
29719 int arg4 ;
29720 bool result;
29721 void *argp1 = 0 ;
29722 int res1 = 0 ;
29723 long val2 ;
29724 int ecode2 = 0 ;
29725 long val3 ;
29726 int ecode3 = 0 ;
29727 int val4 ;
29728 int ecode4 = 0 ;
29729 PyObject * obj0 = 0 ;
29730 PyObject * obj1 = 0 ;
29731 PyObject * obj2 = 0 ;
29732 PyObject * obj3 = 0 ;
29733 char * kwnames[] = {
29734 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29735 };
29736
29737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29739 if (!SWIG_IsOK(res1)) {
29740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29741 }
29742 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29743 ecode2 = SWIG_AsVal_long(obj1, &val2);
29744 if (!SWIG_IsOK(ecode2)) {
29745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29746 }
29747 arg2 = static_cast< long >(val2);
29748 ecode3 = SWIG_AsVal_long(obj2, &val3);
29749 if (!SWIG_IsOK(ecode3)) {
29750 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29751 }
29752 arg3 = static_cast< long >(val3);
29753 ecode4 = SWIG_AsVal_int(obj3, &val4);
29754 if (!SWIG_IsOK(ecode4)) {
29755 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29756 }
29757 arg4 = static_cast< int >(val4);
29758 {
29759 PyThreadState* __tstate = wxPyBeginAllowThreads();
29760 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29761 wxPyEndAllowThreads(__tstate);
29762 if (PyErr_Occurred()) SWIG_fail;
29763 }
29764 {
29765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29766 }
29767 return resultobj;
29768 fail:
29769 return NULL;
29770 }
29771
29772
29773 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29774 PyObject *resultobj = 0;
29775 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29776 long arg2 ;
29777 wxString result;
29778 void *argp1 = 0 ;
29779 int res1 = 0 ;
29780 long val2 ;
29781 int ecode2 = 0 ;
29782 PyObject * obj0 = 0 ;
29783 PyObject * obj1 = 0 ;
29784 char * kwnames[] = {
29785 (char *) "self",(char *) "item", NULL
29786 };
29787
29788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29790 if (!SWIG_IsOK(res1)) {
29791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29792 }
29793 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29794 ecode2 = SWIG_AsVal_long(obj1, &val2);
29795 if (!SWIG_IsOK(ecode2)) {
29796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29797 }
29798 arg2 = static_cast< long >(val2);
29799 {
29800 PyThreadState* __tstate = wxPyBeginAllowThreads();
29801 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29802 wxPyEndAllowThreads(__tstate);
29803 if (PyErr_Occurred()) SWIG_fail;
29804 }
29805 {
29806 #if wxUSE_UNICODE
29807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29808 #else
29809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29810 #endif
29811 }
29812 return resultobj;
29813 fail:
29814 return NULL;
29815 }
29816
29817
29818 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29819 PyObject *resultobj = 0;
29820 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29821 long arg2 ;
29822 wxString *arg3 = 0 ;
29823 void *argp1 = 0 ;
29824 int res1 = 0 ;
29825 long val2 ;
29826 int ecode2 = 0 ;
29827 bool temp3 = false ;
29828 PyObject * obj0 = 0 ;
29829 PyObject * obj1 = 0 ;
29830 PyObject * obj2 = 0 ;
29831 char * kwnames[] = {
29832 (char *) "self",(char *) "item",(char *) "str", NULL
29833 };
29834
29835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29837 if (!SWIG_IsOK(res1)) {
29838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29839 }
29840 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29841 ecode2 = SWIG_AsVal_long(obj1, &val2);
29842 if (!SWIG_IsOK(ecode2)) {
29843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29844 }
29845 arg2 = static_cast< long >(val2);
29846 {
29847 arg3 = wxString_in_helper(obj2);
29848 if (arg3 == NULL) SWIG_fail;
29849 temp3 = true;
29850 }
29851 {
29852 PyThreadState* __tstate = wxPyBeginAllowThreads();
29853 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29854 wxPyEndAllowThreads(__tstate);
29855 if (PyErr_Occurred()) SWIG_fail;
29856 }
29857 resultobj = SWIG_Py_Void();
29858 {
29859 if (temp3)
29860 delete arg3;
29861 }
29862 return resultobj;
29863 fail:
29864 {
29865 if (temp3)
29866 delete arg3;
29867 }
29868 return NULL;
29869 }
29870
29871
29872 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29873 PyObject *resultobj = 0;
29874 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29875 long arg2 ;
29876 long result;
29877 void *argp1 = 0 ;
29878 int res1 = 0 ;
29879 long val2 ;
29880 int ecode2 = 0 ;
29881 PyObject * obj0 = 0 ;
29882 PyObject * obj1 = 0 ;
29883 char * kwnames[] = {
29884 (char *) "self",(char *) "item", NULL
29885 };
29886
29887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29889 if (!SWIG_IsOK(res1)) {
29890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29891 }
29892 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29893 ecode2 = SWIG_AsVal_long(obj1, &val2);
29894 if (!SWIG_IsOK(ecode2)) {
29895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29896 }
29897 arg2 = static_cast< long >(val2);
29898 {
29899 PyThreadState* __tstate = wxPyBeginAllowThreads();
29900 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29901 wxPyEndAllowThreads(__tstate);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 resultobj = SWIG_From_long(static_cast< long >(result));
29905 return resultobj;
29906 fail:
29907 return NULL;
29908 }
29909
29910
29911 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29912 PyObject *resultobj = 0;
29913 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29914 long arg2 ;
29915 long arg3 ;
29916 bool result;
29917 void *argp1 = 0 ;
29918 int res1 = 0 ;
29919 long val2 ;
29920 int ecode2 = 0 ;
29921 long val3 ;
29922 int ecode3 = 0 ;
29923 PyObject * obj0 = 0 ;
29924 PyObject * obj1 = 0 ;
29925 PyObject * obj2 = 0 ;
29926 char * kwnames[] = {
29927 (char *) "self",(char *) "item",(char *) "data", NULL
29928 };
29929
29930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29932 if (!SWIG_IsOK(res1)) {
29933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29934 }
29935 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29936 ecode2 = SWIG_AsVal_long(obj1, &val2);
29937 if (!SWIG_IsOK(ecode2)) {
29938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29939 }
29940 arg2 = static_cast< long >(val2);
29941 ecode3 = SWIG_AsVal_long(obj2, &val3);
29942 if (!SWIG_IsOK(ecode3)) {
29943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29944 }
29945 arg3 = static_cast< long >(val3);
29946 {
29947 PyThreadState* __tstate = wxPyBeginAllowThreads();
29948 result = (bool)(arg1)->SetItemData(arg2,arg3);
29949 wxPyEndAllowThreads(__tstate);
29950 if (PyErr_Occurred()) SWIG_fail;
29951 }
29952 {
29953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29954 }
29955 return resultobj;
29956 fail:
29957 return NULL;
29958 }
29959
29960
29961 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29962 PyObject *resultobj = 0;
29963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29964 long arg2 ;
29965 wxPoint result;
29966 void *argp1 = 0 ;
29967 int res1 = 0 ;
29968 long val2 ;
29969 int ecode2 = 0 ;
29970 PyObject * obj0 = 0 ;
29971 PyObject * obj1 = 0 ;
29972 char * kwnames[] = {
29973 (char *) "self",(char *) "item", NULL
29974 };
29975
29976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29978 if (!SWIG_IsOK(res1)) {
29979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29980 }
29981 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29982 ecode2 = SWIG_AsVal_long(obj1, &val2);
29983 if (!SWIG_IsOK(ecode2)) {
29984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29985 }
29986 arg2 = static_cast< long >(val2);
29987 {
29988 PyThreadState* __tstate = wxPyBeginAllowThreads();
29989 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29990 wxPyEndAllowThreads(__tstate);
29991 if (PyErr_Occurred()) SWIG_fail;
29992 }
29993 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29994 return resultobj;
29995 fail:
29996 return NULL;
29997 }
29998
29999
30000 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30001 PyObject *resultobj = 0;
30002 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30003 long arg2 ;
30004 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30005 wxRect result;
30006 void *argp1 = 0 ;
30007 int res1 = 0 ;
30008 long val2 ;
30009 int ecode2 = 0 ;
30010 int val3 ;
30011 int ecode3 = 0 ;
30012 PyObject * obj0 = 0 ;
30013 PyObject * obj1 = 0 ;
30014 PyObject * obj2 = 0 ;
30015 char * kwnames[] = {
30016 (char *) "self",(char *) "item",(char *) "code", NULL
30017 };
30018
30019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30021 if (!SWIG_IsOK(res1)) {
30022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30023 }
30024 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30025 ecode2 = SWIG_AsVal_long(obj1, &val2);
30026 if (!SWIG_IsOK(ecode2)) {
30027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30028 }
30029 arg2 = static_cast< long >(val2);
30030 if (obj2) {
30031 ecode3 = SWIG_AsVal_int(obj2, &val3);
30032 if (!SWIG_IsOK(ecode3)) {
30033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30034 }
30035 arg3 = static_cast< int >(val3);
30036 }
30037 {
30038 PyThreadState* __tstate = wxPyBeginAllowThreads();
30039 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30040 wxPyEndAllowThreads(__tstate);
30041 if (PyErr_Occurred()) SWIG_fail;
30042 }
30043 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30044 return resultobj;
30045 fail:
30046 return NULL;
30047 }
30048
30049
30050 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30051 PyObject *resultobj = 0;
30052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30053 long arg2 ;
30054 wxPoint *arg3 = 0 ;
30055 bool result;
30056 void *argp1 = 0 ;
30057 int res1 = 0 ;
30058 long val2 ;
30059 int ecode2 = 0 ;
30060 wxPoint temp3 ;
30061 PyObject * obj0 = 0 ;
30062 PyObject * obj1 = 0 ;
30063 PyObject * obj2 = 0 ;
30064 char * kwnames[] = {
30065 (char *) "self",(char *) "item",(char *) "pos", NULL
30066 };
30067
30068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30070 if (!SWIG_IsOK(res1)) {
30071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30072 }
30073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30074 ecode2 = SWIG_AsVal_long(obj1, &val2);
30075 if (!SWIG_IsOK(ecode2)) {
30076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30077 }
30078 arg2 = static_cast< long >(val2);
30079 {
30080 arg3 = &temp3;
30081 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30082 }
30083 {
30084 PyThreadState* __tstate = wxPyBeginAllowThreads();
30085 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30086 wxPyEndAllowThreads(__tstate);
30087 if (PyErr_Occurred()) SWIG_fail;
30088 }
30089 {
30090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30091 }
30092 return resultobj;
30093 fail:
30094 return NULL;
30095 }
30096
30097
30098 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30099 PyObject *resultobj = 0;
30100 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30101 int result;
30102 void *argp1 = 0 ;
30103 int res1 = 0 ;
30104 PyObject *swig_obj[1] ;
30105
30106 if (!args) SWIG_fail;
30107 swig_obj[0] = args;
30108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30109 if (!SWIG_IsOK(res1)) {
30110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30111 }
30112 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30113 {
30114 PyThreadState* __tstate = wxPyBeginAllowThreads();
30115 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30116 wxPyEndAllowThreads(__tstate);
30117 if (PyErr_Occurred()) SWIG_fail;
30118 }
30119 resultobj = SWIG_From_int(static_cast< int >(result));
30120 return resultobj;
30121 fail:
30122 return NULL;
30123 }
30124
30125
30126 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30127 PyObject *resultobj = 0;
30128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30129 int result;
30130 void *argp1 = 0 ;
30131 int res1 = 0 ;
30132 PyObject *swig_obj[1] ;
30133
30134 if (!args) SWIG_fail;
30135 swig_obj[0] = args;
30136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30137 if (!SWIG_IsOK(res1)) {
30138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30139 }
30140 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30141 {
30142 PyThreadState* __tstate = wxPyBeginAllowThreads();
30143 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 resultobj = SWIG_From_int(static_cast< int >(result));
30148 return resultobj;
30149 fail:
30150 return NULL;
30151 }
30152
30153
30154 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30155 PyObject *resultobj = 0;
30156 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30157 wxSize result;
30158 void *argp1 = 0 ;
30159 int res1 = 0 ;
30160 PyObject *swig_obj[1] ;
30161
30162 if (!args) SWIG_fail;
30163 swig_obj[0] = args;
30164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30165 if (!SWIG_IsOK(res1)) {
30166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30167 }
30168 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30169 {
30170 PyThreadState* __tstate = wxPyBeginAllowThreads();
30171 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30172 wxPyEndAllowThreads(__tstate);
30173 if (PyErr_Occurred()) SWIG_fail;
30174 }
30175 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30176 return resultobj;
30177 fail:
30178 return NULL;
30179 }
30180
30181
30182 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30183 PyObject *resultobj = 0;
30184 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30185 int arg2 ;
30186 bool arg3 = (bool) false ;
30187 void *argp1 = 0 ;
30188 int res1 = 0 ;
30189 int val2 ;
30190 int ecode2 = 0 ;
30191 bool val3 ;
30192 int ecode3 = 0 ;
30193 PyObject * obj0 = 0 ;
30194 PyObject * obj1 = 0 ;
30195 PyObject * obj2 = 0 ;
30196 char * kwnames[] = {
30197 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30198 };
30199
30200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30202 if (!SWIG_IsOK(res1)) {
30203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30204 }
30205 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30206 ecode2 = SWIG_AsVal_int(obj1, &val2);
30207 if (!SWIG_IsOK(ecode2)) {
30208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30209 }
30210 arg2 = static_cast< int >(val2);
30211 if (obj2) {
30212 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30213 if (!SWIG_IsOK(ecode3)) {
30214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30215 }
30216 arg3 = static_cast< bool >(val3);
30217 }
30218 {
30219 PyThreadState* __tstate = wxPyBeginAllowThreads();
30220 (arg1)->SetItemSpacing(arg2,arg3);
30221 wxPyEndAllowThreads(__tstate);
30222 if (PyErr_Occurred()) SWIG_fail;
30223 }
30224 resultobj = SWIG_Py_Void();
30225 return resultobj;
30226 fail:
30227 return NULL;
30228 }
30229
30230
30231 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30232 PyObject *resultobj = 0;
30233 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30234 int result;
30235 void *argp1 = 0 ;
30236 int res1 = 0 ;
30237 PyObject *swig_obj[1] ;
30238
30239 if (!args) SWIG_fail;
30240 swig_obj[0] = args;
30241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30242 if (!SWIG_IsOK(res1)) {
30243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30244 }
30245 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30246 {
30247 PyThreadState* __tstate = wxPyBeginAllowThreads();
30248 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30249 wxPyEndAllowThreads(__tstate);
30250 if (PyErr_Occurred()) SWIG_fail;
30251 }
30252 resultobj = SWIG_From_int(static_cast< int >(result));
30253 return resultobj;
30254 fail:
30255 return NULL;
30256 }
30257
30258
30259 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30260 PyObject *resultobj = 0;
30261 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30262 wxColour result;
30263 void *argp1 = 0 ;
30264 int res1 = 0 ;
30265 PyObject *swig_obj[1] ;
30266
30267 if (!args) SWIG_fail;
30268 swig_obj[0] = args;
30269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30270 if (!SWIG_IsOK(res1)) {
30271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30272 }
30273 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30274 {
30275 PyThreadState* __tstate = wxPyBeginAllowThreads();
30276 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30277 wxPyEndAllowThreads(__tstate);
30278 if (PyErr_Occurred()) SWIG_fail;
30279 }
30280 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30281 return resultobj;
30282 fail:
30283 return NULL;
30284 }
30285
30286
30287 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30288 PyObject *resultobj = 0;
30289 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30290 wxColour *arg2 = 0 ;
30291 void *argp1 = 0 ;
30292 int res1 = 0 ;
30293 wxColour temp2 ;
30294 PyObject * obj0 = 0 ;
30295 PyObject * obj1 = 0 ;
30296 char * kwnames[] = {
30297 (char *) "self",(char *) "col", NULL
30298 };
30299
30300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30302 if (!SWIG_IsOK(res1)) {
30303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30304 }
30305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30306 {
30307 arg2 = &temp2;
30308 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30309 }
30310 {
30311 PyThreadState* __tstate = wxPyBeginAllowThreads();
30312 (arg1)->SetTextColour((wxColour const &)*arg2);
30313 wxPyEndAllowThreads(__tstate);
30314 if (PyErr_Occurred()) SWIG_fail;
30315 }
30316 resultobj = SWIG_Py_Void();
30317 return resultobj;
30318 fail:
30319 return NULL;
30320 }
30321
30322
30323 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30324 PyObject *resultobj = 0;
30325 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30326 long result;
30327 void *argp1 = 0 ;
30328 int res1 = 0 ;
30329 PyObject *swig_obj[1] ;
30330
30331 if (!args) SWIG_fail;
30332 swig_obj[0] = args;
30333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30334 if (!SWIG_IsOK(res1)) {
30335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30336 }
30337 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30338 {
30339 PyThreadState* __tstate = wxPyBeginAllowThreads();
30340 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30341 wxPyEndAllowThreads(__tstate);
30342 if (PyErr_Occurred()) SWIG_fail;
30343 }
30344 resultobj = SWIG_From_long(static_cast< long >(result));
30345 return resultobj;
30346 fail:
30347 return NULL;
30348 }
30349
30350
30351 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30352 PyObject *resultobj = 0;
30353 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30354 long arg2 ;
30355 bool arg3 = (bool) true ;
30356 void *argp1 = 0 ;
30357 int res1 = 0 ;
30358 long val2 ;
30359 int ecode2 = 0 ;
30360 bool val3 ;
30361 int ecode3 = 0 ;
30362 PyObject * obj0 = 0 ;
30363 PyObject * obj1 = 0 ;
30364 PyObject * obj2 = 0 ;
30365 char * kwnames[] = {
30366 (char *) "self",(char *) "style",(char *) "add", NULL
30367 };
30368
30369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30371 if (!SWIG_IsOK(res1)) {
30372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30373 }
30374 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30375 ecode2 = SWIG_AsVal_long(obj1, &val2);
30376 if (!SWIG_IsOK(ecode2)) {
30377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30378 }
30379 arg2 = static_cast< long >(val2);
30380 if (obj2) {
30381 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30382 if (!SWIG_IsOK(ecode3)) {
30383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30384 }
30385 arg3 = static_cast< bool >(val3);
30386 }
30387 {
30388 PyThreadState* __tstate = wxPyBeginAllowThreads();
30389 (arg1)->SetSingleStyle(arg2,arg3);
30390 wxPyEndAllowThreads(__tstate);
30391 if (PyErr_Occurred()) SWIG_fail;
30392 }
30393 resultobj = SWIG_Py_Void();
30394 return resultobj;
30395 fail:
30396 return NULL;
30397 }
30398
30399
30400 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30401 PyObject *resultobj = 0;
30402 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30403 long arg2 ;
30404 int arg3 = (int) wxLIST_NEXT_ALL ;
30405 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30406 long result;
30407 void *argp1 = 0 ;
30408 int res1 = 0 ;
30409 long val2 ;
30410 int ecode2 = 0 ;
30411 int val3 ;
30412 int ecode3 = 0 ;
30413 int val4 ;
30414 int ecode4 = 0 ;
30415 PyObject * obj0 = 0 ;
30416 PyObject * obj1 = 0 ;
30417 PyObject * obj2 = 0 ;
30418 PyObject * obj3 = 0 ;
30419 char * kwnames[] = {
30420 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30421 };
30422
30423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30425 if (!SWIG_IsOK(res1)) {
30426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30427 }
30428 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30429 ecode2 = SWIG_AsVal_long(obj1, &val2);
30430 if (!SWIG_IsOK(ecode2)) {
30431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30432 }
30433 arg2 = static_cast< long >(val2);
30434 if (obj2) {
30435 ecode3 = SWIG_AsVal_int(obj2, &val3);
30436 if (!SWIG_IsOK(ecode3)) {
30437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30438 }
30439 arg3 = static_cast< int >(val3);
30440 }
30441 if (obj3) {
30442 ecode4 = SWIG_AsVal_int(obj3, &val4);
30443 if (!SWIG_IsOK(ecode4)) {
30444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30445 }
30446 arg4 = static_cast< int >(val4);
30447 }
30448 {
30449 PyThreadState* __tstate = wxPyBeginAllowThreads();
30450 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30451 wxPyEndAllowThreads(__tstate);
30452 if (PyErr_Occurred()) SWIG_fail;
30453 }
30454 resultobj = SWIG_From_long(static_cast< long >(result));
30455 return resultobj;
30456 fail:
30457 return NULL;
30458 }
30459
30460
30461 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30462 PyObject *resultobj = 0;
30463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30464 int arg2 ;
30465 wxImageList *result = 0 ;
30466 void *argp1 = 0 ;
30467 int res1 = 0 ;
30468 int val2 ;
30469 int ecode2 = 0 ;
30470 PyObject * obj0 = 0 ;
30471 PyObject * obj1 = 0 ;
30472 char * kwnames[] = {
30473 (char *) "self",(char *) "which", NULL
30474 };
30475
30476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30478 if (!SWIG_IsOK(res1)) {
30479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30480 }
30481 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30482 ecode2 = SWIG_AsVal_int(obj1, &val2);
30483 if (!SWIG_IsOK(ecode2)) {
30484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30485 }
30486 arg2 = static_cast< int >(val2);
30487 {
30488 PyThreadState* __tstate = wxPyBeginAllowThreads();
30489 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30490 wxPyEndAllowThreads(__tstate);
30491 if (PyErr_Occurred()) SWIG_fail;
30492 }
30493 {
30494 resultobj = wxPyMake_wxObject(result, (bool)0);
30495 }
30496 return resultobj;
30497 fail:
30498 return NULL;
30499 }
30500
30501
30502 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30503 PyObject *resultobj = 0;
30504 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30505 wxImageList *arg2 = (wxImageList *) 0 ;
30506 int arg3 ;
30507 void *argp1 = 0 ;
30508 int res1 = 0 ;
30509 void *argp2 = 0 ;
30510 int res2 = 0 ;
30511 int val3 ;
30512 int ecode3 = 0 ;
30513 PyObject * obj0 = 0 ;
30514 PyObject * obj1 = 0 ;
30515 PyObject * obj2 = 0 ;
30516 char * kwnames[] = {
30517 (char *) "self",(char *) "imageList",(char *) "which", NULL
30518 };
30519
30520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30522 if (!SWIG_IsOK(res1)) {
30523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30524 }
30525 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30527 if (!SWIG_IsOK(res2)) {
30528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30529 }
30530 arg2 = reinterpret_cast< wxImageList * >(argp2);
30531 ecode3 = SWIG_AsVal_int(obj2, &val3);
30532 if (!SWIG_IsOK(ecode3)) {
30533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30534 }
30535 arg3 = static_cast< int >(val3);
30536 {
30537 PyThreadState* __tstate = wxPyBeginAllowThreads();
30538 (arg1)->SetImageList(arg2,arg3);
30539 wxPyEndAllowThreads(__tstate);
30540 if (PyErr_Occurred()) SWIG_fail;
30541 }
30542 resultobj = SWIG_Py_Void();
30543 return resultobj;
30544 fail:
30545 return NULL;
30546 }
30547
30548
30549 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30550 PyObject *resultobj = 0;
30551 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30552 wxImageList *arg2 = (wxImageList *) 0 ;
30553 int arg3 ;
30554 void *argp1 = 0 ;
30555 int res1 = 0 ;
30556 int res2 = 0 ;
30557 int val3 ;
30558 int ecode3 = 0 ;
30559 PyObject * obj0 = 0 ;
30560 PyObject * obj1 = 0 ;
30561 PyObject * obj2 = 0 ;
30562 char * kwnames[] = {
30563 (char *) "self",(char *) "imageList",(char *) "which", NULL
30564 };
30565
30566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30568 if (!SWIG_IsOK(res1)) {
30569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30570 }
30571 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30572 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30573 if (!SWIG_IsOK(res2)) {
30574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30575 }
30576 ecode3 = SWIG_AsVal_int(obj2, &val3);
30577 if (!SWIG_IsOK(ecode3)) {
30578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30579 }
30580 arg3 = static_cast< int >(val3);
30581 {
30582 PyThreadState* __tstate = wxPyBeginAllowThreads();
30583 (arg1)->AssignImageList(arg2,arg3);
30584 wxPyEndAllowThreads(__tstate);
30585 if (PyErr_Occurred()) SWIG_fail;
30586 }
30587 resultobj = SWIG_Py_Void();
30588 return resultobj;
30589 fail:
30590 return NULL;
30591 }
30592
30593
30594 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30595 PyObject *resultobj = 0;
30596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30597 bool result;
30598 void *argp1 = 0 ;
30599 int res1 = 0 ;
30600 PyObject *swig_obj[1] ;
30601
30602 if (!args) SWIG_fail;
30603 swig_obj[0] = args;
30604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30605 if (!SWIG_IsOK(res1)) {
30606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30607 }
30608 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30609 {
30610 PyThreadState* __tstate = wxPyBeginAllowThreads();
30611 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30612 wxPyEndAllowThreads(__tstate);
30613 if (PyErr_Occurred()) SWIG_fail;
30614 }
30615 {
30616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30617 }
30618 return resultobj;
30619 fail:
30620 return NULL;
30621 }
30622
30623
30624 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30625 PyObject *resultobj = 0;
30626 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30627 bool result;
30628 void *argp1 = 0 ;
30629 int res1 = 0 ;
30630 PyObject *swig_obj[1] ;
30631
30632 if (!args) SWIG_fail;
30633 swig_obj[0] = args;
30634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30635 if (!SWIG_IsOK(res1)) {
30636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30637 }
30638 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30642 wxPyEndAllowThreads(__tstate);
30643 if (PyErr_Occurred()) SWIG_fail;
30644 }
30645 {
30646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30647 }
30648 return resultobj;
30649 fail:
30650 return NULL;
30651 }
30652
30653
30654 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30655 PyObject *resultobj = 0;
30656 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30657 long arg2 ;
30658 void *argp1 = 0 ;
30659 int res1 = 0 ;
30660 long val2 ;
30661 int ecode2 = 0 ;
30662 PyObject * obj0 = 0 ;
30663 PyObject * obj1 = 0 ;
30664 char * kwnames[] = {
30665 (char *) "self",(char *) "item", NULL
30666 };
30667
30668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30670 if (!SWIG_IsOK(res1)) {
30671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30672 }
30673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30674 ecode2 = SWIG_AsVal_long(obj1, &val2);
30675 if (!SWIG_IsOK(ecode2)) {
30676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30677 }
30678 arg2 = static_cast< long >(val2);
30679 {
30680 PyThreadState* __tstate = wxPyBeginAllowThreads();
30681 (arg1)->RefreshItem(arg2);
30682 wxPyEndAllowThreads(__tstate);
30683 if (PyErr_Occurred()) SWIG_fail;
30684 }
30685 resultobj = SWIG_Py_Void();
30686 return resultobj;
30687 fail:
30688 return NULL;
30689 }
30690
30691
30692 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30693 PyObject *resultobj = 0;
30694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30695 long arg2 ;
30696 long arg3 ;
30697 void *argp1 = 0 ;
30698 int res1 = 0 ;
30699 long val2 ;
30700 int ecode2 = 0 ;
30701 long val3 ;
30702 int ecode3 = 0 ;
30703 PyObject * obj0 = 0 ;
30704 PyObject * obj1 = 0 ;
30705 PyObject * obj2 = 0 ;
30706 char * kwnames[] = {
30707 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30708 };
30709
30710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30712 if (!SWIG_IsOK(res1)) {
30713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30714 }
30715 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30716 ecode2 = SWIG_AsVal_long(obj1, &val2);
30717 if (!SWIG_IsOK(ecode2)) {
30718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30719 }
30720 arg2 = static_cast< long >(val2);
30721 ecode3 = SWIG_AsVal_long(obj2, &val3);
30722 if (!SWIG_IsOK(ecode3)) {
30723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30724 }
30725 arg3 = static_cast< long >(val3);
30726 {
30727 PyThreadState* __tstate = wxPyBeginAllowThreads();
30728 (arg1)->RefreshItems(arg2,arg3);
30729 wxPyEndAllowThreads(__tstate);
30730 if (PyErr_Occurred()) SWIG_fail;
30731 }
30732 resultobj = SWIG_Py_Void();
30733 return resultobj;
30734 fail:
30735 return NULL;
30736 }
30737
30738
30739 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30740 PyObject *resultobj = 0;
30741 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30742 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30743 bool result;
30744 void *argp1 = 0 ;
30745 int res1 = 0 ;
30746 int val2 ;
30747 int ecode2 = 0 ;
30748 PyObject * obj0 = 0 ;
30749 PyObject * obj1 = 0 ;
30750 char * kwnames[] = {
30751 (char *) "self",(char *) "flag", NULL
30752 };
30753
30754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30756 if (!SWIG_IsOK(res1)) {
30757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30758 }
30759 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30760 if (obj1) {
30761 ecode2 = SWIG_AsVal_int(obj1, &val2);
30762 if (!SWIG_IsOK(ecode2)) {
30763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30764 }
30765 arg2 = static_cast< int >(val2);
30766 }
30767 {
30768 PyThreadState* __tstate = wxPyBeginAllowThreads();
30769 result = (bool)(arg1)->Arrange(arg2);
30770 wxPyEndAllowThreads(__tstate);
30771 if (PyErr_Occurred()) SWIG_fail;
30772 }
30773 {
30774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30775 }
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30783 PyObject *resultobj = 0;
30784 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30785 long arg2 ;
30786 bool result;
30787 void *argp1 = 0 ;
30788 int res1 = 0 ;
30789 long val2 ;
30790 int ecode2 = 0 ;
30791 PyObject * obj0 = 0 ;
30792 PyObject * obj1 = 0 ;
30793 char * kwnames[] = {
30794 (char *) "self",(char *) "item", NULL
30795 };
30796
30797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30799 if (!SWIG_IsOK(res1)) {
30800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30801 }
30802 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30803 ecode2 = SWIG_AsVal_long(obj1, &val2);
30804 if (!SWIG_IsOK(ecode2)) {
30805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30806 }
30807 arg2 = static_cast< long >(val2);
30808 {
30809 PyThreadState* __tstate = wxPyBeginAllowThreads();
30810 result = (bool)(arg1)->DeleteItem(arg2);
30811 wxPyEndAllowThreads(__tstate);
30812 if (PyErr_Occurred()) SWIG_fail;
30813 }
30814 {
30815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30816 }
30817 return resultobj;
30818 fail:
30819 return NULL;
30820 }
30821
30822
30823 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30824 PyObject *resultobj = 0;
30825 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30826 bool result;
30827 void *argp1 = 0 ;
30828 int res1 = 0 ;
30829 PyObject *swig_obj[1] ;
30830
30831 if (!args) SWIG_fail;
30832 swig_obj[0] = args;
30833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30834 if (!SWIG_IsOK(res1)) {
30835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30836 }
30837 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30838 {
30839 PyThreadState* __tstate = wxPyBeginAllowThreads();
30840 result = (bool)(arg1)->DeleteAllItems();
30841 wxPyEndAllowThreads(__tstate);
30842 if (PyErr_Occurred()) SWIG_fail;
30843 }
30844 {
30845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30846 }
30847 return resultobj;
30848 fail:
30849 return NULL;
30850 }
30851
30852
30853 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30854 PyObject *resultobj = 0;
30855 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30856 int arg2 ;
30857 bool result;
30858 void *argp1 = 0 ;
30859 int res1 = 0 ;
30860 int val2 ;
30861 int ecode2 = 0 ;
30862 PyObject * obj0 = 0 ;
30863 PyObject * obj1 = 0 ;
30864 char * kwnames[] = {
30865 (char *) "self",(char *) "col", NULL
30866 };
30867
30868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30870 if (!SWIG_IsOK(res1)) {
30871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30872 }
30873 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30874 ecode2 = SWIG_AsVal_int(obj1, &val2);
30875 if (!SWIG_IsOK(ecode2)) {
30876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30877 }
30878 arg2 = static_cast< int >(val2);
30879 {
30880 PyThreadState* __tstate = wxPyBeginAllowThreads();
30881 result = (bool)(arg1)->DeleteColumn(arg2);
30882 wxPyEndAllowThreads(__tstate);
30883 if (PyErr_Occurred()) SWIG_fail;
30884 }
30885 {
30886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30887 }
30888 return resultobj;
30889 fail:
30890 return NULL;
30891 }
30892
30893
30894 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30895 PyObject *resultobj = 0;
30896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30897 bool result;
30898 void *argp1 = 0 ;
30899 int res1 = 0 ;
30900 PyObject *swig_obj[1] ;
30901
30902 if (!args) SWIG_fail;
30903 swig_obj[0] = args;
30904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30905 if (!SWIG_IsOK(res1)) {
30906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30907 }
30908 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30909 {
30910 PyThreadState* __tstate = wxPyBeginAllowThreads();
30911 result = (bool)(arg1)->DeleteAllColumns();
30912 wxPyEndAllowThreads(__tstate);
30913 if (PyErr_Occurred()) SWIG_fail;
30914 }
30915 {
30916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30917 }
30918 return resultobj;
30919 fail:
30920 return NULL;
30921 }
30922
30923
30924 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30925 PyObject *resultobj = 0;
30926 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30927 void *argp1 = 0 ;
30928 int res1 = 0 ;
30929 PyObject *swig_obj[1] ;
30930
30931 if (!args) SWIG_fail;
30932 swig_obj[0] = args;
30933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30934 if (!SWIG_IsOK(res1)) {
30935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30936 }
30937 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30938 {
30939 PyThreadState* __tstate = wxPyBeginAllowThreads();
30940 (arg1)->ClearAll();
30941 wxPyEndAllowThreads(__tstate);
30942 if (PyErr_Occurred()) SWIG_fail;
30943 }
30944 resultobj = SWIG_Py_Void();
30945 return resultobj;
30946 fail:
30947 return NULL;
30948 }
30949
30950
30951 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30952 PyObject *resultobj = 0;
30953 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30954 long arg2 ;
30955 void *argp1 = 0 ;
30956 int res1 = 0 ;
30957 long val2 ;
30958 int ecode2 = 0 ;
30959 PyObject * obj0 = 0 ;
30960 PyObject * obj1 = 0 ;
30961 char * kwnames[] = {
30962 (char *) "self",(char *) "item", NULL
30963 };
30964
30965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30967 if (!SWIG_IsOK(res1)) {
30968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30969 }
30970 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30971 ecode2 = SWIG_AsVal_long(obj1, &val2);
30972 if (!SWIG_IsOK(ecode2)) {
30973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30974 }
30975 arg2 = static_cast< long >(val2);
30976 {
30977 PyThreadState* __tstate = wxPyBeginAllowThreads();
30978 (arg1)->EditLabel(arg2);
30979 wxPyEndAllowThreads(__tstate);
30980 if (PyErr_Occurred()) SWIG_fail;
30981 }
30982 resultobj = SWIG_Py_Void();
30983 return resultobj;
30984 fail:
30985 return NULL;
30986 }
30987
30988
30989 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30990 PyObject *resultobj = 0;
30991 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30992 long arg2 ;
30993 bool result;
30994 void *argp1 = 0 ;
30995 int res1 = 0 ;
30996 long val2 ;
30997 int ecode2 = 0 ;
30998 PyObject * obj0 = 0 ;
30999 PyObject * obj1 = 0 ;
31000 char * kwnames[] = {
31001 (char *) "self",(char *) "item", NULL
31002 };
31003
31004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31006 if (!SWIG_IsOK(res1)) {
31007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31008 }
31009 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31010 ecode2 = SWIG_AsVal_long(obj1, &val2);
31011 if (!SWIG_IsOK(ecode2)) {
31012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31013 }
31014 arg2 = static_cast< long >(val2);
31015 {
31016 PyThreadState* __tstate = wxPyBeginAllowThreads();
31017 result = (bool)(arg1)->EnsureVisible(arg2);
31018 wxPyEndAllowThreads(__tstate);
31019 if (PyErr_Occurred()) SWIG_fail;
31020 }
31021 {
31022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31023 }
31024 return resultobj;
31025 fail:
31026 return NULL;
31027 }
31028
31029
31030 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31031 PyObject *resultobj = 0;
31032 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31033 long arg2 ;
31034 wxString *arg3 = 0 ;
31035 bool arg4 = (bool) false ;
31036 long result;
31037 void *argp1 = 0 ;
31038 int res1 = 0 ;
31039 long val2 ;
31040 int ecode2 = 0 ;
31041 bool temp3 = false ;
31042 bool val4 ;
31043 int ecode4 = 0 ;
31044 PyObject * obj0 = 0 ;
31045 PyObject * obj1 = 0 ;
31046 PyObject * obj2 = 0 ;
31047 PyObject * obj3 = 0 ;
31048 char * kwnames[] = {
31049 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31050 };
31051
31052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31054 if (!SWIG_IsOK(res1)) {
31055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31056 }
31057 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31058 ecode2 = SWIG_AsVal_long(obj1, &val2);
31059 if (!SWIG_IsOK(ecode2)) {
31060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31061 }
31062 arg2 = static_cast< long >(val2);
31063 {
31064 arg3 = wxString_in_helper(obj2);
31065 if (arg3 == NULL) SWIG_fail;
31066 temp3 = true;
31067 }
31068 if (obj3) {
31069 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31070 if (!SWIG_IsOK(ecode4)) {
31071 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31072 }
31073 arg4 = static_cast< bool >(val4);
31074 }
31075 {
31076 PyThreadState* __tstate = wxPyBeginAllowThreads();
31077 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31078 wxPyEndAllowThreads(__tstate);
31079 if (PyErr_Occurred()) SWIG_fail;
31080 }
31081 resultobj = SWIG_From_long(static_cast< long >(result));
31082 {
31083 if (temp3)
31084 delete arg3;
31085 }
31086 return resultobj;
31087 fail:
31088 {
31089 if (temp3)
31090 delete arg3;
31091 }
31092 return NULL;
31093 }
31094
31095
31096 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31097 PyObject *resultobj = 0;
31098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31099 long arg2 ;
31100 long arg3 ;
31101 long result;
31102 void *argp1 = 0 ;
31103 int res1 = 0 ;
31104 long val2 ;
31105 int ecode2 = 0 ;
31106 long val3 ;
31107 int ecode3 = 0 ;
31108 PyObject * obj0 = 0 ;
31109 PyObject * obj1 = 0 ;
31110 PyObject * obj2 = 0 ;
31111 char * kwnames[] = {
31112 (char *) "self",(char *) "start",(char *) "data", NULL
31113 };
31114
31115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31117 if (!SWIG_IsOK(res1)) {
31118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31119 }
31120 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31121 ecode2 = SWIG_AsVal_long(obj1, &val2);
31122 if (!SWIG_IsOK(ecode2)) {
31123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31124 }
31125 arg2 = static_cast< long >(val2);
31126 ecode3 = SWIG_AsVal_long(obj2, &val3);
31127 if (!SWIG_IsOK(ecode3)) {
31128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31129 }
31130 arg3 = static_cast< long >(val3);
31131 {
31132 PyThreadState* __tstate = wxPyBeginAllowThreads();
31133 result = (long)(arg1)->FindItem(arg2,arg3);
31134 wxPyEndAllowThreads(__tstate);
31135 if (PyErr_Occurred()) SWIG_fail;
31136 }
31137 resultobj = SWIG_From_long(static_cast< long >(result));
31138 return resultobj;
31139 fail:
31140 return NULL;
31141 }
31142
31143
31144 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31145 PyObject *resultobj = 0;
31146 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31147 long arg2 ;
31148 wxPoint *arg3 = 0 ;
31149 int arg4 ;
31150 long result;
31151 void *argp1 = 0 ;
31152 int res1 = 0 ;
31153 long val2 ;
31154 int ecode2 = 0 ;
31155 wxPoint temp3 ;
31156 int val4 ;
31157 int ecode4 = 0 ;
31158 PyObject * obj0 = 0 ;
31159 PyObject * obj1 = 0 ;
31160 PyObject * obj2 = 0 ;
31161 PyObject * obj3 = 0 ;
31162 char * kwnames[] = {
31163 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31164 };
31165
31166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31168 if (!SWIG_IsOK(res1)) {
31169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31170 }
31171 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31172 ecode2 = SWIG_AsVal_long(obj1, &val2);
31173 if (!SWIG_IsOK(ecode2)) {
31174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31175 }
31176 arg2 = static_cast< long >(val2);
31177 {
31178 arg3 = &temp3;
31179 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31180 }
31181 ecode4 = SWIG_AsVal_int(obj3, &val4);
31182 if (!SWIG_IsOK(ecode4)) {
31183 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31184 }
31185 arg4 = static_cast< int >(val4);
31186 {
31187 PyThreadState* __tstate = wxPyBeginAllowThreads();
31188 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31189 wxPyEndAllowThreads(__tstate);
31190 if (PyErr_Occurred()) SWIG_fail;
31191 }
31192 resultobj = SWIG_From_long(static_cast< long >(result));
31193 return resultobj;
31194 fail:
31195 return NULL;
31196 }
31197
31198
31199 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31200 PyObject *resultobj = 0;
31201 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31202 wxPoint *arg2 = 0 ;
31203 int *arg3 = 0 ;
31204 long result;
31205 void *argp1 = 0 ;
31206 int res1 = 0 ;
31207 wxPoint temp2 ;
31208 int temp3 ;
31209 int res3 = SWIG_TMPOBJ ;
31210 PyObject * obj0 = 0 ;
31211 PyObject * obj1 = 0 ;
31212 char * kwnames[] = {
31213 (char *) "self",(char *) "point", NULL
31214 };
31215
31216 arg3 = &temp3;
31217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31219 if (!SWIG_IsOK(res1)) {
31220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31221 }
31222 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31223 {
31224 arg2 = &temp2;
31225 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31226 }
31227 {
31228 PyThreadState* __tstate = wxPyBeginAllowThreads();
31229 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31230 wxPyEndAllowThreads(__tstate);
31231 if (PyErr_Occurred()) SWIG_fail;
31232 }
31233 resultobj = SWIG_From_long(static_cast< long >(result));
31234 if (SWIG_IsTmpObj(res3)) {
31235 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31236 } else {
31237 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31239 }
31240 return resultobj;
31241 fail:
31242 return NULL;
31243 }
31244
31245
31246 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31247 PyObject *resultobj = 0;
31248 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31249 wxPoint *arg2 = 0 ;
31250 int *arg3 = 0 ;
31251 long *arg4 = (long *) 0 ;
31252 long result;
31253 void *argp1 = 0 ;
31254 int res1 = 0 ;
31255 wxPoint temp2 ;
31256 int temp3 ;
31257 int res3 = SWIG_TMPOBJ ;
31258 long temp4 ;
31259 int res4 = SWIG_TMPOBJ ;
31260 PyObject * obj0 = 0 ;
31261 PyObject * obj1 = 0 ;
31262 char * kwnames[] = {
31263 (char *) "self",(char *) "point", NULL
31264 };
31265
31266 arg3 = &temp3;
31267 arg4 = &temp4;
31268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31270 if (!SWIG_IsOK(res1)) {
31271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31272 }
31273 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31274 {
31275 arg2 = &temp2;
31276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31277 }
31278 {
31279 PyThreadState* __tstate = wxPyBeginAllowThreads();
31280 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31281 wxPyEndAllowThreads(__tstate);
31282 if (PyErr_Occurred()) SWIG_fail;
31283 }
31284 resultobj = SWIG_From_long(static_cast< long >(result));
31285 if (SWIG_IsTmpObj(res3)) {
31286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31287 } else {
31288 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31290 }
31291 if (SWIG_IsTmpObj(res4)) {
31292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31293 } else {
31294 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31296 }
31297 return resultobj;
31298 fail:
31299 return NULL;
31300 }
31301
31302
31303 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31304 PyObject *resultobj = 0;
31305 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31306 wxListItem *arg2 = 0 ;
31307 long result;
31308 void *argp1 = 0 ;
31309 int res1 = 0 ;
31310 void *argp2 = 0 ;
31311 int res2 = 0 ;
31312 PyObject * obj0 = 0 ;
31313 PyObject * obj1 = 0 ;
31314 char * kwnames[] = {
31315 (char *) "self",(char *) "info", NULL
31316 };
31317
31318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31320 if (!SWIG_IsOK(res1)) {
31321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31322 }
31323 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31325 if (!SWIG_IsOK(res2)) {
31326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31327 }
31328 if (!argp2) {
31329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31330 }
31331 arg2 = reinterpret_cast< wxListItem * >(argp2);
31332 {
31333 PyThreadState* __tstate = wxPyBeginAllowThreads();
31334 result = (long)(arg1)->InsertItem(*arg2);
31335 wxPyEndAllowThreads(__tstate);
31336 if (PyErr_Occurred()) SWIG_fail;
31337 }
31338 resultobj = SWIG_From_long(static_cast< long >(result));
31339 return resultobj;
31340 fail:
31341 return NULL;
31342 }
31343
31344
31345 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31346 PyObject *resultobj = 0;
31347 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31348 long arg2 ;
31349 wxString *arg3 = 0 ;
31350 int arg4 = (int) -1 ;
31351 long result;
31352 void *argp1 = 0 ;
31353 int res1 = 0 ;
31354 long val2 ;
31355 int ecode2 = 0 ;
31356 bool temp3 = false ;
31357 int val4 ;
31358 int ecode4 = 0 ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 PyObject * obj2 = 0 ;
31362 PyObject * obj3 = 0 ;
31363 char * kwnames[] = {
31364 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31365 };
31366
31367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31369 if (!SWIG_IsOK(res1)) {
31370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31371 }
31372 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31373 ecode2 = SWIG_AsVal_long(obj1, &val2);
31374 if (!SWIG_IsOK(ecode2)) {
31375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31376 }
31377 arg2 = static_cast< long >(val2);
31378 {
31379 arg3 = wxString_in_helper(obj2);
31380 if (arg3 == NULL) SWIG_fail;
31381 temp3 = true;
31382 }
31383 if (obj3) {
31384 ecode4 = SWIG_AsVal_int(obj3, &val4);
31385 if (!SWIG_IsOK(ecode4)) {
31386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31387 }
31388 arg4 = static_cast< int >(val4);
31389 }
31390 {
31391 PyThreadState* __tstate = wxPyBeginAllowThreads();
31392 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31393 wxPyEndAllowThreads(__tstate);
31394 if (PyErr_Occurred()) SWIG_fail;
31395 }
31396 resultobj = SWIG_From_long(static_cast< long >(result));
31397 {
31398 if (temp3)
31399 delete arg3;
31400 }
31401 return resultobj;
31402 fail:
31403 {
31404 if (temp3)
31405 delete arg3;
31406 }
31407 return NULL;
31408 }
31409
31410
31411 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31412 PyObject *resultobj = 0;
31413 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31414 long arg2 ;
31415 int arg3 ;
31416 long result;
31417 void *argp1 = 0 ;
31418 int res1 = 0 ;
31419 long val2 ;
31420 int ecode2 = 0 ;
31421 int val3 ;
31422 int ecode3 = 0 ;
31423 PyObject * obj0 = 0 ;
31424 PyObject * obj1 = 0 ;
31425 PyObject * obj2 = 0 ;
31426 char * kwnames[] = {
31427 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31428 };
31429
31430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31432 if (!SWIG_IsOK(res1)) {
31433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31434 }
31435 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31436 ecode2 = SWIG_AsVal_long(obj1, &val2);
31437 if (!SWIG_IsOK(ecode2)) {
31438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31439 }
31440 arg2 = static_cast< long >(val2);
31441 ecode3 = SWIG_AsVal_int(obj2, &val3);
31442 if (!SWIG_IsOK(ecode3)) {
31443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31444 }
31445 arg3 = static_cast< int >(val3);
31446 {
31447 PyThreadState* __tstate = wxPyBeginAllowThreads();
31448 result = (long)(arg1)->InsertItem(arg2,arg3);
31449 wxPyEndAllowThreads(__tstate);
31450 if (PyErr_Occurred()) SWIG_fail;
31451 }
31452 resultobj = SWIG_From_long(static_cast< long >(result));
31453 return resultobj;
31454 fail:
31455 return NULL;
31456 }
31457
31458
31459 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31460 PyObject *resultobj = 0;
31461 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31462 long arg2 ;
31463 wxString *arg3 = 0 ;
31464 int arg4 ;
31465 long result;
31466 void *argp1 = 0 ;
31467 int res1 = 0 ;
31468 long val2 ;
31469 int ecode2 = 0 ;
31470 bool temp3 = false ;
31471 int val4 ;
31472 int ecode4 = 0 ;
31473 PyObject * obj0 = 0 ;
31474 PyObject * obj1 = 0 ;
31475 PyObject * obj2 = 0 ;
31476 PyObject * obj3 = 0 ;
31477 char * kwnames[] = {
31478 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31479 };
31480
31481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31483 if (!SWIG_IsOK(res1)) {
31484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31485 }
31486 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31487 ecode2 = SWIG_AsVal_long(obj1, &val2);
31488 if (!SWIG_IsOK(ecode2)) {
31489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31490 }
31491 arg2 = static_cast< long >(val2);
31492 {
31493 arg3 = wxString_in_helper(obj2);
31494 if (arg3 == NULL) SWIG_fail;
31495 temp3 = true;
31496 }
31497 ecode4 = SWIG_AsVal_int(obj3, &val4);
31498 if (!SWIG_IsOK(ecode4)) {
31499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31500 }
31501 arg4 = static_cast< int >(val4);
31502 {
31503 PyThreadState* __tstate = wxPyBeginAllowThreads();
31504 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31505 wxPyEndAllowThreads(__tstate);
31506 if (PyErr_Occurred()) SWIG_fail;
31507 }
31508 resultobj = SWIG_From_long(static_cast< long >(result));
31509 {
31510 if (temp3)
31511 delete arg3;
31512 }
31513 return resultobj;
31514 fail:
31515 {
31516 if (temp3)
31517 delete arg3;
31518 }
31519 return NULL;
31520 }
31521
31522
31523 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31524 PyObject *resultobj = 0;
31525 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31526 long arg2 ;
31527 wxListItem *arg3 = 0 ;
31528 long result;
31529 void *argp1 = 0 ;
31530 int res1 = 0 ;
31531 long val2 ;
31532 int ecode2 = 0 ;
31533 void *argp3 = 0 ;
31534 int res3 = 0 ;
31535 PyObject * obj0 = 0 ;
31536 PyObject * obj1 = 0 ;
31537 PyObject * obj2 = 0 ;
31538 char * kwnames[] = {
31539 (char *) "self",(char *) "col",(char *) "info", NULL
31540 };
31541
31542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31544 if (!SWIG_IsOK(res1)) {
31545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31546 }
31547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31548 ecode2 = SWIG_AsVal_long(obj1, &val2);
31549 if (!SWIG_IsOK(ecode2)) {
31550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31551 }
31552 arg2 = static_cast< long >(val2);
31553 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31554 if (!SWIG_IsOK(res3)) {
31555 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31556 }
31557 if (!argp3) {
31558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31559 }
31560 arg3 = reinterpret_cast< wxListItem * >(argp3);
31561 {
31562 PyThreadState* __tstate = wxPyBeginAllowThreads();
31563 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31564 wxPyEndAllowThreads(__tstate);
31565 if (PyErr_Occurred()) SWIG_fail;
31566 }
31567 resultobj = SWIG_From_long(static_cast< long >(result));
31568 return resultobj;
31569 fail:
31570 return NULL;
31571 }
31572
31573
31574 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31575 PyObject *resultobj = 0;
31576 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31577 long arg2 ;
31578 wxString *arg3 = 0 ;
31579 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31580 int arg5 = (int) -1 ;
31581 long result;
31582 void *argp1 = 0 ;
31583 int res1 = 0 ;
31584 long val2 ;
31585 int ecode2 = 0 ;
31586 bool temp3 = false ;
31587 int val4 ;
31588 int ecode4 = 0 ;
31589 int val5 ;
31590 int ecode5 = 0 ;
31591 PyObject * obj0 = 0 ;
31592 PyObject * obj1 = 0 ;
31593 PyObject * obj2 = 0 ;
31594 PyObject * obj3 = 0 ;
31595 PyObject * obj4 = 0 ;
31596 char * kwnames[] = {
31597 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31598 };
31599
31600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31602 if (!SWIG_IsOK(res1)) {
31603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31604 }
31605 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31606 ecode2 = SWIG_AsVal_long(obj1, &val2);
31607 if (!SWIG_IsOK(ecode2)) {
31608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31609 }
31610 arg2 = static_cast< long >(val2);
31611 {
31612 arg3 = wxString_in_helper(obj2);
31613 if (arg3 == NULL) SWIG_fail;
31614 temp3 = true;
31615 }
31616 if (obj3) {
31617 ecode4 = SWIG_AsVal_int(obj3, &val4);
31618 if (!SWIG_IsOK(ecode4)) {
31619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31620 }
31621 arg4 = static_cast< int >(val4);
31622 }
31623 if (obj4) {
31624 ecode5 = SWIG_AsVal_int(obj4, &val5);
31625 if (!SWIG_IsOK(ecode5)) {
31626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31627 }
31628 arg5 = static_cast< int >(val5);
31629 }
31630 {
31631 PyThreadState* __tstate = wxPyBeginAllowThreads();
31632 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31633 wxPyEndAllowThreads(__tstate);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_From_long(static_cast< long >(result));
31637 {
31638 if (temp3)
31639 delete arg3;
31640 }
31641 return resultobj;
31642 fail:
31643 {
31644 if (temp3)
31645 delete arg3;
31646 }
31647 return NULL;
31648 }
31649
31650
31651 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31652 PyObject *resultobj = 0;
31653 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31654 long arg2 ;
31655 void *argp1 = 0 ;
31656 int res1 = 0 ;
31657 long val2 ;
31658 int ecode2 = 0 ;
31659 PyObject * obj0 = 0 ;
31660 PyObject * obj1 = 0 ;
31661 char * kwnames[] = {
31662 (char *) "self",(char *) "count", NULL
31663 };
31664
31665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31667 if (!SWIG_IsOK(res1)) {
31668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31669 }
31670 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31671 ecode2 = SWIG_AsVal_long(obj1, &val2);
31672 if (!SWIG_IsOK(ecode2)) {
31673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31674 }
31675 arg2 = static_cast< long >(val2);
31676 {
31677 PyThreadState* __tstate = wxPyBeginAllowThreads();
31678 (arg1)->SetItemCount(arg2);
31679 wxPyEndAllowThreads(__tstate);
31680 if (PyErr_Occurred()) SWIG_fail;
31681 }
31682 resultobj = SWIG_Py_Void();
31683 return resultobj;
31684 fail:
31685 return NULL;
31686 }
31687
31688
31689 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31690 PyObject *resultobj = 0;
31691 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31692 int arg2 ;
31693 int arg3 ;
31694 bool result;
31695 void *argp1 = 0 ;
31696 int res1 = 0 ;
31697 int val2 ;
31698 int ecode2 = 0 ;
31699 int val3 ;
31700 int ecode3 = 0 ;
31701 PyObject * obj0 = 0 ;
31702 PyObject * obj1 = 0 ;
31703 PyObject * obj2 = 0 ;
31704 char * kwnames[] = {
31705 (char *) "self",(char *) "dx",(char *) "dy", NULL
31706 };
31707
31708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31710 if (!SWIG_IsOK(res1)) {
31711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31712 }
31713 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31714 ecode2 = SWIG_AsVal_int(obj1, &val2);
31715 if (!SWIG_IsOK(ecode2)) {
31716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31717 }
31718 arg2 = static_cast< int >(val2);
31719 ecode3 = SWIG_AsVal_int(obj2, &val3);
31720 if (!SWIG_IsOK(ecode3)) {
31721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31722 }
31723 arg3 = static_cast< int >(val3);
31724 {
31725 PyThreadState* __tstate = wxPyBeginAllowThreads();
31726 result = (bool)(arg1)->ScrollList(arg2,arg3);
31727 wxPyEndAllowThreads(__tstate);
31728 if (PyErr_Occurred()) SWIG_fail;
31729 }
31730 {
31731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31732 }
31733 return resultobj;
31734 fail:
31735 return NULL;
31736 }
31737
31738
31739 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31740 PyObject *resultobj = 0;
31741 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31742 long arg2 ;
31743 wxColour *arg3 = 0 ;
31744 void *argp1 = 0 ;
31745 int res1 = 0 ;
31746 long val2 ;
31747 int ecode2 = 0 ;
31748 wxColour temp3 ;
31749 PyObject * obj0 = 0 ;
31750 PyObject * obj1 = 0 ;
31751 PyObject * obj2 = 0 ;
31752 char * kwnames[] = {
31753 (char *) "self",(char *) "item",(char *) "col", NULL
31754 };
31755
31756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31758 if (!SWIG_IsOK(res1)) {
31759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31760 }
31761 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31762 ecode2 = SWIG_AsVal_long(obj1, &val2);
31763 if (!SWIG_IsOK(ecode2)) {
31764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31765 }
31766 arg2 = static_cast< long >(val2);
31767 {
31768 arg3 = &temp3;
31769 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31770 }
31771 {
31772 PyThreadState* __tstate = wxPyBeginAllowThreads();
31773 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31774 wxPyEndAllowThreads(__tstate);
31775 if (PyErr_Occurred()) SWIG_fail;
31776 }
31777 resultobj = SWIG_Py_Void();
31778 return resultobj;
31779 fail:
31780 return NULL;
31781 }
31782
31783
31784 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31785 PyObject *resultobj = 0;
31786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31787 long arg2 ;
31788 wxColour result;
31789 void *argp1 = 0 ;
31790 int res1 = 0 ;
31791 long val2 ;
31792 int ecode2 = 0 ;
31793 PyObject * obj0 = 0 ;
31794 PyObject * obj1 = 0 ;
31795 char * kwnames[] = {
31796 (char *) "self",(char *) "item", NULL
31797 };
31798
31799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31801 if (!SWIG_IsOK(res1)) {
31802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31803 }
31804 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31805 ecode2 = SWIG_AsVal_long(obj1, &val2);
31806 if (!SWIG_IsOK(ecode2)) {
31807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31808 }
31809 arg2 = static_cast< long >(val2);
31810 {
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31817 return resultobj;
31818 fail:
31819 return NULL;
31820 }
31821
31822
31823 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31824 PyObject *resultobj = 0;
31825 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31826 long arg2 ;
31827 wxColour *arg3 = 0 ;
31828 void *argp1 = 0 ;
31829 int res1 = 0 ;
31830 long val2 ;
31831 int ecode2 = 0 ;
31832 wxColour temp3 ;
31833 PyObject * obj0 = 0 ;
31834 PyObject * obj1 = 0 ;
31835 PyObject * obj2 = 0 ;
31836 char * kwnames[] = {
31837 (char *) "self",(char *) "item",(char *) "col", NULL
31838 };
31839
31840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31842 if (!SWIG_IsOK(res1)) {
31843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31844 }
31845 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31846 ecode2 = SWIG_AsVal_long(obj1, &val2);
31847 if (!SWIG_IsOK(ecode2)) {
31848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31849 }
31850 arg2 = static_cast< long >(val2);
31851 {
31852 arg3 = &temp3;
31853 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31854 }
31855 {
31856 PyThreadState* __tstate = wxPyBeginAllowThreads();
31857 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31858 wxPyEndAllowThreads(__tstate);
31859 if (PyErr_Occurred()) SWIG_fail;
31860 }
31861 resultobj = SWIG_Py_Void();
31862 return resultobj;
31863 fail:
31864 return NULL;
31865 }
31866
31867
31868 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31869 PyObject *resultobj = 0;
31870 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31871 long arg2 ;
31872 wxColour result;
31873 void *argp1 = 0 ;
31874 int res1 = 0 ;
31875 long val2 ;
31876 int ecode2 = 0 ;
31877 PyObject * obj0 = 0 ;
31878 PyObject * obj1 = 0 ;
31879 char * kwnames[] = {
31880 (char *) "self",(char *) "item", NULL
31881 };
31882
31883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31885 if (!SWIG_IsOK(res1)) {
31886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31887 }
31888 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31889 ecode2 = SWIG_AsVal_long(obj1, &val2);
31890 if (!SWIG_IsOK(ecode2)) {
31891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31892 }
31893 arg2 = static_cast< long >(val2);
31894 {
31895 PyThreadState* __tstate = wxPyBeginAllowThreads();
31896 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31897 wxPyEndAllowThreads(__tstate);
31898 if (PyErr_Occurred()) SWIG_fail;
31899 }
31900 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31901 return resultobj;
31902 fail:
31903 return NULL;
31904 }
31905
31906
31907 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31908 PyObject *resultobj = 0;
31909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31910 long arg2 ;
31911 wxFont *arg3 = 0 ;
31912 void *argp1 = 0 ;
31913 int res1 = 0 ;
31914 long val2 ;
31915 int ecode2 = 0 ;
31916 void *argp3 = 0 ;
31917 int res3 = 0 ;
31918 PyObject * obj0 = 0 ;
31919 PyObject * obj1 = 0 ;
31920 PyObject * obj2 = 0 ;
31921 char * kwnames[] = {
31922 (char *) "self",(char *) "item",(char *) "f", NULL
31923 };
31924
31925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31927 if (!SWIG_IsOK(res1)) {
31928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31929 }
31930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31931 ecode2 = SWIG_AsVal_long(obj1, &val2);
31932 if (!SWIG_IsOK(ecode2)) {
31933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31934 }
31935 arg2 = static_cast< long >(val2);
31936 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31937 if (!SWIG_IsOK(res3)) {
31938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31939 }
31940 if (!argp3) {
31941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31942 }
31943 arg3 = reinterpret_cast< wxFont * >(argp3);
31944 {
31945 PyThreadState* __tstate = wxPyBeginAllowThreads();
31946 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31947 wxPyEndAllowThreads(__tstate);
31948 if (PyErr_Occurred()) SWIG_fail;
31949 }
31950 resultobj = SWIG_Py_Void();
31951 return resultobj;
31952 fail:
31953 return NULL;
31954 }
31955
31956
31957 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31958 PyObject *resultobj = 0;
31959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31960 long arg2 ;
31961 wxFont result;
31962 void *argp1 = 0 ;
31963 int res1 = 0 ;
31964 long val2 ;
31965 int ecode2 = 0 ;
31966 PyObject * obj0 = 0 ;
31967 PyObject * obj1 = 0 ;
31968 char * kwnames[] = {
31969 (char *) "self",(char *) "item", NULL
31970 };
31971
31972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31974 if (!SWIG_IsOK(res1)) {
31975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31976 }
31977 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31978 ecode2 = SWIG_AsVal_long(obj1, &val2);
31979 if (!SWIG_IsOK(ecode2)) {
31980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31981 }
31982 arg2 = static_cast< long >(val2);
31983 {
31984 PyThreadState* __tstate = wxPyBeginAllowThreads();
31985 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31986 wxPyEndAllowThreads(__tstate);
31987 if (PyErr_Occurred()) SWIG_fail;
31988 }
31989 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31990 return resultobj;
31991 fail:
31992 return NULL;
31993 }
31994
31995
31996 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31997 PyObject *resultobj = 0;
31998 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31999 PyObject *arg2 = (PyObject *) 0 ;
32000 bool result;
32001 void *argp1 = 0 ;
32002 int res1 = 0 ;
32003 PyObject * obj0 = 0 ;
32004 PyObject * obj1 = 0 ;
32005 char * kwnames[] = {
32006 (char *) "self",(char *) "func", NULL
32007 };
32008
32009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32011 if (!SWIG_IsOK(res1)) {
32012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32013 }
32014 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32015 arg2 = obj1;
32016 {
32017 PyThreadState* __tstate = wxPyBeginAllowThreads();
32018 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32019 wxPyEndAllowThreads(__tstate);
32020 if (PyErr_Occurred()) SWIG_fail;
32021 }
32022 {
32023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32024 }
32025 return resultobj;
32026 fail:
32027 return NULL;
32028 }
32029
32030
32031 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32032 PyObject *resultobj = 0;
32033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32034 wxWindow *result = 0 ;
32035 void *argp1 = 0 ;
32036 int res1 = 0 ;
32037 PyObject *swig_obj[1] ;
32038
32039 if (!args) SWIG_fail;
32040 swig_obj[0] = args;
32041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32042 if (!SWIG_IsOK(res1)) {
32043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32044 }
32045 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32046 {
32047 PyThreadState* __tstate = wxPyBeginAllowThreads();
32048 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32049 wxPyEndAllowThreads(__tstate);
32050 if (PyErr_Occurred()) SWIG_fail;
32051 }
32052 {
32053 resultobj = wxPyMake_wxObject(result, 0);
32054 }
32055 return resultobj;
32056 fail:
32057 return NULL;
32058 }
32059
32060
32061 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32062 PyObject *resultobj = 0;
32063 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32064 SwigValueWrapper<wxVisualAttributes > result;
32065 int val1 ;
32066 int ecode1 = 0 ;
32067 PyObject * obj0 = 0 ;
32068 char * kwnames[] = {
32069 (char *) "variant", NULL
32070 };
32071
32072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32073 if (obj0) {
32074 ecode1 = SWIG_AsVal_int(obj0, &val1);
32075 if (!SWIG_IsOK(ecode1)) {
32076 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32077 }
32078 arg1 = static_cast< wxWindowVariant >(val1);
32079 }
32080 {
32081 if (!wxPyCheckForApp()) SWIG_fail;
32082 PyThreadState* __tstate = wxPyBeginAllowThreads();
32083 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32084 wxPyEndAllowThreads(__tstate);
32085 if (PyErr_Occurred()) SWIG_fail;
32086 }
32087 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32088 return resultobj;
32089 fail:
32090 return NULL;
32091 }
32092
32093
32094 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32095 PyObject *obj;
32096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32097 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32098 return SWIG_Py_Void();
32099 }
32100
32101 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32102 return SWIG_Python_InitShadowInstance(args);
32103 }
32104
32105 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32106 PyObject *resultobj = 0;
32107 wxWindow *arg1 = (wxWindow *) 0 ;
32108 int arg2 = (int) -1 ;
32109 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32110 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32111 wxSize const &arg4_defvalue = wxDefaultSize ;
32112 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32113 long arg5 = (long) wxLC_REPORT ;
32114 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32115 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32116 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32117 wxString *arg7 = (wxString *) &arg7_defvalue ;
32118 wxListView *result = 0 ;
32119 void *argp1 = 0 ;
32120 int res1 = 0 ;
32121 int val2 ;
32122 int ecode2 = 0 ;
32123 wxPoint temp3 ;
32124 wxSize temp4 ;
32125 long val5 ;
32126 int ecode5 = 0 ;
32127 void *argp6 = 0 ;
32128 int res6 = 0 ;
32129 bool temp7 = false ;
32130 PyObject * obj0 = 0 ;
32131 PyObject * obj1 = 0 ;
32132 PyObject * obj2 = 0 ;
32133 PyObject * obj3 = 0 ;
32134 PyObject * obj4 = 0 ;
32135 PyObject * obj5 = 0 ;
32136 PyObject * obj6 = 0 ;
32137 char * kwnames[] = {
32138 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32139 };
32140
32141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32143 if (!SWIG_IsOK(res1)) {
32144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32145 }
32146 arg1 = reinterpret_cast< wxWindow * >(argp1);
32147 if (obj1) {
32148 ecode2 = SWIG_AsVal_int(obj1, &val2);
32149 if (!SWIG_IsOK(ecode2)) {
32150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32151 }
32152 arg2 = static_cast< int >(val2);
32153 }
32154 if (obj2) {
32155 {
32156 arg3 = &temp3;
32157 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32158 }
32159 }
32160 if (obj3) {
32161 {
32162 arg4 = &temp4;
32163 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32164 }
32165 }
32166 if (obj4) {
32167 ecode5 = SWIG_AsVal_long(obj4, &val5);
32168 if (!SWIG_IsOK(ecode5)) {
32169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32170 }
32171 arg5 = static_cast< long >(val5);
32172 }
32173 if (obj5) {
32174 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32175 if (!SWIG_IsOK(res6)) {
32176 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32177 }
32178 if (!argp6) {
32179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32180 }
32181 arg6 = reinterpret_cast< wxValidator * >(argp6);
32182 }
32183 if (obj6) {
32184 {
32185 arg7 = wxString_in_helper(obj6);
32186 if (arg7 == NULL) SWIG_fail;
32187 temp7 = true;
32188 }
32189 }
32190 {
32191 if (!wxPyCheckForApp()) SWIG_fail;
32192 PyThreadState* __tstate = wxPyBeginAllowThreads();
32193 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32194 wxPyEndAllowThreads(__tstate);
32195 if (PyErr_Occurred()) SWIG_fail;
32196 }
32197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32198 {
32199 if (temp7)
32200 delete arg7;
32201 }
32202 return resultobj;
32203 fail:
32204 {
32205 if (temp7)
32206 delete arg7;
32207 }
32208 return NULL;
32209 }
32210
32211
32212 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32213 PyObject *resultobj = 0;
32214 wxListView *result = 0 ;
32215
32216 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32217 {
32218 if (!wxPyCheckForApp()) SWIG_fail;
32219 PyThreadState* __tstate = wxPyBeginAllowThreads();
32220 result = (wxListView *)new wxListView();
32221 wxPyEndAllowThreads(__tstate);
32222 if (PyErr_Occurred()) SWIG_fail;
32223 }
32224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32225 return resultobj;
32226 fail:
32227 return NULL;
32228 }
32229
32230
32231 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32232 PyObject *resultobj = 0;
32233 wxListView *arg1 = (wxListView *) 0 ;
32234 wxWindow *arg2 = (wxWindow *) 0 ;
32235 int arg3 = (int) -1 ;
32236 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32237 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32238 wxSize const &arg5_defvalue = wxDefaultSize ;
32239 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32240 long arg6 = (long) wxLC_REPORT ;
32241 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32242 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32243 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32244 wxString *arg8 = (wxString *) &arg8_defvalue ;
32245 bool result;
32246 void *argp1 = 0 ;
32247 int res1 = 0 ;
32248 void *argp2 = 0 ;
32249 int res2 = 0 ;
32250 int val3 ;
32251 int ecode3 = 0 ;
32252 wxPoint temp4 ;
32253 wxSize temp5 ;
32254 long val6 ;
32255 int ecode6 = 0 ;
32256 void *argp7 = 0 ;
32257 int res7 = 0 ;
32258 bool temp8 = false ;
32259 PyObject * obj0 = 0 ;
32260 PyObject * obj1 = 0 ;
32261 PyObject * obj2 = 0 ;
32262 PyObject * obj3 = 0 ;
32263 PyObject * obj4 = 0 ;
32264 PyObject * obj5 = 0 ;
32265 PyObject * obj6 = 0 ;
32266 PyObject * obj7 = 0 ;
32267 char * kwnames[] = {
32268 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32269 };
32270
32271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32273 if (!SWIG_IsOK(res1)) {
32274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32275 }
32276 arg1 = reinterpret_cast< wxListView * >(argp1);
32277 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32278 if (!SWIG_IsOK(res2)) {
32279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32280 }
32281 arg2 = reinterpret_cast< wxWindow * >(argp2);
32282 if (obj2) {
32283 ecode3 = SWIG_AsVal_int(obj2, &val3);
32284 if (!SWIG_IsOK(ecode3)) {
32285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32286 }
32287 arg3 = static_cast< int >(val3);
32288 }
32289 if (obj3) {
32290 {
32291 arg4 = &temp4;
32292 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32293 }
32294 }
32295 if (obj4) {
32296 {
32297 arg5 = &temp5;
32298 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32299 }
32300 }
32301 if (obj5) {
32302 ecode6 = SWIG_AsVal_long(obj5, &val6);
32303 if (!SWIG_IsOK(ecode6)) {
32304 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32305 }
32306 arg6 = static_cast< long >(val6);
32307 }
32308 if (obj6) {
32309 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32310 if (!SWIG_IsOK(res7)) {
32311 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32312 }
32313 if (!argp7) {
32314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32315 }
32316 arg7 = reinterpret_cast< wxValidator * >(argp7);
32317 }
32318 if (obj7) {
32319 {
32320 arg8 = wxString_in_helper(obj7);
32321 if (arg8 == NULL) SWIG_fail;
32322 temp8 = true;
32323 }
32324 }
32325 {
32326 PyThreadState* __tstate = wxPyBeginAllowThreads();
32327 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32328 wxPyEndAllowThreads(__tstate);
32329 if (PyErr_Occurred()) SWIG_fail;
32330 }
32331 {
32332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32333 }
32334 {
32335 if (temp8)
32336 delete arg8;
32337 }
32338 return resultobj;
32339 fail:
32340 {
32341 if (temp8)
32342 delete arg8;
32343 }
32344 return NULL;
32345 }
32346
32347
32348 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32349 PyObject *resultobj = 0;
32350 wxListView *arg1 = (wxListView *) 0 ;
32351 long arg2 ;
32352 bool arg3 = (bool) true ;
32353 void *argp1 = 0 ;
32354 int res1 = 0 ;
32355 long val2 ;
32356 int ecode2 = 0 ;
32357 bool val3 ;
32358 int ecode3 = 0 ;
32359 PyObject * obj0 = 0 ;
32360 PyObject * obj1 = 0 ;
32361 PyObject * obj2 = 0 ;
32362 char * kwnames[] = {
32363 (char *) "self",(char *) "n",(char *) "on", NULL
32364 };
32365
32366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32368 if (!SWIG_IsOK(res1)) {
32369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32370 }
32371 arg1 = reinterpret_cast< wxListView * >(argp1);
32372 ecode2 = SWIG_AsVal_long(obj1, &val2);
32373 if (!SWIG_IsOK(ecode2)) {
32374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32375 }
32376 arg2 = static_cast< long >(val2);
32377 if (obj2) {
32378 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32379 if (!SWIG_IsOK(ecode3)) {
32380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32381 }
32382 arg3 = static_cast< bool >(val3);
32383 }
32384 {
32385 PyThreadState* __tstate = wxPyBeginAllowThreads();
32386 (arg1)->Select(arg2,arg3);
32387 wxPyEndAllowThreads(__tstate);
32388 if (PyErr_Occurred()) SWIG_fail;
32389 }
32390 resultobj = SWIG_Py_Void();
32391 return resultobj;
32392 fail:
32393 return NULL;
32394 }
32395
32396
32397 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32398 PyObject *resultobj = 0;
32399 wxListView *arg1 = (wxListView *) 0 ;
32400 long arg2 ;
32401 void *argp1 = 0 ;
32402 int res1 = 0 ;
32403 long val2 ;
32404 int ecode2 = 0 ;
32405 PyObject * obj0 = 0 ;
32406 PyObject * obj1 = 0 ;
32407 char * kwnames[] = {
32408 (char *) "self",(char *) "index", NULL
32409 };
32410
32411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32413 if (!SWIG_IsOK(res1)) {
32414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32415 }
32416 arg1 = reinterpret_cast< wxListView * >(argp1);
32417 ecode2 = SWIG_AsVal_long(obj1, &val2);
32418 if (!SWIG_IsOK(ecode2)) {
32419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32420 }
32421 arg2 = static_cast< long >(val2);
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 (arg1)->Focus(arg2);
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_Py_Void();
32429 return resultobj;
32430 fail:
32431 return NULL;
32432 }
32433
32434
32435 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32436 PyObject *resultobj = 0;
32437 wxListView *arg1 = (wxListView *) 0 ;
32438 long result;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 PyObject *swig_obj[1] ;
32442
32443 if (!args) SWIG_fail;
32444 swig_obj[0] = args;
32445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32446 if (!SWIG_IsOK(res1)) {
32447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32448 }
32449 arg1 = reinterpret_cast< wxListView * >(argp1);
32450 {
32451 PyThreadState* __tstate = wxPyBeginAllowThreads();
32452 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32453 wxPyEndAllowThreads(__tstate);
32454 if (PyErr_Occurred()) SWIG_fail;
32455 }
32456 resultobj = SWIG_From_long(static_cast< long >(result));
32457 return resultobj;
32458 fail:
32459 return NULL;
32460 }
32461
32462
32463 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32464 PyObject *resultobj = 0;
32465 wxListView *arg1 = (wxListView *) 0 ;
32466 long arg2 ;
32467 long result;
32468 void *argp1 = 0 ;
32469 int res1 = 0 ;
32470 long val2 ;
32471 int ecode2 = 0 ;
32472 PyObject * obj0 = 0 ;
32473 PyObject * obj1 = 0 ;
32474 char * kwnames[] = {
32475 (char *) "self",(char *) "item", NULL
32476 };
32477
32478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32480 if (!SWIG_IsOK(res1)) {
32481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32482 }
32483 arg1 = reinterpret_cast< wxListView * >(argp1);
32484 ecode2 = SWIG_AsVal_long(obj1, &val2);
32485 if (!SWIG_IsOK(ecode2)) {
32486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32487 }
32488 arg2 = static_cast< long >(val2);
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 resultobj = SWIG_From_long(static_cast< long >(result));
32496 return resultobj;
32497 fail:
32498 return NULL;
32499 }
32500
32501
32502 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32503 PyObject *resultobj = 0;
32504 wxListView *arg1 = (wxListView *) 0 ;
32505 long result;
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_wxListView, 0 | 0 );
32513 if (!SWIG_IsOK(res1)) {
32514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32515 }
32516 arg1 = reinterpret_cast< wxListView * >(argp1);
32517 {
32518 PyThreadState* __tstate = wxPyBeginAllowThreads();
32519 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32520 wxPyEndAllowThreads(__tstate);
32521 if (PyErr_Occurred()) SWIG_fail;
32522 }
32523 resultobj = SWIG_From_long(static_cast< long >(result));
32524 return resultobj;
32525 fail:
32526 return NULL;
32527 }
32528
32529
32530 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32531 PyObject *resultobj = 0;
32532 wxListView *arg1 = (wxListView *) 0 ;
32533 long arg2 ;
32534 bool result;
32535 void *argp1 = 0 ;
32536 int res1 = 0 ;
32537 long val2 ;
32538 int ecode2 = 0 ;
32539 PyObject * obj0 = 0 ;
32540 PyObject * obj1 = 0 ;
32541 char * kwnames[] = {
32542 (char *) "self",(char *) "index", NULL
32543 };
32544
32545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32547 if (!SWIG_IsOK(res1)) {
32548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32549 }
32550 arg1 = reinterpret_cast< wxListView * >(argp1);
32551 ecode2 = SWIG_AsVal_long(obj1, &val2);
32552 if (!SWIG_IsOK(ecode2)) {
32553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32554 }
32555 arg2 = static_cast< long >(val2);
32556 {
32557 PyThreadState* __tstate = wxPyBeginAllowThreads();
32558 result = (bool)(arg1)->IsSelected(arg2);
32559 wxPyEndAllowThreads(__tstate);
32560 if (PyErr_Occurred()) SWIG_fail;
32561 }
32562 {
32563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32564 }
32565 return resultobj;
32566 fail:
32567 return NULL;
32568 }
32569
32570
32571 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32572 PyObject *resultobj = 0;
32573 wxListView *arg1 = (wxListView *) 0 ;
32574 int arg2 ;
32575 int arg3 ;
32576 void *argp1 = 0 ;
32577 int res1 = 0 ;
32578 int val2 ;
32579 int ecode2 = 0 ;
32580 int val3 ;
32581 int ecode3 = 0 ;
32582 PyObject * obj0 = 0 ;
32583 PyObject * obj1 = 0 ;
32584 PyObject * obj2 = 0 ;
32585 char * kwnames[] = {
32586 (char *) "self",(char *) "col",(char *) "image", NULL
32587 };
32588
32589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32591 if (!SWIG_IsOK(res1)) {
32592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32593 }
32594 arg1 = reinterpret_cast< wxListView * >(argp1);
32595 ecode2 = SWIG_AsVal_int(obj1, &val2);
32596 if (!SWIG_IsOK(ecode2)) {
32597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32598 }
32599 arg2 = static_cast< int >(val2);
32600 ecode3 = SWIG_AsVal_int(obj2, &val3);
32601 if (!SWIG_IsOK(ecode3)) {
32602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32603 }
32604 arg3 = static_cast< int >(val3);
32605 {
32606 PyThreadState* __tstate = wxPyBeginAllowThreads();
32607 (arg1)->SetColumnImage(arg2,arg3);
32608 wxPyEndAllowThreads(__tstate);
32609 if (PyErr_Occurred()) SWIG_fail;
32610 }
32611 resultobj = SWIG_Py_Void();
32612 return resultobj;
32613 fail:
32614 return NULL;
32615 }
32616
32617
32618 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32619 PyObject *resultobj = 0;
32620 wxListView *arg1 = (wxListView *) 0 ;
32621 int arg2 ;
32622 void *argp1 = 0 ;
32623 int res1 = 0 ;
32624 int val2 ;
32625 int ecode2 = 0 ;
32626 PyObject * obj0 = 0 ;
32627 PyObject * obj1 = 0 ;
32628 char * kwnames[] = {
32629 (char *) "self",(char *) "col", NULL
32630 };
32631
32632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32634 if (!SWIG_IsOK(res1)) {
32635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32636 }
32637 arg1 = reinterpret_cast< wxListView * >(argp1);
32638 ecode2 = SWIG_AsVal_int(obj1, &val2);
32639 if (!SWIG_IsOK(ecode2)) {
32640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32641 }
32642 arg2 = static_cast< int >(val2);
32643 {
32644 PyThreadState* __tstate = wxPyBeginAllowThreads();
32645 (arg1)->ClearColumnImage(arg2);
32646 wxPyEndAllowThreads(__tstate);
32647 if (PyErr_Occurred()) SWIG_fail;
32648 }
32649 resultobj = SWIG_Py_Void();
32650 return resultobj;
32651 fail:
32652 return NULL;
32653 }
32654
32655
32656 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32657 PyObject *obj;
32658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32659 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32660 return SWIG_Py_Void();
32661 }
32662
32663 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32664 return SWIG_Python_InitShadowInstance(args);
32665 }
32666
32667 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32668 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32669 return 1;
32670 }
32671
32672
32673 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32674 PyObject *pyobj = 0;
32675
32676 {
32677 #if wxUSE_UNICODE
32678 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32679 #else
32680 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32681 #endif
32682 }
32683 return pyobj;
32684 }
32685
32686
32687 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32688 PyObject *resultobj = 0;
32689 wxTreeItemId *result = 0 ;
32690
32691 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32692 {
32693 PyThreadState* __tstate = wxPyBeginAllowThreads();
32694 result = (wxTreeItemId *)new wxTreeItemId();
32695 wxPyEndAllowThreads(__tstate);
32696 if (PyErr_Occurred()) SWIG_fail;
32697 }
32698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32699 return resultobj;
32700 fail:
32701 return NULL;
32702 }
32703
32704
32705 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32706 PyObject *resultobj = 0;
32707 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32708 void *argp1 = 0 ;
32709 int res1 = 0 ;
32710 PyObject *swig_obj[1] ;
32711
32712 if (!args) SWIG_fail;
32713 swig_obj[0] = args;
32714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32715 if (!SWIG_IsOK(res1)) {
32716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32717 }
32718 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32719 {
32720 PyThreadState* __tstate = wxPyBeginAllowThreads();
32721 delete arg1;
32722
32723 wxPyEndAllowThreads(__tstate);
32724 if (PyErr_Occurred()) SWIG_fail;
32725 }
32726 resultobj = SWIG_Py_Void();
32727 return resultobj;
32728 fail:
32729 return NULL;
32730 }
32731
32732
32733 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32734 PyObject *resultobj = 0;
32735 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32736 bool result;
32737 void *argp1 = 0 ;
32738 int res1 = 0 ;
32739 PyObject *swig_obj[1] ;
32740
32741 if (!args) SWIG_fail;
32742 swig_obj[0] = args;
32743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32744 if (!SWIG_IsOK(res1)) {
32745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32746 }
32747 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32748 {
32749 PyThreadState* __tstate = wxPyBeginAllowThreads();
32750 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32751 wxPyEndAllowThreads(__tstate);
32752 if (PyErr_Occurred()) SWIG_fail;
32753 }
32754 {
32755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32756 }
32757 return resultobj;
32758 fail:
32759 return NULL;
32760 }
32761
32762
32763 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32764 PyObject *resultobj = 0;
32765 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32766 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32767 bool result;
32768 void *argp1 = 0 ;
32769 int res1 = 0 ;
32770 void *argp2 = 0 ;
32771 int res2 = 0 ;
32772 PyObject * obj0 = 0 ;
32773 PyObject * obj1 = 0 ;
32774 char * kwnames[] = {
32775 (char *) "self",(char *) "other", NULL
32776 };
32777
32778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32780 if (!SWIG_IsOK(res1)) {
32781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32782 }
32783 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32784 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32785 if (!SWIG_IsOK(res2)) {
32786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32787 }
32788 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32789 {
32790 PyThreadState* __tstate = wxPyBeginAllowThreads();
32791 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32792 wxPyEndAllowThreads(__tstate);
32793 if (PyErr_Occurred()) SWIG_fail;
32794 }
32795 {
32796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32797 }
32798 return resultobj;
32799 fail:
32800 return NULL;
32801 }
32802
32803
32804 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32805 PyObject *resultobj = 0;
32806 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32807 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32808 bool result;
32809 void *argp1 = 0 ;
32810 int res1 = 0 ;
32811 void *argp2 = 0 ;
32812 int res2 = 0 ;
32813 PyObject * obj0 = 0 ;
32814 PyObject * obj1 = 0 ;
32815 char * kwnames[] = {
32816 (char *) "self",(char *) "other", NULL
32817 };
32818
32819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32821 if (!SWIG_IsOK(res1)) {
32822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32823 }
32824 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32826 if (!SWIG_IsOK(res2)) {
32827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32828 }
32829 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32830 {
32831 PyThreadState* __tstate = wxPyBeginAllowThreads();
32832 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32833 wxPyEndAllowThreads(__tstate);
32834 if (PyErr_Occurred()) SWIG_fail;
32835 }
32836 {
32837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32838 }
32839 return resultobj;
32840 fail:
32841 return NULL;
32842 }
32843
32844
32845 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32846 PyObject *resultobj = 0;
32847 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32848 void *arg2 = (void *) 0 ;
32849 void *argp1 = 0 ;
32850 int res1 = 0 ;
32851 int res2 ;
32852 PyObject *swig_obj[2] ;
32853
32854 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32856 if (!SWIG_IsOK(res1)) {
32857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32858 }
32859 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32860 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32861 if (!SWIG_IsOK(res2)) {
32862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32863 }
32864 if (arg1) (arg1)->m_pItem = arg2;
32865
32866 resultobj = SWIG_Py_Void();
32867 return resultobj;
32868 fail:
32869 return NULL;
32870 }
32871
32872
32873 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32874 PyObject *resultobj = 0;
32875 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32876 void *result = 0 ;
32877 void *argp1 = 0 ;
32878 int res1 = 0 ;
32879 PyObject *swig_obj[1] ;
32880
32881 if (!args) SWIG_fail;
32882 swig_obj[0] = args;
32883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32884 if (!SWIG_IsOK(res1)) {
32885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32886 }
32887 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32888 result = (void *) ((arg1)->m_pItem);
32889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32890 return resultobj;
32891 fail:
32892 return NULL;
32893 }
32894
32895
32896 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32897 PyObject *obj;
32898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32899 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32900 return SWIG_Py_Void();
32901 }
32902
32903 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32904 return SWIG_Python_InitShadowInstance(args);
32905 }
32906
32907 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32908 PyObject *resultobj = 0;
32909 PyObject *arg1 = (PyObject *) NULL ;
32910 wxPyTreeItemData *result = 0 ;
32911 PyObject * obj0 = 0 ;
32912 char * kwnames[] = {
32913 (char *) "obj", NULL
32914 };
32915
32916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32917 if (obj0) {
32918 arg1 = obj0;
32919 }
32920 {
32921 PyThreadState* __tstate = wxPyBeginAllowThreads();
32922 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32923 wxPyEndAllowThreads(__tstate);
32924 if (PyErr_Occurred()) SWIG_fail;
32925 }
32926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32927 return resultobj;
32928 fail:
32929 return NULL;
32930 }
32931
32932
32933 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32934 PyObject *resultobj = 0;
32935 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32936 void *argp1 = 0 ;
32937 int res1 = 0 ;
32938 PyObject *swig_obj[1] ;
32939
32940 if (!args) SWIG_fail;
32941 swig_obj[0] = args;
32942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32943 if (!SWIG_IsOK(res1)) {
32944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32945 }
32946 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32947 {
32948 PyThreadState* __tstate = wxPyBeginAllowThreads();
32949 delete arg1;
32950
32951 wxPyEndAllowThreads(__tstate);
32952 if (PyErr_Occurred()) SWIG_fail;
32953 }
32954 resultobj = SWIG_Py_Void();
32955 return resultobj;
32956 fail:
32957 return NULL;
32958 }
32959
32960
32961 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32962 PyObject *resultobj = 0;
32963 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32964 PyObject *result = 0 ;
32965 void *argp1 = 0 ;
32966 int res1 = 0 ;
32967 PyObject *swig_obj[1] ;
32968
32969 if (!args) SWIG_fail;
32970 swig_obj[0] = args;
32971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32972 if (!SWIG_IsOK(res1)) {
32973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32974 }
32975 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32976 {
32977 PyThreadState* __tstate = wxPyBeginAllowThreads();
32978 result = (PyObject *)(arg1)->GetData();
32979 wxPyEndAllowThreads(__tstate);
32980 if (PyErr_Occurred()) SWIG_fail;
32981 }
32982 resultobj = result;
32983 return resultobj;
32984 fail:
32985 return NULL;
32986 }
32987
32988
32989 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32990 PyObject *resultobj = 0;
32991 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32992 PyObject *arg2 = (PyObject *) 0 ;
32993 void *argp1 = 0 ;
32994 int res1 = 0 ;
32995 PyObject * obj0 = 0 ;
32996 PyObject * obj1 = 0 ;
32997 char * kwnames[] = {
32998 (char *) "self",(char *) "obj", NULL
32999 };
33000
33001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33003 if (!SWIG_IsOK(res1)) {
33004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33005 }
33006 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33007 arg2 = obj1;
33008 {
33009 PyThreadState* __tstate = wxPyBeginAllowThreads();
33010 (arg1)->SetData(arg2);
33011 wxPyEndAllowThreads(__tstate);
33012 if (PyErr_Occurred()) SWIG_fail;
33013 }
33014 resultobj = SWIG_Py_Void();
33015 return resultobj;
33016 fail:
33017 return NULL;
33018 }
33019
33020
33021 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33022 PyObject *resultobj = 0;
33023 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33024 wxTreeItemId *result = 0 ;
33025 void *argp1 = 0 ;
33026 int res1 = 0 ;
33027 PyObject *swig_obj[1] ;
33028
33029 if (!args) SWIG_fail;
33030 swig_obj[0] = args;
33031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33034 }
33035 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33036 {
33037 PyThreadState* __tstate = wxPyBeginAllowThreads();
33038 {
33039 wxTreeItemId const &_result_ref = (arg1)->GetId();
33040 result = (wxTreeItemId *) &_result_ref;
33041 }
33042 wxPyEndAllowThreads(__tstate);
33043 if (PyErr_Occurred()) SWIG_fail;
33044 }
33045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33046 return resultobj;
33047 fail:
33048 return NULL;
33049 }
33050
33051
33052 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33053 PyObject *resultobj = 0;
33054 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33055 wxTreeItemId *arg2 = 0 ;
33056 void *argp1 = 0 ;
33057 int res1 = 0 ;
33058 void *argp2 = 0 ;
33059 int res2 = 0 ;
33060 PyObject * obj0 = 0 ;
33061 PyObject * obj1 = 0 ;
33062 char * kwnames[] = {
33063 (char *) "self",(char *) "id", NULL
33064 };
33065
33066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33068 if (!SWIG_IsOK(res1)) {
33069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33070 }
33071 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33073 if (!SWIG_IsOK(res2)) {
33074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33075 }
33076 if (!argp2) {
33077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33078 }
33079 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33080 {
33081 PyThreadState* __tstate = wxPyBeginAllowThreads();
33082 (arg1)->SetId((wxTreeItemId const &)*arg2);
33083 wxPyEndAllowThreads(__tstate);
33084 if (PyErr_Occurred()) SWIG_fail;
33085 }
33086 resultobj = SWIG_Py_Void();
33087 return resultobj;
33088 fail:
33089 return NULL;
33090 }
33091
33092
33093 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33094 PyObject *resultobj = 0;
33095 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33096 void *argp1 = 0 ;
33097 int res1 = 0 ;
33098 PyObject *swig_obj[1] ;
33099
33100 if (!args) SWIG_fail;
33101 swig_obj[0] = args;
33102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33103 if (!SWIG_IsOK(res1)) {
33104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33105 }
33106 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33107 {
33108 PyThreadState* __tstate = wxPyBeginAllowThreads();
33109 wxPyTreeItemData_Destroy(arg1);
33110 wxPyEndAllowThreads(__tstate);
33111 if (PyErr_Occurred()) SWIG_fail;
33112 }
33113 resultobj = SWIG_Py_Void();
33114 return resultobj;
33115 fail:
33116 return NULL;
33117 }
33118
33119
33120 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33121 PyObject *obj;
33122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33123 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33124 return SWIG_Py_Void();
33125 }
33126
33127 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33128 return SWIG_Python_InitShadowInstance(args);
33129 }
33130
33131 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33132 {
33133 void *argp = 0;
33134 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33135 if (!SWIG_IsOK(res)) {
33136 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33137 }
33138 if (!argp) {
33139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33140 } else {
33141 wxTreeItemId * temp;
33142 temp = reinterpret_cast< wxTreeItemId * >(argp);
33143 wxNullTreeItemId = *temp;
33144 if (SWIG_IsNewObj(res)) delete temp;
33145 }
33146 }
33147 return 0;
33148 fail:
33149 return 1;
33150 }
33151
33152
33153 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33154 PyObject *pyobj = 0;
33155
33156 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33157 return pyobj;
33158 }
33159
33160
33161 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33162 PyObject *resultobj = 0;
33163 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33164 int arg2 = (int) 0 ;
33165 wxTreeEvent *result = 0 ;
33166 int val1 ;
33167 int ecode1 = 0 ;
33168 int val2 ;
33169 int ecode2 = 0 ;
33170
33171 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33172 if (swig_obj[0]) {
33173 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33174 if (!SWIG_IsOK(ecode1)) {
33175 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33176 }
33177 arg1 = static_cast< wxEventType >(val1);
33178 }
33179 if (swig_obj[1]) {
33180 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33181 if (!SWIG_IsOK(ecode2)) {
33182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33183 }
33184 arg2 = static_cast< int >(val2);
33185 }
33186 {
33187 PyThreadState* __tstate = wxPyBeginAllowThreads();
33188 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33189 wxPyEndAllowThreads(__tstate);
33190 if (PyErr_Occurred()) SWIG_fail;
33191 }
33192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33193 return resultobj;
33194 fail:
33195 return NULL;
33196 }
33197
33198
33199 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33200 PyObject *resultobj = 0;
33201 wxEventType arg1 ;
33202 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33203 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33204 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33205 wxTreeEvent *result = 0 ;
33206 int val1 ;
33207 int ecode1 = 0 ;
33208 void *argp2 = 0 ;
33209 int res2 = 0 ;
33210 void *argp3 = 0 ;
33211 int res3 = 0 ;
33212
33213 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33214 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33215 if (!SWIG_IsOK(ecode1)) {
33216 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33217 }
33218 arg1 = static_cast< wxEventType >(val1);
33219 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33220 if (!SWIG_IsOK(res2)) {
33221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33222 }
33223 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33224 if (swig_obj[2]) {
33225 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33226 if (!SWIG_IsOK(res3)) {
33227 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33228 }
33229 if (!argp3) {
33230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33231 }
33232 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33233 }
33234 {
33235 PyThreadState* __tstate = wxPyBeginAllowThreads();
33236 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33237 wxPyEndAllowThreads(__tstate);
33238 if (PyErr_Occurred()) SWIG_fail;
33239 }
33240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33241 return resultobj;
33242 fail:
33243 return NULL;
33244 }
33245
33246
33247 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33248 int argc;
33249 PyObject *argv[4];
33250
33251 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33252 --argc;
33253 if ((argc >= 0) && (argc <= 2)) {
33254 int _v = 0;
33255 if (argc > 1) {
33256 {
33257 {
33258 int res = SWIG_AsVal_int(argv[1], NULL);
33259 _v = SWIG_CheckState(res);
33260 }
33261 }
33262 if (!_v) goto check_1;
33263 }
33264 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33265 }
33266 check_1:
33267
33268 if ((argc >= 2) && (argc <= 3)) {
33269 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33270 }
33271
33272 fail:
33273 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33274 return NULL;
33275 }
33276
33277
33278 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33279 PyObject *resultobj = 0;
33280 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33281 wxTreeItemId result;
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_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33291 }
33292 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33293 {
33294 PyThreadState* __tstate = wxPyBeginAllowThreads();
33295 result = ((wxTreeEvent const *)arg1)->GetItem();
33296 wxPyEndAllowThreads(__tstate);
33297 if (PyErr_Occurred()) SWIG_fail;
33298 }
33299 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33300 return resultobj;
33301 fail:
33302 return NULL;
33303 }
33304
33305
33306 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33307 PyObject *resultobj = 0;
33308 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33309 wxTreeItemId *arg2 = 0 ;
33310 void *argp1 = 0 ;
33311 int res1 = 0 ;
33312 void *argp2 = 0 ;
33313 int res2 = 0 ;
33314 PyObject * obj0 = 0 ;
33315 PyObject * obj1 = 0 ;
33316 char * kwnames[] = {
33317 (char *) "self",(char *) "item", NULL
33318 };
33319
33320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33322 if (!SWIG_IsOK(res1)) {
33323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33324 }
33325 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33327 if (!SWIG_IsOK(res2)) {
33328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33329 }
33330 if (!argp2) {
33331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33332 }
33333 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33334 {
33335 PyThreadState* __tstate = wxPyBeginAllowThreads();
33336 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33337 wxPyEndAllowThreads(__tstate);
33338 if (PyErr_Occurred()) SWIG_fail;
33339 }
33340 resultobj = SWIG_Py_Void();
33341 return resultobj;
33342 fail:
33343 return NULL;
33344 }
33345
33346
33347 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33348 PyObject *resultobj = 0;
33349 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33350 wxTreeItemId result;
33351 void *argp1 = 0 ;
33352 int res1 = 0 ;
33353 PyObject *swig_obj[1] ;
33354
33355 if (!args) SWIG_fail;
33356 swig_obj[0] = args;
33357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33358 if (!SWIG_IsOK(res1)) {
33359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33360 }
33361 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33362 {
33363 PyThreadState* __tstate = wxPyBeginAllowThreads();
33364 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33365 wxPyEndAllowThreads(__tstate);
33366 if (PyErr_Occurred()) SWIG_fail;
33367 }
33368 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33369 return resultobj;
33370 fail:
33371 return NULL;
33372 }
33373
33374
33375 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33376 PyObject *resultobj = 0;
33377 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33378 wxTreeItemId *arg2 = 0 ;
33379 void *argp1 = 0 ;
33380 int res1 = 0 ;
33381 void *argp2 = 0 ;
33382 int res2 = 0 ;
33383 PyObject * obj0 = 0 ;
33384 PyObject * obj1 = 0 ;
33385 char * kwnames[] = {
33386 (char *) "self",(char *) "item", NULL
33387 };
33388
33389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33391 if (!SWIG_IsOK(res1)) {
33392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33393 }
33394 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33396 if (!SWIG_IsOK(res2)) {
33397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33398 }
33399 if (!argp2) {
33400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33401 }
33402 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33403 {
33404 PyThreadState* __tstate = wxPyBeginAllowThreads();
33405 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33406 wxPyEndAllowThreads(__tstate);
33407 if (PyErr_Occurred()) SWIG_fail;
33408 }
33409 resultobj = SWIG_Py_Void();
33410 return resultobj;
33411 fail:
33412 return NULL;
33413 }
33414
33415
33416 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33417 PyObject *resultobj = 0;
33418 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33419 wxPoint result;
33420 void *argp1 = 0 ;
33421 int res1 = 0 ;
33422 PyObject *swig_obj[1] ;
33423
33424 if (!args) SWIG_fail;
33425 swig_obj[0] = args;
33426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33427 if (!SWIG_IsOK(res1)) {
33428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33429 }
33430 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33431 {
33432 PyThreadState* __tstate = wxPyBeginAllowThreads();
33433 result = ((wxTreeEvent const *)arg1)->GetPoint();
33434 wxPyEndAllowThreads(__tstate);
33435 if (PyErr_Occurred()) SWIG_fail;
33436 }
33437 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33438 return resultobj;
33439 fail:
33440 return NULL;
33441 }
33442
33443
33444 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33445 PyObject *resultobj = 0;
33446 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33447 wxPoint *arg2 = 0 ;
33448 void *argp1 = 0 ;
33449 int res1 = 0 ;
33450 wxPoint temp2 ;
33451 PyObject * obj0 = 0 ;
33452 PyObject * obj1 = 0 ;
33453 char * kwnames[] = {
33454 (char *) "self",(char *) "pt", NULL
33455 };
33456
33457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33459 if (!SWIG_IsOK(res1)) {
33460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33461 }
33462 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33463 {
33464 arg2 = &temp2;
33465 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33466 }
33467 {
33468 PyThreadState* __tstate = wxPyBeginAllowThreads();
33469 (arg1)->SetPoint((wxPoint const &)*arg2);
33470 wxPyEndAllowThreads(__tstate);
33471 if (PyErr_Occurred()) SWIG_fail;
33472 }
33473 resultobj = SWIG_Py_Void();
33474 return resultobj;
33475 fail:
33476 return NULL;
33477 }
33478
33479
33480 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33481 PyObject *resultobj = 0;
33482 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33483 wxKeyEvent *result = 0 ;
33484 void *argp1 = 0 ;
33485 int res1 = 0 ;
33486 PyObject *swig_obj[1] ;
33487
33488 if (!args) SWIG_fail;
33489 swig_obj[0] = args;
33490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33491 if (!SWIG_IsOK(res1)) {
33492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33493 }
33494 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33495 {
33496 PyThreadState* __tstate = wxPyBeginAllowThreads();
33497 {
33498 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33499 result = (wxKeyEvent *) &_result_ref;
33500 }
33501 wxPyEndAllowThreads(__tstate);
33502 if (PyErr_Occurred()) SWIG_fail;
33503 }
33504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33505 return resultobj;
33506 fail:
33507 return NULL;
33508 }
33509
33510
33511 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33512 PyObject *resultobj = 0;
33513 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33514 int result;
33515 void *argp1 = 0 ;
33516 int res1 = 0 ;
33517 PyObject *swig_obj[1] ;
33518
33519 if (!args) SWIG_fail;
33520 swig_obj[0] = args;
33521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33522 if (!SWIG_IsOK(res1)) {
33523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33524 }
33525 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33526 {
33527 PyThreadState* __tstate = wxPyBeginAllowThreads();
33528 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33529 wxPyEndAllowThreads(__tstate);
33530 if (PyErr_Occurred()) SWIG_fail;
33531 }
33532 resultobj = SWIG_From_int(static_cast< int >(result));
33533 return resultobj;
33534 fail:
33535 return NULL;
33536 }
33537
33538
33539 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33540 PyObject *resultobj = 0;
33541 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33542 wxKeyEvent *arg2 = 0 ;
33543 void *argp1 = 0 ;
33544 int res1 = 0 ;
33545 void *argp2 = 0 ;
33546 int res2 = 0 ;
33547 PyObject * obj0 = 0 ;
33548 PyObject * obj1 = 0 ;
33549 char * kwnames[] = {
33550 (char *) "self",(char *) "evt", NULL
33551 };
33552
33553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33555 if (!SWIG_IsOK(res1)) {
33556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33557 }
33558 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33560 if (!SWIG_IsOK(res2)) {
33561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33562 }
33563 if (!argp2) {
33564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33565 }
33566 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33567 {
33568 PyThreadState* __tstate = wxPyBeginAllowThreads();
33569 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33570 wxPyEndAllowThreads(__tstate);
33571 if (PyErr_Occurred()) SWIG_fail;
33572 }
33573 resultobj = SWIG_Py_Void();
33574 return resultobj;
33575 fail:
33576 return NULL;
33577 }
33578
33579
33580 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33581 PyObject *resultobj = 0;
33582 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33583 wxString *result = 0 ;
33584 void *argp1 = 0 ;
33585 int res1 = 0 ;
33586 PyObject *swig_obj[1] ;
33587
33588 if (!args) SWIG_fail;
33589 swig_obj[0] = args;
33590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33591 if (!SWIG_IsOK(res1)) {
33592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33593 }
33594 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33595 {
33596 PyThreadState* __tstate = wxPyBeginAllowThreads();
33597 {
33598 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33599 result = (wxString *) &_result_ref;
33600 }
33601 wxPyEndAllowThreads(__tstate);
33602 if (PyErr_Occurred()) SWIG_fail;
33603 }
33604 {
33605 #if wxUSE_UNICODE
33606 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33607 #else
33608 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33609 #endif
33610 }
33611 return resultobj;
33612 fail:
33613 return NULL;
33614 }
33615
33616
33617 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33618 PyObject *resultobj = 0;
33619 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33620 wxString *arg2 = 0 ;
33621 void *argp1 = 0 ;
33622 int res1 = 0 ;
33623 bool temp2 = false ;
33624 PyObject * obj0 = 0 ;
33625 PyObject * obj1 = 0 ;
33626 char * kwnames[] = {
33627 (char *) "self",(char *) "label", NULL
33628 };
33629
33630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33632 if (!SWIG_IsOK(res1)) {
33633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33634 }
33635 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33636 {
33637 arg2 = wxString_in_helper(obj1);
33638 if (arg2 == NULL) SWIG_fail;
33639 temp2 = true;
33640 }
33641 {
33642 PyThreadState* __tstate = wxPyBeginAllowThreads();
33643 (arg1)->SetLabel((wxString const &)*arg2);
33644 wxPyEndAllowThreads(__tstate);
33645 if (PyErr_Occurred()) SWIG_fail;
33646 }
33647 resultobj = SWIG_Py_Void();
33648 {
33649 if (temp2)
33650 delete arg2;
33651 }
33652 return resultobj;
33653 fail:
33654 {
33655 if (temp2)
33656 delete arg2;
33657 }
33658 return NULL;
33659 }
33660
33661
33662 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33663 PyObject *resultobj = 0;
33664 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33665 bool result;
33666 void *argp1 = 0 ;
33667 int res1 = 0 ;
33668 PyObject *swig_obj[1] ;
33669
33670 if (!args) SWIG_fail;
33671 swig_obj[0] = args;
33672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33673 if (!SWIG_IsOK(res1)) {
33674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33675 }
33676 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33677 {
33678 PyThreadState* __tstate = wxPyBeginAllowThreads();
33679 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33680 wxPyEndAllowThreads(__tstate);
33681 if (PyErr_Occurred()) SWIG_fail;
33682 }
33683 {
33684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33685 }
33686 return resultobj;
33687 fail:
33688 return NULL;
33689 }
33690
33691
33692 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33693 PyObject *resultobj = 0;
33694 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33695 bool arg2 ;
33696 void *argp1 = 0 ;
33697 int res1 = 0 ;
33698 bool val2 ;
33699 int ecode2 = 0 ;
33700 PyObject * obj0 = 0 ;
33701 PyObject * obj1 = 0 ;
33702 char * kwnames[] = {
33703 (char *) "self",(char *) "editCancelled", NULL
33704 };
33705
33706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33708 if (!SWIG_IsOK(res1)) {
33709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33710 }
33711 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33712 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33713 if (!SWIG_IsOK(ecode2)) {
33714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33715 }
33716 arg2 = static_cast< bool >(val2);
33717 {
33718 PyThreadState* __tstate = wxPyBeginAllowThreads();
33719 (arg1)->SetEditCanceled(arg2);
33720 wxPyEndAllowThreads(__tstate);
33721 if (PyErr_Occurred()) SWIG_fail;
33722 }
33723 resultobj = SWIG_Py_Void();
33724 return resultobj;
33725 fail:
33726 return NULL;
33727 }
33728
33729
33730 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33731 PyObject *resultobj = 0;
33732 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33733 wxString *arg2 = 0 ;
33734 void *argp1 = 0 ;
33735 int res1 = 0 ;
33736 bool temp2 = false ;
33737 PyObject * obj0 = 0 ;
33738 PyObject * obj1 = 0 ;
33739 char * kwnames[] = {
33740 (char *) "self",(char *) "toolTip", NULL
33741 };
33742
33743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33745 if (!SWIG_IsOK(res1)) {
33746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33747 }
33748 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33749 {
33750 arg2 = wxString_in_helper(obj1);
33751 if (arg2 == NULL) SWIG_fail;
33752 temp2 = true;
33753 }
33754 {
33755 PyThreadState* __tstate = wxPyBeginAllowThreads();
33756 (arg1)->SetToolTip((wxString const &)*arg2);
33757 wxPyEndAllowThreads(__tstate);
33758 if (PyErr_Occurred()) SWIG_fail;
33759 }
33760 resultobj = SWIG_Py_Void();
33761 {
33762 if (temp2)
33763 delete arg2;
33764 }
33765 return resultobj;
33766 fail:
33767 {
33768 if (temp2)
33769 delete arg2;
33770 }
33771 return NULL;
33772 }
33773
33774
33775 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33776 PyObject *resultobj = 0;
33777 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33778 wxString result;
33779 void *argp1 = 0 ;
33780 int res1 = 0 ;
33781 PyObject *swig_obj[1] ;
33782
33783 if (!args) SWIG_fail;
33784 swig_obj[0] = args;
33785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33786 if (!SWIG_IsOK(res1)) {
33787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33788 }
33789 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33790 {
33791 PyThreadState* __tstate = wxPyBeginAllowThreads();
33792 result = (arg1)->GetToolTip();
33793 wxPyEndAllowThreads(__tstate);
33794 if (PyErr_Occurred()) SWIG_fail;
33795 }
33796 {
33797 #if wxUSE_UNICODE
33798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33799 #else
33800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33801 #endif
33802 }
33803 return resultobj;
33804 fail:
33805 return NULL;
33806 }
33807
33808
33809 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33810 PyObject *obj;
33811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33812 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33813 return SWIG_Py_Void();
33814 }
33815
33816 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33817 return SWIG_Python_InitShadowInstance(args);
33818 }
33819
33820 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33821 PyObject *resultobj = 0;
33822 wxWindow *arg1 = (wxWindow *) 0 ;
33823 int arg2 = (int) -1 ;
33824 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33825 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33826 wxSize const &arg4_defvalue = wxDefaultSize ;
33827 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33828 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33829 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33830 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33831 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33832 wxString *arg7 = (wxString *) &arg7_defvalue ;
33833 wxPyTreeCtrl *result = 0 ;
33834 void *argp1 = 0 ;
33835 int res1 = 0 ;
33836 int val2 ;
33837 int ecode2 = 0 ;
33838 wxPoint temp3 ;
33839 wxSize temp4 ;
33840 long val5 ;
33841 int ecode5 = 0 ;
33842 void *argp6 = 0 ;
33843 int res6 = 0 ;
33844 bool temp7 = false ;
33845 PyObject * obj0 = 0 ;
33846 PyObject * obj1 = 0 ;
33847 PyObject * obj2 = 0 ;
33848 PyObject * obj3 = 0 ;
33849 PyObject * obj4 = 0 ;
33850 PyObject * obj5 = 0 ;
33851 PyObject * obj6 = 0 ;
33852 char * kwnames[] = {
33853 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33854 };
33855
33856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33858 if (!SWIG_IsOK(res1)) {
33859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33860 }
33861 arg1 = reinterpret_cast< wxWindow * >(argp1);
33862 if (obj1) {
33863 ecode2 = SWIG_AsVal_int(obj1, &val2);
33864 if (!SWIG_IsOK(ecode2)) {
33865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33866 }
33867 arg2 = static_cast< int >(val2);
33868 }
33869 if (obj2) {
33870 {
33871 arg3 = &temp3;
33872 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33873 }
33874 }
33875 if (obj3) {
33876 {
33877 arg4 = &temp4;
33878 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33879 }
33880 }
33881 if (obj4) {
33882 ecode5 = SWIG_AsVal_long(obj4, &val5);
33883 if (!SWIG_IsOK(ecode5)) {
33884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33885 }
33886 arg5 = static_cast< long >(val5);
33887 }
33888 if (obj5) {
33889 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33890 if (!SWIG_IsOK(res6)) {
33891 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33892 }
33893 if (!argp6) {
33894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33895 }
33896 arg6 = reinterpret_cast< wxValidator * >(argp6);
33897 }
33898 if (obj6) {
33899 {
33900 arg7 = wxString_in_helper(obj6);
33901 if (arg7 == NULL) SWIG_fail;
33902 temp7 = true;
33903 }
33904 }
33905 {
33906 if (!wxPyCheckForApp()) SWIG_fail;
33907 PyThreadState* __tstate = wxPyBeginAllowThreads();
33908 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33909 wxPyEndAllowThreads(__tstate);
33910 if (PyErr_Occurred()) SWIG_fail;
33911 }
33912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33913 {
33914 if (temp7)
33915 delete arg7;
33916 }
33917 return resultobj;
33918 fail:
33919 {
33920 if (temp7)
33921 delete arg7;
33922 }
33923 return NULL;
33924 }
33925
33926
33927 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33928 PyObject *resultobj = 0;
33929 wxPyTreeCtrl *result = 0 ;
33930
33931 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33932 {
33933 if (!wxPyCheckForApp()) SWIG_fail;
33934 PyThreadState* __tstate = wxPyBeginAllowThreads();
33935 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33936 wxPyEndAllowThreads(__tstate);
33937 if (PyErr_Occurred()) SWIG_fail;
33938 }
33939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33940 return resultobj;
33941 fail:
33942 return NULL;
33943 }
33944
33945
33946 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33947 PyObject *resultobj = 0;
33948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33949 wxWindow *arg2 = (wxWindow *) 0 ;
33950 int arg3 = (int) -1 ;
33951 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33952 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33953 wxSize const &arg5_defvalue = wxDefaultSize ;
33954 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33955 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33956 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33957 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33958 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33959 wxString *arg8 = (wxString *) &arg8_defvalue ;
33960 bool result;
33961 void *argp1 = 0 ;
33962 int res1 = 0 ;
33963 void *argp2 = 0 ;
33964 int res2 = 0 ;
33965 int val3 ;
33966 int ecode3 = 0 ;
33967 wxPoint temp4 ;
33968 wxSize temp5 ;
33969 long val6 ;
33970 int ecode6 = 0 ;
33971 void *argp7 = 0 ;
33972 int res7 = 0 ;
33973 bool temp8 = false ;
33974 PyObject * obj0 = 0 ;
33975 PyObject * obj1 = 0 ;
33976 PyObject * obj2 = 0 ;
33977 PyObject * obj3 = 0 ;
33978 PyObject * obj4 = 0 ;
33979 PyObject * obj5 = 0 ;
33980 PyObject * obj6 = 0 ;
33981 PyObject * obj7 = 0 ;
33982 char * kwnames[] = {
33983 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33984 };
33985
33986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33988 if (!SWIG_IsOK(res1)) {
33989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33990 }
33991 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33992 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33993 if (!SWIG_IsOK(res2)) {
33994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33995 }
33996 arg2 = reinterpret_cast< wxWindow * >(argp2);
33997 if (obj2) {
33998 ecode3 = SWIG_AsVal_int(obj2, &val3);
33999 if (!SWIG_IsOK(ecode3)) {
34000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34001 }
34002 arg3 = static_cast< int >(val3);
34003 }
34004 if (obj3) {
34005 {
34006 arg4 = &temp4;
34007 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34008 }
34009 }
34010 if (obj4) {
34011 {
34012 arg5 = &temp5;
34013 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34014 }
34015 }
34016 if (obj5) {
34017 ecode6 = SWIG_AsVal_long(obj5, &val6);
34018 if (!SWIG_IsOK(ecode6)) {
34019 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34020 }
34021 arg6 = static_cast< long >(val6);
34022 }
34023 if (obj6) {
34024 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34025 if (!SWIG_IsOK(res7)) {
34026 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34027 }
34028 if (!argp7) {
34029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34030 }
34031 arg7 = reinterpret_cast< wxValidator * >(argp7);
34032 }
34033 if (obj7) {
34034 {
34035 arg8 = wxString_in_helper(obj7);
34036 if (arg8 == NULL) SWIG_fail;
34037 temp8 = true;
34038 }
34039 }
34040 {
34041 PyThreadState* __tstate = wxPyBeginAllowThreads();
34042 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34043 wxPyEndAllowThreads(__tstate);
34044 if (PyErr_Occurred()) SWIG_fail;
34045 }
34046 {
34047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34048 }
34049 {
34050 if (temp8)
34051 delete arg8;
34052 }
34053 return resultobj;
34054 fail:
34055 {
34056 if (temp8)
34057 delete arg8;
34058 }
34059 return NULL;
34060 }
34061
34062
34063 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34064 PyObject *resultobj = 0;
34065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34066 PyObject *arg2 = (PyObject *) 0 ;
34067 PyObject *arg3 = (PyObject *) 0 ;
34068 void *argp1 = 0 ;
34069 int res1 = 0 ;
34070 PyObject * obj0 = 0 ;
34071 PyObject * obj1 = 0 ;
34072 PyObject * obj2 = 0 ;
34073 char * kwnames[] = {
34074 (char *) "self",(char *) "self",(char *) "_class", NULL
34075 };
34076
34077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34079 if (!SWIG_IsOK(res1)) {
34080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34081 }
34082 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34083 arg2 = obj1;
34084 arg3 = obj2;
34085 {
34086 PyThreadState* __tstate = wxPyBeginAllowThreads();
34087 (arg1)->_setCallbackInfo(arg2,arg3);
34088 wxPyEndAllowThreads(__tstate);
34089 if (PyErr_Occurred()) SWIG_fail;
34090 }
34091 resultobj = SWIG_Py_Void();
34092 return resultobj;
34093 fail:
34094 return NULL;
34095 }
34096
34097
34098 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34099 PyObject *resultobj = 0;
34100 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34101 unsigned int result;
34102 void *argp1 = 0 ;
34103 int res1 = 0 ;
34104 PyObject *swig_obj[1] ;
34105
34106 if (!args) SWIG_fail;
34107 swig_obj[0] = args;
34108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34109 if (!SWIG_IsOK(res1)) {
34110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34111 }
34112 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34113 {
34114 PyThreadState* __tstate = wxPyBeginAllowThreads();
34115 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34116 wxPyEndAllowThreads(__tstate);
34117 if (PyErr_Occurred()) SWIG_fail;
34118 }
34119 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34120 return resultobj;
34121 fail:
34122 return NULL;
34123 }
34124
34125
34126 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34127 PyObject *resultobj = 0;
34128 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34129 unsigned int result;
34130 void *argp1 = 0 ;
34131 int res1 = 0 ;
34132 PyObject *swig_obj[1] ;
34133
34134 if (!args) SWIG_fail;
34135 swig_obj[0] = args;
34136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34137 if (!SWIG_IsOK(res1)) {
34138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34139 }
34140 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34141 {
34142 PyThreadState* __tstate = wxPyBeginAllowThreads();
34143 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34144 wxPyEndAllowThreads(__tstate);
34145 if (PyErr_Occurred()) SWIG_fail;
34146 }
34147 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34148 return resultobj;
34149 fail:
34150 return NULL;
34151 }
34152
34153
34154 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34155 PyObject *resultobj = 0;
34156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34157 unsigned int arg2 ;
34158 void *argp1 = 0 ;
34159 int res1 = 0 ;
34160 unsigned int val2 ;
34161 int ecode2 = 0 ;
34162 PyObject * obj0 = 0 ;
34163 PyObject * obj1 = 0 ;
34164 char * kwnames[] = {
34165 (char *) "self",(char *) "indent", NULL
34166 };
34167
34168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",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_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34172 }
34173 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34174 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34175 if (!SWIG_IsOK(ecode2)) {
34176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34177 }
34178 arg2 = static_cast< unsigned int >(val2);
34179 {
34180 PyThreadState* __tstate = wxPyBeginAllowThreads();
34181 (arg1)->SetIndent(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_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34193 PyObject *resultobj = 0;
34194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34195 unsigned int result;
34196 void *argp1 = 0 ;
34197 int res1 = 0 ;
34198 PyObject *swig_obj[1] ;
34199
34200 if (!args) SWIG_fail;
34201 swig_obj[0] = args;
34202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34203 if (!SWIG_IsOK(res1)) {
34204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34205 }
34206 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34207 {
34208 PyThreadState* __tstate = wxPyBeginAllowThreads();
34209 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34210 wxPyEndAllowThreads(__tstate);
34211 if (PyErr_Occurred()) SWIG_fail;
34212 }
34213 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34214 return resultobj;
34215 fail:
34216 return NULL;
34217 }
34218
34219
34220 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34221 PyObject *resultobj = 0;
34222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34223 unsigned int arg2 ;
34224 void *argp1 = 0 ;
34225 int res1 = 0 ;
34226 unsigned int val2 ;
34227 int ecode2 = 0 ;
34228 PyObject * obj0 = 0 ;
34229 PyObject * obj1 = 0 ;
34230 char * kwnames[] = {
34231 (char *) "self",(char *) "spacing", NULL
34232 };
34233
34234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34236 if (!SWIG_IsOK(res1)) {
34237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34238 }
34239 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34240 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34241 if (!SWIG_IsOK(ecode2)) {
34242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34243 }
34244 arg2 = static_cast< unsigned int >(val2);
34245 {
34246 PyThreadState* __tstate = wxPyBeginAllowThreads();
34247 (arg1)->SetSpacing(arg2);
34248 wxPyEndAllowThreads(__tstate);
34249 if (PyErr_Occurred()) SWIG_fail;
34250 }
34251 resultobj = SWIG_Py_Void();
34252 return resultobj;
34253 fail:
34254 return NULL;
34255 }
34256
34257
34258 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34259 PyObject *resultobj = 0;
34260 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34261 wxImageList *result = 0 ;
34262 void *argp1 = 0 ;
34263 int res1 = 0 ;
34264 PyObject *swig_obj[1] ;
34265
34266 if (!args) SWIG_fail;
34267 swig_obj[0] = args;
34268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34269 if (!SWIG_IsOK(res1)) {
34270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34271 }
34272 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34273 {
34274 PyThreadState* __tstate = wxPyBeginAllowThreads();
34275 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34276 wxPyEndAllowThreads(__tstate);
34277 if (PyErr_Occurred()) SWIG_fail;
34278 }
34279 {
34280 resultobj = wxPyMake_wxObject(result, (bool)0);
34281 }
34282 return resultobj;
34283 fail:
34284 return NULL;
34285 }
34286
34287
34288 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34289 PyObject *resultobj = 0;
34290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34291 wxImageList *result = 0 ;
34292 void *argp1 = 0 ;
34293 int res1 = 0 ;
34294 PyObject *swig_obj[1] ;
34295
34296 if (!args) SWIG_fail;
34297 swig_obj[0] = args;
34298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34299 if (!SWIG_IsOK(res1)) {
34300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34301 }
34302 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34303 {
34304 PyThreadState* __tstate = wxPyBeginAllowThreads();
34305 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34306 wxPyEndAllowThreads(__tstate);
34307 if (PyErr_Occurred()) SWIG_fail;
34308 }
34309 {
34310 resultobj = wxPyMake_wxObject(result, (bool)0);
34311 }
34312 return resultobj;
34313 fail:
34314 return NULL;
34315 }
34316
34317
34318 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34319 PyObject *resultobj = 0;
34320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34321 wxImageList *arg2 = (wxImageList *) 0 ;
34322 void *argp1 = 0 ;
34323 int res1 = 0 ;
34324 void *argp2 = 0 ;
34325 int res2 = 0 ;
34326 PyObject * obj0 = 0 ;
34327 PyObject * obj1 = 0 ;
34328 char * kwnames[] = {
34329 (char *) "self",(char *) "imageList", NULL
34330 };
34331
34332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34334 if (!SWIG_IsOK(res1)) {
34335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34336 }
34337 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34339 if (!SWIG_IsOK(res2)) {
34340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34341 }
34342 arg2 = reinterpret_cast< wxImageList * >(argp2);
34343 {
34344 PyThreadState* __tstate = wxPyBeginAllowThreads();
34345 (arg1)->SetImageList(arg2);
34346 wxPyEndAllowThreads(__tstate);
34347 if (PyErr_Occurred()) SWIG_fail;
34348 }
34349 resultobj = SWIG_Py_Void();
34350 return resultobj;
34351 fail:
34352 return NULL;
34353 }
34354
34355
34356 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34357 PyObject *resultobj = 0;
34358 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34359 wxImageList *arg2 = (wxImageList *) 0 ;
34360 void *argp1 = 0 ;
34361 int res1 = 0 ;
34362 void *argp2 = 0 ;
34363 int res2 = 0 ;
34364 PyObject * obj0 = 0 ;
34365 PyObject * obj1 = 0 ;
34366 char * kwnames[] = {
34367 (char *) "self",(char *) "imageList", NULL
34368 };
34369
34370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34372 if (!SWIG_IsOK(res1)) {
34373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34374 }
34375 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34376 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34377 if (!SWIG_IsOK(res2)) {
34378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34379 }
34380 arg2 = reinterpret_cast< wxImageList * >(argp2);
34381 {
34382 PyThreadState* __tstate = wxPyBeginAllowThreads();
34383 (arg1)->SetStateImageList(arg2);
34384 wxPyEndAllowThreads(__tstate);
34385 if (PyErr_Occurred()) SWIG_fail;
34386 }
34387 resultobj = SWIG_Py_Void();
34388 return resultobj;
34389 fail:
34390 return NULL;
34391 }
34392
34393
34394 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34395 PyObject *resultobj = 0;
34396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34397 wxImageList *arg2 = (wxImageList *) 0 ;
34398 void *argp1 = 0 ;
34399 int res1 = 0 ;
34400 int res2 = 0 ;
34401 PyObject * obj0 = 0 ;
34402 PyObject * obj1 = 0 ;
34403 char * kwnames[] = {
34404 (char *) "self",(char *) "imageList", NULL
34405 };
34406
34407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34409 if (!SWIG_IsOK(res1)) {
34410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34411 }
34412 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34413 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34414 if (!SWIG_IsOK(res2)) {
34415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34416 }
34417 {
34418 PyThreadState* __tstate = wxPyBeginAllowThreads();
34419 (arg1)->AssignImageList(arg2);
34420 wxPyEndAllowThreads(__tstate);
34421 if (PyErr_Occurred()) SWIG_fail;
34422 }
34423 resultobj = SWIG_Py_Void();
34424 return resultobj;
34425 fail:
34426 return NULL;
34427 }
34428
34429
34430 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34431 PyObject *resultobj = 0;
34432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34433 wxImageList *arg2 = (wxImageList *) 0 ;
34434 void *argp1 = 0 ;
34435 int res1 = 0 ;
34436 int res2 = 0 ;
34437 PyObject * obj0 = 0 ;
34438 PyObject * obj1 = 0 ;
34439 char * kwnames[] = {
34440 (char *) "self",(char *) "imageList", NULL
34441 };
34442
34443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34445 if (!SWIG_IsOK(res1)) {
34446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34447 }
34448 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34449 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34450 if (!SWIG_IsOK(res2)) {
34451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34452 }
34453 {
34454 PyThreadState* __tstate = wxPyBeginAllowThreads();
34455 (arg1)->AssignStateImageList(arg2);
34456 wxPyEndAllowThreads(__tstate);
34457 if (PyErr_Occurred()) SWIG_fail;
34458 }
34459 resultobj = SWIG_Py_Void();
34460 return resultobj;
34461 fail:
34462 return NULL;
34463 }
34464
34465
34466 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34467 PyObject *resultobj = 0;
34468 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34469 wxTreeItemId *arg2 = 0 ;
34470 wxString result;
34471 void *argp1 = 0 ;
34472 int res1 = 0 ;
34473 void *argp2 = 0 ;
34474 int res2 = 0 ;
34475 PyObject * obj0 = 0 ;
34476 PyObject * obj1 = 0 ;
34477 char * kwnames[] = {
34478 (char *) "self",(char *) "item", NULL
34479 };
34480
34481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34483 if (!SWIG_IsOK(res1)) {
34484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34485 }
34486 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34488 if (!SWIG_IsOK(res2)) {
34489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34490 }
34491 if (!argp2) {
34492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34493 }
34494 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34495 {
34496 PyThreadState* __tstate = wxPyBeginAllowThreads();
34497 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34498 wxPyEndAllowThreads(__tstate);
34499 if (PyErr_Occurred()) SWIG_fail;
34500 }
34501 {
34502 #if wxUSE_UNICODE
34503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34504 #else
34505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34506 #endif
34507 }
34508 return resultobj;
34509 fail:
34510 return NULL;
34511 }
34512
34513
34514 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34515 PyObject *resultobj = 0;
34516 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34517 wxTreeItemId *arg2 = 0 ;
34518 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34519 int result;
34520 void *argp1 = 0 ;
34521 int res1 = 0 ;
34522 void *argp2 = 0 ;
34523 int res2 = 0 ;
34524 int val3 ;
34525 int ecode3 = 0 ;
34526 PyObject * obj0 = 0 ;
34527 PyObject * obj1 = 0 ;
34528 PyObject * obj2 = 0 ;
34529 char * kwnames[] = {
34530 (char *) "self",(char *) "item",(char *) "which", NULL
34531 };
34532
34533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34535 if (!SWIG_IsOK(res1)) {
34536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34537 }
34538 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34540 if (!SWIG_IsOK(res2)) {
34541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34542 }
34543 if (!argp2) {
34544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34545 }
34546 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34547 if (obj2) {
34548 ecode3 = SWIG_AsVal_int(obj2, &val3);
34549 if (!SWIG_IsOK(ecode3)) {
34550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34551 }
34552 arg3 = static_cast< wxTreeItemIcon >(val3);
34553 }
34554 {
34555 PyThreadState* __tstate = wxPyBeginAllowThreads();
34556 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34557 wxPyEndAllowThreads(__tstate);
34558 if (PyErr_Occurred()) SWIG_fail;
34559 }
34560 resultobj = SWIG_From_int(static_cast< int >(result));
34561 return resultobj;
34562 fail:
34563 return NULL;
34564 }
34565
34566
34567 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34568 PyObject *resultobj = 0;
34569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34570 wxTreeItemId *arg2 = 0 ;
34571 wxPyTreeItemData *result = 0 ;
34572 void *argp1 = 0 ;
34573 int res1 = 0 ;
34574 void *argp2 = 0 ;
34575 int res2 = 0 ;
34576 PyObject * obj0 = 0 ;
34577 PyObject * obj1 = 0 ;
34578 char * kwnames[] = {
34579 (char *) "self",(char *) "item", NULL
34580 };
34581
34582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34584 if (!SWIG_IsOK(res1)) {
34585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34586 }
34587 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34589 if (!SWIG_IsOK(res2)) {
34590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34591 }
34592 if (!argp2) {
34593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34594 }
34595 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34596 {
34597 PyThreadState* __tstate = wxPyBeginAllowThreads();
34598 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34599 wxPyEndAllowThreads(__tstate);
34600 if (PyErr_Occurred()) SWIG_fail;
34601 }
34602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34603 return resultobj;
34604 fail:
34605 return NULL;
34606 }
34607
34608
34609 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34610 PyObject *resultobj = 0;
34611 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34612 wxTreeItemId *arg2 = 0 ;
34613 PyObject *result = 0 ;
34614 void *argp1 = 0 ;
34615 int res1 = 0 ;
34616 void *argp2 = 0 ;
34617 int res2 = 0 ;
34618 PyObject * obj0 = 0 ;
34619 PyObject * obj1 = 0 ;
34620 char * kwnames[] = {
34621 (char *) "self",(char *) "item", NULL
34622 };
34623
34624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34626 if (!SWIG_IsOK(res1)) {
34627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34628 }
34629 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34631 if (!SWIG_IsOK(res2)) {
34632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34633 }
34634 if (!argp2) {
34635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34636 }
34637 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34638 {
34639 PyThreadState* __tstate = wxPyBeginAllowThreads();
34640 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34641 wxPyEndAllowThreads(__tstate);
34642 if (PyErr_Occurred()) SWIG_fail;
34643 }
34644 resultobj = result;
34645 return resultobj;
34646 fail:
34647 return NULL;
34648 }
34649
34650
34651 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34652 PyObject *resultobj = 0;
34653 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34654 wxTreeItemId *arg2 = 0 ;
34655 wxColour result;
34656 void *argp1 = 0 ;
34657 int res1 = 0 ;
34658 void *argp2 = 0 ;
34659 int res2 = 0 ;
34660 PyObject * obj0 = 0 ;
34661 PyObject * obj1 = 0 ;
34662 char * kwnames[] = {
34663 (char *) "self",(char *) "item", NULL
34664 };
34665
34666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34668 if (!SWIG_IsOK(res1)) {
34669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34670 }
34671 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34673 if (!SWIG_IsOK(res2)) {
34674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34675 }
34676 if (!argp2) {
34677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34678 }
34679 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34680 {
34681 PyThreadState* __tstate = wxPyBeginAllowThreads();
34682 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34683 wxPyEndAllowThreads(__tstate);
34684 if (PyErr_Occurred()) SWIG_fail;
34685 }
34686 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34687 return resultobj;
34688 fail:
34689 return NULL;
34690 }
34691
34692
34693 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34694 PyObject *resultobj = 0;
34695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34696 wxTreeItemId *arg2 = 0 ;
34697 wxColour result;
34698 void *argp1 = 0 ;
34699 int res1 = 0 ;
34700 void *argp2 = 0 ;
34701 int res2 = 0 ;
34702 PyObject * obj0 = 0 ;
34703 PyObject * obj1 = 0 ;
34704 char * kwnames[] = {
34705 (char *) "self",(char *) "item", NULL
34706 };
34707
34708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34710 if (!SWIG_IsOK(res1)) {
34711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34712 }
34713 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34715 if (!SWIG_IsOK(res2)) {
34716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34717 }
34718 if (!argp2) {
34719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34720 }
34721 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34722 {
34723 PyThreadState* __tstate = wxPyBeginAllowThreads();
34724 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34725 wxPyEndAllowThreads(__tstate);
34726 if (PyErr_Occurred()) SWIG_fail;
34727 }
34728 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34729 return resultobj;
34730 fail:
34731 return NULL;
34732 }
34733
34734
34735 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34736 PyObject *resultobj = 0;
34737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34738 wxTreeItemId *arg2 = 0 ;
34739 wxFont result;
34740 void *argp1 = 0 ;
34741 int res1 = 0 ;
34742 void *argp2 = 0 ;
34743 int res2 = 0 ;
34744 PyObject * obj0 = 0 ;
34745 PyObject * obj1 = 0 ;
34746 char * kwnames[] = {
34747 (char *) "self",(char *) "item", NULL
34748 };
34749
34750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34752 if (!SWIG_IsOK(res1)) {
34753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34754 }
34755 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34757 if (!SWIG_IsOK(res2)) {
34758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34759 }
34760 if (!argp2) {
34761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34762 }
34763 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34764 {
34765 PyThreadState* __tstate = wxPyBeginAllowThreads();
34766 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34767 wxPyEndAllowThreads(__tstate);
34768 if (PyErr_Occurred()) SWIG_fail;
34769 }
34770 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34771 return resultobj;
34772 fail:
34773 return NULL;
34774 }
34775
34776
34777 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34778 PyObject *resultobj = 0;
34779 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34780 wxTreeItemId *arg2 = 0 ;
34781 wxString *arg3 = 0 ;
34782 void *argp1 = 0 ;
34783 int res1 = 0 ;
34784 void *argp2 = 0 ;
34785 int res2 = 0 ;
34786 bool temp3 = false ;
34787 PyObject * obj0 = 0 ;
34788 PyObject * obj1 = 0 ;
34789 PyObject * obj2 = 0 ;
34790 char * kwnames[] = {
34791 (char *) "self",(char *) "item",(char *) "text", NULL
34792 };
34793
34794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34796 if (!SWIG_IsOK(res1)) {
34797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34798 }
34799 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34801 if (!SWIG_IsOK(res2)) {
34802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34803 }
34804 if (!argp2) {
34805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34806 }
34807 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34808 {
34809 arg3 = wxString_in_helper(obj2);
34810 if (arg3 == NULL) SWIG_fail;
34811 temp3 = true;
34812 }
34813 {
34814 PyThreadState* __tstate = wxPyBeginAllowThreads();
34815 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34816 wxPyEndAllowThreads(__tstate);
34817 if (PyErr_Occurred()) SWIG_fail;
34818 }
34819 resultobj = SWIG_Py_Void();
34820 {
34821 if (temp3)
34822 delete arg3;
34823 }
34824 return resultobj;
34825 fail:
34826 {
34827 if (temp3)
34828 delete arg3;
34829 }
34830 return NULL;
34831 }
34832
34833
34834 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34835 PyObject *resultobj = 0;
34836 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34837 wxTreeItemId *arg2 = 0 ;
34838 int arg3 ;
34839 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34840 void *argp1 = 0 ;
34841 int res1 = 0 ;
34842 void *argp2 = 0 ;
34843 int res2 = 0 ;
34844 int val3 ;
34845 int ecode3 = 0 ;
34846 int val4 ;
34847 int ecode4 = 0 ;
34848 PyObject * obj0 = 0 ;
34849 PyObject * obj1 = 0 ;
34850 PyObject * obj2 = 0 ;
34851 PyObject * obj3 = 0 ;
34852 char * kwnames[] = {
34853 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34854 };
34855
34856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34858 if (!SWIG_IsOK(res1)) {
34859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34860 }
34861 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34863 if (!SWIG_IsOK(res2)) {
34864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34865 }
34866 if (!argp2) {
34867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34868 }
34869 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34870 ecode3 = SWIG_AsVal_int(obj2, &val3);
34871 if (!SWIG_IsOK(ecode3)) {
34872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34873 }
34874 arg3 = static_cast< int >(val3);
34875 if (obj3) {
34876 ecode4 = SWIG_AsVal_int(obj3, &val4);
34877 if (!SWIG_IsOK(ecode4)) {
34878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34879 }
34880 arg4 = static_cast< wxTreeItemIcon >(val4);
34881 }
34882 {
34883 PyThreadState* __tstate = wxPyBeginAllowThreads();
34884 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34885 wxPyEndAllowThreads(__tstate);
34886 if (PyErr_Occurred()) SWIG_fail;
34887 }
34888 resultobj = SWIG_Py_Void();
34889 return resultobj;
34890 fail:
34891 return NULL;
34892 }
34893
34894
34895 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34896 PyObject *resultobj = 0;
34897 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34898 wxTreeItemId *arg2 = 0 ;
34899 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 void *argp2 = 0 ;
34903 int res2 = 0 ;
34904 int res3 = 0 ;
34905 PyObject * obj0 = 0 ;
34906 PyObject * obj1 = 0 ;
34907 PyObject * obj2 = 0 ;
34908 char * kwnames[] = {
34909 (char *) "self",(char *) "item",(char *) "data", NULL
34910 };
34911
34912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34914 if (!SWIG_IsOK(res1)) {
34915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34916 }
34917 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34919 if (!SWIG_IsOK(res2)) {
34920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 if (!argp2) {
34923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34924 }
34925 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34926 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34927 if (!SWIG_IsOK(res3)) {
34928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34929 }
34930 {
34931 PyThreadState* __tstate = wxPyBeginAllowThreads();
34932 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34933 wxPyEndAllowThreads(__tstate);
34934 if (PyErr_Occurred()) SWIG_fail;
34935 }
34936 resultobj = SWIG_Py_Void();
34937 return resultobj;
34938 fail:
34939 return NULL;
34940 }
34941
34942
34943 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34944 PyObject *resultobj = 0;
34945 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34946 wxTreeItemId *arg2 = 0 ;
34947 PyObject *arg3 = (PyObject *) 0 ;
34948 void *argp1 = 0 ;
34949 int res1 = 0 ;
34950 void *argp2 = 0 ;
34951 int res2 = 0 ;
34952 PyObject * obj0 = 0 ;
34953 PyObject * obj1 = 0 ;
34954 PyObject * obj2 = 0 ;
34955 char * kwnames[] = {
34956 (char *) "self",(char *) "item",(char *) "obj", NULL
34957 };
34958
34959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34961 if (!SWIG_IsOK(res1)) {
34962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34963 }
34964 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34966 if (!SWIG_IsOK(res2)) {
34967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34968 }
34969 if (!argp2) {
34970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34971 }
34972 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34973 arg3 = obj2;
34974 {
34975 PyThreadState* __tstate = wxPyBeginAllowThreads();
34976 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34977 wxPyEndAllowThreads(__tstate);
34978 if (PyErr_Occurred()) SWIG_fail;
34979 }
34980 resultobj = SWIG_Py_Void();
34981 return resultobj;
34982 fail:
34983 return NULL;
34984 }
34985
34986
34987 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34988 PyObject *resultobj = 0;
34989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34990 wxTreeItemId *arg2 = 0 ;
34991 bool arg3 = (bool) true ;
34992 void *argp1 = 0 ;
34993 int res1 = 0 ;
34994 void *argp2 = 0 ;
34995 int res2 = 0 ;
34996 bool val3 ;
34997 int ecode3 = 0 ;
34998 PyObject * obj0 = 0 ;
34999 PyObject * obj1 = 0 ;
35000 PyObject * obj2 = 0 ;
35001 char * kwnames[] = {
35002 (char *) "self",(char *) "item",(char *) "has", NULL
35003 };
35004
35005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35007 if (!SWIG_IsOK(res1)) {
35008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35009 }
35010 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35012 if (!SWIG_IsOK(res2)) {
35013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35014 }
35015 if (!argp2) {
35016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35017 }
35018 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35019 if (obj2) {
35020 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35021 if (!SWIG_IsOK(ecode3)) {
35022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35023 }
35024 arg3 = static_cast< bool >(val3);
35025 }
35026 {
35027 PyThreadState* __tstate = wxPyBeginAllowThreads();
35028 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35029 wxPyEndAllowThreads(__tstate);
35030 if (PyErr_Occurred()) SWIG_fail;
35031 }
35032 resultobj = SWIG_Py_Void();
35033 return resultobj;
35034 fail:
35035 return NULL;
35036 }
35037
35038
35039 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35040 PyObject *resultobj = 0;
35041 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35042 wxTreeItemId *arg2 = 0 ;
35043 bool arg3 = (bool) true ;
35044 void *argp1 = 0 ;
35045 int res1 = 0 ;
35046 void *argp2 = 0 ;
35047 int res2 = 0 ;
35048 bool val3 ;
35049 int ecode3 = 0 ;
35050 PyObject * obj0 = 0 ;
35051 PyObject * obj1 = 0 ;
35052 PyObject * obj2 = 0 ;
35053 char * kwnames[] = {
35054 (char *) "self",(char *) "item",(char *) "bold", NULL
35055 };
35056
35057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35059 if (!SWIG_IsOK(res1)) {
35060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35061 }
35062 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35064 if (!SWIG_IsOK(res2)) {
35065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35066 }
35067 if (!argp2) {
35068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35069 }
35070 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35071 if (obj2) {
35072 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35073 if (!SWIG_IsOK(ecode3)) {
35074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35075 }
35076 arg3 = static_cast< bool >(val3);
35077 }
35078 {
35079 PyThreadState* __tstate = wxPyBeginAllowThreads();
35080 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35081 wxPyEndAllowThreads(__tstate);
35082 if (PyErr_Occurred()) SWIG_fail;
35083 }
35084 resultobj = SWIG_Py_Void();
35085 return resultobj;
35086 fail:
35087 return NULL;
35088 }
35089
35090
35091 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35092 PyObject *resultobj = 0;
35093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35094 wxTreeItemId *arg2 = 0 ;
35095 bool arg3 = (bool) true ;
35096 void *argp1 = 0 ;
35097 int res1 = 0 ;
35098 void *argp2 = 0 ;
35099 int res2 = 0 ;
35100 bool val3 ;
35101 int ecode3 = 0 ;
35102 PyObject * obj0 = 0 ;
35103 PyObject * obj1 = 0 ;
35104 PyObject * obj2 = 0 ;
35105 char * kwnames[] = {
35106 (char *) "self",(char *) "item",(char *) "highlight", NULL
35107 };
35108
35109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35111 if (!SWIG_IsOK(res1)) {
35112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35113 }
35114 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35116 if (!SWIG_IsOK(res2)) {
35117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35118 }
35119 if (!argp2) {
35120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35121 }
35122 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35123 if (obj2) {
35124 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35125 if (!SWIG_IsOK(ecode3)) {
35126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35127 }
35128 arg3 = static_cast< bool >(val3);
35129 }
35130 {
35131 PyThreadState* __tstate = wxPyBeginAllowThreads();
35132 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35133 wxPyEndAllowThreads(__tstate);
35134 if (PyErr_Occurred()) SWIG_fail;
35135 }
35136 resultobj = SWIG_Py_Void();
35137 return resultobj;
35138 fail:
35139 return NULL;
35140 }
35141
35142
35143 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35144 PyObject *resultobj = 0;
35145 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35146 wxTreeItemId *arg2 = 0 ;
35147 wxColour *arg3 = 0 ;
35148 void *argp1 = 0 ;
35149 int res1 = 0 ;
35150 void *argp2 = 0 ;
35151 int res2 = 0 ;
35152 wxColour temp3 ;
35153 PyObject * obj0 = 0 ;
35154 PyObject * obj1 = 0 ;
35155 PyObject * obj2 = 0 ;
35156 char * kwnames[] = {
35157 (char *) "self",(char *) "item",(char *) "col", NULL
35158 };
35159
35160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35162 if (!SWIG_IsOK(res1)) {
35163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35164 }
35165 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35167 if (!SWIG_IsOK(res2)) {
35168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35169 }
35170 if (!argp2) {
35171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35172 }
35173 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35174 {
35175 arg3 = &temp3;
35176 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35177 }
35178 {
35179 PyThreadState* __tstate = wxPyBeginAllowThreads();
35180 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35181 wxPyEndAllowThreads(__tstate);
35182 if (PyErr_Occurred()) SWIG_fail;
35183 }
35184 resultobj = SWIG_Py_Void();
35185 return resultobj;
35186 fail:
35187 return NULL;
35188 }
35189
35190
35191 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35192 PyObject *resultobj = 0;
35193 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35194 wxTreeItemId *arg2 = 0 ;
35195 wxColour *arg3 = 0 ;
35196 void *argp1 = 0 ;
35197 int res1 = 0 ;
35198 void *argp2 = 0 ;
35199 int res2 = 0 ;
35200 wxColour temp3 ;
35201 PyObject * obj0 = 0 ;
35202 PyObject * obj1 = 0 ;
35203 PyObject * obj2 = 0 ;
35204 char * kwnames[] = {
35205 (char *) "self",(char *) "item",(char *) "col", NULL
35206 };
35207
35208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35210 if (!SWIG_IsOK(res1)) {
35211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35212 }
35213 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35215 if (!SWIG_IsOK(res2)) {
35216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35217 }
35218 if (!argp2) {
35219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35220 }
35221 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35222 {
35223 arg3 = &temp3;
35224 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35225 }
35226 {
35227 PyThreadState* __tstate = wxPyBeginAllowThreads();
35228 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35229 wxPyEndAllowThreads(__tstate);
35230 if (PyErr_Occurred()) SWIG_fail;
35231 }
35232 resultobj = SWIG_Py_Void();
35233 return resultobj;
35234 fail:
35235 return NULL;
35236 }
35237
35238
35239 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35240 PyObject *resultobj = 0;
35241 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35242 wxTreeItemId *arg2 = 0 ;
35243 wxFont *arg3 = 0 ;
35244 void *argp1 = 0 ;
35245 int res1 = 0 ;
35246 void *argp2 = 0 ;
35247 int res2 = 0 ;
35248 void *argp3 = 0 ;
35249 int res3 = 0 ;
35250 PyObject * obj0 = 0 ;
35251 PyObject * obj1 = 0 ;
35252 PyObject * obj2 = 0 ;
35253 char * kwnames[] = {
35254 (char *) "self",(char *) "item",(char *) "font", NULL
35255 };
35256
35257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35259 if (!SWIG_IsOK(res1)) {
35260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35261 }
35262 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35264 if (!SWIG_IsOK(res2)) {
35265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35266 }
35267 if (!argp2) {
35268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35269 }
35270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35271 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35272 if (!SWIG_IsOK(res3)) {
35273 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35274 }
35275 if (!argp3) {
35276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35277 }
35278 arg3 = reinterpret_cast< wxFont * >(argp3);
35279 {
35280 PyThreadState* __tstate = wxPyBeginAllowThreads();
35281 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35282 wxPyEndAllowThreads(__tstate);
35283 if (PyErr_Occurred()) SWIG_fail;
35284 }
35285 resultobj = SWIG_Py_Void();
35286 return resultobj;
35287 fail:
35288 return NULL;
35289 }
35290
35291
35292 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35293 PyObject *resultobj = 0;
35294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35295 wxTreeItemId *arg2 = 0 ;
35296 bool result;
35297 void *argp1 = 0 ;
35298 int res1 = 0 ;
35299 void *argp2 = 0 ;
35300 int res2 = 0 ;
35301 PyObject * obj0 = 0 ;
35302 PyObject * obj1 = 0 ;
35303 char * kwnames[] = {
35304 (char *) "self",(char *) "item", NULL
35305 };
35306
35307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35309 if (!SWIG_IsOK(res1)) {
35310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35311 }
35312 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35314 if (!SWIG_IsOK(res2)) {
35315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35316 }
35317 if (!argp2) {
35318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35319 }
35320 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35321 {
35322 PyThreadState* __tstate = wxPyBeginAllowThreads();
35323 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35324 wxPyEndAllowThreads(__tstate);
35325 if (PyErr_Occurred()) SWIG_fail;
35326 }
35327 {
35328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35329 }
35330 return resultobj;
35331 fail:
35332 return NULL;
35333 }
35334
35335
35336 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35337 PyObject *resultobj = 0;
35338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35339 wxTreeItemId *arg2 = 0 ;
35340 bool result;
35341 void *argp1 = 0 ;
35342 int res1 = 0 ;
35343 void *argp2 = 0 ;
35344 int res2 = 0 ;
35345 PyObject * obj0 = 0 ;
35346 PyObject * obj1 = 0 ;
35347 char * kwnames[] = {
35348 (char *) "self",(char *) "item", NULL
35349 };
35350
35351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35353 if (!SWIG_IsOK(res1)) {
35354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35355 }
35356 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35358 if (!SWIG_IsOK(res2)) {
35359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35360 }
35361 if (!argp2) {
35362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35363 }
35364 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35365 {
35366 PyThreadState* __tstate = wxPyBeginAllowThreads();
35367 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35368 wxPyEndAllowThreads(__tstate);
35369 if (PyErr_Occurred()) SWIG_fail;
35370 }
35371 {
35372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35373 }
35374 return resultobj;
35375 fail:
35376 return NULL;
35377 }
35378
35379
35380 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35381 PyObject *resultobj = 0;
35382 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35383 wxTreeItemId *arg2 = 0 ;
35384 bool result;
35385 void *argp1 = 0 ;
35386 int res1 = 0 ;
35387 void *argp2 = 0 ;
35388 int res2 = 0 ;
35389 PyObject * obj0 = 0 ;
35390 PyObject * obj1 = 0 ;
35391 char * kwnames[] = {
35392 (char *) "self",(char *) "item", NULL
35393 };
35394
35395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35397 if (!SWIG_IsOK(res1)) {
35398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35399 }
35400 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35402 if (!SWIG_IsOK(res2)) {
35403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35404 }
35405 if (!argp2) {
35406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35407 }
35408 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35409 {
35410 PyThreadState* __tstate = wxPyBeginAllowThreads();
35411 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35412 wxPyEndAllowThreads(__tstate);
35413 if (PyErr_Occurred()) SWIG_fail;
35414 }
35415 {
35416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35417 }
35418 return resultobj;
35419 fail:
35420 return NULL;
35421 }
35422
35423
35424 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35425 PyObject *resultobj = 0;
35426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35427 wxTreeItemId *arg2 = 0 ;
35428 bool result;
35429 void *argp1 = 0 ;
35430 int res1 = 0 ;
35431 void *argp2 = 0 ;
35432 int res2 = 0 ;
35433 PyObject * obj0 = 0 ;
35434 PyObject * obj1 = 0 ;
35435 char * kwnames[] = {
35436 (char *) "self",(char *) "item", NULL
35437 };
35438
35439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35441 if (!SWIG_IsOK(res1)) {
35442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35443 }
35444 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35446 if (!SWIG_IsOK(res2)) {
35447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35448 }
35449 if (!argp2) {
35450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35451 }
35452 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35453 {
35454 PyThreadState* __tstate = wxPyBeginAllowThreads();
35455 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35456 wxPyEndAllowThreads(__tstate);
35457 if (PyErr_Occurred()) SWIG_fail;
35458 }
35459 {
35460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35461 }
35462 return resultobj;
35463 fail:
35464 return NULL;
35465 }
35466
35467
35468 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35469 PyObject *resultobj = 0;
35470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35471 wxTreeItemId *arg2 = 0 ;
35472 bool result;
35473 void *argp1 = 0 ;
35474 int res1 = 0 ;
35475 void *argp2 = 0 ;
35476 int res2 = 0 ;
35477 PyObject * obj0 = 0 ;
35478 PyObject * obj1 = 0 ;
35479 char * kwnames[] = {
35480 (char *) "self",(char *) "item", NULL
35481 };
35482
35483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35485 if (!SWIG_IsOK(res1)) {
35486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35487 }
35488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35490 if (!SWIG_IsOK(res2)) {
35491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35492 }
35493 if (!argp2) {
35494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35495 }
35496 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35497 {
35498 PyThreadState* __tstate = wxPyBeginAllowThreads();
35499 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35500 wxPyEndAllowThreads(__tstate);
35501 if (PyErr_Occurred()) SWIG_fail;
35502 }
35503 {
35504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35505 }
35506 return resultobj;
35507 fail:
35508 return NULL;
35509 }
35510
35511
35512 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35513 PyObject *resultobj = 0;
35514 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35515 wxTreeItemId *arg2 = 0 ;
35516 bool arg3 = (bool) true ;
35517 size_t result;
35518 void *argp1 = 0 ;
35519 int res1 = 0 ;
35520 void *argp2 = 0 ;
35521 int res2 = 0 ;
35522 bool val3 ;
35523 int ecode3 = 0 ;
35524 PyObject * obj0 = 0 ;
35525 PyObject * obj1 = 0 ;
35526 PyObject * obj2 = 0 ;
35527 char * kwnames[] = {
35528 (char *) "self",(char *) "item",(char *) "recursively", NULL
35529 };
35530
35531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35533 if (!SWIG_IsOK(res1)) {
35534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35535 }
35536 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35538 if (!SWIG_IsOK(res2)) {
35539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35540 }
35541 if (!argp2) {
35542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35543 }
35544 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35545 if (obj2) {
35546 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35547 if (!SWIG_IsOK(ecode3)) {
35548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35549 }
35550 arg3 = static_cast< bool >(val3);
35551 }
35552 {
35553 PyThreadState* __tstate = wxPyBeginAllowThreads();
35554 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35555 wxPyEndAllowThreads(__tstate);
35556 if (PyErr_Occurred()) SWIG_fail;
35557 }
35558 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35559 return resultobj;
35560 fail:
35561 return NULL;
35562 }
35563
35564
35565 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35566 PyObject *resultobj = 0;
35567 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35568 wxTreeItemId result;
35569 void *argp1 = 0 ;
35570 int res1 = 0 ;
35571 PyObject *swig_obj[1] ;
35572
35573 if (!args) SWIG_fail;
35574 swig_obj[0] = args;
35575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35576 if (!SWIG_IsOK(res1)) {
35577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35578 }
35579 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35580 {
35581 PyThreadState* __tstate = wxPyBeginAllowThreads();
35582 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35583 wxPyEndAllowThreads(__tstate);
35584 if (PyErr_Occurred()) SWIG_fail;
35585 }
35586 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35587 return resultobj;
35588 fail:
35589 return NULL;
35590 }
35591
35592
35593 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35594 PyObject *resultobj = 0;
35595 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35596 wxTreeItemId result;
35597 void *argp1 = 0 ;
35598 int res1 = 0 ;
35599 PyObject *swig_obj[1] ;
35600
35601 if (!args) SWIG_fail;
35602 swig_obj[0] = args;
35603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35604 if (!SWIG_IsOK(res1)) {
35605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35606 }
35607 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35608 {
35609 PyThreadState* __tstate = wxPyBeginAllowThreads();
35610 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35611 wxPyEndAllowThreads(__tstate);
35612 if (PyErr_Occurred()) SWIG_fail;
35613 }
35614 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35615 return resultobj;
35616 fail:
35617 return NULL;
35618 }
35619
35620
35621 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35622 PyObject *resultobj = 0;
35623 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35624 PyObject *result = 0 ;
35625 void *argp1 = 0 ;
35626 int res1 = 0 ;
35627 PyObject *swig_obj[1] ;
35628
35629 if (!args) SWIG_fail;
35630 swig_obj[0] = args;
35631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35632 if (!SWIG_IsOK(res1)) {
35633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35634 }
35635 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35636 {
35637 PyThreadState* __tstate = wxPyBeginAllowThreads();
35638 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35639 wxPyEndAllowThreads(__tstate);
35640 if (PyErr_Occurred()) SWIG_fail;
35641 }
35642 resultobj = result;
35643 return resultobj;
35644 fail:
35645 return NULL;
35646 }
35647
35648
35649 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35650 PyObject *resultobj = 0;
35651 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35652 wxTreeItemId *arg2 = 0 ;
35653 wxTreeItemId result;
35654 void *argp1 = 0 ;
35655 int res1 = 0 ;
35656 void *argp2 = 0 ;
35657 int res2 = 0 ;
35658 PyObject * obj0 = 0 ;
35659 PyObject * obj1 = 0 ;
35660 char * kwnames[] = {
35661 (char *) "self",(char *) "item", NULL
35662 };
35663
35664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35666 if (!SWIG_IsOK(res1)) {
35667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35668 }
35669 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35671 if (!SWIG_IsOK(res2)) {
35672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35673 }
35674 if (!argp2) {
35675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35676 }
35677 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35678 {
35679 PyThreadState* __tstate = wxPyBeginAllowThreads();
35680 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35681 wxPyEndAllowThreads(__tstate);
35682 if (PyErr_Occurred()) SWIG_fail;
35683 }
35684 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35685 return resultobj;
35686 fail:
35687 return NULL;
35688 }
35689
35690
35691 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35692 PyObject *resultobj = 0;
35693 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35694 wxTreeItemId *arg2 = 0 ;
35695 PyObject *result = 0 ;
35696 void *argp1 = 0 ;
35697 int res1 = 0 ;
35698 void *argp2 = 0 ;
35699 int res2 = 0 ;
35700 PyObject * obj0 = 0 ;
35701 PyObject * obj1 = 0 ;
35702 char * kwnames[] = {
35703 (char *) "self",(char *) "item", NULL
35704 };
35705
35706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35708 if (!SWIG_IsOK(res1)) {
35709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35710 }
35711 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35713 if (!SWIG_IsOK(res2)) {
35714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35715 }
35716 if (!argp2) {
35717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35718 }
35719 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35720 {
35721 PyThreadState* __tstate = wxPyBeginAllowThreads();
35722 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35723 wxPyEndAllowThreads(__tstate);
35724 if (PyErr_Occurred()) SWIG_fail;
35725 }
35726 resultobj = result;
35727 return resultobj;
35728 fail:
35729 return NULL;
35730 }
35731
35732
35733 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35734 PyObject *resultobj = 0;
35735 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35736 wxTreeItemId *arg2 = 0 ;
35737 void *arg3 = (void *) 0 ;
35738 PyObject *result = 0 ;
35739 void *argp1 = 0 ;
35740 int res1 = 0 ;
35741 void *argp2 = 0 ;
35742 int res2 = 0 ;
35743 int res3 ;
35744 PyObject * obj0 = 0 ;
35745 PyObject * obj1 = 0 ;
35746 PyObject * obj2 = 0 ;
35747 char * kwnames[] = {
35748 (char *) "self",(char *) "item",(char *) "cookie", NULL
35749 };
35750
35751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35753 if (!SWIG_IsOK(res1)) {
35754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35755 }
35756 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35758 if (!SWIG_IsOK(res2)) {
35759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35760 }
35761 if (!argp2) {
35762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35763 }
35764 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35765 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35766 if (!SWIG_IsOK(res3)) {
35767 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35768 }
35769 {
35770 PyThreadState* __tstate = wxPyBeginAllowThreads();
35771 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35772 wxPyEndAllowThreads(__tstate);
35773 if (PyErr_Occurred()) SWIG_fail;
35774 }
35775 resultobj = result;
35776 return resultobj;
35777 fail:
35778 return NULL;
35779 }
35780
35781
35782 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35783 PyObject *resultobj = 0;
35784 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35785 wxTreeItemId *arg2 = 0 ;
35786 wxTreeItemId result;
35787 void *argp1 = 0 ;
35788 int res1 = 0 ;
35789 void *argp2 = 0 ;
35790 int res2 = 0 ;
35791 PyObject * obj0 = 0 ;
35792 PyObject * obj1 = 0 ;
35793 char * kwnames[] = {
35794 (char *) "self",(char *) "item", NULL
35795 };
35796
35797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35799 if (!SWIG_IsOK(res1)) {
35800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35801 }
35802 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35804 if (!SWIG_IsOK(res2)) {
35805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35806 }
35807 if (!argp2) {
35808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35809 }
35810 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35811 {
35812 PyThreadState* __tstate = wxPyBeginAllowThreads();
35813 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35814 wxPyEndAllowThreads(__tstate);
35815 if (PyErr_Occurred()) SWIG_fail;
35816 }
35817 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35818 return resultobj;
35819 fail:
35820 return NULL;
35821 }
35822
35823
35824 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35825 PyObject *resultobj = 0;
35826 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35827 wxTreeItemId *arg2 = 0 ;
35828 wxTreeItemId result;
35829 void *argp1 = 0 ;
35830 int res1 = 0 ;
35831 void *argp2 = 0 ;
35832 int res2 = 0 ;
35833 PyObject * obj0 = 0 ;
35834 PyObject * obj1 = 0 ;
35835 char * kwnames[] = {
35836 (char *) "self",(char *) "item", NULL
35837 };
35838
35839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35841 if (!SWIG_IsOK(res1)) {
35842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35843 }
35844 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35846 if (!SWIG_IsOK(res2)) {
35847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35848 }
35849 if (!argp2) {
35850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35851 }
35852 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35853 {
35854 PyThreadState* __tstate = wxPyBeginAllowThreads();
35855 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35856 wxPyEndAllowThreads(__tstate);
35857 if (PyErr_Occurred()) SWIG_fail;
35858 }
35859 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35860 return resultobj;
35861 fail:
35862 return NULL;
35863 }
35864
35865
35866 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35867 PyObject *resultobj = 0;
35868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35869 wxTreeItemId *arg2 = 0 ;
35870 wxTreeItemId result;
35871 void *argp1 = 0 ;
35872 int res1 = 0 ;
35873 void *argp2 = 0 ;
35874 int res2 = 0 ;
35875 PyObject * obj0 = 0 ;
35876 PyObject * obj1 = 0 ;
35877 char * kwnames[] = {
35878 (char *) "self",(char *) "item", NULL
35879 };
35880
35881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35883 if (!SWIG_IsOK(res1)) {
35884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35885 }
35886 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35888 if (!SWIG_IsOK(res2)) {
35889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35890 }
35891 if (!argp2) {
35892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35893 }
35894 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35895 {
35896 PyThreadState* __tstate = wxPyBeginAllowThreads();
35897 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35898 wxPyEndAllowThreads(__tstate);
35899 if (PyErr_Occurred()) SWIG_fail;
35900 }
35901 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35902 return resultobj;
35903 fail:
35904 return NULL;
35905 }
35906
35907
35908 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35909 PyObject *resultobj = 0;
35910 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35911 wxTreeItemId result;
35912 void *argp1 = 0 ;
35913 int res1 = 0 ;
35914 PyObject *swig_obj[1] ;
35915
35916 if (!args) SWIG_fail;
35917 swig_obj[0] = args;
35918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35919 if (!SWIG_IsOK(res1)) {
35920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35921 }
35922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35923 {
35924 PyThreadState* __tstate = wxPyBeginAllowThreads();
35925 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35926 wxPyEndAllowThreads(__tstate);
35927 if (PyErr_Occurred()) SWIG_fail;
35928 }
35929 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35930 return resultobj;
35931 fail:
35932 return NULL;
35933 }
35934
35935
35936 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35937 PyObject *resultobj = 0;
35938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35939 wxTreeItemId *arg2 = 0 ;
35940 wxTreeItemId result;
35941 void *argp1 = 0 ;
35942 int res1 = 0 ;
35943 void *argp2 = 0 ;
35944 int res2 = 0 ;
35945 PyObject * obj0 = 0 ;
35946 PyObject * obj1 = 0 ;
35947 char * kwnames[] = {
35948 (char *) "self",(char *) "item", NULL
35949 };
35950
35951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35953 if (!SWIG_IsOK(res1)) {
35954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35955 }
35956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35958 if (!SWIG_IsOK(res2)) {
35959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35960 }
35961 if (!argp2) {
35962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35963 }
35964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35965 {
35966 PyThreadState* __tstate = wxPyBeginAllowThreads();
35967 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35968 wxPyEndAllowThreads(__tstate);
35969 if (PyErr_Occurred()) SWIG_fail;
35970 }
35971 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35972 return resultobj;
35973 fail:
35974 return NULL;
35975 }
35976
35977
35978 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35979 PyObject *resultobj = 0;
35980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35981 wxTreeItemId *arg2 = 0 ;
35982 wxTreeItemId result;
35983 void *argp1 = 0 ;
35984 int res1 = 0 ;
35985 void *argp2 = 0 ;
35986 int res2 = 0 ;
35987 PyObject * obj0 = 0 ;
35988 PyObject * obj1 = 0 ;
35989 char * kwnames[] = {
35990 (char *) "self",(char *) "item", NULL
35991 };
35992
35993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35995 if (!SWIG_IsOK(res1)) {
35996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35997 }
35998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36000 if (!SWIG_IsOK(res2)) {
36001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36002 }
36003 if (!argp2) {
36004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36005 }
36006 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36007 {
36008 PyThreadState* __tstate = wxPyBeginAllowThreads();
36009 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36010 wxPyEndAllowThreads(__tstate);
36011 if (PyErr_Occurred()) SWIG_fail;
36012 }
36013 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36014 return resultobj;
36015 fail:
36016 return NULL;
36017 }
36018
36019
36020 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36021 PyObject *resultobj = 0;
36022 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36023 wxString *arg2 = 0 ;
36024 int arg3 = (int) -1 ;
36025 int arg4 = (int) -1 ;
36026 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36027 wxTreeItemId result;
36028 void *argp1 = 0 ;
36029 int res1 = 0 ;
36030 bool temp2 = false ;
36031 int val3 ;
36032 int ecode3 = 0 ;
36033 int val4 ;
36034 int ecode4 = 0 ;
36035 int res5 = 0 ;
36036 PyObject * obj0 = 0 ;
36037 PyObject * obj1 = 0 ;
36038 PyObject * obj2 = 0 ;
36039 PyObject * obj3 = 0 ;
36040 PyObject * obj4 = 0 ;
36041 char * kwnames[] = {
36042 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36043 };
36044
36045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36047 if (!SWIG_IsOK(res1)) {
36048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36049 }
36050 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36051 {
36052 arg2 = wxString_in_helper(obj1);
36053 if (arg2 == NULL) SWIG_fail;
36054 temp2 = true;
36055 }
36056 if (obj2) {
36057 ecode3 = SWIG_AsVal_int(obj2, &val3);
36058 if (!SWIG_IsOK(ecode3)) {
36059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36060 }
36061 arg3 = static_cast< int >(val3);
36062 }
36063 if (obj3) {
36064 ecode4 = SWIG_AsVal_int(obj3, &val4);
36065 if (!SWIG_IsOK(ecode4)) {
36066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36067 }
36068 arg4 = static_cast< int >(val4);
36069 }
36070 if (obj4) {
36071 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36072 if (!SWIG_IsOK(res5)) {
36073 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36074 }
36075 }
36076 {
36077 PyThreadState* __tstate = wxPyBeginAllowThreads();
36078 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36079 wxPyEndAllowThreads(__tstate);
36080 if (PyErr_Occurred()) SWIG_fail;
36081 }
36082 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36083 {
36084 if (temp2)
36085 delete arg2;
36086 }
36087 return resultobj;
36088 fail:
36089 {
36090 if (temp2)
36091 delete arg2;
36092 }
36093 return NULL;
36094 }
36095
36096
36097 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36098 PyObject *resultobj = 0;
36099 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36100 wxTreeItemId *arg2 = 0 ;
36101 wxString *arg3 = 0 ;
36102 int arg4 = (int) -1 ;
36103 int arg5 = (int) -1 ;
36104 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36105 wxTreeItemId result;
36106 void *argp1 = 0 ;
36107 int res1 = 0 ;
36108 void *argp2 = 0 ;
36109 int res2 = 0 ;
36110 bool temp3 = false ;
36111 int val4 ;
36112 int ecode4 = 0 ;
36113 int val5 ;
36114 int ecode5 = 0 ;
36115 int res6 = 0 ;
36116 PyObject * obj0 = 0 ;
36117 PyObject * obj1 = 0 ;
36118 PyObject * obj2 = 0 ;
36119 PyObject * obj3 = 0 ;
36120 PyObject * obj4 = 0 ;
36121 PyObject * obj5 = 0 ;
36122 char * kwnames[] = {
36123 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36124 };
36125
36126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36128 if (!SWIG_IsOK(res1)) {
36129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36130 }
36131 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36132 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36133 if (!SWIG_IsOK(res2)) {
36134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36135 }
36136 if (!argp2) {
36137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36138 }
36139 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36140 {
36141 arg3 = wxString_in_helper(obj2);
36142 if (arg3 == NULL) SWIG_fail;
36143 temp3 = true;
36144 }
36145 if (obj3) {
36146 ecode4 = SWIG_AsVal_int(obj3, &val4);
36147 if (!SWIG_IsOK(ecode4)) {
36148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36149 }
36150 arg4 = static_cast< int >(val4);
36151 }
36152 if (obj4) {
36153 ecode5 = SWIG_AsVal_int(obj4, &val5);
36154 if (!SWIG_IsOK(ecode5)) {
36155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36156 }
36157 arg5 = static_cast< int >(val5);
36158 }
36159 if (obj5) {
36160 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36161 if (!SWIG_IsOK(res6)) {
36162 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36163 }
36164 }
36165 {
36166 PyThreadState* __tstate = wxPyBeginAllowThreads();
36167 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36168 wxPyEndAllowThreads(__tstate);
36169 if (PyErr_Occurred()) SWIG_fail;
36170 }
36171 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36172 {
36173 if (temp3)
36174 delete arg3;
36175 }
36176 return resultobj;
36177 fail:
36178 {
36179 if (temp3)
36180 delete arg3;
36181 }
36182 return NULL;
36183 }
36184
36185
36186 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36187 PyObject *resultobj = 0;
36188 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36189 wxTreeItemId *arg2 = 0 ;
36190 wxTreeItemId *arg3 = 0 ;
36191 wxString *arg4 = 0 ;
36192 int arg5 = (int) -1 ;
36193 int arg6 = (int) -1 ;
36194 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36195 wxTreeItemId result;
36196 void *argp1 = 0 ;
36197 int res1 = 0 ;
36198 void *argp2 = 0 ;
36199 int res2 = 0 ;
36200 void *argp3 = 0 ;
36201 int res3 = 0 ;
36202 bool temp4 = false ;
36203 int val5 ;
36204 int ecode5 = 0 ;
36205 int val6 ;
36206 int ecode6 = 0 ;
36207 int res7 = 0 ;
36208 PyObject * obj0 = 0 ;
36209 PyObject * obj1 = 0 ;
36210 PyObject * obj2 = 0 ;
36211 PyObject * obj3 = 0 ;
36212 PyObject * obj4 = 0 ;
36213 PyObject * obj5 = 0 ;
36214 PyObject * obj6 = 0 ;
36215 char * kwnames[] = {
36216 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36217 };
36218
36219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36221 if (!SWIG_IsOK(res1)) {
36222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36223 }
36224 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36226 if (!SWIG_IsOK(res2)) {
36227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36228 }
36229 if (!argp2) {
36230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36231 }
36232 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36233 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36234 if (!SWIG_IsOK(res3)) {
36235 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36236 }
36237 if (!argp3) {
36238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36239 }
36240 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36241 {
36242 arg4 = wxString_in_helper(obj3);
36243 if (arg4 == NULL) SWIG_fail;
36244 temp4 = true;
36245 }
36246 if (obj4) {
36247 ecode5 = SWIG_AsVal_int(obj4, &val5);
36248 if (!SWIG_IsOK(ecode5)) {
36249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36250 }
36251 arg5 = static_cast< int >(val5);
36252 }
36253 if (obj5) {
36254 ecode6 = SWIG_AsVal_int(obj5, &val6);
36255 if (!SWIG_IsOK(ecode6)) {
36256 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36257 }
36258 arg6 = static_cast< int >(val6);
36259 }
36260 if (obj6) {
36261 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36262 if (!SWIG_IsOK(res7)) {
36263 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36264 }
36265 }
36266 {
36267 PyThreadState* __tstate = wxPyBeginAllowThreads();
36268 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36269 wxPyEndAllowThreads(__tstate);
36270 if (PyErr_Occurred()) SWIG_fail;
36271 }
36272 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36273 {
36274 if (temp4)
36275 delete arg4;
36276 }
36277 return resultobj;
36278 fail:
36279 {
36280 if (temp4)
36281 delete arg4;
36282 }
36283 return NULL;
36284 }
36285
36286
36287 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36288 PyObject *resultobj = 0;
36289 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36290 wxTreeItemId *arg2 = 0 ;
36291 size_t arg3 ;
36292 wxString *arg4 = 0 ;
36293 int arg5 = (int) -1 ;
36294 int arg6 = (int) -1 ;
36295 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36296 wxTreeItemId result;
36297 void *argp1 = 0 ;
36298 int res1 = 0 ;
36299 void *argp2 = 0 ;
36300 int res2 = 0 ;
36301 size_t val3 ;
36302 int ecode3 = 0 ;
36303 bool temp4 = false ;
36304 int val5 ;
36305 int ecode5 = 0 ;
36306 int val6 ;
36307 int ecode6 = 0 ;
36308 int res7 = 0 ;
36309 PyObject * obj0 = 0 ;
36310 PyObject * obj1 = 0 ;
36311 PyObject * obj2 = 0 ;
36312 PyObject * obj3 = 0 ;
36313 PyObject * obj4 = 0 ;
36314 PyObject * obj5 = 0 ;
36315 PyObject * obj6 = 0 ;
36316 char * kwnames[] = {
36317 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36318 };
36319
36320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36322 if (!SWIG_IsOK(res1)) {
36323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36324 }
36325 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36327 if (!SWIG_IsOK(res2)) {
36328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36329 }
36330 if (!argp2) {
36331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36332 }
36333 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36334 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36335 if (!SWIG_IsOK(ecode3)) {
36336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36337 }
36338 arg3 = static_cast< size_t >(val3);
36339 {
36340 arg4 = wxString_in_helper(obj3);
36341 if (arg4 == NULL) SWIG_fail;
36342 temp4 = true;
36343 }
36344 if (obj4) {
36345 ecode5 = SWIG_AsVal_int(obj4, &val5);
36346 if (!SWIG_IsOK(ecode5)) {
36347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36348 }
36349 arg5 = static_cast< int >(val5);
36350 }
36351 if (obj5) {
36352 ecode6 = SWIG_AsVal_int(obj5, &val6);
36353 if (!SWIG_IsOK(ecode6)) {
36354 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36355 }
36356 arg6 = static_cast< int >(val6);
36357 }
36358 if (obj6) {
36359 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36360 if (!SWIG_IsOK(res7)) {
36361 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36362 }
36363 }
36364 {
36365 PyThreadState* __tstate = wxPyBeginAllowThreads();
36366 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36367 wxPyEndAllowThreads(__tstate);
36368 if (PyErr_Occurred()) SWIG_fail;
36369 }
36370 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36371 {
36372 if (temp4)
36373 delete arg4;
36374 }
36375 return resultobj;
36376 fail:
36377 {
36378 if (temp4)
36379 delete arg4;
36380 }
36381 return NULL;
36382 }
36383
36384
36385 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36386 PyObject *resultobj = 0;
36387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36388 wxTreeItemId *arg2 = 0 ;
36389 wxString *arg3 = 0 ;
36390 int arg4 = (int) -1 ;
36391 int arg5 = (int) -1 ;
36392 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36393 wxTreeItemId result;
36394 void *argp1 = 0 ;
36395 int res1 = 0 ;
36396 void *argp2 = 0 ;
36397 int res2 = 0 ;
36398 bool temp3 = false ;
36399 int val4 ;
36400 int ecode4 = 0 ;
36401 int val5 ;
36402 int ecode5 = 0 ;
36403 int res6 = 0 ;
36404 PyObject * obj0 = 0 ;
36405 PyObject * obj1 = 0 ;
36406 PyObject * obj2 = 0 ;
36407 PyObject * obj3 = 0 ;
36408 PyObject * obj4 = 0 ;
36409 PyObject * obj5 = 0 ;
36410 char * kwnames[] = {
36411 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36412 };
36413
36414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36416 if (!SWIG_IsOK(res1)) {
36417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36418 }
36419 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36420 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36421 if (!SWIG_IsOK(res2)) {
36422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36423 }
36424 if (!argp2) {
36425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36426 }
36427 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36428 {
36429 arg3 = wxString_in_helper(obj2);
36430 if (arg3 == NULL) SWIG_fail;
36431 temp3 = true;
36432 }
36433 if (obj3) {
36434 ecode4 = SWIG_AsVal_int(obj3, &val4);
36435 if (!SWIG_IsOK(ecode4)) {
36436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36437 }
36438 arg4 = static_cast< int >(val4);
36439 }
36440 if (obj4) {
36441 ecode5 = SWIG_AsVal_int(obj4, &val5);
36442 if (!SWIG_IsOK(ecode5)) {
36443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36444 }
36445 arg5 = static_cast< int >(val5);
36446 }
36447 if (obj5) {
36448 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36449 if (!SWIG_IsOK(res6)) {
36450 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36451 }
36452 }
36453 {
36454 PyThreadState* __tstate = wxPyBeginAllowThreads();
36455 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36456 wxPyEndAllowThreads(__tstate);
36457 if (PyErr_Occurred()) SWIG_fail;
36458 }
36459 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36460 {
36461 if (temp3)
36462 delete arg3;
36463 }
36464 return resultobj;
36465 fail:
36466 {
36467 if (temp3)
36468 delete arg3;
36469 }
36470 return NULL;
36471 }
36472
36473
36474 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36475 PyObject *resultobj = 0;
36476 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36477 wxTreeItemId *arg2 = 0 ;
36478 void *argp1 = 0 ;
36479 int res1 = 0 ;
36480 void *argp2 = 0 ;
36481 int res2 = 0 ;
36482 PyObject * obj0 = 0 ;
36483 PyObject * obj1 = 0 ;
36484 char * kwnames[] = {
36485 (char *) "self",(char *) "item", NULL
36486 };
36487
36488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36490 if (!SWIG_IsOK(res1)) {
36491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36492 }
36493 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36495 if (!SWIG_IsOK(res2)) {
36496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36497 }
36498 if (!argp2) {
36499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36500 }
36501 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36502 {
36503 PyThreadState* __tstate = wxPyBeginAllowThreads();
36504 (arg1)->Delete((wxTreeItemId const &)*arg2);
36505 wxPyEndAllowThreads(__tstate);
36506 if (PyErr_Occurred()) SWIG_fail;
36507 }
36508 resultobj = SWIG_Py_Void();
36509 return resultobj;
36510 fail:
36511 return NULL;
36512 }
36513
36514
36515 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36516 PyObject *resultobj = 0;
36517 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36518 wxTreeItemId *arg2 = 0 ;
36519 void *argp1 = 0 ;
36520 int res1 = 0 ;
36521 void *argp2 = 0 ;
36522 int res2 = 0 ;
36523 PyObject * obj0 = 0 ;
36524 PyObject * obj1 = 0 ;
36525 char * kwnames[] = {
36526 (char *) "self",(char *) "item", NULL
36527 };
36528
36529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36531 if (!SWIG_IsOK(res1)) {
36532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36533 }
36534 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36535 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36536 if (!SWIG_IsOK(res2)) {
36537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36538 }
36539 if (!argp2) {
36540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36541 }
36542 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36543 {
36544 PyThreadState* __tstate = wxPyBeginAllowThreads();
36545 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36546 wxPyEndAllowThreads(__tstate);
36547 if (PyErr_Occurred()) SWIG_fail;
36548 }
36549 resultobj = SWIG_Py_Void();
36550 return resultobj;
36551 fail:
36552 return NULL;
36553 }
36554
36555
36556 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36557 PyObject *resultobj = 0;
36558 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36559 void *argp1 = 0 ;
36560 int res1 = 0 ;
36561 PyObject *swig_obj[1] ;
36562
36563 if (!args) SWIG_fail;
36564 swig_obj[0] = args;
36565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36566 if (!SWIG_IsOK(res1)) {
36567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36568 }
36569 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36570 {
36571 PyThreadState* __tstate = wxPyBeginAllowThreads();
36572 (arg1)->DeleteAllItems();
36573 wxPyEndAllowThreads(__tstate);
36574 if (PyErr_Occurred()) SWIG_fail;
36575 }
36576 resultobj = SWIG_Py_Void();
36577 return resultobj;
36578 fail:
36579 return NULL;
36580 }
36581
36582
36583 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36584 PyObject *resultobj = 0;
36585 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36586 wxTreeItemId *arg2 = 0 ;
36587 void *argp1 = 0 ;
36588 int res1 = 0 ;
36589 void *argp2 = 0 ;
36590 int res2 = 0 ;
36591 PyObject * obj0 = 0 ;
36592 PyObject * obj1 = 0 ;
36593 char * kwnames[] = {
36594 (char *) "self",(char *) "item", NULL
36595 };
36596
36597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36599 if (!SWIG_IsOK(res1)) {
36600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36601 }
36602 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36604 if (!SWIG_IsOK(res2)) {
36605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36606 }
36607 if (!argp2) {
36608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36609 }
36610 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36611 {
36612 PyThreadState* __tstate = wxPyBeginAllowThreads();
36613 (arg1)->Expand((wxTreeItemId const &)*arg2);
36614 wxPyEndAllowThreads(__tstate);
36615 if (PyErr_Occurred()) SWIG_fail;
36616 }
36617 resultobj = SWIG_Py_Void();
36618 return resultobj;
36619 fail:
36620 return NULL;
36621 }
36622
36623
36624 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36625 PyObject *resultobj = 0;
36626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36627 wxTreeItemId *arg2 = 0 ;
36628 void *argp1 = 0 ;
36629 int res1 = 0 ;
36630 void *argp2 = 0 ;
36631 int res2 = 0 ;
36632 PyObject * obj0 = 0 ;
36633 PyObject * obj1 = 0 ;
36634 char * kwnames[] = {
36635 (char *) "self",(char *) "item", NULL
36636 };
36637
36638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36640 if (!SWIG_IsOK(res1)) {
36641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36642 }
36643 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36645 if (!SWIG_IsOK(res2)) {
36646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36647 }
36648 if (!argp2) {
36649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36650 }
36651 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36652 {
36653 PyThreadState* __tstate = wxPyBeginAllowThreads();
36654 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36655 wxPyEndAllowThreads(__tstate);
36656 if (PyErr_Occurred()) SWIG_fail;
36657 }
36658 resultobj = SWIG_Py_Void();
36659 return resultobj;
36660 fail:
36661 return NULL;
36662 }
36663
36664
36665 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36666 PyObject *resultobj = 0;
36667 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36668 void *argp1 = 0 ;
36669 int res1 = 0 ;
36670 PyObject *swig_obj[1] ;
36671
36672 if (!args) SWIG_fail;
36673 swig_obj[0] = args;
36674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36675 if (!SWIG_IsOK(res1)) {
36676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36677 }
36678 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36679 {
36680 PyThreadState* __tstate = wxPyBeginAllowThreads();
36681 (arg1)->ExpandAll();
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_Collapse(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_Collapse",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_Collapse" "', 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_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36715 }
36716 if (!argp2) {
36717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36718 }
36719 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36720 {
36721 PyThreadState* __tstate = wxPyBeginAllowThreads();
36722 (arg1)->Collapse((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_CollapseAndReset(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_CollapseAndReset",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_CollapseAndReset" "', 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_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36756 }
36757 if (!argp2) {
36758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36759 }
36760 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36761 {
36762 PyThreadState* __tstate = wxPyBeginAllowThreads();
36763 (arg1)->CollapseAndReset((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_Toggle(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_Toggle",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_Toggle" "', 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_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36797 }
36798 if (!argp2) {
36799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36800 }
36801 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36802 {
36803 PyThreadState* __tstate = wxPyBeginAllowThreads();
36804 (arg1)->Toggle((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_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36816 PyObject *resultobj = 0;
36817 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36818 void *argp1 = 0 ;
36819 int res1 = 0 ;
36820 PyObject *swig_obj[1] ;
36821
36822 if (!args) SWIG_fail;
36823 swig_obj[0] = args;
36824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36825 if (!SWIG_IsOK(res1)) {
36826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36827 }
36828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36829 {
36830 PyThreadState* __tstate = wxPyBeginAllowThreads();
36831 (arg1)->Unselect();
36832 wxPyEndAllowThreads(__tstate);
36833 if (PyErr_Occurred()) SWIG_fail;
36834 }
36835 resultobj = SWIG_Py_Void();
36836 return resultobj;
36837 fail:
36838 return NULL;
36839 }
36840
36841
36842 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36843 PyObject *resultobj = 0;
36844 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36845 wxTreeItemId *arg2 = 0 ;
36846 void *argp1 = 0 ;
36847 int res1 = 0 ;
36848 void *argp2 = 0 ;
36849 int res2 = 0 ;
36850 PyObject * obj0 = 0 ;
36851 PyObject * obj1 = 0 ;
36852 char * kwnames[] = {
36853 (char *) "self",(char *) "item", NULL
36854 };
36855
36856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36858 if (!SWIG_IsOK(res1)) {
36859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36860 }
36861 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36863 if (!SWIG_IsOK(res2)) {
36864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36865 }
36866 if (!argp2) {
36867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36868 }
36869 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36870 {
36871 PyThreadState* __tstate = wxPyBeginAllowThreads();
36872 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36873 wxPyEndAllowThreads(__tstate);
36874 if (PyErr_Occurred()) SWIG_fail;
36875 }
36876 resultobj = SWIG_Py_Void();
36877 return resultobj;
36878 fail:
36879 return NULL;
36880 }
36881
36882
36883 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36884 PyObject *resultobj = 0;
36885 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36886 void *argp1 = 0 ;
36887 int res1 = 0 ;
36888 PyObject *swig_obj[1] ;
36889
36890 if (!args) SWIG_fail;
36891 swig_obj[0] = args;
36892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36893 if (!SWIG_IsOK(res1)) {
36894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36895 }
36896 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36897 {
36898 PyThreadState* __tstate = wxPyBeginAllowThreads();
36899 (arg1)->UnselectAll();
36900 wxPyEndAllowThreads(__tstate);
36901 if (PyErr_Occurred()) SWIG_fail;
36902 }
36903 resultobj = SWIG_Py_Void();
36904 return resultobj;
36905 fail:
36906 return NULL;
36907 }
36908
36909
36910 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36911 PyObject *resultobj = 0;
36912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36913 wxTreeItemId *arg2 = 0 ;
36914 bool arg3 = (bool) true ;
36915 void *argp1 = 0 ;
36916 int res1 = 0 ;
36917 void *argp2 = 0 ;
36918 int res2 = 0 ;
36919 bool val3 ;
36920 int ecode3 = 0 ;
36921 PyObject * obj0 = 0 ;
36922 PyObject * obj1 = 0 ;
36923 PyObject * obj2 = 0 ;
36924 char * kwnames[] = {
36925 (char *) "self",(char *) "item",(char *) "select", NULL
36926 };
36927
36928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36930 if (!SWIG_IsOK(res1)) {
36931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36932 }
36933 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36934 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36935 if (!SWIG_IsOK(res2)) {
36936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36937 }
36938 if (!argp2) {
36939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36940 }
36941 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36942 if (obj2) {
36943 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36944 if (!SWIG_IsOK(ecode3)) {
36945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36946 }
36947 arg3 = static_cast< bool >(val3);
36948 }
36949 {
36950 PyThreadState* __tstate = wxPyBeginAllowThreads();
36951 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36952 wxPyEndAllowThreads(__tstate);
36953 if (PyErr_Occurred()) SWIG_fail;
36954 }
36955 resultobj = SWIG_Py_Void();
36956 return resultobj;
36957 fail:
36958 return NULL;
36959 }
36960
36961
36962 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36963 PyObject *resultobj = 0;
36964 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36965 wxTreeItemId *arg2 = 0 ;
36966 void *argp1 = 0 ;
36967 int res1 = 0 ;
36968 void *argp2 = 0 ;
36969 int res2 = 0 ;
36970 PyObject * obj0 = 0 ;
36971 PyObject * obj1 = 0 ;
36972 char * kwnames[] = {
36973 (char *) "self",(char *) "item", NULL
36974 };
36975
36976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36978 if (!SWIG_IsOK(res1)) {
36979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36980 }
36981 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36982 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36983 if (!SWIG_IsOK(res2)) {
36984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36985 }
36986 if (!argp2) {
36987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36988 }
36989 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36990 {
36991 PyThreadState* __tstate = wxPyBeginAllowThreads();
36992 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36993 wxPyEndAllowThreads(__tstate);
36994 if (PyErr_Occurred()) SWIG_fail;
36995 }
36996 resultobj = SWIG_Py_Void();
36997 return resultobj;
36998 fail:
36999 return NULL;
37000 }
37001
37002
37003 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37004 PyObject *resultobj = 0;
37005 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37006 wxTreeItemId *arg2 = 0 ;
37007 void *argp1 = 0 ;
37008 int res1 = 0 ;
37009 void *argp2 = 0 ;
37010 int res2 = 0 ;
37011 PyObject * obj0 = 0 ;
37012 PyObject * obj1 = 0 ;
37013 char * kwnames[] = {
37014 (char *) "self",(char *) "item", NULL
37015 };
37016
37017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37019 if (!SWIG_IsOK(res1)) {
37020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37021 }
37022 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37024 if (!SWIG_IsOK(res2)) {
37025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37026 }
37027 if (!argp2) {
37028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37029 }
37030 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37031 {
37032 PyThreadState* __tstate = wxPyBeginAllowThreads();
37033 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37034 wxPyEndAllowThreads(__tstate);
37035 if (PyErr_Occurred()) SWIG_fail;
37036 }
37037 resultobj = SWIG_Py_Void();
37038 return resultobj;
37039 fail:
37040 return NULL;
37041 }
37042
37043
37044 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37045 PyObject *resultobj = 0;
37046 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37047 wxTreeItemId *arg2 = 0 ;
37048 void *argp1 = 0 ;
37049 int res1 = 0 ;
37050 void *argp2 = 0 ;
37051 int res2 = 0 ;
37052 PyObject * obj0 = 0 ;
37053 PyObject * obj1 = 0 ;
37054 char * kwnames[] = {
37055 (char *) "self",(char *) "item", NULL
37056 };
37057
37058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37060 if (!SWIG_IsOK(res1)) {
37061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37062 }
37063 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37065 if (!SWIG_IsOK(res2)) {
37066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37067 }
37068 if (!argp2) {
37069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37070 }
37071 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37072 {
37073 PyThreadState* __tstate = wxPyBeginAllowThreads();
37074 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37075 wxPyEndAllowThreads(__tstate);
37076 if (PyErr_Occurred()) SWIG_fail;
37077 }
37078 resultobj = SWIG_Py_Void();
37079 return resultobj;
37080 fail:
37081 return NULL;
37082 }
37083
37084
37085 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37086 PyObject *resultobj = 0;
37087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37088 wxTreeItemId *arg2 = 0 ;
37089 void *argp1 = 0 ;
37090 int res1 = 0 ;
37091 void *argp2 = 0 ;
37092 int res2 = 0 ;
37093 PyObject * obj0 = 0 ;
37094 PyObject * obj1 = 0 ;
37095 char * kwnames[] = {
37096 (char *) "self",(char *) "item", NULL
37097 };
37098
37099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37101 if (!SWIG_IsOK(res1)) {
37102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37103 }
37104 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37106 if (!SWIG_IsOK(res2)) {
37107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37108 }
37109 if (!argp2) {
37110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37111 }
37112 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37113 {
37114 PyThreadState* __tstate = wxPyBeginAllowThreads();
37115 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37116 wxPyEndAllowThreads(__tstate);
37117 if (PyErr_Occurred()) SWIG_fail;
37118 }
37119 resultobj = SWIG_Py_Void();
37120 return resultobj;
37121 fail:
37122 return NULL;
37123 }
37124
37125
37126 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37127 PyObject *resultobj = 0;
37128 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37129 wxTextCtrl *result = 0 ;
37130 void *argp1 = 0 ;
37131 int res1 = 0 ;
37132 PyObject *swig_obj[1] ;
37133
37134 if (!args) SWIG_fail;
37135 swig_obj[0] = args;
37136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37137 if (!SWIG_IsOK(res1)) {
37138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37139 }
37140 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37141 {
37142 PyThreadState* __tstate = wxPyBeginAllowThreads();
37143 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37144 wxPyEndAllowThreads(__tstate);
37145 if (PyErr_Occurred()) SWIG_fail;
37146 }
37147 {
37148 resultobj = wxPyMake_wxObject(result, 0);
37149 }
37150 return resultobj;
37151 fail:
37152 return NULL;
37153 }
37154
37155
37156 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37157 PyObject *resultobj = 0;
37158 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37159 wxTreeItemId *arg2 = 0 ;
37160 void *argp1 = 0 ;
37161 int res1 = 0 ;
37162 void *argp2 = 0 ;
37163 int res2 = 0 ;
37164 PyObject * obj0 = 0 ;
37165 PyObject * obj1 = 0 ;
37166 char * kwnames[] = {
37167 (char *) "self",(char *) "item", NULL
37168 };
37169
37170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37172 if (!SWIG_IsOK(res1)) {
37173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37174 }
37175 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37177 if (!SWIG_IsOK(res2)) {
37178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37179 }
37180 if (!argp2) {
37181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37182 }
37183 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37184 {
37185 PyThreadState* __tstate = wxPyBeginAllowThreads();
37186 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37187 wxPyEndAllowThreads(__tstate);
37188 if (PyErr_Occurred()) SWIG_fail;
37189 }
37190 resultobj = SWIG_Py_Void();
37191 return resultobj;
37192 fail:
37193 return NULL;
37194 }
37195
37196
37197 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37198 PyObject *resultobj = 0;
37199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37200 wxPoint *arg2 = 0 ;
37201 int *arg3 = 0 ;
37202 wxTreeItemId result;
37203 void *argp1 = 0 ;
37204 int res1 = 0 ;
37205 wxPoint temp2 ;
37206 int temp3 ;
37207 int res3 = SWIG_TMPOBJ ;
37208 PyObject * obj0 = 0 ;
37209 PyObject * obj1 = 0 ;
37210 char * kwnames[] = {
37211 (char *) "self",(char *) "point", NULL
37212 };
37213
37214 arg3 = &temp3;
37215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37217 if (!SWIG_IsOK(res1)) {
37218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37219 }
37220 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37221 {
37222 arg2 = &temp2;
37223 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37224 }
37225 {
37226 PyThreadState* __tstate = wxPyBeginAllowThreads();
37227 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37228 wxPyEndAllowThreads(__tstate);
37229 if (PyErr_Occurred()) SWIG_fail;
37230 }
37231 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37232 if (SWIG_IsTmpObj(res3)) {
37233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37234 } else {
37235 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37237 }
37238 return resultobj;
37239 fail:
37240 return NULL;
37241 }
37242
37243
37244 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37245 PyObject *resultobj = 0;
37246 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37247 wxTreeItemId *arg2 = 0 ;
37248 bool arg3 = (bool) false ;
37249 PyObject *result = 0 ;
37250 void *argp1 = 0 ;
37251 int res1 = 0 ;
37252 void *argp2 = 0 ;
37253 int res2 = 0 ;
37254 bool val3 ;
37255 int ecode3 = 0 ;
37256 PyObject * obj0 = 0 ;
37257 PyObject * obj1 = 0 ;
37258 PyObject * obj2 = 0 ;
37259 char * kwnames[] = {
37260 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37261 };
37262
37263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37265 if (!SWIG_IsOK(res1)) {
37266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37267 }
37268 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37270 if (!SWIG_IsOK(res2)) {
37271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37272 }
37273 if (!argp2) {
37274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37275 }
37276 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37277 if (obj2) {
37278 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37279 if (!SWIG_IsOK(ecode3)) {
37280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37281 }
37282 arg3 = static_cast< bool >(val3);
37283 }
37284 {
37285 PyThreadState* __tstate = wxPyBeginAllowThreads();
37286 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37287 wxPyEndAllowThreads(__tstate);
37288 if (PyErr_Occurred()) SWIG_fail;
37289 }
37290 resultobj = result;
37291 return resultobj;
37292 fail:
37293 return NULL;
37294 }
37295
37296
37297 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37298 PyObject *resultobj = 0;
37299 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37300 SwigValueWrapper<wxVisualAttributes > result;
37301 int val1 ;
37302 int ecode1 = 0 ;
37303 PyObject * obj0 = 0 ;
37304 char * kwnames[] = {
37305 (char *) "variant", NULL
37306 };
37307
37308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37309 if (obj0) {
37310 ecode1 = SWIG_AsVal_int(obj0, &val1);
37311 if (!SWIG_IsOK(ecode1)) {
37312 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37313 }
37314 arg1 = static_cast< wxWindowVariant >(val1);
37315 }
37316 {
37317 if (!wxPyCheckForApp()) SWIG_fail;
37318 PyThreadState* __tstate = wxPyBeginAllowThreads();
37319 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37320 wxPyEndAllowThreads(__tstate);
37321 if (PyErr_Occurred()) SWIG_fail;
37322 }
37323 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37324 return resultobj;
37325 fail:
37326 return NULL;
37327 }
37328
37329
37330 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37331 PyObject *resultobj = 0;
37332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37333 bool arg2 ;
37334 void *argp1 = 0 ;
37335 int res1 = 0 ;
37336 bool val2 ;
37337 int ecode2 = 0 ;
37338 PyObject * obj0 = 0 ;
37339 PyObject * obj1 = 0 ;
37340 char * kwnames[] = {
37341 (char *) "self",(char *) "q", NULL
37342 };
37343
37344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37346 if (!SWIG_IsOK(res1)) {
37347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37348 }
37349 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37350 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37351 if (!SWIG_IsOK(ecode2)) {
37352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37353 }
37354 arg2 = static_cast< bool >(val2);
37355 {
37356 PyThreadState* __tstate = wxPyBeginAllowThreads();
37357 (arg1)->SetQuickBestSize(arg2);
37358 wxPyEndAllowThreads(__tstate);
37359 if (PyErr_Occurred()) SWIG_fail;
37360 }
37361 resultobj = SWIG_Py_Void();
37362 return resultobj;
37363 fail:
37364 return NULL;
37365 }
37366
37367
37368 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37369 PyObject *resultobj = 0;
37370 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37371 bool result;
37372 void *argp1 = 0 ;
37373 int res1 = 0 ;
37374 PyObject *swig_obj[1] ;
37375
37376 if (!args) SWIG_fail;
37377 swig_obj[0] = args;
37378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37379 if (!SWIG_IsOK(res1)) {
37380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37381 }
37382 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37383 {
37384 PyThreadState* __tstate = wxPyBeginAllowThreads();
37385 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37386 wxPyEndAllowThreads(__tstate);
37387 if (PyErr_Occurred()) SWIG_fail;
37388 }
37389 {
37390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37391 }
37392 return resultobj;
37393 fail:
37394 return NULL;
37395 }
37396
37397
37398 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37399 PyObject *obj;
37400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37401 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37402 return SWIG_Py_Void();
37403 }
37404
37405 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37406 return SWIG_Python_InitShadowInstance(args);
37407 }
37408
37409 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37410 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37411 return 1;
37412 }
37413
37414
37415 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37416 PyObject *pyobj = 0;
37417
37418 {
37419 #if wxUSE_UNICODE
37420 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37421 #else
37422 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37423 #endif
37424 }
37425 return pyobj;
37426 }
37427
37428
37429 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37430 PyObject *resultobj = 0;
37431 wxWindow *arg1 = (wxWindow *) 0 ;
37432 int arg2 = (int) (int)-1 ;
37433 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37434 wxString *arg3 = (wxString *) &arg3_defvalue ;
37435 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37436 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37437 wxSize const &arg5_defvalue = wxDefaultSize ;
37438 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37439 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37440 wxString const &arg7_defvalue = wxPyEmptyString ;
37441 wxString *arg7 = (wxString *) &arg7_defvalue ;
37442 int arg8 = (int) 0 ;
37443 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37444 wxString *arg9 = (wxString *) &arg9_defvalue ;
37445 wxGenericDirCtrl *result = 0 ;
37446 void *argp1 = 0 ;
37447 int res1 = 0 ;
37448 int val2 ;
37449 int ecode2 = 0 ;
37450 bool temp3 = false ;
37451 wxPoint temp4 ;
37452 wxSize temp5 ;
37453 long val6 ;
37454 int ecode6 = 0 ;
37455 bool temp7 = false ;
37456 int val8 ;
37457 int ecode8 = 0 ;
37458 bool temp9 = false ;
37459 PyObject * obj0 = 0 ;
37460 PyObject * obj1 = 0 ;
37461 PyObject * obj2 = 0 ;
37462 PyObject * obj3 = 0 ;
37463 PyObject * obj4 = 0 ;
37464 PyObject * obj5 = 0 ;
37465 PyObject * obj6 = 0 ;
37466 PyObject * obj7 = 0 ;
37467 PyObject * obj8 = 0 ;
37468 char * kwnames[] = {
37469 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37470 };
37471
37472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37474 if (!SWIG_IsOK(res1)) {
37475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37476 }
37477 arg1 = reinterpret_cast< wxWindow * >(argp1);
37478 if (obj1) {
37479 ecode2 = SWIG_AsVal_int(obj1, &val2);
37480 if (!SWIG_IsOK(ecode2)) {
37481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37482 }
37483 arg2 = static_cast< int >(val2);
37484 }
37485 if (obj2) {
37486 {
37487 arg3 = wxString_in_helper(obj2);
37488 if (arg3 == NULL) SWIG_fail;
37489 temp3 = true;
37490 }
37491 }
37492 if (obj3) {
37493 {
37494 arg4 = &temp4;
37495 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37496 }
37497 }
37498 if (obj4) {
37499 {
37500 arg5 = &temp5;
37501 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37502 }
37503 }
37504 if (obj5) {
37505 ecode6 = SWIG_AsVal_long(obj5, &val6);
37506 if (!SWIG_IsOK(ecode6)) {
37507 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37508 }
37509 arg6 = static_cast< long >(val6);
37510 }
37511 if (obj6) {
37512 {
37513 arg7 = wxString_in_helper(obj6);
37514 if (arg7 == NULL) SWIG_fail;
37515 temp7 = true;
37516 }
37517 }
37518 if (obj7) {
37519 ecode8 = SWIG_AsVal_int(obj7, &val8);
37520 if (!SWIG_IsOK(ecode8)) {
37521 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37522 }
37523 arg8 = static_cast< int >(val8);
37524 }
37525 if (obj8) {
37526 {
37527 arg9 = wxString_in_helper(obj8);
37528 if (arg9 == NULL) SWIG_fail;
37529 temp9 = true;
37530 }
37531 }
37532 {
37533 if (!wxPyCheckForApp()) SWIG_fail;
37534 PyThreadState* __tstate = wxPyBeginAllowThreads();
37535 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37536 wxPyEndAllowThreads(__tstate);
37537 if (PyErr_Occurred()) SWIG_fail;
37538 }
37539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37540 {
37541 if (temp3)
37542 delete arg3;
37543 }
37544 {
37545 if (temp7)
37546 delete arg7;
37547 }
37548 {
37549 if (temp9)
37550 delete arg9;
37551 }
37552 return resultobj;
37553 fail:
37554 {
37555 if (temp3)
37556 delete arg3;
37557 }
37558 {
37559 if (temp7)
37560 delete arg7;
37561 }
37562 {
37563 if (temp9)
37564 delete arg9;
37565 }
37566 return NULL;
37567 }
37568
37569
37570 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37571 PyObject *resultobj = 0;
37572 wxGenericDirCtrl *result = 0 ;
37573
37574 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37575 {
37576 if (!wxPyCheckForApp()) SWIG_fail;
37577 PyThreadState* __tstate = wxPyBeginAllowThreads();
37578 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37579 wxPyEndAllowThreads(__tstate);
37580 if (PyErr_Occurred()) SWIG_fail;
37581 }
37582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37583 return resultobj;
37584 fail:
37585 return NULL;
37586 }
37587
37588
37589 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37590 PyObject *resultobj = 0;
37591 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37592 wxWindow *arg2 = (wxWindow *) 0 ;
37593 int arg3 = (int) (int)-1 ;
37594 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37595 wxString *arg4 = (wxString *) &arg4_defvalue ;
37596 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37597 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37598 wxSize const &arg6_defvalue = wxDefaultSize ;
37599 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37600 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37601 wxString const &arg8_defvalue = wxPyEmptyString ;
37602 wxString *arg8 = (wxString *) &arg8_defvalue ;
37603 int arg9 = (int) 0 ;
37604 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37605 wxString *arg10 = (wxString *) &arg10_defvalue ;
37606 bool result;
37607 void *argp1 = 0 ;
37608 int res1 = 0 ;
37609 void *argp2 = 0 ;
37610 int res2 = 0 ;
37611 int val3 ;
37612 int ecode3 = 0 ;
37613 bool temp4 = false ;
37614 wxPoint temp5 ;
37615 wxSize temp6 ;
37616 long val7 ;
37617 int ecode7 = 0 ;
37618 bool temp8 = false ;
37619 int val9 ;
37620 int ecode9 = 0 ;
37621 bool temp10 = false ;
37622 PyObject * obj0 = 0 ;
37623 PyObject * obj1 = 0 ;
37624 PyObject * obj2 = 0 ;
37625 PyObject * obj3 = 0 ;
37626 PyObject * obj4 = 0 ;
37627 PyObject * obj5 = 0 ;
37628 PyObject * obj6 = 0 ;
37629 PyObject * obj7 = 0 ;
37630 PyObject * obj8 = 0 ;
37631 PyObject * obj9 = 0 ;
37632 char * kwnames[] = {
37633 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37634 };
37635
37636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37638 if (!SWIG_IsOK(res1)) {
37639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37640 }
37641 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37642 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37643 if (!SWIG_IsOK(res2)) {
37644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37645 }
37646 arg2 = reinterpret_cast< wxWindow * >(argp2);
37647 if (obj2) {
37648 ecode3 = SWIG_AsVal_int(obj2, &val3);
37649 if (!SWIG_IsOK(ecode3)) {
37650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37651 }
37652 arg3 = static_cast< int >(val3);
37653 }
37654 if (obj3) {
37655 {
37656 arg4 = wxString_in_helper(obj3);
37657 if (arg4 == NULL) SWIG_fail;
37658 temp4 = true;
37659 }
37660 }
37661 if (obj4) {
37662 {
37663 arg5 = &temp5;
37664 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37665 }
37666 }
37667 if (obj5) {
37668 {
37669 arg6 = &temp6;
37670 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37671 }
37672 }
37673 if (obj6) {
37674 ecode7 = SWIG_AsVal_long(obj6, &val7);
37675 if (!SWIG_IsOK(ecode7)) {
37676 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37677 }
37678 arg7 = static_cast< long >(val7);
37679 }
37680 if (obj7) {
37681 {
37682 arg8 = wxString_in_helper(obj7);
37683 if (arg8 == NULL) SWIG_fail;
37684 temp8 = true;
37685 }
37686 }
37687 if (obj8) {
37688 ecode9 = SWIG_AsVal_int(obj8, &val9);
37689 if (!SWIG_IsOK(ecode9)) {
37690 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37691 }
37692 arg9 = static_cast< int >(val9);
37693 }
37694 if (obj9) {
37695 {
37696 arg10 = wxString_in_helper(obj9);
37697 if (arg10 == NULL) SWIG_fail;
37698 temp10 = true;
37699 }
37700 }
37701 {
37702 PyThreadState* __tstate = wxPyBeginAllowThreads();
37703 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37704 wxPyEndAllowThreads(__tstate);
37705 if (PyErr_Occurred()) SWIG_fail;
37706 }
37707 {
37708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37709 }
37710 {
37711 if (temp4)
37712 delete arg4;
37713 }
37714 {
37715 if (temp8)
37716 delete arg8;
37717 }
37718 {
37719 if (temp10)
37720 delete arg10;
37721 }
37722 return resultobj;
37723 fail:
37724 {
37725 if (temp4)
37726 delete arg4;
37727 }
37728 {
37729 if (temp8)
37730 delete arg8;
37731 }
37732 {
37733 if (temp10)
37734 delete arg10;
37735 }
37736 return NULL;
37737 }
37738
37739
37740 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37741 PyObject *resultobj = 0;
37742 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37743 wxString *arg2 = 0 ;
37744 bool result;
37745 void *argp1 = 0 ;
37746 int res1 = 0 ;
37747 bool temp2 = false ;
37748 PyObject * obj0 = 0 ;
37749 PyObject * obj1 = 0 ;
37750 char * kwnames[] = {
37751 (char *) "self",(char *) "path", NULL
37752 };
37753
37754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37756 if (!SWIG_IsOK(res1)) {
37757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37758 }
37759 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37760 {
37761 arg2 = wxString_in_helper(obj1);
37762 if (arg2 == NULL) SWIG_fail;
37763 temp2 = true;
37764 }
37765 {
37766 PyThreadState* __tstate = wxPyBeginAllowThreads();
37767 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37768 wxPyEndAllowThreads(__tstate);
37769 if (PyErr_Occurred()) SWIG_fail;
37770 }
37771 {
37772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37773 }
37774 {
37775 if (temp2)
37776 delete arg2;
37777 }
37778 return resultobj;
37779 fail:
37780 {
37781 if (temp2)
37782 delete arg2;
37783 }
37784 return NULL;
37785 }
37786
37787
37788 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37789 PyObject *resultobj = 0;
37790 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37791 wxString *arg2 = 0 ;
37792 bool result;
37793 void *argp1 = 0 ;
37794 int res1 = 0 ;
37795 bool temp2 = false ;
37796 PyObject * obj0 = 0 ;
37797 PyObject * obj1 = 0 ;
37798 char * kwnames[] = {
37799 (char *) "self",(char *) "path", NULL
37800 };
37801
37802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37804 if (!SWIG_IsOK(res1)) {
37805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37806 }
37807 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37808 {
37809 arg2 = wxString_in_helper(obj1);
37810 if (arg2 == NULL) SWIG_fail;
37811 temp2 = true;
37812 }
37813 {
37814 PyThreadState* __tstate = wxPyBeginAllowThreads();
37815 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37816 wxPyEndAllowThreads(__tstate);
37817 if (PyErr_Occurred()) SWIG_fail;
37818 }
37819 {
37820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37821 }
37822 {
37823 if (temp2)
37824 delete arg2;
37825 }
37826 return resultobj;
37827 fail:
37828 {
37829 if (temp2)
37830 delete arg2;
37831 }
37832 return NULL;
37833 }
37834
37835
37836 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37837 PyObject *resultobj = 0;
37838 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37839 wxString result;
37840 void *argp1 = 0 ;
37841 int res1 = 0 ;
37842 PyObject *swig_obj[1] ;
37843
37844 if (!args) SWIG_fail;
37845 swig_obj[0] = args;
37846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37847 if (!SWIG_IsOK(res1)) {
37848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37849 }
37850 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37851 {
37852 PyThreadState* __tstate = wxPyBeginAllowThreads();
37853 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37854 wxPyEndAllowThreads(__tstate);
37855 if (PyErr_Occurred()) SWIG_fail;
37856 }
37857 {
37858 #if wxUSE_UNICODE
37859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37860 #else
37861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37862 #endif
37863 }
37864 return resultobj;
37865 fail:
37866 return NULL;
37867 }
37868
37869
37870 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37871 PyObject *resultobj = 0;
37872 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37873 wxString *arg2 = 0 ;
37874 void *argp1 = 0 ;
37875 int res1 = 0 ;
37876 bool temp2 = false ;
37877 PyObject * obj0 = 0 ;
37878 PyObject * obj1 = 0 ;
37879 char * kwnames[] = {
37880 (char *) "self",(char *) "path", NULL
37881 };
37882
37883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37885 if (!SWIG_IsOK(res1)) {
37886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37887 }
37888 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37889 {
37890 arg2 = wxString_in_helper(obj1);
37891 if (arg2 == NULL) SWIG_fail;
37892 temp2 = true;
37893 }
37894 {
37895 PyThreadState* __tstate = wxPyBeginAllowThreads();
37896 (arg1)->SetDefaultPath((wxString const &)*arg2);
37897 wxPyEndAllowThreads(__tstate);
37898 if (PyErr_Occurred()) SWIG_fail;
37899 }
37900 resultobj = SWIG_Py_Void();
37901 {
37902 if (temp2)
37903 delete arg2;
37904 }
37905 return resultobj;
37906 fail:
37907 {
37908 if (temp2)
37909 delete arg2;
37910 }
37911 return NULL;
37912 }
37913
37914
37915 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37916 PyObject *resultobj = 0;
37917 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37918 wxString result;
37919 void *argp1 = 0 ;
37920 int res1 = 0 ;
37921 PyObject *swig_obj[1] ;
37922
37923 if (!args) SWIG_fail;
37924 swig_obj[0] = args;
37925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37926 if (!SWIG_IsOK(res1)) {
37927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37928 }
37929 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37930 {
37931 PyThreadState* __tstate = wxPyBeginAllowThreads();
37932 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37933 wxPyEndAllowThreads(__tstate);
37934 if (PyErr_Occurred()) SWIG_fail;
37935 }
37936 {
37937 #if wxUSE_UNICODE
37938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37939 #else
37940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37941 #endif
37942 }
37943 return resultobj;
37944 fail:
37945 return NULL;
37946 }
37947
37948
37949 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37950 PyObject *resultobj = 0;
37951 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37952 wxString result;
37953 void *argp1 = 0 ;
37954 int res1 = 0 ;
37955 PyObject *swig_obj[1] ;
37956
37957 if (!args) SWIG_fail;
37958 swig_obj[0] = args;
37959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37960 if (!SWIG_IsOK(res1)) {
37961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37962 }
37963 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37964 {
37965 PyThreadState* __tstate = wxPyBeginAllowThreads();
37966 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37967 wxPyEndAllowThreads(__tstate);
37968 if (PyErr_Occurred()) SWIG_fail;
37969 }
37970 {
37971 #if wxUSE_UNICODE
37972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37973 #else
37974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37975 #endif
37976 }
37977 return resultobj;
37978 fail:
37979 return NULL;
37980 }
37981
37982
37983 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37984 PyObject *resultobj = 0;
37985 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37986 wxString *arg2 = 0 ;
37987 void *argp1 = 0 ;
37988 int res1 = 0 ;
37989 bool temp2 = false ;
37990 PyObject * obj0 = 0 ;
37991 PyObject * obj1 = 0 ;
37992 char * kwnames[] = {
37993 (char *) "self",(char *) "path", NULL
37994 };
37995
37996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37998 if (!SWIG_IsOK(res1)) {
37999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38000 }
38001 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38002 {
38003 arg2 = wxString_in_helper(obj1);
38004 if (arg2 == NULL) SWIG_fail;
38005 temp2 = true;
38006 }
38007 {
38008 PyThreadState* __tstate = wxPyBeginAllowThreads();
38009 (arg1)->SetPath((wxString const &)*arg2);
38010 wxPyEndAllowThreads(__tstate);
38011 if (PyErr_Occurred()) SWIG_fail;
38012 }
38013 resultobj = SWIG_Py_Void();
38014 {
38015 if (temp2)
38016 delete arg2;
38017 }
38018 return resultobj;
38019 fail:
38020 {
38021 if (temp2)
38022 delete arg2;
38023 }
38024 return NULL;
38025 }
38026
38027
38028 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38029 PyObject *resultobj = 0;
38030 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38031 bool arg2 ;
38032 void *argp1 = 0 ;
38033 int res1 = 0 ;
38034 bool val2 ;
38035 int ecode2 = 0 ;
38036 PyObject * obj0 = 0 ;
38037 PyObject * obj1 = 0 ;
38038 char * kwnames[] = {
38039 (char *) "self",(char *) "show", NULL
38040 };
38041
38042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38044 if (!SWIG_IsOK(res1)) {
38045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38046 }
38047 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38048 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38049 if (!SWIG_IsOK(ecode2)) {
38050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38051 }
38052 arg2 = static_cast< bool >(val2);
38053 {
38054 PyThreadState* __tstate = wxPyBeginAllowThreads();
38055 (arg1)->ShowHidden(arg2);
38056 wxPyEndAllowThreads(__tstate);
38057 if (PyErr_Occurred()) SWIG_fail;
38058 }
38059 resultobj = SWIG_Py_Void();
38060 return resultobj;
38061 fail:
38062 return NULL;
38063 }
38064
38065
38066 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38067 PyObject *resultobj = 0;
38068 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38069 bool result;
38070 void *argp1 = 0 ;
38071 int res1 = 0 ;
38072 PyObject *swig_obj[1] ;
38073
38074 if (!args) SWIG_fail;
38075 swig_obj[0] = args;
38076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38077 if (!SWIG_IsOK(res1)) {
38078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38079 }
38080 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38081 {
38082 PyThreadState* __tstate = wxPyBeginAllowThreads();
38083 result = (bool)(arg1)->GetShowHidden();
38084 wxPyEndAllowThreads(__tstate);
38085 if (PyErr_Occurred()) SWIG_fail;
38086 }
38087 {
38088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38089 }
38090 return resultobj;
38091 fail:
38092 return NULL;
38093 }
38094
38095
38096 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38097 PyObject *resultobj = 0;
38098 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38099 wxString result;
38100 void *argp1 = 0 ;
38101 int res1 = 0 ;
38102 PyObject *swig_obj[1] ;
38103
38104 if (!args) SWIG_fail;
38105 swig_obj[0] = args;
38106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38107 if (!SWIG_IsOK(res1)) {
38108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38109 }
38110 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38111 {
38112 PyThreadState* __tstate = wxPyBeginAllowThreads();
38113 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38114 wxPyEndAllowThreads(__tstate);
38115 if (PyErr_Occurred()) SWIG_fail;
38116 }
38117 {
38118 #if wxUSE_UNICODE
38119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38120 #else
38121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38122 #endif
38123 }
38124 return resultobj;
38125 fail:
38126 return NULL;
38127 }
38128
38129
38130 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38131 PyObject *resultobj = 0;
38132 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38133 wxString *arg2 = 0 ;
38134 void *argp1 = 0 ;
38135 int res1 = 0 ;
38136 bool temp2 = false ;
38137 PyObject * obj0 = 0 ;
38138 PyObject * obj1 = 0 ;
38139 char * kwnames[] = {
38140 (char *) "self",(char *) "filter", NULL
38141 };
38142
38143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38145 if (!SWIG_IsOK(res1)) {
38146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38147 }
38148 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38149 {
38150 arg2 = wxString_in_helper(obj1);
38151 if (arg2 == NULL) SWIG_fail;
38152 temp2 = true;
38153 }
38154 {
38155 PyThreadState* __tstate = wxPyBeginAllowThreads();
38156 (arg1)->SetFilter((wxString const &)*arg2);
38157 wxPyEndAllowThreads(__tstate);
38158 if (PyErr_Occurred()) SWIG_fail;
38159 }
38160 resultobj = SWIG_Py_Void();
38161 {
38162 if (temp2)
38163 delete arg2;
38164 }
38165 return resultobj;
38166 fail:
38167 {
38168 if (temp2)
38169 delete arg2;
38170 }
38171 return NULL;
38172 }
38173
38174
38175 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38176 PyObject *resultobj = 0;
38177 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38178 int result;
38179 void *argp1 = 0 ;
38180 int res1 = 0 ;
38181 PyObject *swig_obj[1] ;
38182
38183 if (!args) SWIG_fail;
38184 swig_obj[0] = args;
38185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38186 if (!SWIG_IsOK(res1)) {
38187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38188 }
38189 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38190 {
38191 PyThreadState* __tstate = wxPyBeginAllowThreads();
38192 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38193 wxPyEndAllowThreads(__tstate);
38194 if (PyErr_Occurred()) SWIG_fail;
38195 }
38196 resultobj = SWIG_From_int(static_cast< int >(result));
38197 return resultobj;
38198 fail:
38199 return NULL;
38200 }
38201
38202
38203 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38204 PyObject *resultobj = 0;
38205 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38206 int arg2 ;
38207 void *argp1 = 0 ;
38208 int res1 = 0 ;
38209 int val2 ;
38210 int ecode2 = 0 ;
38211 PyObject * obj0 = 0 ;
38212 PyObject * obj1 = 0 ;
38213 char * kwnames[] = {
38214 (char *) "self",(char *) "n", NULL
38215 };
38216
38217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38219 if (!SWIG_IsOK(res1)) {
38220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38221 }
38222 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38223 ecode2 = SWIG_AsVal_int(obj1, &val2);
38224 if (!SWIG_IsOK(ecode2)) {
38225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38226 }
38227 arg2 = static_cast< int >(val2);
38228 {
38229 PyThreadState* __tstate = wxPyBeginAllowThreads();
38230 (arg1)->SetFilterIndex(arg2);
38231 wxPyEndAllowThreads(__tstate);
38232 if (PyErr_Occurred()) SWIG_fail;
38233 }
38234 resultobj = SWIG_Py_Void();
38235 return resultobj;
38236 fail:
38237 return NULL;
38238 }
38239
38240
38241 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38242 PyObject *resultobj = 0;
38243 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38244 wxTreeItemId result;
38245 void *argp1 = 0 ;
38246 int res1 = 0 ;
38247 PyObject *swig_obj[1] ;
38248
38249 if (!args) SWIG_fail;
38250 swig_obj[0] = args;
38251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38252 if (!SWIG_IsOK(res1)) {
38253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38254 }
38255 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38256 {
38257 PyThreadState* __tstate = wxPyBeginAllowThreads();
38258 result = (arg1)->GetRootId();
38259 wxPyEndAllowThreads(__tstate);
38260 if (PyErr_Occurred()) SWIG_fail;
38261 }
38262 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38263 return resultobj;
38264 fail:
38265 return NULL;
38266 }
38267
38268
38269 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38270 PyObject *resultobj = 0;
38271 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38272 wxPyTreeCtrl *result = 0 ;
38273 void *argp1 = 0 ;
38274 int res1 = 0 ;
38275 PyObject *swig_obj[1] ;
38276
38277 if (!args) SWIG_fail;
38278 swig_obj[0] = args;
38279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38280 if (!SWIG_IsOK(res1)) {
38281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38282 }
38283 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38284 {
38285 PyThreadState* __tstate = wxPyBeginAllowThreads();
38286 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38287 wxPyEndAllowThreads(__tstate);
38288 if (PyErr_Occurred()) SWIG_fail;
38289 }
38290 {
38291 resultobj = wxPyMake_wxObject(result, 0);
38292 }
38293 return resultobj;
38294 fail:
38295 return NULL;
38296 }
38297
38298
38299 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38300 PyObject *resultobj = 0;
38301 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38302 wxDirFilterListCtrl *result = 0 ;
38303 void *argp1 = 0 ;
38304 int res1 = 0 ;
38305 PyObject *swig_obj[1] ;
38306
38307 if (!args) SWIG_fail;
38308 swig_obj[0] = args;
38309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38310 if (!SWIG_IsOK(res1)) {
38311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38312 }
38313 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38314 {
38315 PyThreadState* __tstate = wxPyBeginAllowThreads();
38316 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38317 wxPyEndAllowThreads(__tstate);
38318 if (PyErr_Occurred()) SWIG_fail;
38319 }
38320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38321 return resultobj;
38322 fail:
38323 return NULL;
38324 }
38325
38326
38327 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38328 PyObject *resultobj = 0;
38329 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38330 wxTreeItemId arg2 ;
38331 wxString *arg3 = 0 ;
38332 bool *arg4 = 0 ;
38333 wxTreeItemId result;
38334 void *argp1 = 0 ;
38335 int res1 = 0 ;
38336 void *argp2 ;
38337 int res2 = 0 ;
38338 bool temp3 = false ;
38339 bool temp4 ;
38340 int res4 = SWIG_TMPOBJ ;
38341 PyObject * obj0 = 0 ;
38342 PyObject * obj1 = 0 ;
38343 PyObject * obj2 = 0 ;
38344 char * kwnames[] = {
38345 (char *) "self",(char *) "parentId",(char *) "path", NULL
38346 };
38347
38348 arg4 = &temp4;
38349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38351 if (!SWIG_IsOK(res1)) {
38352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38353 }
38354 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38355 {
38356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38357 if (!SWIG_IsOK(res2)) {
38358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38359 }
38360 if (!argp2) {
38361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38362 } else {
38363 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38364 arg2 = *temp;
38365 if (SWIG_IsNewObj(res2)) delete temp;
38366 }
38367 }
38368 {
38369 arg3 = wxString_in_helper(obj2);
38370 if (arg3 == NULL) SWIG_fail;
38371 temp3 = true;
38372 }
38373 {
38374 PyThreadState* __tstate = wxPyBeginAllowThreads();
38375 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38376 wxPyEndAllowThreads(__tstate);
38377 if (PyErr_Occurred()) SWIG_fail;
38378 }
38379 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38380 if (SWIG_IsTmpObj(res4)) {
38381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38382 } else {
38383 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38385 }
38386 {
38387 if (temp3)
38388 delete arg3;
38389 }
38390 return resultobj;
38391 fail:
38392 {
38393 if (temp3)
38394 delete arg3;
38395 }
38396 return NULL;
38397 }
38398
38399
38400 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38401 PyObject *resultobj = 0;
38402 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38403 void *argp1 = 0 ;
38404 int res1 = 0 ;
38405 PyObject *swig_obj[1] ;
38406
38407 if (!args) SWIG_fail;
38408 swig_obj[0] = args;
38409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38410 if (!SWIG_IsOK(res1)) {
38411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38412 }
38413 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38414 {
38415 PyThreadState* __tstate = wxPyBeginAllowThreads();
38416 (arg1)->DoResize();
38417 wxPyEndAllowThreads(__tstate);
38418 if (PyErr_Occurred()) SWIG_fail;
38419 }
38420 resultobj = SWIG_Py_Void();
38421 return resultobj;
38422 fail:
38423 return NULL;
38424 }
38425
38426
38427 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38428 PyObject *resultobj = 0;
38429 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38430 void *argp1 = 0 ;
38431 int res1 = 0 ;
38432 PyObject *swig_obj[1] ;
38433
38434 if (!args) SWIG_fail;
38435 swig_obj[0] = args;
38436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38437 if (!SWIG_IsOK(res1)) {
38438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38439 }
38440 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38441 {
38442 PyThreadState* __tstate = wxPyBeginAllowThreads();
38443 (arg1)->ReCreateTree();
38444 wxPyEndAllowThreads(__tstate);
38445 if (PyErr_Occurred()) SWIG_fail;
38446 }
38447 resultobj = SWIG_Py_Void();
38448 return resultobj;
38449 fail:
38450 return NULL;
38451 }
38452
38453
38454 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38455 PyObject *obj;
38456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38457 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38458 return SWIG_Py_Void();
38459 }
38460
38461 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38462 return SWIG_Python_InitShadowInstance(args);
38463 }
38464
38465 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38466 PyObject *resultobj = 0;
38467 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38468 int arg2 = (int) (int)-1 ;
38469 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38470 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38471 wxSize const &arg4_defvalue = wxDefaultSize ;
38472 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38473 long arg5 = (long) 0 ;
38474 wxDirFilterListCtrl *result = 0 ;
38475 void *argp1 = 0 ;
38476 int res1 = 0 ;
38477 int val2 ;
38478 int ecode2 = 0 ;
38479 wxPoint temp3 ;
38480 wxSize temp4 ;
38481 long val5 ;
38482 int ecode5 = 0 ;
38483 PyObject * obj0 = 0 ;
38484 PyObject * obj1 = 0 ;
38485 PyObject * obj2 = 0 ;
38486 PyObject * obj3 = 0 ;
38487 PyObject * obj4 = 0 ;
38488 char * kwnames[] = {
38489 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38490 };
38491
38492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38494 if (!SWIG_IsOK(res1)) {
38495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38496 }
38497 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38498 if (obj1) {
38499 ecode2 = SWIG_AsVal_int(obj1, &val2);
38500 if (!SWIG_IsOK(ecode2)) {
38501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38502 }
38503 arg2 = static_cast< int >(val2);
38504 }
38505 if (obj2) {
38506 {
38507 arg3 = &temp3;
38508 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38509 }
38510 }
38511 if (obj3) {
38512 {
38513 arg4 = &temp4;
38514 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38515 }
38516 }
38517 if (obj4) {
38518 ecode5 = SWIG_AsVal_long(obj4, &val5);
38519 if (!SWIG_IsOK(ecode5)) {
38520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38521 }
38522 arg5 = static_cast< long >(val5);
38523 }
38524 {
38525 if (!wxPyCheckForApp()) SWIG_fail;
38526 PyThreadState* __tstate = wxPyBeginAllowThreads();
38527 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38528 wxPyEndAllowThreads(__tstate);
38529 if (PyErr_Occurred()) SWIG_fail;
38530 }
38531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38532 return resultobj;
38533 fail:
38534 return NULL;
38535 }
38536
38537
38538 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38539 PyObject *resultobj = 0;
38540 wxDirFilterListCtrl *result = 0 ;
38541
38542 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38543 {
38544 if (!wxPyCheckForApp()) SWIG_fail;
38545 PyThreadState* __tstate = wxPyBeginAllowThreads();
38546 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38547 wxPyEndAllowThreads(__tstate);
38548 if (PyErr_Occurred()) SWIG_fail;
38549 }
38550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38551 return resultobj;
38552 fail:
38553 return NULL;
38554 }
38555
38556
38557 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38558 PyObject *resultobj = 0;
38559 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38560 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38561 int arg3 = (int) (int)-1 ;
38562 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38563 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38564 wxSize const &arg5_defvalue = wxDefaultSize ;
38565 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38566 long arg6 = (long) 0 ;
38567 bool result;
38568 void *argp1 = 0 ;
38569 int res1 = 0 ;
38570 void *argp2 = 0 ;
38571 int res2 = 0 ;
38572 int val3 ;
38573 int ecode3 = 0 ;
38574 wxPoint temp4 ;
38575 wxSize temp5 ;
38576 long val6 ;
38577 int ecode6 = 0 ;
38578 PyObject * obj0 = 0 ;
38579 PyObject * obj1 = 0 ;
38580 PyObject * obj2 = 0 ;
38581 PyObject * obj3 = 0 ;
38582 PyObject * obj4 = 0 ;
38583 PyObject * obj5 = 0 ;
38584 char * kwnames[] = {
38585 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38586 };
38587
38588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38590 if (!SWIG_IsOK(res1)) {
38591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38592 }
38593 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38595 if (!SWIG_IsOK(res2)) {
38596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38597 }
38598 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38599 if (obj2) {
38600 ecode3 = SWIG_AsVal_int(obj2, &val3);
38601 if (!SWIG_IsOK(ecode3)) {
38602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38603 }
38604 arg3 = static_cast< int >(val3);
38605 }
38606 if (obj3) {
38607 {
38608 arg4 = &temp4;
38609 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38610 }
38611 }
38612 if (obj4) {
38613 {
38614 arg5 = &temp5;
38615 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38616 }
38617 }
38618 if (obj5) {
38619 ecode6 = SWIG_AsVal_long(obj5, &val6);
38620 if (!SWIG_IsOK(ecode6)) {
38621 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38622 }
38623 arg6 = static_cast< long >(val6);
38624 }
38625 {
38626 PyThreadState* __tstate = wxPyBeginAllowThreads();
38627 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38628 wxPyEndAllowThreads(__tstate);
38629 if (PyErr_Occurred()) SWIG_fail;
38630 }
38631 {
38632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38633 }
38634 return resultobj;
38635 fail:
38636 return NULL;
38637 }
38638
38639
38640 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38641 PyObject *resultobj = 0;
38642 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38643 wxString *arg2 = 0 ;
38644 int arg3 ;
38645 void *argp1 = 0 ;
38646 int res1 = 0 ;
38647 bool temp2 = false ;
38648 int val3 ;
38649 int ecode3 = 0 ;
38650 PyObject * obj0 = 0 ;
38651 PyObject * obj1 = 0 ;
38652 PyObject * obj2 = 0 ;
38653 char * kwnames[] = {
38654 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38655 };
38656
38657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38659 if (!SWIG_IsOK(res1)) {
38660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38661 }
38662 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38663 {
38664 arg2 = wxString_in_helper(obj1);
38665 if (arg2 == NULL) SWIG_fail;
38666 temp2 = true;
38667 }
38668 ecode3 = SWIG_AsVal_int(obj2, &val3);
38669 if (!SWIG_IsOK(ecode3)) {
38670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38671 }
38672 arg3 = static_cast< int >(val3);
38673 {
38674 PyThreadState* __tstate = wxPyBeginAllowThreads();
38675 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38676 wxPyEndAllowThreads(__tstate);
38677 if (PyErr_Occurred()) SWIG_fail;
38678 }
38679 resultobj = SWIG_Py_Void();
38680 {
38681 if (temp2)
38682 delete arg2;
38683 }
38684 return resultobj;
38685 fail:
38686 {
38687 if (temp2)
38688 delete arg2;
38689 }
38690 return NULL;
38691 }
38692
38693
38694 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38695 PyObject *obj;
38696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38697 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38698 return SWIG_Py_Void();
38699 }
38700
38701 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38702 return SWIG_Python_InitShadowInstance(args);
38703 }
38704
38705 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38706 PyObject *resultobj = 0;
38707 wxWindow *arg1 = (wxWindow *) 0 ;
38708 int arg2 = (int) (int)-1 ;
38709 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38710 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38711 wxSize const &arg4_defvalue = wxDefaultSize ;
38712 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38713 long arg5 = (long) 0 ;
38714 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38715 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38716 wxString const &arg7_defvalue = wxPyControlNameStr ;
38717 wxString *arg7 = (wxString *) &arg7_defvalue ;
38718 wxPyControl *result = 0 ;
38719 void *argp1 = 0 ;
38720 int res1 = 0 ;
38721 int val2 ;
38722 int ecode2 = 0 ;
38723 wxPoint temp3 ;
38724 wxSize temp4 ;
38725 long val5 ;
38726 int ecode5 = 0 ;
38727 void *argp6 = 0 ;
38728 int res6 = 0 ;
38729 bool temp7 = false ;
38730 PyObject * obj0 = 0 ;
38731 PyObject * obj1 = 0 ;
38732 PyObject * obj2 = 0 ;
38733 PyObject * obj3 = 0 ;
38734 PyObject * obj4 = 0 ;
38735 PyObject * obj5 = 0 ;
38736 PyObject * obj6 = 0 ;
38737 char * kwnames[] = {
38738 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38739 };
38740
38741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38743 if (!SWIG_IsOK(res1)) {
38744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38745 }
38746 arg1 = reinterpret_cast< wxWindow * >(argp1);
38747 if (obj1) {
38748 ecode2 = SWIG_AsVal_int(obj1, &val2);
38749 if (!SWIG_IsOK(ecode2)) {
38750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38751 }
38752 arg2 = static_cast< int >(val2);
38753 }
38754 if (obj2) {
38755 {
38756 arg3 = &temp3;
38757 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38758 }
38759 }
38760 if (obj3) {
38761 {
38762 arg4 = &temp4;
38763 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38764 }
38765 }
38766 if (obj4) {
38767 ecode5 = SWIG_AsVal_long(obj4, &val5);
38768 if (!SWIG_IsOK(ecode5)) {
38769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38770 }
38771 arg5 = static_cast< long >(val5);
38772 }
38773 if (obj5) {
38774 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38775 if (!SWIG_IsOK(res6)) {
38776 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38777 }
38778 if (!argp6) {
38779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38780 }
38781 arg6 = reinterpret_cast< wxValidator * >(argp6);
38782 }
38783 if (obj6) {
38784 {
38785 arg7 = wxString_in_helper(obj6);
38786 if (arg7 == NULL) SWIG_fail;
38787 temp7 = true;
38788 }
38789 }
38790 {
38791 if (!wxPyCheckForApp()) SWIG_fail;
38792 PyThreadState* __tstate = wxPyBeginAllowThreads();
38793 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38794 wxPyEndAllowThreads(__tstate);
38795 if (PyErr_Occurred()) SWIG_fail;
38796 }
38797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38798 {
38799 if (temp7)
38800 delete arg7;
38801 }
38802 return resultobj;
38803 fail:
38804 {
38805 if (temp7)
38806 delete arg7;
38807 }
38808 return NULL;
38809 }
38810
38811
38812 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38813 PyObject *resultobj = 0;
38814 wxPyControl *result = 0 ;
38815
38816 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38817 {
38818 if (!wxPyCheckForApp()) SWIG_fail;
38819 PyThreadState* __tstate = wxPyBeginAllowThreads();
38820 result = (wxPyControl *)new wxPyControl();
38821 wxPyEndAllowThreads(__tstate);
38822 if (PyErr_Occurred()) SWIG_fail;
38823 }
38824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38825 return resultobj;
38826 fail:
38827 return NULL;
38828 }
38829
38830
38831 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38832 PyObject *resultobj = 0;
38833 wxPyControl *arg1 = (wxPyControl *) 0 ;
38834 PyObject *arg2 = (PyObject *) 0 ;
38835 PyObject *arg3 = (PyObject *) 0 ;
38836 void *argp1 = 0 ;
38837 int res1 = 0 ;
38838 PyObject * obj0 = 0 ;
38839 PyObject * obj1 = 0 ;
38840 PyObject * obj2 = 0 ;
38841 char * kwnames[] = {
38842 (char *) "self",(char *) "self",(char *) "_class", NULL
38843 };
38844
38845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38847 if (!SWIG_IsOK(res1)) {
38848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38849 }
38850 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38851 arg2 = obj1;
38852 arg3 = obj2;
38853 {
38854 PyThreadState* __tstate = wxPyBeginAllowThreads();
38855 (arg1)->_setCallbackInfo(arg2,arg3);
38856 wxPyEndAllowThreads(__tstate);
38857 if (PyErr_Occurred()) SWIG_fail;
38858 }
38859 resultobj = SWIG_Py_Void();
38860 return resultobj;
38861 fail:
38862 return NULL;
38863 }
38864
38865
38866 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38867 PyObject *resultobj = 0;
38868 wxPyControl *arg1 = (wxPyControl *) 0 ;
38869 wxDC *arg2 = (wxDC *) 0 ;
38870 bool result;
38871 void *argp1 = 0 ;
38872 int res1 = 0 ;
38873 void *argp2 = 0 ;
38874 int res2 = 0 ;
38875 PyObject * obj0 = 0 ;
38876 PyObject * obj1 = 0 ;
38877 char * kwnames[] = {
38878 (char *) "self",(char *) "dc", NULL
38879 };
38880
38881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38883 if (!SWIG_IsOK(res1)) {
38884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38885 }
38886 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38887 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38888 if (!SWIG_IsOK(res2)) {
38889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38890 }
38891 arg2 = reinterpret_cast< wxDC * >(argp2);
38892 {
38893 PyThreadState* __tstate = wxPyBeginAllowThreads();
38894 result = (bool)(arg1)->DoEraseBackground(arg2);
38895 wxPyEndAllowThreads(__tstate);
38896 if (PyErr_Occurred()) SWIG_fail;
38897 }
38898 {
38899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38900 }
38901 return resultobj;
38902 fail:
38903 return NULL;
38904 }
38905
38906
38907 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38908 PyObject *resultobj = 0;
38909 wxPyControl *arg1 = (wxPyControl *) 0 ;
38910 int arg2 ;
38911 int arg3 ;
38912 int arg4 ;
38913 int arg5 ;
38914 void *argp1 = 0 ;
38915 int res1 = 0 ;
38916 int val2 ;
38917 int ecode2 = 0 ;
38918 int val3 ;
38919 int ecode3 = 0 ;
38920 int val4 ;
38921 int ecode4 = 0 ;
38922 int val5 ;
38923 int ecode5 = 0 ;
38924 PyObject * obj0 = 0 ;
38925 PyObject * obj1 = 0 ;
38926 PyObject * obj2 = 0 ;
38927 PyObject * obj3 = 0 ;
38928 PyObject * obj4 = 0 ;
38929 char * kwnames[] = {
38930 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38931 };
38932
38933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38935 if (!SWIG_IsOK(res1)) {
38936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38937 }
38938 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38939 ecode2 = SWIG_AsVal_int(obj1, &val2);
38940 if (!SWIG_IsOK(ecode2)) {
38941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38942 }
38943 arg2 = static_cast< int >(val2);
38944 ecode3 = SWIG_AsVal_int(obj2, &val3);
38945 if (!SWIG_IsOK(ecode3)) {
38946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38947 }
38948 arg3 = static_cast< int >(val3);
38949 ecode4 = SWIG_AsVal_int(obj3, &val4);
38950 if (!SWIG_IsOK(ecode4)) {
38951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38952 }
38953 arg4 = static_cast< int >(val4);
38954 ecode5 = SWIG_AsVal_int(obj4, &val5);
38955 if (!SWIG_IsOK(ecode5)) {
38956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38957 }
38958 arg5 = static_cast< int >(val5);
38959 {
38960 PyThreadState* __tstate = wxPyBeginAllowThreads();
38961 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38962 wxPyEndAllowThreads(__tstate);
38963 if (PyErr_Occurred()) SWIG_fail;
38964 }
38965 resultobj = SWIG_Py_Void();
38966 return resultobj;
38967 fail:
38968 return NULL;
38969 }
38970
38971
38972 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38973 PyObject *resultobj = 0;
38974 wxPyControl *arg1 = (wxPyControl *) 0 ;
38975 int arg2 ;
38976 int arg3 ;
38977 int arg4 ;
38978 int arg5 ;
38979 int arg6 = (int) wxSIZE_AUTO ;
38980 void *argp1 = 0 ;
38981 int res1 = 0 ;
38982 int val2 ;
38983 int ecode2 = 0 ;
38984 int val3 ;
38985 int ecode3 = 0 ;
38986 int val4 ;
38987 int ecode4 = 0 ;
38988 int val5 ;
38989 int ecode5 = 0 ;
38990 int val6 ;
38991 int ecode6 = 0 ;
38992 PyObject * obj0 = 0 ;
38993 PyObject * obj1 = 0 ;
38994 PyObject * obj2 = 0 ;
38995 PyObject * obj3 = 0 ;
38996 PyObject * obj4 = 0 ;
38997 PyObject * obj5 = 0 ;
38998 char * kwnames[] = {
38999 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39000 };
39001
39002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39004 if (!SWIG_IsOK(res1)) {
39005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39006 }
39007 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39008 ecode2 = SWIG_AsVal_int(obj1, &val2);
39009 if (!SWIG_IsOK(ecode2)) {
39010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39011 }
39012 arg2 = static_cast< int >(val2);
39013 ecode3 = SWIG_AsVal_int(obj2, &val3);
39014 if (!SWIG_IsOK(ecode3)) {
39015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39016 }
39017 arg3 = static_cast< int >(val3);
39018 ecode4 = SWIG_AsVal_int(obj3, &val4);
39019 if (!SWIG_IsOK(ecode4)) {
39020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39021 }
39022 arg4 = static_cast< int >(val4);
39023 ecode5 = SWIG_AsVal_int(obj4, &val5);
39024 if (!SWIG_IsOK(ecode5)) {
39025 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39026 }
39027 arg5 = static_cast< int >(val5);
39028 if (obj5) {
39029 ecode6 = SWIG_AsVal_int(obj5, &val6);
39030 if (!SWIG_IsOK(ecode6)) {
39031 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39032 }
39033 arg6 = static_cast< int >(val6);
39034 }
39035 {
39036 PyThreadState* __tstate = wxPyBeginAllowThreads();
39037 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39038 wxPyEndAllowThreads(__tstate);
39039 if (PyErr_Occurred()) SWIG_fail;
39040 }
39041 resultobj = SWIG_Py_Void();
39042 return resultobj;
39043 fail:
39044 return NULL;
39045 }
39046
39047
39048 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39049 PyObject *resultobj = 0;
39050 wxPyControl *arg1 = (wxPyControl *) 0 ;
39051 int arg2 ;
39052 int arg3 ;
39053 void *argp1 = 0 ;
39054 int res1 = 0 ;
39055 int val2 ;
39056 int ecode2 = 0 ;
39057 int val3 ;
39058 int ecode3 = 0 ;
39059 PyObject * obj0 = 0 ;
39060 PyObject * obj1 = 0 ;
39061 PyObject * obj2 = 0 ;
39062 char * kwnames[] = {
39063 (char *) "self",(char *) "width",(char *) "height", NULL
39064 };
39065
39066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39068 if (!SWIG_IsOK(res1)) {
39069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39070 }
39071 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39072 ecode2 = SWIG_AsVal_int(obj1, &val2);
39073 if (!SWIG_IsOK(ecode2)) {
39074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39075 }
39076 arg2 = static_cast< int >(val2);
39077 ecode3 = SWIG_AsVal_int(obj2, &val3);
39078 if (!SWIG_IsOK(ecode3)) {
39079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39080 }
39081 arg3 = static_cast< int >(val3);
39082 {
39083 PyThreadState* __tstate = wxPyBeginAllowThreads();
39084 (arg1)->DoSetClientSize(arg2,arg3);
39085 wxPyEndAllowThreads(__tstate);
39086 if (PyErr_Occurred()) SWIG_fail;
39087 }
39088 resultobj = SWIG_Py_Void();
39089 return resultobj;
39090 fail:
39091 return NULL;
39092 }
39093
39094
39095 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39096 PyObject *resultobj = 0;
39097 wxPyControl *arg1 = (wxPyControl *) 0 ;
39098 int arg2 ;
39099 int arg3 ;
39100 void *argp1 = 0 ;
39101 int res1 = 0 ;
39102 int val2 ;
39103 int ecode2 = 0 ;
39104 int val3 ;
39105 int ecode3 = 0 ;
39106 PyObject * obj0 = 0 ;
39107 PyObject * obj1 = 0 ;
39108 PyObject * obj2 = 0 ;
39109 char * kwnames[] = {
39110 (char *) "self",(char *) "x",(char *) "y", NULL
39111 };
39112
39113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39115 if (!SWIG_IsOK(res1)) {
39116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39117 }
39118 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39119 ecode2 = SWIG_AsVal_int(obj1, &val2);
39120 if (!SWIG_IsOK(ecode2)) {
39121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39122 }
39123 arg2 = static_cast< int >(val2);
39124 ecode3 = SWIG_AsVal_int(obj2, &val3);
39125 if (!SWIG_IsOK(ecode3)) {
39126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39127 }
39128 arg3 = static_cast< int >(val3);
39129 {
39130 PyThreadState* __tstate = wxPyBeginAllowThreads();
39131 (arg1)->DoSetVirtualSize(arg2,arg3);
39132 wxPyEndAllowThreads(__tstate);
39133 if (PyErr_Occurred()) SWIG_fail;
39134 }
39135 resultobj = SWIG_Py_Void();
39136 return resultobj;
39137 fail:
39138 return NULL;
39139 }
39140
39141
39142 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39143 PyObject *resultobj = 0;
39144 wxPyControl *arg1 = (wxPyControl *) 0 ;
39145 int *arg2 = (int *) 0 ;
39146 int *arg3 = (int *) 0 ;
39147 void *argp1 = 0 ;
39148 int res1 = 0 ;
39149 int temp2 ;
39150 int res2 = SWIG_TMPOBJ ;
39151 int temp3 ;
39152 int res3 = SWIG_TMPOBJ ;
39153 PyObject *swig_obj[1] ;
39154
39155 arg2 = &temp2;
39156 arg3 = &temp3;
39157 if (!args) SWIG_fail;
39158 swig_obj[0] = args;
39159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39160 if (!SWIG_IsOK(res1)) {
39161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39162 }
39163 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39164 {
39165 PyThreadState* __tstate = wxPyBeginAllowThreads();
39166 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39167 wxPyEndAllowThreads(__tstate);
39168 if (PyErr_Occurred()) SWIG_fail;
39169 }
39170 resultobj = SWIG_Py_Void();
39171 if (SWIG_IsTmpObj(res2)) {
39172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39173 } else {
39174 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39176 }
39177 if (SWIG_IsTmpObj(res3)) {
39178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39179 } else {
39180 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39182 }
39183 return resultobj;
39184 fail:
39185 return NULL;
39186 }
39187
39188
39189 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39190 PyObject *resultobj = 0;
39191 wxPyControl *arg1 = (wxPyControl *) 0 ;
39192 int *arg2 = (int *) 0 ;
39193 int *arg3 = (int *) 0 ;
39194 void *argp1 = 0 ;
39195 int res1 = 0 ;
39196 int temp2 ;
39197 int res2 = SWIG_TMPOBJ ;
39198 int temp3 ;
39199 int res3 = SWIG_TMPOBJ ;
39200 PyObject *swig_obj[1] ;
39201
39202 arg2 = &temp2;
39203 arg3 = &temp3;
39204 if (!args) SWIG_fail;
39205 swig_obj[0] = args;
39206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39207 if (!SWIG_IsOK(res1)) {
39208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39209 }
39210 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39211 {
39212 PyThreadState* __tstate = wxPyBeginAllowThreads();
39213 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39214 wxPyEndAllowThreads(__tstate);
39215 if (PyErr_Occurred()) SWIG_fail;
39216 }
39217 resultobj = SWIG_Py_Void();
39218 if (SWIG_IsTmpObj(res2)) {
39219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39220 } else {
39221 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39223 }
39224 if (SWIG_IsTmpObj(res3)) {
39225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39226 } else {
39227 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39229 }
39230 return resultobj;
39231 fail:
39232 return NULL;
39233 }
39234
39235
39236 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39237 PyObject *resultobj = 0;
39238 wxPyControl *arg1 = (wxPyControl *) 0 ;
39239 int *arg2 = (int *) 0 ;
39240 int *arg3 = (int *) 0 ;
39241 void *argp1 = 0 ;
39242 int res1 = 0 ;
39243 int temp2 ;
39244 int res2 = SWIG_TMPOBJ ;
39245 int temp3 ;
39246 int res3 = SWIG_TMPOBJ ;
39247 PyObject *swig_obj[1] ;
39248
39249 arg2 = &temp2;
39250 arg3 = &temp3;
39251 if (!args) SWIG_fail;
39252 swig_obj[0] = args;
39253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39254 if (!SWIG_IsOK(res1)) {
39255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39256 }
39257 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39258 {
39259 PyThreadState* __tstate = wxPyBeginAllowThreads();
39260 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39261 wxPyEndAllowThreads(__tstate);
39262 if (PyErr_Occurred()) SWIG_fail;
39263 }
39264 resultobj = SWIG_Py_Void();
39265 if (SWIG_IsTmpObj(res2)) {
39266 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39267 } else {
39268 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39270 }
39271 if (SWIG_IsTmpObj(res3)) {
39272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39273 } else {
39274 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39276 }
39277 return resultobj;
39278 fail:
39279 return NULL;
39280 }
39281
39282
39283 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39284 PyObject *resultobj = 0;
39285 wxPyControl *arg1 = (wxPyControl *) 0 ;
39286 wxSize result;
39287 void *argp1 = 0 ;
39288 int res1 = 0 ;
39289 PyObject *swig_obj[1] ;
39290
39291 if (!args) SWIG_fail;
39292 swig_obj[0] = args;
39293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39294 if (!SWIG_IsOK(res1)) {
39295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39296 }
39297 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39298 {
39299 PyThreadState* __tstate = wxPyBeginAllowThreads();
39300 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39301 wxPyEndAllowThreads(__tstate);
39302 if (PyErr_Occurred()) SWIG_fail;
39303 }
39304 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39305 return resultobj;
39306 fail:
39307 return NULL;
39308 }
39309
39310
39311 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39312 PyObject *resultobj = 0;
39313 wxPyControl *arg1 = (wxPyControl *) 0 ;
39314 wxSize result;
39315 void *argp1 = 0 ;
39316 int res1 = 0 ;
39317 PyObject *swig_obj[1] ;
39318
39319 if (!args) SWIG_fail;
39320 swig_obj[0] = args;
39321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39322 if (!SWIG_IsOK(res1)) {
39323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39324 }
39325 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39326 {
39327 PyThreadState* __tstate = wxPyBeginAllowThreads();
39328 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39329 wxPyEndAllowThreads(__tstate);
39330 if (PyErr_Occurred()) SWIG_fail;
39331 }
39332 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39333 return resultobj;
39334 fail:
39335 return NULL;
39336 }
39337
39338
39339 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39340 PyObject *resultobj = 0;
39341 wxPyControl *arg1 = (wxPyControl *) 0 ;
39342 SwigValueWrapper<wxVisualAttributes > result;
39343 void *argp1 = 0 ;
39344 int res1 = 0 ;
39345 PyObject *swig_obj[1] ;
39346
39347 if (!args) SWIG_fail;
39348 swig_obj[0] = args;
39349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39350 if (!SWIG_IsOK(res1)) {
39351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39352 }
39353 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39354 {
39355 PyThreadState* __tstate = wxPyBeginAllowThreads();
39356 result = (arg1)->GetDefaultAttributes();
39357 wxPyEndAllowThreads(__tstate);
39358 if (PyErr_Occurred()) SWIG_fail;
39359 }
39360 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39361 return resultobj;
39362 fail:
39363 return NULL;
39364 }
39365
39366
39367 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39368 PyObject *resultobj = 0;
39369 wxPyControl *arg1 = (wxPyControl *) 0 ;
39370 void *argp1 = 0 ;
39371 int res1 = 0 ;
39372 PyObject *swig_obj[1] ;
39373
39374 if (!args) SWIG_fail;
39375 swig_obj[0] = args;
39376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39377 if (!SWIG_IsOK(res1)) {
39378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39379 }
39380 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39381 {
39382 PyThreadState* __tstate = wxPyBeginAllowThreads();
39383 (arg1)->OnInternalIdle();
39384 wxPyEndAllowThreads(__tstate);
39385 if (PyErr_Occurred()) SWIG_fail;
39386 }
39387 resultobj = SWIG_Py_Void();
39388 return resultobj;
39389 fail:
39390 return NULL;
39391 }
39392
39393
39394 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39395 PyObject *obj;
39396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39397 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39398 return SWIG_Py_Void();
39399 }
39400
39401 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39402 return SWIG_Python_InitShadowInstance(args);
39403 }
39404
39405 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39406 PyObject *resultobj = 0;
39407 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39408 int arg2 = (int) 0 ;
39409 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39410 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39411 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39412 wxHelpEvent *result = 0 ;
39413 int val1 ;
39414 int ecode1 = 0 ;
39415 int val2 ;
39416 int ecode2 = 0 ;
39417 wxPoint temp3 ;
39418 int val4 ;
39419 int ecode4 = 0 ;
39420 PyObject * obj0 = 0 ;
39421 PyObject * obj1 = 0 ;
39422 PyObject * obj2 = 0 ;
39423 PyObject * obj3 = 0 ;
39424 char * kwnames[] = {
39425 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39426 };
39427
39428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39429 if (obj0) {
39430 ecode1 = SWIG_AsVal_int(obj0, &val1);
39431 if (!SWIG_IsOK(ecode1)) {
39432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39433 }
39434 arg1 = static_cast< wxEventType >(val1);
39435 }
39436 if (obj1) {
39437 ecode2 = SWIG_AsVal_int(obj1, &val2);
39438 if (!SWIG_IsOK(ecode2)) {
39439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39440 }
39441 arg2 = static_cast< int >(val2);
39442 }
39443 if (obj2) {
39444 {
39445 arg3 = &temp3;
39446 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39447 }
39448 }
39449 if (obj3) {
39450 ecode4 = SWIG_AsVal_int(obj3, &val4);
39451 if (!SWIG_IsOK(ecode4)) {
39452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39453 }
39454 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39455 }
39456 {
39457 PyThreadState* __tstate = wxPyBeginAllowThreads();
39458 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39459 wxPyEndAllowThreads(__tstate);
39460 if (PyErr_Occurred()) SWIG_fail;
39461 }
39462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39463 return resultobj;
39464 fail:
39465 return NULL;
39466 }
39467
39468
39469 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39470 PyObject *resultobj = 0;
39471 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39472 wxPoint result;
39473 void *argp1 = 0 ;
39474 int res1 = 0 ;
39475 PyObject *swig_obj[1] ;
39476
39477 if (!args) SWIG_fail;
39478 swig_obj[0] = args;
39479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39480 if (!SWIG_IsOK(res1)) {
39481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39482 }
39483 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39484 {
39485 PyThreadState* __tstate = wxPyBeginAllowThreads();
39486 result = ((wxHelpEvent const *)arg1)->GetPosition();
39487 wxPyEndAllowThreads(__tstate);
39488 if (PyErr_Occurred()) SWIG_fail;
39489 }
39490 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39491 return resultobj;
39492 fail:
39493 return NULL;
39494 }
39495
39496
39497 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39498 PyObject *resultobj = 0;
39499 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39500 wxPoint *arg2 = 0 ;
39501 void *argp1 = 0 ;
39502 int res1 = 0 ;
39503 wxPoint temp2 ;
39504 PyObject * obj0 = 0 ;
39505 PyObject * obj1 = 0 ;
39506 char * kwnames[] = {
39507 (char *) "self",(char *) "pos", NULL
39508 };
39509
39510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39512 if (!SWIG_IsOK(res1)) {
39513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39514 }
39515 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39516 {
39517 arg2 = &temp2;
39518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39519 }
39520 {
39521 PyThreadState* __tstate = wxPyBeginAllowThreads();
39522 (arg1)->SetPosition((wxPoint const &)*arg2);
39523 wxPyEndAllowThreads(__tstate);
39524 if (PyErr_Occurred()) SWIG_fail;
39525 }
39526 resultobj = SWIG_Py_Void();
39527 return resultobj;
39528 fail:
39529 return NULL;
39530 }
39531
39532
39533 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39534 PyObject *resultobj = 0;
39535 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39536 wxString *result = 0 ;
39537 void *argp1 = 0 ;
39538 int res1 = 0 ;
39539 PyObject *swig_obj[1] ;
39540
39541 if (!args) SWIG_fail;
39542 swig_obj[0] = args;
39543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39544 if (!SWIG_IsOK(res1)) {
39545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39546 }
39547 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39548 {
39549 PyThreadState* __tstate = wxPyBeginAllowThreads();
39550 {
39551 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39552 result = (wxString *) &_result_ref;
39553 }
39554 wxPyEndAllowThreads(__tstate);
39555 if (PyErr_Occurred()) SWIG_fail;
39556 }
39557 {
39558 #if wxUSE_UNICODE
39559 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39560 #else
39561 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39562 #endif
39563 }
39564 return resultobj;
39565 fail:
39566 return NULL;
39567 }
39568
39569
39570 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39571 PyObject *resultobj = 0;
39572 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39573 wxString *arg2 = 0 ;
39574 void *argp1 = 0 ;
39575 int res1 = 0 ;
39576 bool temp2 = false ;
39577 PyObject * obj0 = 0 ;
39578 PyObject * obj1 = 0 ;
39579 char * kwnames[] = {
39580 (char *) "self",(char *) "link", NULL
39581 };
39582
39583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39585 if (!SWIG_IsOK(res1)) {
39586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39587 }
39588 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39589 {
39590 arg2 = wxString_in_helper(obj1);
39591 if (arg2 == NULL) SWIG_fail;
39592 temp2 = true;
39593 }
39594 {
39595 PyThreadState* __tstate = wxPyBeginAllowThreads();
39596 (arg1)->SetLink((wxString const &)*arg2);
39597 wxPyEndAllowThreads(__tstate);
39598 if (PyErr_Occurred()) SWIG_fail;
39599 }
39600 resultobj = SWIG_Py_Void();
39601 {
39602 if (temp2)
39603 delete arg2;
39604 }
39605 return resultobj;
39606 fail:
39607 {
39608 if (temp2)
39609 delete arg2;
39610 }
39611 return NULL;
39612 }
39613
39614
39615 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39616 PyObject *resultobj = 0;
39617 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39618 wxString *result = 0 ;
39619 void *argp1 = 0 ;
39620 int res1 = 0 ;
39621 PyObject *swig_obj[1] ;
39622
39623 if (!args) SWIG_fail;
39624 swig_obj[0] = args;
39625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39626 if (!SWIG_IsOK(res1)) {
39627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39628 }
39629 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39630 {
39631 PyThreadState* __tstate = wxPyBeginAllowThreads();
39632 {
39633 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39634 result = (wxString *) &_result_ref;
39635 }
39636 wxPyEndAllowThreads(__tstate);
39637 if (PyErr_Occurred()) SWIG_fail;
39638 }
39639 {
39640 #if wxUSE_UNICODE
39641 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39642 #else
39643 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39644 #endif
39645 }
39646 return resultobj;
39647 fail:
39648 return NULL;
39649 }
39650
39651
39652 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39653 PyObject *resultobj = 0;
39654 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39655 wxString *arg2 = 0 ;
39656 void *argp1 = 0 ;
39657 int res1 = 0 ;
39658 bool temp2 = false ;
39659 PyObject * obj0 = 0 ;
39660 PyObject * obj1 = 0 ;
39661 char * kwnames[] = {
39662 (char *) "self",(char *) "target", NULL
39663 };
39664
39665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39667 if (!SWIG_IsOK(res1)) {
39668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39669 }
39670 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39671 {
39672 arg2 = wxString_in_helper(obj1);
39673 if (arg2 == NULL) SWIG_fail;
39674 temp2 = true;
39675 }
39676 {
39677 PyThreadState* __tstate = wxPyBeginAllowThreads();
39678 (arg1)->SetTarget((wxString const &)*arg2);
39679 wxPyEndAllowThreads(__tstate);
39680 if (PyErr_Occurred()) SWIG_fail;
39681 }
39682 resultobj = SWIG_Py_Void();
39683 {
39684 if (temp2)
39685 delete arg2;
39686 }
39687 return resultobj;
39688 fail:
39689 {
39690 if (temp2)
39691 delete arg2;
39692 }
39693 return NULL;
39694 }
39695
39696
39697 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39698 PyObject *resultobj = 0;
39699 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39700 wxHelpEvent::Origin result;
39701 void *argp1 = 0 ;
39702 int res1 = 0 ;
39703 PyObject *swig_obj[1] ;
39704
39705 if (!args) SWIG_fail;
39706 swig_obj[0] = args;
39707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39708 if (!SWIG_IsOK(res1)) {
39709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39710 }
39711 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39712 {
39713 PyThreadState* __tstate = wxPyBeginAllowThreads();
39714 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39715 wxPyEndAllowThreads(__tstate);
39716 if (PyErr_Occurred()) SWIG_fail;
39717 }
39718 resultobj = SWIG_From_int(static_cast< int >(result));
39719 return resultobj;
39720 fail:
39721 return NULL;
39722 }
39723
39724
39725 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39726 PyObject *resultobj = 0;
39727 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39728 wxHelpEvent::Origin arg2 ;
39729 void *argp1 = 0 ;
39730 int res1 = 0 ;
39731 int val2 ;
39732 int ecode2 = 0 ;
39733 PyObject * obj0 = 0 ;
39734 PyObject * obj1 = 0 ;
39735 char * kwnames[] = {
39736 (char *) "self",(char *) "origin", NULL
39737 };
39738
39739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39741 if (!SWIG_IsOK(res1)) {
39742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39743 }
39744 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39745 ecode2 = SWIG_AsVal_int(obj1, &val2);
39746 if (!SWIG_IsOK(ecode2)) {
39747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39748 }
39749 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39750 {
39751 PyThreadState* __tstate = wxPyBeginAllowThreads();
39752 (arg1)->SetOrigin(arg2);
39753 wxPyEndAllowThreads(__tstate);
39754 if (PyErr_Occurred()) SWIG_fail;
39755 }
39756 resultobj = SWIG_Py_Void();
39757 return resultobj;
39758 fail:
39759 return NULL;
39760 }
39761
39762
39763 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39764 PyObject *obj;
39765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39766 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39767 return SWIG_Py_Void();
39768 }
39769
39770 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39771 return SWIG_Python_InitShadowInstance(args);
39772 }
39773
39774 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39775 PyObject *resultobj = 0;
39776 wxWindow *arg1 = (wxWindow *) NULL ;
39777 bool arg2 = (bool) true ;
39778 wxContextHelp *result = 0 ;
39779 void *argp1 = 0 ;
39780 int res1 = 0 ;
39781 bool val2 ;
39782 int ecode2 = 0 ;
39783 PyObject * obj0 = 0 ;
39784 PyObject * obj1 = 0 ;
39785 char * kwnames[] = {
39786 (char *) "window",(char *) "doNow", NULL
39787 };
39788
39789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39790 if (obj0) {
39791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39792 if (!SWIG_IsOK(res1)) {
39793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39794 }
39795 arg1 = reinterpret_cast< wxWindow * >(argp1);
39796 }
39797 if (obj1) {
39798 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39799 if (!SWIG_IsOK(ecode2)) {
39800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39801 }
39802 arg2 = static_cast< bool >(val2);
39803 }
39804 {
39805 if (!wxPyCheckForApp()) SWIG_fail;
39806 PyThreadState* __tstate = wxPyBeginAllowThreads();
39807 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39808 wxPyEndAllowThreads(__tstate);
39809 if (PyErr_Occurred()) SWIG_fail;
39810 }
39811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39812 return resultobj;
39813 fail:
39814 return NULL;
39815 }
39816
39817
39818 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39819 PyObject *resultobj = 0;
39820 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39821 void *argp1 = 0 ;
39822 int res1 = 0 ;
39823 PyObject *swig_obj[1] ;
39824
39825 if (!args) SWIG_fail;
39826 swig_obj[0] = args;
39827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39828 if (!SWIG_IsOK(res1)) {
39829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39830 }
39831 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39832 {
39833 PyThreadState* __tstate = wxPyBeginAllowThreads();
39834 delete arg1;
39835
39836 wxPyEndAllowThreads(__tstate);
39837 if (PyErr_Occurred()) SWIG_fail;
39838 }
39839 resultobj = SWIG_Py_Void();
39840 return resultobj;
39841 fail:
39842 return NULL;
39843 }
39844
39845
39846 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39847 PyObject *resultobj = 0;
39848 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39849 wxWindow *arg2 = (wxWindow *) NULL ;
39850 bool result;
39851 void *argp1 = 0 ;
39852 int res1 = 0 ;
39853 void *argp2 = 0 ;
39854 int res2 = 0 ;
39855 PyObject * obj0 = 0 ;
39856 PyObject * obj1 = 0 ;
39857 char * kwnames[] = {
39858 (char *) "self",(char *) "window", NULL
39859 };
39860
39861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39863 if (!SWIG_IsOK(res1)) {
39864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39865 }
39866 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39867 if (obj1) {
39868 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39869 if (!SWIG_IsOK(res2)) {
39870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39871 }
39872 arg2 = reinterpret_cast< wxWindow * >(argp2);
39873 }
39874 {
39875 PyThreadState* __tstate = wxPyBeginAllowThreads();
39876 result = (bool)(arg1)->BeginContextHelp(arg2);
39877 wxPyEndAllowThreads(__tstate);
39878 if (PyErr_Occurred()) SWIG_fail;
39879 }
39880 {
39881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39882 }
39883 return resultobj;
39884 fail:
39885 return NULL;
39886 }
39887
39888
39889 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39890 PyObject *resultobj = 0;
39891 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39892 bool result;
39893 void *argp1 = 0 ;
39894 int res1 = 0 ;
39895 PyObject *swig_obj[1] ;
39896
39897 if (!args) SWIG_fail;
39898 swig_obj[0] = args;
39899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39900 if (!SWIG_IsOK(res1)) {
39901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39902 }
39903 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39904 {
39905 PyThreadState* __tstate = wxPyBeginAllowThreads();
39906 result = (bool)(arg1)->EndContextHelp();
39907 wxPyEndAllowThreads(__tstate);
39908 if (PyErr_Occurred()) SWIG_fail;
39909 }
39910 {
39911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39912 }
39913 return resultobj;
39914 fail:
39915 return NULL;
39916 }
39917
39918
39919 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39920 PyObject *obj;
39921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39922 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39923 return SWIG_Py_Void();
39924 }
39925
39926 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39927 return SWIG_Python_InitShadowInstance(args);
39928 }
39929
39930 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39931 PyObject *resultobj = 0;
39932 wxWindow *arg1 = (wxWindow *) 0 ;
39933 int arg2 = (int) wxID_CONTEXT_HELP ;
39934 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39935 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39936 wxSize const &arg4_defvalue = wxDefaultSize ;
39937 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39938 long arg5 = (long) wxBU_AUTODRAW ;
39939 wxContextHelpButton *result = 0 ;
39940 void *argp1 = 0 ;
39941 int res1 = 0 ;
39942 int val2 ;
39943 int ecode2 = 0 ;
39944 wxPoint temp3 ;
39945 wxSize temp4 ;
39946 long val5 ;
39947 int ecode5 = 0 ;
39948 PyObject * obj0 = 0 ;
39949 PyObject * obj1 = 0 ;
39950 PyObject * obj2 = 0 ;
39951 PyObject * obj3 = 0 ;
39952 PyObject * obj4 = 0 ;
39953 char * kwnames[] = {
39954 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39955 };
39956
39957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39959 if (!SWIG_IsOK(res1)) {
39960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39961 }
39962 arg1 = reinterpret_cast< wxWindow * >(argp1);
39963 if (obj1) {
39964 ecode2 = SWIG_AsVal_int(obj1, &val2);
39965 if (!SWIG_IsOK(ecode2)) {
39966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39967 }
39968 arg2 = static_cast< int >(val2);
39969 }
39970 if (obj2) {
39971 {
39972 arg3 = &temp3;
39973 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39974 }
39975 }
39976 if (obj3) {
39977 {
39978 arg4 = &temp4;
39979 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39980 }
39981 }
39982 if (obj4) {
39983 ecode5 = SWIG_AsVal_long(obj4, &val5);
39984 if (!SWIG_IsOK(ecode5)) {
39985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39986 }
39987 arg5 = static_cast< long >(val5);
39988 }
39989 {
39990 if (!wxPyCheckForApp()) SWIG_fail;
39991 PyThreadState* __tstate = wxPyBeginAllowThreads();
39992 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39993 wxPyEndAllowThreads(__tstate);
39994 if (PyErr_Occurred()) SWIG_fail;
39995 }
39996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39997 return resultobj;
39998 fail:
39999 return NULL;
40000 }
40001
40002
40003 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40004 PyObject *obj;
40005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40006 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40007 return SWIG_Py_Void();
40008 }
40009
40010 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40011 return SWIG_Python_InitShadowInstance(args);
40012 }
40013
40014 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40015 PyObject *resultobj = 0;
40016 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40017 void *argp1 = 0 ;
40018 int res1 = 0 ;
40019 PyObject *swig_obj[1] ;
40020
40021 if (!args) SWIG_fail;
40022 swig_obj[0] = args;
40023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40024 if (!SWIG_IsOK(res1)) {
40025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40026 }
40027 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40028 {
40029 PyThreadState* __tstate = wxPyBeginAllowThreads();
40030 delete arg1;
40031
40032 wxPyEndAllowThreads(__tstate);
40033 if (PyErr_Occurred()) SWIG_fail;
40034 }
40035 resultobj = SWIG_Py_Void();
40036 return resultobj;
40037 fail:
40038 return NULL;
40039 }
40040
40041
40042 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40043 PyObject *resultobj = 0;
40044 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40045 wxHelpProvider *result = 0 ;
40046 int res1 = 0 ;
40047 PyObject * obj0 = 0 ;
40048 char * kwnames[] = {
40049 (char *) "helpProvider", NULL
40050 };
40051
40052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40053 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40054 if (!SWIG_IsOK(res1)) {
40055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40056 }
40057 {
40058 PyThreadState* __tstate = wxPyBeginAllowThreads();
40059 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40060 wxPyEndAllowThreads(__tstate);
40061 if (PyErr_Occurred()) SWIG_fail;
40062 }
40063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40064 return resultobj;
40065 fail:
40066 return NULL;
40067 }
40068
40069
40070 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40071 PyObject *resultobj = 0;
40072 wxHelpProvider *result = 0 ;
40073
40074 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40075 {
40076 PyThreadState* __tstate = wxPyBeginAllowThreads();
40077 result = (wxHelpProvider *)wxHelpProvider::Get();
40078 wxPyEndAllowThreads(__tstate);
40079 if (PyErr_Occurred()) SWIG_fail;
40080 }
40081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40082 return resultobj;
40083 fail:
40084 return NULL;
40085 }
40086
40087
40088 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40089 PyObject *resultobj = 0;
40090 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40091 wxWindow *arg2 = (wxWindow *) 0 ;
40092 wxString result;
40093 void *argp1 = 0 ;
40094 int res1 = 0 ;
40095 void *argp2 = 0 ;
40096 int res2 = 0 ;
40097 PyObject * obj0 = 0 ;
40098 PyObject * obj1 = 0 ;
40099 char * kwnames[] = {
40100 (char *) "self",(char *) "window", NULL
40101 };
40102
40103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40105 if (!SWIG_IsOK(res1)) {
40106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40107 }
40108 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40109 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40110 if (!SWIG_IsOK(res2)) {
40111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40112 }
40113 arg2 = reinterpret_cast< wxWindow * >(argp2);
40114 {
40115 PyThreadState* __tstate = wxPyBeginAllowThreads();
40116 result = (arg1)->GetHelp((wxWindow const *)arg2);
40117 wxPyEndAllowThreads(__tstate);
40118 if (PyErr_Occurred()) SWIG_fail;
40119 }
40120 {
40121 #if wxUSE_UNICODE
40122 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40123 #else
40124 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40125 #endif
40126 }
40127 return resultobj;
40128 fail:
40129 return NULL;
40130 }
40131
40132
40133 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40134 PyObject *resultobj = 0;
40135 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40136 wxWindow *arg2 = (wxWindow *) 0 ;
40137 bool result;
40138 void *argp1 = 0 ;
40139 int res1 = 0 ;
40140 void *argp2 = 0 ;
40141 int res2 = 0 ;
40142 PyObject * obj0 = 0 ;
40143 PyObject * obj1 = 0 ;
40144 char * kwnames[] = {
40145 (char *) "self",(char *) "window", NULL
40146 };
40147
40148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40150 if (!SWIG_IsOK(res1)) {
40151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40152 }
40153 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40154 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40155 if (!SWIG_IsOK(res2)) {
40156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40157 }
40158 arg2 = reinterpret_cast< wxWindow * >(argp2);
40159 {
40160 PyThreadState* __tstate = wxPyBeginAllowThreads();
40161 result = (bool)(arg1)->ShowHelp(arg2);
40162 wxPyEndAllowThreads(__tstate);
40163 if (PyErr_Occurred()) SWIG_fail;
40164 }
40165 {
40166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40167 }
40168 return resultobj;
40169 fail:
40170 return NULL;
40171 }
40172
40173
40174 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40175 PyObject *resultobj = 0;
40176 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40177 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40178 wxPoint *arg3 = 0 ;
40179 wxHelpEvent::Origin arg4 ;
40180 bool result;
40181 void *argp1 = 0 ;
40182 int res1 = 0 ;
40183 void *argp2 = 0 ;
40184 int res2 = 0 ;
40185 wxPoint temp3 ;
40186 int val4 ;
40187 int ecode4 = 0 ;
40188 PyObject * obj0 = 0 ;
40189 PyObject * obj1 = 0 ;
40190 PyObject * obj2 = 0 ;
40191 PyObject * obj3 = 0 ;
40192 char * kwnames[] = {
40193 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40194 };
40195
40196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40198 if (!SWIG_IsOK(res1)) {
40199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40200 }
40201 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40203 if (!SWIG_IsOK(res2)) {
40204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40205 }
40206 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40207 {
40208 arg3 = &temp3;
40209 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40210 }
40211 ecode4 = SWIG_AsVal_int(obj3, &val4);
40212 if (!SWIG_IsOK(ecode4)) {
40213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40214 }
40215 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40216 {
40217 PyThreadState* __tstate = wxPyBeginAllowThreads();
40218 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40219 wxPyEndAllowThreads(__tstate);
40220 if (PyErr_Occurred()) SWIG_fail;
40221 }
40222 {
40223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40224 }
40225 return resultobj;
40226 fail:
40227 return NULL;
40228 }
40229
40230
40231 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40232 PyObject *resultobj = 0;
40233 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40234 wxWindow *arg2 = (wxWindow *) 0 ;
40235 wxString *arg3 = 0 ;
40236 void *argp1 = 0 ;
40237 int res1 = 0 ;
40238 void *argp2 = 0 ;
40239 int res2 = 0 ;
40240 bool temp3 = false ;
40241 PyObject * obj0 = 0 ;
40242 PyObject * obj1 = 0 ;
40243 PyObject * obj2 = 0 ;
40244 char * kwnames[] = {
40245 (char *) "self",(char *) "window",(char *) "text", NULL
40246 };
40247
40248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40250 if (!SWIG_IsOK(res1)) {
40251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40252 }
40253 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40254 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40255 if (!SWIG_IsOK(res2)) {
40256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40257 }
40258 arg2 = reinterpret_cast< wxWindow * >(argp2);
40259 {
40260 arg3 = wxString_in_helper(obj2);
40261 if (arg3 == NULL) SWIG_fail;
40262 temp3 = true;
40263 }
40264 {
40265 PyThreadState* __tstate = wxPyBeginAllowThreads();
40266 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40267 wxPyEndAllowThreads(__tstate);
40268 if (PyErr_Occurred()) SWIG_fail;
40269 }
40270 resultobj = SWIG_Py_Void();
40271 {
40272 if (temp3)
40273 delete arg3;
40274 }
40275 return resultobj;
40276 fail:
40277 {
40278 if (temp3)
40279 delete arg3;
40280 }
40281 return NULL;
40282 }
40283
40284
40285 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40286 PyObject *resultobj = 0;
40287 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40288 int arg2 ;
40289 wxString *arg3 = 0 ;
40290 void *argp1 = 0 ;
40291 int res1 = 0 ;
40292 int val2 ;
40293 int ecode2 = 0 ;
40294 bool temp3 = false ;
40295 PyObject * obj0 = 0 ;
40296 PyObject * obj1 = 0 ;
40297 PyObject * obj2 = 0 ;
40298 char * kwnames[] = {
40299 (char *) "self",(char *) "id",(char *) "text", NULL
40300 };
40301
40302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40304 if (!SWIG_IsOK(res1)) {
40305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40306 }
40307 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40308 ecode2 = SWIG_AsVal_int(obj1, &val2);
40309 if (!SWIG_IsOK(ecode2)) {
40310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40311 }
40312 arg2 = static_cast< int >(val2);
40313 {
40314 arg3 = wxString_in_helper(obj2);
40315 if (arg3 == NULL) SWIG_fail;
40316 temp3 = true;
40317 }
40318 {
40319 PyThreadState* __tstate = wxPyBeginAllowThreads();
40320 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40321 wxPyEndAllowThreads(__tstate);
40322 if (PyErr_Occurred()) SWIG_fail;
40323 }
40324 resultobj = SWIG_Py_Void();
40325 {
40326 if (temp3)
40327 delete arg3;
40328 }
40329 return resultobj;
40330 fail:
40331 {
40332 if (temp3)
40333 delete arg3;
40334 }
40335 return NULL;
40336 }
40337
40338
40339 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40340 PyObject *resultobj = 0;
40341 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40342 wxWindow *arg2 = (wxWindow *) 0 ;
40343 void *argp1 = 0 ;
40344 int res1 = 0 ;
40345 void *argp2 = 0 ;
40346 int res2 = 0 ;
40347 PyObject * obj0 = 0 ;
40348 PyObject * obj1 = 0 ;
40349 char * kwnames[] = {
40350 (char *) "self",(char *) "window", NULL
40351 };
40352
40353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40355 if (!SWIG_IsOK(res1)) {
40356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40357 }
40358 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40359 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40360 if (!SWIG_IsOK(res2)) {
40361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40362 }
40363 arg2 = reinterpret_cast< wxWindow * >(argp2);
40364 {
40365 PyThreadState* __tstate = wxPyBeginAllowThreads();
40366 (arg1)->RemoveHelp(arg2);
40367 wxPyEndAllowThreads(__tstate);
40368 if (PyErr_Occurred()) SWIG_fail;
40369 }
40370 resultobj = SWIG_Py_Void();
40371 return resultobj;
40372 fail:
40373 return NULL;
40374 }
40375
40376
40377 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40378 PyObject *resultobj = 0;
40379 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40380 void *argp1 = 0 ;
40381 int res1 = 0 ;
40382 PyObject *swig_obj[1] ;
40383
40384 if (!args) SWIG_fail;
40385 swig_obj[0] = args;
40386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40387 if (!SWIG_IsOK(res1)) {
40388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40389 }
40390 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40391 {
40392 PyThreadState* __tstate = wxPyBeginAllowThreads();
40393 wxHelpProvider_Destroy(arg1);
40394 wxPyEndAllowThreads(__tstate);
40395 if (PyErr_Occurred()) SWIG_fail;
40396 }
40397 resultobj = SWIG_Py_Void();
40398 return resultobj;
40399 fail:
40400 return NULL;
40401 }
40402
40403
40404 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40405 PyObject *obj;
40406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40407 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40408 return SWIG_Py_Void();
40409 }
40410
40411 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40412 PyObject *resultobj = 0;
40413 wxSimpleHelpProvider *result = 0 ;
40414
40415 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40416 {
40417 PyThreadState* __tstate = wxPyBeginAllowThreads();
40418 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40419 wxPyEndAllowThreads(__tstate);
40420 if (PyErr_Occurred()) SWIG_fail;
40421 }
40422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40423 return resultobj;
40424 fail:
40425 return NULL;
40426 }
40427
40428
40429 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40430 PyObject *obj;
40431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40432 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40433 return SWIG_Py_Void();
40434 }
40435
40436 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40437 return SWIG_Python_InitShadowInstance(args);
40438 }
40439
40440 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40441 PyObject *resultobj = 0;
40442 wxBitmap *arg1 = 0 ;
40443 wxCursor const &arg2_defvalue = wxNullCursor ;
40444 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40445 wxGenericDragImage *result = 0 ;
40446 void *argp1 = 0 ;
40447 int res1 = 0 ;
40448 void *argp2 = 0 ;
40449 int res2 = 0 ;
40450 PyObject * obj0 = 0 ;
40451 PyObject * obj1 = 0 ;
40452 char * kwnames[] = {
40453 (char *) "image",(char *) "cursor", NULL
40454 };
40455
40456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40458 if (!SWIG_IsOK(res1)) {
40459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40460 }
40461 if (!argp1) {
40462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40463 }
40464 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40465 if (obj1) {
40466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40467 if (!SWIG_IsOK(res2)) {
40468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40469 }
40470 if (!argp2) {
40471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40472 }
40473 arg2 = reinterpret_cast< wxCursor * >(argp2);
40474 }
40475 {
40476 if (!wxPyCheckForApp()) SWIG_fail;
40477 PyThreadState* __tstate = wxPyBeginAllowThreads();
40478 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40479 wxPyEndAllowThreads(__tstate);
40480 if (PyErr_Occurred()) SWIG_fail;
40481 }
40482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40483 return resultobj;
40484 fail:
40485 return NULL;
40486 }
40487
40488
40489 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40490 PyObject *resultobj = 0;
40491 wxIcon *arg1 = 0 ;
40492 wxCursor const &arg2_defvalue = wxNullCursor ;
40493 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40494 wxGenericDragImage *result = 0 ;
40495 void *argp1 = 0 ;
40496 int res1 = 0 ;
40497 void *argp2 = 0 ;
40498 int res2 = 0 ;
40499 PyObject * obj0 = 0 ;
40500 PyObject * obj1 = 0 ;
40501 char * kwnames[] = {
40502 (char *) "image",(char *) "cursor", NULL
40503 };
40504
40505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40506 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40507 if (!SWIG_IsOK(res1)) {
40508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40509 }
40510 if (!argp1) {
40511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40512 }
40513 arg1 = reinterpret_cast< wxIcon * >(argp1);
40514 if (obj1) {
40515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40516 if (!SWIG_IsOK(res2)) {
40517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40518 }
40519 if (!argp2) {
40520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40521 }
40522 arg2 = reinterpret_cast< wxCursor * >(argp2);
40523 }
40524 {
40525 if (!wxPyCheckForApp()) SWIG_fail;
40526 PyThreadState* __tstate = wxPyBeginAllowThreads();
40527 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40528 wxPyEndAllowThreads(__tstate);
40529 if (PyErr_Occurred()) SWIG_fail;
40530 }
40531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40532 return resultobj;
40533 fail:
40534 return NULL;
40535 }
40536
40537
40538 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40539 PyObject *resultobj = 0;
40540 wxString *arg1 = 0 ;
40541 wxCursor const &arg2_defvalue = wxNullCursor ;
40542 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40543 wxGenericDragImage *result = 0 ;
40544 bool temp1 = false ;
40545 void *argp2 = 0 ;
40546 int res2 = 0 ;
40547 PyObject * obj0 = 0 ;
40548 PyObject * obj1 = 0 ;
40549 char * kwnames[] = {
40550 (char *) "str",(char *) "cursor", NULL
40551 };
40552
40553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40554 {
40555 arg1 = wxString_in_helper(obj0);
40556 if (arg1 == NULL) SWIG_fail;
40557 temp1 = true;
40558 }
40559 if (obj1) {
40560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40561 if (!SWIG_IsOK(res2)) {
40562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40563 }
40564 if (!argp2) {
40565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40566 }
40567 arg2 = reinterpret_cast< wxCursor * >(argp2);
40568 }
40569 {
40570 if (!wxPyCheckForApp()) SWIG_fail;
40571 PyThreadState* __tstate = wxPyBeginAllowThreads();
40572 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40573 wxPyEndAllowThreads(__tstate);
40574 if (PyErr_Occurred()) SWIG_fail;
40575 }
40576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40577 {
40578 if (temp1)
40579 delete arg1;
40580 }
40581 return resultobj;
40582 fail:
40583 {
40584 if (temp1)
40585 delete arg1;
40586 }
40587 return NULL;
40588 }
40589
40590
40591 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40592 PyObject *resultobj = 0;
40593 wxPyTreeCtrl *arg1 = 0 ;
40594 wxTreeItemId *arg2 = 0 ;
40595 wxGenericDragImage *result = 0 ;
40596 void *argp1 = 0 ;
40597 int res1 = 0 ;
40598 void *argp2 = 0 ;
40599 int res2 = 0 ;
40600 PyObject * obj0 = 0 ;
40601 PyObject * obj1 = 0 ;
40602 char * kwnames[] = {
40603 (char *) "treeCtrl",(char *) "id", NULL
40604 };
40605
40606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40607 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40608 if (!SWIG_IsOK(res1)) {
40609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40610 }
40611 if (!argp1) {
40612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40613 }
40614 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40616 if (!SWIG_IsOK(res2)) {
40617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40618 }
40619 if (!argp2) {
40620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40621 }
40622 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40623 {
40624 if (!wxPyCheckForApp()) SWIG_fail;
40625 PyThreadState* __tstate = wxPyBeginAllowThreads();
40626 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40627 wxPyEndAllowThreads(__tstate);
40628 if (PyErr_Occurred()) SWIG_fail;
40629 }
40630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40631 return resultobj;
40632 fail:
40633 return NULL;
40634 }
40635
40636
40637 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40638 PyObject *resultobj = 0;
40639 wxPyListCtrl *arg1 = 0 ;
40640 long arg2 ;
40641 wxGenericDragImage *result = 0 ;
40642 void *argp1 = 0 ;
40643 int res1 = 0 ;
40644 long val2 ;
40645 int ecode2 = 0 ;
40646 PyObject * obj0 = 0 ;
40647 PyObject * obj1 = 0 ;
40648 char * kwnames[] = {
40649 (char *) "listCtrl",(char *) "id", NULL
40650 };
40651
40652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40653 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40654 if (!SWIG_IsOK(res1)) {
40655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40656 }
40657 if (!argp1) {
40658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40659 }
40660 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40661 ecode2 = SWIG_AsVal_long(obj1, &val2);
40662 if (!SWIG_IsOK(ecode2)) {
40663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40664 }
40665 arg2 = static_cast< long >(val2);
40666 {
40667 if (!wxPyCheckForApp()) SWIG_fail;
40668 PyThreadState* __tstate = wxPyBeginAllowThreads();
40669 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40670 wxPyEndAllowThreads(__tstate);
40671 if (PyErr_Occurred()) SWIG_fail;
40672 }
40673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40674 return resultobj;
40675 fail:
40676 return NULL;
40677 }
40678
40679
40680 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40681 PyObject *resultobj = 0;
40682 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40683 void *argp1 = 0 ;
40684 int res1 = 0 ;
40685 PyObject *swig_obj[1] ;
40686
40687 if (!args) SWIG_fail;
40688 swig_obj[0] = args;
40689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40690 if (!SWIG_IsOK(res1)) {
40691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40692 }
40693 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40694 {
40695 PyThreadState* __tstate = wxPyBeginAllowThreads();
40696 delete arg1;
40697
40698 wxPyEndAllowThreads(__tstate);
40699 if (PyErr_Occurred()) SWIG_fail;
40700 }
40701 resultobj = SWIG_Py_Void();
40702 return resultobj;
40703 fail:
40704 return NULL;
40705 }
40706
40707
40708 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40709 PyObject *resultobj = 0;
40710 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40711 wxBitmap *arg2 = (wxBitmap *) 0 ;
40712 void *argp1 = 0 ;
40713 int res1 = 0 ;
40714 void *argp2 = 0 ;
40715 int res2 = 0 ;
40716 PyObject * obj0 = 0 ;
40717 PyObject * obj1 = 0 ;
40718 char * kwnames[] = {
40719 (char *) "self",(char *) "bitmap", NULL
40720 };
40721
40722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40724 if (!SWIG_IsOK(res1)) {
40725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40726 }
40727 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40729 if (!SWIG_IsOK(res2)) {
40730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40731 }
40732 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40733 {
40734 PyThreadState* __tstate = wxPyBeginAllowThreads();
40735 (arg1)->SetBackingBitmap(arg2);
40736 wxPyEndAllowThreads(__tstate);
40737 if (PyErr_Occurred()) SWIG_fail;
40738 }
40739 resultobj = SWIG_Py_Void();
40740 return resultobj;
40741 fail:
40742 return NULL;
40743 }
40744
40745
40746 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40747 PyObject *resultobj = 0;
40748 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40749 wxPoint *arg2 = 0 ;
40750 wxWindow *arg3 = (wxWindow *) 0 ;
40751 bool arg4 = (bool) false ;
40752 wxRect *arg5 = (wxRect *) NULL ;
40753 bool result;
40754 void *argp1 = 0 ;
40755 int res1 = 0 ;
40756 wxPoint temp2 ;
40757 void *argp3 = 0 ;
40758 int res3 = 0 ;
40759 bool val4 ;
40760 int ecode4 = 0 ;
40761 void *argp5 = 0 ;
40762 int res5 = 0 ;
40763 PyObject * obj0 = 0 ;
40764 PyObject * obj1 = 0 ;
40765 PyObject * obj2 = 0 ;
40766 PyObject * obj3 = 0 ;
40767 PyObject * obj4 = 0 ;
40768 char * kwnames[] = {
40769 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40770 };
40771
40772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40774 if (!SWIG_IsOK(res1)) {
40775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40776 }
40777 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40778 {
40779 arg2 = &temp2;
40780 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40781 }
40782 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40783 if (!SWIG_IsOK(res3)) {
40784 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40785 }
40786 arg3 = reinterpret_cast< wxWindow * >(argp3);
40787 if (obj3) {
40788 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40789 if (!SWIG_IsOK(ecode4)) {
40790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40791 }
40792 arg4 = static_cast< bool >(val4);
40793 }
40794 if (obj4) {
40795 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40796 if (!SWIG_IsOK(res5)) {
40797 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40798 }
40799 arg5 = reinterpret_cast< wxRect * >(argp5);
40800 }
40801 {
40802 PyThreadState* __tstate = wxPyBeginAllowThreads();
40803 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40804 wxPyEndAllowThreads(__tstate);
40805 if (PyErr_Occurred()) SWIG_fail;
40806 }
40807 {
40808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40809 }
40810 return resultobj;
40811 fail:
40812 return NULL;
40813 }
40814
40815
40816 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40817 PyObject *resultobj = 0;
40818 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40819 wxPoint *arg2 = 0 ;
40820 wxWindow *arg3 = (wxWindow *) 0 ;
40821 wxWindow *arg4 = (wxWindow *) 0 ;
40822 bool result;
40823 void *argp1 = 0 ;
40824 int res1 = 0 ;
40825 wxPoint temp2 ;
40826 void *argp3 = 0 ;
40827 int res3 = 0 ;
40828 void *argp4 = 0 ;
40829 int res4 = 0 ;
40830 PyObject * obj0 = 0 ;
40831 PyObject * obj1 = 0 ;
40832 PyObject * obj2 = 0 ;
40833 PyObject * obj3 = 0 ;
40834 char * kwnames[] = {
40835 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40836 };
40837
40838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40840 if (!SWIG_IsOK(res1)) {
40841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40842 }
40843 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40844 {
40845 arg2 = &temp2;
40846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40847 }
40848 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40849 if (!SWIG_IsOK(res3)) {
40850 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40851 }
40852 arg3 = reinterpret_cast< wxWindow * >(argp3);
40853 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40854 if (!SWIG_IsOK(res4)) {
40855 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40856 }
40857 arg4 = reinterpret_cast< wxWindow * >(argp4);
40858 {
40859 PyThreadState* __tstate = wxPyBeginAllowThreads();
40860 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40861 wxPyEndAllowThreads(__tstate);
40862 if (PyErr_Occurred()) SWIG_fail;
40863 }
40864 {
40865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40866 }
40867 return resultobj;
40868 fail:
40869 return NULL;
40870 }
40871
40872
40873 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40874 PyObject *resultobj = 0;
40875 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40876 bool result;
40877 void *argp1 = 0 ;
40878 int res1 = 0 ;
40879 PyObject *swig_obj[1] ;
40880
40881 if (!args) SWIG_fail;
40882 swig_obj[0] = args;
40883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40884 if (!SWIG_IsOK(res1)) {
40885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40886 }
40887 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40888 {
40889 PyThreadState* __tstate = wxPyBeginAllowThreads();
40890 result = (bool)(arg1)->EndDrag();
40891 wxPyEndAllowThreads(__tstate);
40892 if (PyErr_Occurred()) SWIG_fail;
40893 }
40894 {
40895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40896 }
40897 return resultobj;
40898 fail:
40899 return NULL;
40900 }
40901
40902
40903 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40904 PyObject *resultobj = 0;
40905 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40906 wxPoint *arg2 = 0 ;
40907 bool result;
40908 void *argp1 = 0 ;
40909 int res1 = 0 ;
40910 wxPoint temp2 ;
40911 PyObject * obj0 = 0 ;
40912 PyObject * obj1 = 0 ;
40913 char * kwnames[] = {
40914 (char *) "self",(char *) "pt", NULL
40915 };
40916
40917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40919 if (!SWIG_IsOK(res1)) {
40920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40921 }
40922 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40923 {
40924 arg2 = &temp2;
40925 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40926 }
40927 {
40928 PyThreadState* __tstate = wxPyBeginAllowThreads();
40929 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40930 wxPyEndAllowThreads(__tstate);
40931 if (PyErr_Occurred()) SWIG_fail;
40932 }
40933 {
40934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40935 }
40936 return resultobj;
40937 fail:
40938 return NULL;
40939 }
40940
40941
40942 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40943 PyObject *resultobj = 0;
40944 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40945 bool result;
40946 void *argp1 = 0 ;
40947 int res1 = 0 ;
40948 PyObject *swig_obj[1] ;
40949
40950 if (!args) SWIG_fail;
40951 swig_obj[0] = args;
40952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40953 if (!SWIG_IsOK(res1)) {
40954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40955 }
40956 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40957 {
40958 PyThreadState* __tstate = wxPyBeginAllowThreads();
40959 result = (bool)(arg1)->Show();
40960 wxPyEndAllowThreads(__tstate);
40961 if (PyErr_Occurred()) SWIG_fail;
40962 }
40963 {
40964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40965 }
40966 return resultobj;
40967 fail:
40968 return NULL;
40969 }
40970
40971
40972 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40973 PyObject *resultobj = 0;
40974 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40975 bool result;
40976 void *argp1 = 0 ;
40977 int res1 = 0 ;
40978 PyObject *swig_obj[1] ;
40979
40980 if (!args) SWIG_fail;
40981 swig_obj[0] = args;
40982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40983 if (!SWIG_IsOK(res1)) {
40984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40985 }
40986 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40987 {
40988 PyThreadState* __tstate = wxPyBeginAllowThreads();
40989 result = (bool)(arg1)->Hide();
40990 wxPyEndAllowThreads(__tstate);
40991 if (PyErr_Occurred()) SWIG_fail;
40992 }
40993 {
40994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40995 }
40996 return resultobj;
40997 fail:
40998 return NULL;
40999 }
41000
41001
41002 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41003 PyObject *resultobj = 0;
41004 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41005 wxPoint *arg2 = 0 ;
41006 wxRect result;
41007 void *argp1 = 0 ;
41008 int res1 = 0 ;
41009 wxPoint temp2 ;
41010 PyObject * obj0 = 0 ;
41011 PyObject * obj1 = 0 ;
41012 char * kwnames[] = {
41013 (char *) "self",(char *) "pos", NULL
41014 };
41015
41016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41018 if (!SWIG_IsOK(res1)) {
41019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41020 }
41021 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41022 {
41023 arg2 = &temp2;
41024 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41025 }
41026 {
41027 PyThreadState* __tstate = wxPyBeginAllowThreads();
41028 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41029 wxPyEndAllowThreads(__tstate);
41030 if (PyErr_Occurred()) SWIG_fail;
41031 }
41032 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41033 return resultobj;
41034 fail:
41035 return NULL;
41036 }
41037
41038
41039 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41040 PyObject *resultobj = 0;
41041 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41042 wxDC *arg2 = 0 ;
41043 wxPoint *arg3 = 0 ;
41044 bool result;
41045 void *argp1 = 0 ;
41046 int res1 = 0 ;
41047 void *argp2 = 0 ;
41048 int res2 = 0 ;
41049 wxPoint temp3 ;
41050 PyObject * obj0 = 0 ;
41051 PyObject * obj1 = 0 ;
41052 PyObject * obj2 = 0 ;
41053 char * kwnames[] = {
41054 (char *) "self",(char *) "dc",(char *) "pos", NULL
41055 };
41056
41057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41059 if (!SWIG_IsOK(res1)) {
41060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41061 }
41062 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41064 if (!SWIG_IsOK(res2)) {
41065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41066 }
41067 if (!argp2) {
41068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41069 }
41070 arg2 = reinterpret_cast< wxDC * >(argp2);
41071 {
41072 arg3 = &temp3;
41073 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41074 }
41075 {
41076 PyThreadState* __tstate = wxPyBeginAllowThreads();
41077 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41078 wxPyEndAllowThreads(__tstate);
41079 if (PyErr_Occurred()) SWIG_fail;
41080 }
41081 {
41082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41083 }
41084 return resultobj;
41085 fail:
41086 return NULL;
41087 }
41088
41089
41090 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41091 PyObject *resultobj = 0;
41092 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41093 wxDC *arg2 = 0 ;
41094 wxMemoryDC *arg3 = 0 ;
41095 wxRect *arg4 = 0 ;
41096 wxRect *arg5 = 0 ;
41097 bool result;
41098 void *argp1 = 0 ;
41099 int res1 = 0 ;
41100 void *argp2 = 0 ;
41101 int res2 = 0 ;
41102 void *argp3 = 0 ;
41103 int res3 = 0 ;
41104 wxRect temp4 ;
41105 wxRect temp5 ;
41106 PyObject * obj0 = 0 ;
41107 PyObject * obj1 = 0 ;
41108 PyObject * obj2 = 0 ;
41109 PyObject * obj3 = 0 ;
41110 PyObject * obj4 = 0 ;
41111 char * kwnames[] = {
41112 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41113 };
41114
41115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41117 if (!SWIG_IsOK(res1)) {
41118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41119 }
41120 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41122 if (!SWIG_IsOK(res2)) {
41123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41124 }
41125 if (!argp2) {
41126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41127 }
41128 arg2 = reinterpret_cast< wxDC * >(argp2);
41129 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41130 if (!SWIG_IsOK(res3)) {
41131 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41132 }
41133 if (!argp3) {
41134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41135 }
41136 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41137 {
41138 arg4 = &temp4;
41139 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41140 }
41141 {
41142 arg5 = &temp5;
41143 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41144 }
41145 {
41146 PyThreadState* __tstate = wxPyBeginAllowThreads();
41147 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41148 wxPyEndAllowThreads(__tstate);
41149 if (PyErr_Occurred()) SWIG_fail;
41150 }
41151 {
41152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41153 }
41154 return resultobj;
41155 fail:
41156 return NULL;
41157 }
41158
41159
41160 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41161 PyObject *resultobj = 0;
41162 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41163 wxPoint *arg2 = 0 ;
41164 wxPoint *arg3 = 0 ;
41165 bool arg4 ;
41166 bool arg5 ;
41167 bool result;
41168 void *argp1 = 0 ;
41169 int res1 = 0 ;
41170 wxPoint temp2 ;
41171 wxPoint temp3 ;
41172 bool val4 ;
41173 int ecode4 = 0 ;
41174 bool val5 ;
41175 int ecode5 = 0 ;
41176 PyObject * obj0 = 0 ;
41177 PyObject * obj1 = 0 ;
41178 PyObject * obj2 = 0 ;
41179 PyObject * obj3 = 0 ;
41180 PyObject * obj4 = 0 ;
41181 char * kwnames[] = {
41182 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41183 };
41184
41185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41187 if (!SWIG_IsOK(res1)) {
41188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41189 }
41190 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41191 {
41192 arg2 = &temp2;
41193 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41194 }
41195 {
41196 arg3 = &temp3;
41197 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41198 }
41199 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41200 if (!SWIG_IsOK(ecode4)) {
41201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41202 }
41203 arg4 = static_cast< bool >(val4);
41204 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41205 if (!SWIG_IsOK(ecode5)) {
41206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41207 }
41208 arg5 = static_cast< bool >(val5);
41209 {
41210 PyThreadState* __tstate = wxPyBeginAllowThreads();
41211 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41212 wxPyEndAllowThreads(__tstate);
41213 if (PyErr_Occurred()) SWIG_fail;
41214 }
41215 {
41216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41217 }
41218 return resultobj;
41219 fail:
41220 return NULL;
41221 }
41222
41223
41224 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41225 PyObject *obj;
41226 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41227 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41228 return SWIG_Py_Void();
41229 }
41230
41231 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41232 return SWIG_Python_InitShadowInstance(args);
41233 }
41234
41235 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41236 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41237 return 1;
41238 }
41239
41240
41241 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41242 PyObject *pyobj = 0;
41243
41244 {
41245 #if wxUSE_UNICODE
41246 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41247 #else
41248 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41249 #endif
41250 }
41251 return pyobj;
41252 }
41253
41254
41255 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41256 PyObject *resultobj = 0;
41257 wxWindow *arg1 = (wxWindow *) 0 ;
41258 int arg2 = (int) -1 ;
41259 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41260 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41261 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41262 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41263 wxSize const &arg5_defvalue = wxDefaultSize ;
41264 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41265 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41266 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41267 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41268 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41269 wxString *arg8 = (wxString *) &arg8_defvalue ;
41270 wxDatePickerCtrl *result = 0 ;
41271 void *argp1 = 0 ;
41272 int res1 = 0 ;
41273 int val2 ;
41274 int ecode2 = 0 ;
41275 void *argp3 = 0 ;
41276 int res3 = 0 ;
41277 wxPoint temp4 ;
41278 wxSize temp5 ;
41279 long val6 ;
41280 int ecode6 = 0 ;
41281 void *argp7 = 0 ;
41282 int res7 = 0 ;
41283 bool temp8 = false ;
41284 PyObject * obj0 = 0 ;
41285 PyObject * obj1 = 0 ;
41286 PyObject * obj2 = 0 ;
41287 PyObject * obj3 = 0 ;
41288 PyObject * obj4 = 0 ;
41289 PyObject * obj5 = 0 ;
41290 PyObject * obj6 = 0 ;
41291 PyObject * obj7 = 0 ;
41292 char * kwnames[] = {
41293 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41294 };
41295
41296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41298 if (!SWIG_IsOK(res1)) {
41299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41300 }
41301 arg1 = reinterpret_cast< wxWindow * >(argp1);
41302 if (obj1) {
41303 ecode2 = SWIG_AsVal_int(obj1, &val2);
41304 if (!SWIG_IsOK(ecode2)) {
41305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41306 }
41307 arg2 = static_cast< int >(val2);
41308 }
41309 if (obj2) {
41310 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41311 if (!SWIG_IsOK(res3)) {
41312 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41313 }
41314 if (!argp3) {
41315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41316 }
41317 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41318 }
41319 if (obj3) {
41320 {
41321 arg4 = &temp4;
41322 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41323 }
41324 }
41325 if (obj4) {
41326 {
41327 arg5 = &temp5;
41328 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41329 }
41330 }
41331 if (obj5) {
41332 ecode6 = SWIG_AsVal_long(obj5, &val6);
41333 if (!SWIG_IsOK(ecode6)) {
41334 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41335 }
41336 arg6 = static_cast< long >(val6);
41337 }
41338 if (obj6) {
41339 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41340 if (!SWIG_IsOK(res7)) {
41341 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41342 }
41343 if (!argp7) {
41344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41345 }
41346 arg7 = reinterpret_cast< wxValidator * >(argp7);
41347 }
41348 if (obj7) {
41349 {
41350 arg8 = wxString_in_helper(obj7);
41351 if (arg8 == NULL) SWIG_fail;
41352 temp8 = true;
41353 }
41354 }
41355 {
41356 if (!wxPyCheckForApp()) SWIG_fail;
41357 PyThreadState* __tstate = wxPyBeginAllowThreads();
41358 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41359 wxPyEndAllowThreads(__tstate);
41360 if (PyErr_Occurred()) SWIG_fail;
41361 }
41362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41363 {
41364 if (temp8)
41365 delete arg8;
41366 }
41367 return resultobj;
41368 fail:
41369 {
41370 if (temp8)
41371 delete arg8;
41372 }
41373 return NULL;
41374 }
41375
41376
41377 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41378 PyObject *resultobj = 0;
41379 wxDatePickerCtrl *result = 0 ;
41380
41381 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41382 {
41383 if (!wxPyCheckForApp()) SWIG_fail;
41384 PyThreadState* __tstate = wxPyBeginAllowThreads();
41385 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41386 wxPyEndAllowThreads(__tstate);
41387 if (PyErr_Occurred()) SWIG_fail;
41388 }
41389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41390 return resultobj;
41391 fail:
41392 return NULL;
41393 }
41394
41395
41396 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41397 PyObject *resultobj = 0;
41398 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41399 wxWindow *arg2 = (wxWindow *) 0 ;
41400 int arg3 = (int) -1 ;
41401 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41402 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41403 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41404 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41405 wxSize const &arg6_defvalue = wxDefaultSize ;
41406 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41407 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41408 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41409 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41410 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41411 wxString *arg9 = (wxString *) &arg9_defvalue ;
41412 bool result;
41413 void *argp1 = 0 ;
41414 int res1 = 0 ;
41415 void *argp2 = 0 ;
41416 int res2 = 0 ;
41417 int val3 ;
41418 int ecode3 = 0 ;
41419 void *argp4 = 0 ;
41420 int res4 = 0 ;
41421 wxPoint temp5 ;
41422 wxSize temp6 ;
41423 long val7 ;
41424 int ecode7 = 0 ;
41425 void *argp8 = 0 ;
41426 int res8 = 0 ;
41427 bool temp9 = false ;
41428 PyObject * obj0 = 0 ;
41429 PyObject * obj1 = 0 ;
41430 PyObject * obj2 = 0 ;
41431 PyObject * obj3 = 0 ;
41432 PyObject * obj4 = 0 ;
41433 PyObject * obj5 = 0 ;
41434 PyObject * obj6 = 0 ;
41435 PyObject * obj7 = 0 ;
41436 PyObject * obj8 = 0 ;
41437 char * kwnames[] = {
41438 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41439 };
41440
41441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41443 if (!SWIG_IsOK(res1)) {
41444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41445 }
41446 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41447 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41448 if (!SWIG_IsOK(res2)) {
41449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41450 }
41451 arg2 = reinterpret_cast< wxWindow * >(argp2);
41452 if (obj2) {
41453 ecode3 = SWIG_AsVal_int(obj2, &val3);
41454 if (!SWIG_IsOK(ecode3)) {
41455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41456 }
41457 arg3 = static_cast< int >(val3);
41458 }
41459 if (obj3) {
41460 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41461 if (!SWIG_IsOK(res4)) {
41462 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41463 }
41464 if (!argp4) {
41465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41466 }
41467 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41468 }
41469 if (obj4) {
41470 {
41471 arg5 = &temp5;
41472 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41473 }
41474 }
41475 if (obj5) {
41476 {
41477 arg6 = &temp6;
41478 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41479 }
41480 }
41481 if (obj6) {
41482 ecode7 = SWIG_AsVal_long(obj6, &val7);
41483 if (!SWIG_IsOK(ecode7)) {
41484 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41485 }
41486 arg7 = static_cast< long >(val7);
41487 }
41488 if (obj7) {
41489 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41490 if (!SWIG_IsOK(res8)) {
41491 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41492 }
41493 if (!argp8) {
41494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41495 }
41496 arg8 = reinterpret_cast< wxValidator * >(argp8);
41497 }
41498 if (obj8) {
41499 {
41500 arg9 = wxString_in_helper(obj8);
41501 if (arg9 == NULL) SWIG_fail;
41502 temp9 = true;
41503 }
41504 }
41505 {
41506 PyThreadState* __tstate = wxPyBeginAllowThreads();
41507 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41508 wxPyEndAllowThreads(__tstate);
41509 if (PyErr_Occurred()) SWIG_fail;
41510 }
41511 {
41512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41513 }
41514 {
41515 if (temp9)
41516 delete arg9;
41517 }
41518 return resultobj;
41519 fail:
41520 {
41521 if (temp9)
41522 delete arg9;
41523 }
41524 return NULL;
41525 }
41526
41527
41528 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41529 PyObject *resultobj = 0;
41530 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41531 wxDateTime *arg2 = 0 ;
41532 void *argp1 = 0 ;
41533 int res1 = 0 ;
41534 void *argp2 = 0 ;
41535 int res2 = 0 ;
41536 PyObject * obj0 = 0 ;
41537 PyObject * obj1 = 0 ;
41538 char * kwnames[] = {
41539 (char *) "self",(char *) "dt", NULL
41540 };
41541
41542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41544 if (!SWIG_IsOK(res1)) {
41545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41546 }
41547 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41549 if (!SWIG_IsOK(res2)) {
41550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41551 }
41552 if (!argp2) {
41553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41554 }
41555 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41556 {
41557 PyThreadState* __tstate = wxPyBeginAllowThreads();
41558 (arg1)->SetValue((wxDateTime const &)*arg2);
41559 wxPyEndAllowThreads(__tstate);
41560 if (PyErr_Occurred()) SWIG_fail;
41561 }
41562 resultobj = SWIG_Py_Void();
41563 return resultobj;
41564 fail:
41565 return NULL;
41566 }
41567
41568
41569 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41570 PyObject *resultobj = 0;
41571 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41572 wxDateTime result;
41573 void *argp1 = 0 ;
41574 int res1 = 0 ;
41575 PyObject *swig_obj[1] ;
41576
41577 if (!args) SWIG_fail;
41578 swig_obj[0] = args;
41579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41580 if (!SWIG_IsOK(res1)) {
41581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41582 }
41583 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41584 {
41585 PyThreadState* __tstate = wxPyBeginAllowThreads();
41586 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41587 wxPyEndAllowThreads(__tstate);
41588 if (PyErr_Occurred()) SWIG_fail;
41589 }
41590 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41591 return resultobj;
41592 fail:
41593 return NULL;
41594 }
41595
41596
41597 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41598 PyObject *resultobj = 0;
41599 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41600 wxDateTime *arg2 = 0 ;
41601 wxDateTime *arg3 = 0 ;
41602 void *argp1 = 0 ;
41603 int res1 = 0 ;
41604 void *argp2 = 0 ;
41605 int res2 = 0 ;
41606 void *argp3 = 0 ;
41607 int res3 = 0 ;
41608 PyObject * obj0 = 0 ;
41609 PyObject * obj1 = 0 ;
41610 PyObject * obj2 = 0 ;
41611 char * kwnames[] = {
41612 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41613 };
41614
41615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41617 if (!SWIG_IsOK(res1)) {
41618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41619 }
41620 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41622 if (!SWIG_IsOK(res2)) {
41623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41624 }
41625 if (!argp2) {
41626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41627 }
41628 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41629 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41630 if (!SWIG_IsOK(res3)) {
41631 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41632 }
41633 if (!argp3) {
41634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41635 }
41636 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41637 {
41638 PyThreadState* __tstate = wxPyBeginAllowThreads();
41639 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41640 wxPyEndAllowThreads(__tstate);
41641 if (PyErr_Occurred()) SWIG_fail;
41642 }
41643 resultobj = SWIG_Py_Void();
41644 return resultobj;
41645 fail:
41646 return NULL;
41647 }
41648
41649
41650 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41651 PyObject *resultobj = 0;
41652 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41653 wxDateTime result;
41654 void *argp1 = 0 ;
41655 int res1 = 0 ;
41656 PyObject *swig_obj[1] ;
41657
41658 if (!args) SWIG_fail;
41659 swig_obj[0] = args;
41660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41661 if (!SWIG_IsOK(res1)) {
41662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41663 }
41664 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41665 {
41666 PyThreadState* __tstate = wxPyBeginAllowThreads();
41667 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41668 wxPyEndAllowThreads(__tstate);
41669 if (PyErr_Occurred()) SWIG_fail;
41670 }
41671 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41672 return resultobj;
41673 fail:
41674 return NULL;
41675 }
41676
41677
41678 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41679 PyObject *resultobj = 0;
41680 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41681 wxDateTime result;
41682 void *argp1 = 0 ;
41683 int res1 = 0 ;
41684 PyObject *swig_obj[1] ;
41685
41686 if (!args) SWIG_fail;
41687 swig_obj[0] = args;
41688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41689 if (!SWIG_IsOK(res1)) {
41690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41691 }
41692 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41693 {
41694 PyThreadState* __tstate = wxPyBeginAllowThreads();
41695 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41696 wxPyEndAllowThreads(__tstate);
41697 if (PyErr_Occurred()) SWIG_fail;
41698 }
41699 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41700 return resultobj;
41701 fail:
41702 return NULL;
41703 }
41704
41705
41706 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41707 PyObject *obj;
41708 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41709 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41710 return SWIG_Py_Void();
41711 }
41712
41713 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41714 return SWIG_Python_InitShadowInstance(args);
41715 }
41716
41717 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41718 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41719 return 1;
41720 }
41721
41722
41723 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41724 PyObject *pyobj = 0;
41725
41726 {
41727 #if wxUSE_UNICODE
41728 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41729 #else
41730 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41731 #endif
41732 }
41733 return pyobj;
41734 }
41735
41736
41737 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41738 PyObject *resultobj = 0;
41739 wxWindow *arg1 = (wxWindow *) 0 ;
41740 int arg2 ;
41741 wxString *arg3 = 0 ;
41742 wxString *arg4 = 0 ;
41743 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41744 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41745 wxSize const &arg6_defvalue = wxDefaultSize ;
41746 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41747 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41748 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41749 wxString *arg8 = (wxString *) &arg8_defvalue ;
41750 wxHyperlinkCtrl *result = 0 ;
41751 void *argp1 = 0 ;
41752 int res1 = 0 ;
41753 int val2 ;
41754 int ecode2 = 0 ;
41755 bool temp3 = false ;
41756 bool temp4 = false ;
41757 wxPoint temp5 ;
41758 wxSize temp6 ;
41759 long val7 ;
41760 int ecode7 = 0 ;
41761 bool temp8 = false ;
41762 PyObject * obj0 = 0 ;
41763 PyObject * obj1 = 0 ;
41764 PyObject * obj2 = 0 ;
41765 PyObject * obj3 = 0 ;
41766 PyObject * obj4 = 0 ;
41767 PyObject * obj5 = 0 ;
41768 PyObject * obj6 = 0 ;
41769 PyObject * obj7 = 0 ;
41770 char * kwnames[] = {
41771 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41772 };
41773
41774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41776 if (!SWIG_IsOK(res1)) {
41777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41778 }
41779 arg1 = reinterpret_cast< wxWindow * >(argp1);
41780 ecode2 = SWIG_AsVal_int(obj1, &val2);
41781 if (!SWIG_IsOK(ecode2)) {
41782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41783 }
41784 arg2 = static_cast< int >(val2);
41785 {
41786 arg3 = wxString_in_helper(obj2);
41787 if (arg3 == NULL) SWIG_fail;
41788 temp3 = true;
41789 }
41790 {
41791 arg4 = wxString_in_helper(obj3);
41792 if (arg4 == NULL) SWIG_fail;
41793 temp4 = true;
41794 }
41795 if (obj4) {
41796 {
41797 arg5 = &temp5;
41798 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41799 }
41800 }
41801 if (obj5) {
41802 {
41803 arg6 = &temp6;
41804 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41805 }
41806 }
41807 if (obj6) {
41808 ecode7 = SWIG_AsVal_long(obj6, &val7);
41809 if (!SWIG_IsOK(ecode7)) {
41810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41811 }
41812 arg7 = static_cast< long >(val7);
41813 }
41814 if (obj7) {
41815 {
41816 arg8 = wxString_in_helper(obj7);
41817 if (arg8 == NULL) SWIG_fail;
41818 temp8 = true;
41819 }
41820 }
41821 {
41822 if (!wxPyCheckForApp()) SWIG_fail;
41823 PyThreadState* __tstate = wxPyBeginAllowThreads();
41824 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41825 wxPyEndAllowThreads(__tstate);
41826 if (PyErr_Occurred()) SWIG_fail;
41827 }
41828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41829 {
41830 if (temp3)
41831 delete arg3;
41832 }
41833 {
41834 if (temp4)
41835 delete arg4;
41836 }
41837 {
41838 if (temp8)
41839 delete arg8;
41840 }
41841 return resultobj;
41842 fail:
41843 {
41844 if (temp3)
41845 delete arg3;
41846 }
41847 {
41848 if (temp4)
41849 delete arg4;
41850 }
41851 {
41852 if (temp8)
41853 delete arg8;
41854 }
41855 return NULL;
41856 }
41857
41858
41859 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41860 PyObject *resultobj = 0;
41861 wxHyperlinkCtrl *result = 0 ;
41862
41863 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41864 {
41865 if (!wxPyCheckForApp()) SWIG_fail;
41866 PyThreadState* __tstate = wxPyBeginAllowThreads();
41867 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41868 wxPyEndAllowThreads(__tstate);
41869 if (PyErr_Occurred()) SWIG_fail;
41870 }
41871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41872 return resultobj;
41873 fail:
41874 return NULL;
41875 }
41876
41877
41878 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41879 PyObject *resultobj = 0;
41880 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41881 wxWindow *arg2 = (wxWindow *) 0 ;
41882 int arg3 ;
41883 wxString *arg4 = 0 ;
41884 wxString *arg5 = 0 ;
41885 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41886 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41887 wxSize const &arg7_defvalue = wxDefaultSize ;
41888 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41889 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41890 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41891 wxString *arg9 = (wxString *) &arg9_defvalue ;
41892 bool result;
41893 void *argp1 = 0 ;
41894 int res1 = 0 ;
41895 void *argp2 = 0 ;
41896 int res2 = 0 ;
41897 int val3 ;
41898 int ecode3 = 0 ;
41899 bool temp4 = false ;
41900 bool temp5 = false ;
41901 wxPoint temp6 ;
41902 wxSize temp7 ;
41903 long val8 ;
41904 int ecode8 = 0 ;
41905 bool temp9 = false ;
41906 PyObject * obj0 = 0 ;
41907 PyObject * obj1 = 0 ;
41908 PyObject * obj2 = 0 ;
41909 PyObject * obj3 = 0 ;
41910 PyObject * obj4 = 0 ;
41911 PyObject * obj5 = 0 ;
41912 PyObject * obj6 = 0 ;
41913 PyObject * obj7 = 0 ;
41914 PyObject * obj8 = 0 ;
41915 char * kwnames[] = {
41916 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41917 };
41918
41919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41921 if (!SWIG_IsOK(res1)) {
41922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41923 }
41924 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41925 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41926 if (!SWIG_IsOK(res2)) {
41927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41928 }
41929 arg2 = reinterpret_cast< wxWindow * >(argp2);
41930 ecode3 = SWIG_AsVal_int(obj2, &val3);
41931 if (!SWIG_IsOK(ecode3)) {
41932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41933 }
41934 arg3 = static_cast< int >(val3);
41935 {
41936 arg4 = wxString_in_helper(obj3);
41937 if (arg4 == NULL) SWIG_fail;
41938 temp4 = true;
41939 }
41940 {
41941 arg5 = wxString_in_helper(obj4);
41942 if (arg5 == NULL) SWIG_fail;
41943 temp5 = true;
41944 }
41945 if (obj5) {
41946 {
41947 arg6 = &temp6;
41948 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41949 }
41950 }
41951 if (obj6) {
41952 {
41953 arg7 = &temp7;
41954 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41955 }
41956 }
41957 if (obj7) {
41958 ecode8 = SWIG_AsVal_long(obj7, &val8);
41959 if (!SWIG_IsOK(ecode8)) {
41960 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41961 }
41962 arg8 = static_cast< long >(val8);
41963 }
41964 if (obj8) {
41965 {
41966 arg9 = wxString_in_helper(obj8);
41967 if (arg9 == NULL) SWIG_fail;
41968 temp9 = true;
41969 }
41970 }
41971 {
41972 PyThreadState* __tstate = wxPyBeginAllowThreads();
41973 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41974 wxPyEndAllowThreads(__tstate);
41975 if (PyErr_Occurred()) SWIG_fail;
41976 }
41977 {
41978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41979 }
41980 {
41981 if (temp4)
41982 delete arg4;
41983 }
41984 {
41985 if (temp5)
41986 delete arg5;
41987 }
41988 {
41989 if (temp9)
41990 delete arg9;
41991 }
41992 return resultobj;
41993 fail:
41994 {
41995 if (temp4)
41996 delete arg4;
41997 }
41998 {
41999 if (temp5)
42000 delete arg5;
42001 }
42002 {
42003 if (temp9)
42004 delete arg9;
42005 }
42006 return NULL;
42007 }
42008
42009
42010 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42011 PyObject *resultobj = 0;
42012 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42013 wxColour result;
42014 void *argp1 = 0 ;
42015 int res1 = 0 ;
42016 PyObject *swig_obj[1] ;
42017
42018 if (!args) SWIG_fail;
42019 swig_obj[0] = args;
42020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42021 if (!SWIG_IsOK(res1)) {
42022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42023 }
42024 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42025 {
42026 PyThreadState* __tstate = wxPyBeginAllowThreads();
42027 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42028 wxPyEndAllowThreads(__tstate);
42029 if (PyErr_Occurred()) SWIG_fail;
42030 }
42031 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42032 return resultobj;
42033 fail:
42034 return NULL;
42035 }
42036
42037
42038 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42039 PyObject *resultobj = 0;
42040 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42041 wxColour *arg2 = 0 ;
42042 void *argp1 = 0 ;
42043 int res1 = 0 ;
42044 wxColour temp2 ;
42045 PyObject * obj0 = 0 ;
42046 PyObject * obj1 = 0 ;
42047 char * kwnames[] = {
42048 (char *) "self",(char *) "colour", NULL
42049 };
42050
42051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42053 if (!SWIG_IsOK(res1)) {
42054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42055 }
42056 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42057 {
42058 arg2 = &temp2;
42059 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42060 }
42061 {
42062 PyThreadState* __tstate = wxPyBeginAllowThreads();
42063 (arg1)->SetHoverColour((wxColour const &)*arg2);
42064 wxPyEndAllowThreads(__tstate);
42065 if (PyErr_Occurred()) SWIG_fail;
42066 }
42067 resultobj = SWIG_Py_Void();
42068 return resultobj;
42069 fail:
42070 return NULL;
42071 }
42072
42073
42074 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42075 PyObject *resultobj = 0;
42076 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42077 wxColour result;
42078 void *argp1 = 0 ;
42079 int res1 = 0 ;
42080 PyObject *swig_obj[1] ;
42081
42082 if (!args) SWIG_fail;
42083 swig_obj[0] = args;
42084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42085 if (!SWIG_IsOK(res1)) {
42086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42087 }
42088 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42089 {
42090 PyThreadState* __tstate = wxPyBeginAllowThreads();
42091 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42092 wxPyEndAllowThreads(__tstate);
42093 if (PyErr_Occurred()) SWIG_fail;
42094 }
42095 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42096 return resultobj;
42097 fail:
42098 return NULL;
42099 }
42100
42101
42102 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42103 PyObject *resultobj = 0;
42104 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42105 wxColour *arg2 = 0 ;
42106 void *argp1 = 0 ;
42107 int res1 = 0 ;
42108 wxColour temp2 ;
42109 PyObject * obj0 = 0 ;
42110 PyObject * obj1 = 0 ;
42111 char * kwnames[] = {
42112 (char *) "self",(char *) "colour", NULL
42113 };
42114
42115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42117 if (!SWIG_IsOK(res1)) {
42118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42119 }
42120 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42121 {
42122 arg2 = &temp2;
42123 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42124 }
42125 {
42126 PyThreadState* __tstate = wxPyBeginAllowThreads();
42127 (arg1)->SetNormalColour((wxColour const &)*arg2);
42128 wxPyEndAllowThreads(__tstate);
42129 if (PyErr_Occurred()) SWIG_fail;
42130 }
42131 resultobj = SWIG_Py_Void();
42132 return resultobj;
42133 fail:
42134 return NULL;
42135 }
42136
42137
42138 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42139 PyObject *resultobj = 0;
42140 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42141 wxColour result;
42142 void *argp1 = 0 ;
42143 int res1 = 0 ;
42144 PyObject *swig_obj[1] ;
42145
42146 if (!args) SWIG_fail;
42147 swig_obj[0] = args;
42148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42149 if (!SWIG_IsOK(res1)) {
42150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42151 }
42152 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42153 {
42154 PyThreadState* __tstate = wxPyBeginAllowThreads();
42155 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42156 wxPyEndAllowThreads(__tstate);
42157 if (PyErr_Occurred()) SWIG_fail;
42158 }
42159 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42160 return resultobj;
42161 fail:
42162 return NULL;
42163 }
42164
42165
42166 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42167 PyObject *resultobj = 0;
42168 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42169 wxColour *arg2 = 0 ;
42170 void *argp1 = 0 ;
42171 int res1 = 0 ;
42172 wxColour temp2 ;
42173 PyObject * obj0 = 0 ;
42174 PyObject * obj1 = 0 ;
42175 char * kwnames[] = {
42176 (char *) "self",(char *) "colour", NULL
42177 };
42178
42179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42181 if (!SWIG_IsOK(res1)) {
42182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42183 }
42184 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42185 {
42186 arg2 = &temp2;
42187 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42188 }
42189 {
42190 PyThreadState* __tstate = wxPyBeginAllowThreads();
42191 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42192 wxPyEndAllowThreads(__tstate);
42193 if (PyErr_Occurred()) SWIG_fail;
42194 }
42195 resultobj = SWIG_Py_Void();
42196 return resultobj;
42197 fail:
42198 return NULL;
42199 }
42200
42201
42202 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42203 PyObject *resultobj = 0;
42204 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42205 wxString result;
42206 void *argp1 = 0 ;
42207 int res1 = 0 ;
42208 PyObject *swig_obj[1] ;
42209
42210 if (!args) SWIG_fail;
42211 swig_obj[0] = args;
42212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42213 if (!SWIG_IsOK(res1)) {
42214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42215 }
42216 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42217 {
42218 PyThreadState* __tstate = wxPyBeginAllowThreads();
42219 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42220 wxPyEndAllowThreads(__tstate);
42221 if (PyErr_Occurred()) SWIG_fail;
42222 }
42223 {
42224 #if wxUSE_UNICODE
42225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42226 #else
42227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42228 #endif
42229 }
42230 return resultobj;
42231 fail:
42232 return NULL;
42233 }
42234
42235
42236 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42237 PyObject *resultobj = 0;
42238 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42239 wxString *arg2 = 0 ;
42240 void *argp1 = 0 ;
42241 int res1 = 0 ;
42242 bool temp2 = false ;
42243 PyObject * obj0 = 0 ;
42244 PyObject * obj1 = 0 ;
42245 char * kwnames[] = {
42246 (char *) "self",(char *) "url", NULL
42247 };
42248
42249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42251 if (!SWIG_IsOK(res1)) {
42252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42253 }
42254 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42255 {
42256 arg2 = wxString_in_helper(obj1);
42257 if (arg2 == NULL) SWIG_fail;
42258 temp2 = true;
42259 }
42260 {
42261 PyThreadState* __tstate = wxPyBeginAllowThreads();
42262 (arg1)->SetURL((wxString const &)*arg2);
42263 wxPyEndAllowThreads(__tstate);
42264 if (PyErr_Occurred()) SWIG_fail;
42265 }
42266 resultobj = SWIG_Py_Void();
42267 {
42268 if (temp2)
42269 delete arg2;
42270 }
42271 return resultobj;
42272 fail:
42273 {
42274 if (temp2)
42275 delete arg2;
42276 }
42277 return NULL;
42278 }
42279
42280
42281 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42282 PyObject *resultobj = 0;
42283 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42284 bool arg2 = (bool) true ;
42285 void *argp1 = 0 ;
42286 int res1 = 0 ;
42287 bool val2 ;
42288 int ecode2 = 0 ;
42289 PyObject * obj0 = 0 ;
42290 PyObject * obj1 = 0 ;
42291 char * kwnames[] = {
42292 (char *) "self",(char *) "visited", NULL
42293 };
42294
42295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42297 if (!SWIG_IsOK(res1)) {
42298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42299 }
42300 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42301 if (obj1) {
42302 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42303 if (!SWIG_IsOK(ecode2)) {
42304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42305 }
42306 arg2 = static_cast< bool >(val2);
42307 }
42308 {
42309 PyThreadState* __tstate = wxPyBeginAllowThreads();
42310 (arg1)->SetVisited(arg2);
42311 wxPyEndAllowThreads(__tstate);
42312 if (PyErr_Occurred()) SWIG_fail;
42313 }
42314 resultobj = SWIG_Py_Void();
42315 return resultobj;
42316 fail:
42317 return NULL;
42318 }
42319
42320
42321 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42322 PyObject *resultobj = 0;
42323 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42324 bool result;
42325 void *argp1 = 0 ;
42326 int res1 = 0 ;
42327 PyObject *swig_obj[1] ;
42328
42329 if (!args) SWIG_fail;
42330 swig_obj[0] = args;
42331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42332 if (!SWIG_IsOK(res1)) {
42333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42334 }
42335 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42336 {
42337 PyThreadState* __tstate = wxPyBeginAllowThreads();
42338 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42339 wxPyEndAllowThreads(__tstate);
42340 if (PyErr_Occurred()) SWIG_fail;
42341 }
42342 {
42343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42344 }
42345 return resultobj;
42346 fail:
42347 return NULL;
42348 }
42349
42350
42351 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42352 PyObject *obj;
42353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42354 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42355 return SWIG_Py_Void();
42356 }
42357
42358 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42359 return SWIG_Python_InitShadowInstance(args);
42360 }
42361
42362 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42363 PyObject *resultobj = 0;
42364 wxObject *arg1 = (wxObject *) 0 ;
42365 int arg2 ;
42366 wxString *arg3 = 0 ;
42367 wxHyperlinkEvent *result = 0 ;
42368 void *argp1 = 0 ;
42369 int res1 = 0 ;
42370 int val2 ;
42371 int ecode2 = 0 ;
42372 bool temp3 = false ;
42373 PyObject * obj0 = 0 ;
42374 PyObject * obj1 = 0 ;
42375 PyObject * obj2 = 0 ;
42376 char * kwnames[] = {
42377 (char *) "generator",(char *) "id",(char *) "url", NULL
42378 };
42379
42380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42382 if (!SWIG_IsOK(res1)) {
42383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42384 }
42385 arg1 = reinterpret_cast< wxObject * >(argp1);
42386 ecode2 = SWIG_AsVal_int(obj1, &val2);
42387 if (!SWIG_IsOK(ecode2)) {
42388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42389 }
42390 arg2 = static_cast< int >(val2);
42391 {
42392 arg3 = wxString_in_helper(obj2);
42393 if (arg3 == NULL) SWIG_fail;
42394 temp3 = true;
42395 }
42396 {
42397 PyThreadState* __tstate = wxPyBeginAllowThreads();
42398 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42399 wxPyEndAllowThreads(__tstate);
42400 if (PyErr_Occurred()) SWIG_fail;
42401 }
42402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42403 {
42404 if (temp3)
42405 delete arg3;
42406 }
42407 return resultobj;
42408 fail:
42409 {
42410 if (temp3)
42411 delete arg3;
42412 }
42413 return NULL;
42414 }
42415
42416
42417 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42418 PyObject *resultobj = 0;
42419 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42420 wxString result;
42421 void *argp1 = 0 ;
42422 int res1 = 0 ;
42423 PyObject *swig_obj[1] ;
42424
42425 if (!args) SWIG_fail;
42426 swig_obj[0] = args;
42427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42428 if (!SWIG_IsOK(res1)) {
42429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42430 }
42431 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42432 {
42433 PyThreadState* __tstate = wxPyBeginAllowThreads();
42434 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42435 wxPyEndAllowThreads(__tstate);
42436 if (PyErr_Occurred()) SWIG_fail;
42437 }
42438 {
42439 #if wxUSE_UNICODE
42440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42441 #else
42442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42443 #endif
42444 }
42445 return resultobj;
42446 fail:
42447 return NULL;
42448 }
42449
42450
42451 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42452 PyObject *resultobj = 0;
42453 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42454 wxString *arg2 = 0 ;
42455 void *argp1 = 0 ;
42456 int res1 = 0 ;
42457 bool temp2 = false ;
42458 PyObject * obj0 = 0 ;
42459 PyObject * obj1 = 0 ;
42460 char * kwnames[] = {
42461 (char *) "self",(char *) "url", NULL
42462 };
42463
42464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42466 if (!SWIG_IsOK(res1)) {
42467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42468 }
42469 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42470 {
42471 arg2 = wxString_in_helper(obj1);
42472 if (arg2 == NULL) SWIG_fail;
42473 temp2 = true;
42474 }
42475 {
42476 PyThreadState* __tstate = wxPyBeginAllowThreads();
42477 (arg1)->SetURL((wxString const &)*arg2);
42478 wxPyEndAllowThreads(__tstate);
42479 if (PyErr_Occurred()) SWIG_fail;
42480 }
42481 resultobj = SWIG_Py_Void();
42482 {
42483 if (temp2)
42484 delete arg2;
42485 }
42486 return resultobj;
42487 fail:
42488 {
42489 if (temp2)
42490 delete arg2;
42491 }
42492 return NULL;
42493 }
42494
42495
42496 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42497 PyObject *obj;
42498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42499 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42500 return SWIG_Py_Void();
42501 }
42502
42503 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42504 return SWIG_Python_InitShadowInstance(args);
42505 }
42506
42507 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42508 PyObject *resultobj = 0;
42509 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42510 wxWindow *arg2 = (wxWindow *) 0 ;
42511 int arg3 ;
42512 wxString const &arg4_defvalue = wxEmptyString ;
42513 wxString *arg4 = (wxString *) &arg4_defvalue ;
42514 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42515 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42516 wxSize const &arg6_defvalue = wxDefaultSize ;
42517 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42518 long arg7 = (long) 0 ;
42519 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42520 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42521 wxString const &arg9_defvalue = wxButtonNameStr ;
42522 wxString *arg9 = (wxString *) &arg9_defvalue ;
42523 bool result;
42524 void *argp1 = 0 ;
42525 int res1 = 0 ;
42526 void *argp2 = 0 ;
42527 int res2 = 0 ;
42528 int val3 ;
42529 int ecode3 = 0 ;
42530 bool temp4 = false ;
42531 wxPoint temp5 ;
42532 wxSize temp6 ;
42533 long val7 ;
42534 int ecode7 = 0 ;
42535 void *argp8 = 0 ;
42536 int res8 = 0 ;
42537 bool temp9 = false ;
42538 PyObject * obj0 = 0 ;
42539 PyObject * obj1 = 0 ;
42540 PyObject * obj2 = 0 ;
42541 PyObject * obj3 = 0 ;
42542 PyObject * obj4 = 0 ;
42543 PyObject * obj5 = 0 ;
42544 PyObject * obj6 = 0 ;
42545 PyObject * obj7 = 0 ;
42546 PyObject * obj8 = 0 ;
42547 char * kwnames[] = {
42548 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42549 };
42550
42551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42553 if (!SWIG_IsOK(res1)) {
42554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42555 }
42556 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42557 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42558 if (!SWIG_IsOK(res2)) {
42559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42560 }
42561 arg2 = reinterpret_cast< wxWindow * >(argp2);
42562 ecode3 = SWIG_AsVal_int(obj2, &val3);
42563 if (!SWIG_IsOK(ecode3)) {
42564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42565 }
42566 arg3 = static_cast< int >(val3);
42567 if (obj3) {
42568 {
42569 arg4 = wxString_in_helper(obj3);
42570 if (arg4 == NULL) SWIG_fail;
42571 temp4 = true;
42572 }
42573 }
42574 if (obj4) {
42575 {
42576 arg5 = &temp5;
42577 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42578 }
42579 }
42580 if (obj5) {
42581 {
42582 arg6 = &temp6;
42583 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42584 }
42585 }
42586 if (obj6) {
42587 ecode7 = SWIG_AsVal_long(obj6, &val7);
42588 if (!SWIG_IsOK(ecode7)) {
42589 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42590 }
42591 arg7 = static_cast< long >(val7);
42592 }
42593 if (obj7) {
42594 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42595 if (!SWIG_IsOK(res8)) {
42596 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42597 }
42598 if (!argp8) {
42599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42600 }
42601 arg8 = reinterpret_cast< wxValidator * >(argp8);
42602 }
42603 if (obj8) {
42604 {
42605 arg9 = wxString_in_helper(obj8);
42606 if (arg9 == NULL) SWIG_fail;
42607 temp9 = true;
42608 }
42609 }
42610 {
42611 PyThreadState* __tstate = wxPyBeginAllowThreads();
42612 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42613 wxPyEndAllowThreads(__tstate);
42614 if (PyErr_Occurred()) SWIG_fail;
42615 }
42616 {
42617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42618 }
42619 {
42620 if (temp4)
42621 delete arg4;
42622 }
42623 {
42624 if (temp9)
42625 delete arg9;
42626 }
42627 return resultobj;
42628 fail:
42629 {
42630 if (temp4)
42631 delete arg4;
42632 }
42633 {
42634 if (temp9)
42635 delete arg9;
42636 }
42637 return NULL;
42638 }
42639
42640
42641 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42642 PyObject *resultobj = 0;
42643 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42644 int arg2 ;
42645 void *argp1 = 0 ;
42646 int res1 = 0 ;
42647 int val2 ;
42648 int ecode2 = 0 ;
42649 PyObject * obj0 = 0 ;
42650 PyObject * obj1 = 0 ;
42651 char * kwnames[] = {
42652 (char *) "self",(char *) "newmargin", NULL
42653 };
42654
42655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42657 if (!SWIG_IsOK(res1)) {
42658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42659 }
42660 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42661 ecode2 = SWIG_AsVal_int(obj1, &val2);
42662 if (!SWIG_IsOK(ecode2)) {
42663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42664 }
42665 arg2 = static_cast< int >(val2);
42666 {
42667 PyThreadState* __tstate = wxPyBeginAllowThreads();
42668 (arg1)->SetInternalMargin(arg2);
42669 wxPyEndAllowThreads(__tstate);
42670 if (PyErr_Occurred()) SWIG_fail;
42671 }
42672 resultobj = SWIG_Py_Void();
42673 return resultobj;
42674 fail:
42675 return NULL;
42676 }
42677
42678
42679 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42680 PyObject *resultobj = 0;
42681 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42682 int result;
42683 void *argp1 = 0 ;
42684 int res1 = 0 ;
42685 PyObject *swig_obj[1] ;
42686
42687 if (!args) SWIG_fail;
42688 swig_obj[0] = args;
42689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42690 if (!SWIG_IsOK(res1)) {
42691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42692 }
42693 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42694 {
42695 PyThreadState* __tstate = wxPyBeginAllowThreads();
42696 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42697 wxPyEndAllowThreads(__tstate);
42698 if (PyErr_Occurred()) SWIG_fail;
42699 }
42700 resultobj = SWIG_From_int(static_cast< int >(result));
42701 return resultobj;
42702 fail:
42703 return NULL;
42704 }
42705
42706
42707 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42708 PyObject *resultobj = 0;
42709 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42710 int arg2 ;
42711 void *argp1 = 0 ;
42712 int res1 = 0 ;
42713 int val2 ;
42714 int ecode2 = 0 ;
42715 PyObject * obj0 = 0 ;
42716 PyObject * obj1 = 0 ;
42717 char * kwnames[] = {
42718 (char *) "self",(char *) "prop", NULL
42719 };
42720
42721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42723 if (!SWIG_IsOK(res1)) {
42724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42725 }
42726 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42727 ecode2 = SWIG_AsVal_int(obj1, &val2);
42728 if (!SWIG_IsOK(ecode2)) {
42729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42730 }
42731 arg2 = static_cast< int >(val2);
42732 {
42733 PyThreadState* __tstate = wxPyBeginAllowThreads();
42734 (arg1)->SetTextCtrlProportion(arg2);
42735 wxPyEndAllowThreads(__tstate);
42736 if (PyErr_Occurred()) SWIG_fail;
42737 }
42738 resultobj = SWIG_Py_Void();
42739 return resultobj;
42740 fail:
42741 return NULL;
42742 }
42743
42744
42745 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42746 PyObject *resultobj = 0;
42747 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42748 int result;
42749 void *argp1 = 0 ;
42750 int res1 = 0 ;
42751 PyObject *swig_obj[1] ;
42752
42753 if (!args) SWIG_fail;
42754 swig_obj[0] = args;
42755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42756 if (!SWIG_IsOK(res1)) {
42757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42758 }
42759 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42760 {
42761 PyThreadState* __tstate = wxPyBeginAllowThreads();
42762 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42763 wxPyEndAllowThreads(__tstate);
42764 if (PyErr_Occurred()) SWIG_fail;
42765 }
42766 resultobj = SWIG_From_int(static_cast< int >(result));
42767 return resultobj;
42768 fail:
42769 return NULL;
42770 }
42771
42772
42773 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42774 PyObject *resultobj = 0;
42775 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42776 int arg2 ;
42777 void *argp1 = 0 ;
42778 int res1 = 0 ;
42779 int val2 ;
42780 int ecode2 = 0 ;
42781 PyObject * obj0 = 0 ;
42782 PyObject * obj1 = 0 ;
42783 char * kwnames[] = {
42784 (char *) "self",(char *) "prop", NULL
42785 };
42786
42787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42789 if (!SWIG_IsOK(res1)) {
42790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42791 }
42792 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42793 ecode2 = SWIG_AsVal_int(obj1, &val2);
42794 if (!SWIG_IsOK(ecode2)) {
42795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42796 }
42797 arg2 = static_cast< int >(val2);
42798 {
42799 PyThreadState* __tstate = wxPyBeginAllowThreads();
42800 (arg1)->SetPickerCtrlProportion(arg2);
42801 wxPyEndAllowThreads(__tstate);
42802 if (PyErr_Occurred()) SWIG_fail;
42803 }
42804 resultobj = SWIG_Py_Void();
42805 return resultobj;
42806 fail:
42807 return NULL;
42808 }
42809
42810
42811 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42812 PyObject *resultobj = 0;
42813 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42814 int result;
42815 void *argp1 = 0 ;
42816 int res1 = 0 ;
42817 PyObject *swig_obj[1] ;
42818
42819 if (!args) SWIG_fail;
42820 swig_obj[0] = args;
42821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42822 if (!SWIG_IsOK(res1)) {
42823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42824 }
42825 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42826 {
42827 PyThreadState* __tstate = wxPyBeginAllowThreads();
42828 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42829 wxPyEndAllowThreads(__tstate);
42830 if (PyErr_Occurred()) SWIG_fail;
42831 }
42832 resultobj = SWIG_From_int(static_cast< int >(result));
42833 return resultobj;
42834 fail:
42835 return NULL;
42836 }
42837
42838
42839 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42840 PyObject *resultobj = 0;
42841 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42842 bool result;
42843 void *argp1 = 0 ;
42844 int res1 = 0 ;
42845 PyObject *swig_obj[1] ;
42846
42847 if (!args) SWIG_fail;
42848 swig_obj[0] = args;
42849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42850 if (!SWIG_IsOK(res1)) {
42851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42852 }
42853 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42854 {
42855 PyThreadState* __tstate = wxPyBeginAllowThreads();
42856 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42857 wxPyEndAllowThreads(__tstate);
42858 if (PyErr_Occurred()) SWIG_fail;
42859 }
42860 {
42861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42862 }
42863 return resultobj;
42864 fail:
42865 return NULL;
42866 }
42867
42868
42869 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42870 PyObject *resultobj = 0;
42871 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42872 bool arg2 = (bool) true ;
42873 void *argp1 = 0 ;
42874 int res1 = 0 ;
42875 bool val2 ;
42876 int ecode2 = 0 ;
42877 PyObject * obj0 = 0 ;
42878 PyObject * obj1 = 0 ;
42879 char * kwnames[] = {
42880 (char *) "self",(char *) "grow", NULL
42881 };
42882
42883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42885 if (!SWIG_IsOK(res1)) {
42886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42887 }
42888 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42889 if (obj1) {
42890 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42891 if (!SWIG_IsOK(ecode2)) {
42892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42893 }
42894 arg2 = static_cast< bool >(val2);
42895 }
42896 {
42897 PyThreadState* __tstate = wxPyBeginAllowThreads();
42898 (arg1)->SetTextCtrlGrowable(arg2);
42899 wxPyEndAllowThreads(__tstate);
42900 if (PyErr_Occurred()) SWIG_fail;
42901 }
42902 resultobj = SWIG_Py_Void();
42903 return resultobj;
42904 fail:
42905 return NULL;
42906 }
42907
42908
42909 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42910 PyObject *resultobj = 0;
42911 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42912 bool result;
42913 void *argp1 = 0 ;
42914 int res1 = 0 ;
42915 PyObject *swig_obj[1] ;
42916
42917 if (!args) SWIG_fail;
42918 swig_obj[0] = args;
42919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42920 if (!SWIG_IsOK(res1)) {
42921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42922 }
42923 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42924 {
42925 PyThreadState* __tstate = wxPyBeginAllowThreads();
42926 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42927 wxPyEndAllowThreads(__tstate);
42928 if (PyErr_Occurred()) SWIG_fail;
42929 }
42930 {
42931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42932 }
42933 return resultobj;
42934 fail:
42935 return NULL;
42936 }
42937
42938
42939 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42940 PyObject *resultobj = 0;
42941 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42942 bool arg2 = (bool) true ;
42943 void *argp1 = 0 ;
42944 int res1 = 0 ;
42945 bool val2 ;
42946 int ecode2 = 0 ;
42947 PyObject * obj0 = 0 ;
42948 PyObject * obj1 = 0 ;
42949 char * kwnames[] = {
42950 (char *) "self",(char *) "grow", NULL
42951 };
42952
42953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42955 if (!SWIG_IsOK(res1)) {
42956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42957 }
42958 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42959 if (obj1) {
42960 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42961 if (!SWIG_IsOK(ecode2)) {
42962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42963 }
42964 arg2 = static_cast< bool >(val2);
42965 }
42966 {
42967 PyThreadState* __tstate = wxPyBeginAllowThreads();
42968 (arg1)->SetPickerCtrlGrowable(arg2);
42969 wxPyEndAllowThreads(__tstate);
42970 if (PyErr_Occurred()) SWIG_fail;
42971 }
42972 resultobj = SWIG_Py_Void();
42973 return resultobj;
42974 fail:
42975 return NULL;
42976 }
42977
42978
42979 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42980 PyObject *resultobj = 0;
42981 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42982 bool result;
42983 void *argp1 = 0 ;
42984 int res1 = 0 ;
42985 PyObject *swig_obj[1] ;
42986
42987 if (!args) SWIG_fail;
42988 swig_obj[0] = args;
42989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42990 if (!SWIG_IsOK(res1)) {
42991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42992 }
42993 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42994 {
42995 PyThreadState* __tstate = wxPyBeginAllowThreads();
42996 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42997 wxPyEndAllowThreads(__tstate);
42998 if (PyErr_Occurred()) SWIG_fail;
42999 }
43000 {
43001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43002 }
43003 return resultobj;
43004 fail:
43005 return NULL;
43006 }
43007
43008
43009 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43010 PyObject *resultobj = 0;
43011 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43012 wxTextCtrl *result = 0 ;
43013 void *argp1 = 0 ;
43014 int res1 = 0 ;
43015 PyObject *swig_obj[1] ;
43016
43017 if (!args) SWIG_fail;
43018 swig_obj[0] = args;
43019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43020 if (!SWIG_IsOK(res1)) {
43021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43022 }
43023 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43024 {
43025 PyThreadState* __tstate = wxPyBeginAllowThreads();
43026 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43027 wxPyEndAllowThreads(__tstate);
43028 if (PyErr_Occurred()) SWIG_fail;
43029 }
43030 {
43031 resultobj = wxPyMake_wxObject(result, 0);
43032 }
43033 return resultobj;
43034 fail:
43035 return NULL;
43036 }
43037
43038
43039 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43040 PyObject *resultobj = 0;
43041 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43042 wxControl *result = 0 ;
43043 void *argp1 = 0 ;
43044 int res1 = 0 ;
43045 PyObject *swig_obj[1] ;
43046
43047 if (!args) SWIG_fail;
43048 swig_obj[0] = args;
43049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43050 if (!SWIG_IsOK(res1)) {
43051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43052 }
43053 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43054 {
43055 PyThreadState* __tstate = wxPyBeginAllowThreads();
43056 result = (wxControl *)(arg1)->GetPickerCtrl();
43057 wxPyEndAllowThreads(__tstate);
43058 if (PyErr_Occurred()) SWIG_fail;
43059 }
43060 {
43061 resultobj = wxPyMake_wxObject(result, 0);
43062 }
43063 return resultobj;
43064 fail:
43065 return NULL;
43066 }
43067
43068
43069 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43070 PyObject *obj;
43071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43072 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43073 return SWIG_Py_Void();
43074 }
43075
43076 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43077 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43078 return 1;
43079 }
43080
43081
43082 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43083 PyObject *pyobj = 0;
43084
43085 {
43086 #if wxUSE_UNICODE
43087 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43088 #else
43089 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43090 #endif
43091 }
43092 return pyobj;
43093 }
43094
43095
43096 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43097 PyObject *resultobj = 0;
43098 wxWindow *arg1 = (wxWindow *) 0 ;
43099 int arg2 = (int) -1 ;
43100 wxColour const &arg3_defvalue = *wxBLACK ;
43101 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43102 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43103 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43104 wxSize const &arg5_defvalue = wxDefaultSize ;
43105 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43106 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43107 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43108 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43109 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43110 wxString *arg8 = (wxString *) &arg8_defvalue ;
43111 wxColourPickerCtrl *result = 0 ;
43112 void *argp1 = 0 ;
43113 int res1 = 0 ;
43114 int val2 ;
43115 int ecode2 = 0 ;
43116 wxColour temp3 ;
43117 wxPoint temp4 ;
43118 wxSize temp5 ;
43119 long val6 ;
43120 int ecode6 = 0 ;
43121 void *argp7 = 0 ;
43122 int res7 = 0 ;
43123 bool temp8 = false ;
43124 PyObject * obj0 = 0 ;
43125 PyObject * obj1 = 0 ;
43126 PyObject * obj2 = 0 ;
43127 PyObject * obj3 = 0 ;
43128 PyObject * obj4 = 0 ;
43129 PyObject * obj5 = 0 ;
43130 PyObject * obj6 = 0 ;
43131 PyObject * obj7 = 0 ;
43132 char * kwnames[] = {
43133 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43134 };
43135
43136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43138 if (!SWIG_IsOK(res1)) {
43139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43140 }
43141 arg1 = reinterpret_cast< wxWindow * >(argp1);
43142 if (obj1) {
43143 ecode2 = SWIG_AsVal_int(obj1, &val2);
43144 if (!SWIG_IsOK(ecode2)) {
43145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43146 }
43147 arg2 = static_cast< int >(val2);
43148 }
43149 if (obj2) {
43150 {
43151 arg3 = &temp3;
43152 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43153 }
43154 }
43155 if (obj3) {
43156 {
43157 arg4 = &temp4;
43158 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43159 }
43160 }
43161 if (obj4) {
43162 {
43163 arg5 = &temp5;
43164 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43165 }
43166 }
43167 if (obj5) {
43168 ecode6 = SWIG_AsVal_long(obj5, &val6);
43169 if (!SWIG_IsOK(ecode6)) {
43170 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43171 }
43172 arg6 = static_cast< long >(val6);
43173 }
43174 if (obj6) {
43175 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43176 if (!SWIG_IsOK(res7)) {
43177 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43178 }
43179 if (!argp7) {
43180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43181 }
43182 arg7 = reinterpret_cast< wxValidator * >(argp7);
43183 }
43184 if (obj7) {
43185 {
43186 arg8 = wxString_in_helper(obj7);
43187 if (arg8 == NULL) SWIG_fail;
43188 temp8 = true;
43189 }
43190 }
43191 {
43192 if (!wxPyCheckForApp()) SWIG_fail;
43193 PyThreadState* __tstate = wxPyBeginAllowThreads();
43194 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43195 wxPyEndAllowThreads(__tstate);
43196 if (PyErr_Occurred()) SWIG_fail;
43197 }
43198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43199 {
43200 if (temp8)
43201 delete arg8;
43202 }
43203 return resultobj;
43204 fail:
43205 {
43206 if (temp8)
43207 delete arg8;
43208 }
43209 return NULL;
43210 }
43211
43212
43213 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43214 PyObject *resultobj = 0;
43215 wxColourPickerCtrl *result = 0 ;
43216
43217 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43218 {
43219 if (!wxPyCheckForApp()) SWIG_fail;
43220 PyThreadState* __tstate = wxPyBeginAllowThreads();
43221 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43222 wxPyEndAllowThreads(__tstate);
43223 if (PyErr_Occurred()) SWIG_fail;
43224 }
43225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43226 return resultobj;
43227 fail:
43228 return NULL;
43229 }
43230
43231
43232 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43233 PyObject *resultobj = 0;
43234 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43235 wxWindow *arg2 = (wxWindow *) 0 ;
43236 int arg3 ;
43237 wxColour const &arg4_defvalue = *wxBLACK ;
43238 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43239 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43240 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43241 wxSize const &arg6_defvalue = wxDefaultSize ;
43242 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43243 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43244 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43245 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43246 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43247 wxString *arg9 = (wxString *) &arg9_defvalue ;
43248 bool result;
43249 void *argp1 = 0 ;
43250 int res1 = 0 ;
43251 void *argp2 = 0 ;
43252 int res2 = 0 ;
43253 int val3 ;
43254 int ecode3 = 0 ;
43255 wxColour temp4 ;
43256 wxPoint temp5 ;
43257 wxSize temp6 ;
43258 long val7 ;
43259 int ecode7 = 0 ;
43260 void *argp8 = 0 ;
43261 int res8 = 0 ;
43262 bool temp9 = false ;
43263 PyObject * obj0 = 0 ;
43264 PyObject * obj1 = 0 ;
43265 PyObject * obj2 = 0 ;
43266 PyObject * obj3 = 0 ;
43267 PyObject * obj4 = 0 ;
43268 PyObject * obj5 = 0 ;
43269 PyObject * obj6 = 0 ;
43270 PyObject * obj7 = 0 ;
43271 PyObject * obj8 = 0 ;
43272 char * kwnames[] = {
43273 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43274 };
43275
43276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43278 if (!SWIG_IsOK(res1)) {
43279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43280 }
43281 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43282 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43283 if (!SWIG_IsOK(res2)) {
43284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43285 }
43286 arg2 = reinterpret_cast< wxWindow * >(argp2);
43287 ecode3 = SWIG_AsVal_int(obj2, &val3);
43288 if (!SWIG_IsOK(ecode3)) {
43289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43290 }
43291 arg3 = static_cast< int >(val3);
43292 if (obj3) {
43293 {
43294 arg4 = &temp4;
43295 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43296 }
43297 }
43298 if (obj4) {
43299 {
43300 arg5 = &temp5;
43301 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43302 }
43303 }
43304 if (obj5) {
43305 {
43306 arg6 = &temp6;
43307 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43308 }
43309 }
43310 if (obj6) {
43311 ecode7 = SWIG_AsVal_long(obj6, &val7);
43312 if (!SWIG_IsOK(ecode7)) {
43313 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43314 }
43315 arg7 = static_cast< long >(val7);
43316 }
43317 if (obj7) {
43318 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43319 if (!SWIG_IsOK(res8)) {
43320 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43321 }
43322 if (!argp8) {
43323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43324 }
43325 arg8 = reinterpret_cast< wxValidator * >(argp8);
43326 }
43327 if (obj8) {
43328 {
43329 arg9 = wxString_in_helper(obj8);
43330 if (arg9 == NULL) SWIG_fail;
43331 temp9 = true;
43332 }
43333 }
43334 {
43335 PyThreadState* __tstate = wxPyBeginAllowThreads();
43336 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43337 wxPyEndAllowThreads(__tstate);
43338 if (PyErr_Occurred()) SWIG_fail;
43339 }
43340 {
43341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43342 }
43343 {
43344 if (temp9)
43345 delete arg9;
43346 }
43347 return resultobj;
43348 fail:
43349 {
43350 if (temp9)
43351 delete arg9;
43352 }
43353 return NULL;
43354 }
43355
43356
43357 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43358 PyObject *resultobj = 0;
43359 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43360 wxColour result;
43361 void *argp1 = 0 ;
43362 int res1 = 0 ;
43363 PyObject *swig_obj[1] ;
43364
43365 if (!args) SWIG_fail;
43366 swig_obj[0] = args;
43367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43368 if (!SWIG_IsOK(res1)) {
43369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43370 }
43371 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43372 {
43373 PyThreadState* __tstate = wxPyBeginAllowThreads();
43374 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43375 wxPyEndAllowThreads(__tstate);
43376 if (PyErr_Occurred()) SWIG_fail;
43377 }
43378 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43379 return resultobj;
43380 fail:
43381 return NULL;
43382 }
43383
43384
43385 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43386 PyObject *resultobj = 0;
43387 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43388 wxColour *arg2 = 0 ;
43389 void *argp1 = 0 ;
43390 int res1 = 0 ;
43391 wxColour temp2 ;
43392 PyObject * obj0 = 0 ;
43393 PyObject * obj1 = 0 ;
43394 char * kwnames[] = {
43395 (char *) "self",(char *) "col", NULL
43396 };
43397
43398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43400 if (!SWIG_IsOK(res1)) {
43401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43402 }
43403 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43404 {
43405 arg2 = &temp2;
43406 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43407 }
43408 {
43409 PyThreadState* __tstate = wxPyBeginAllowThreads();
43410 (arg1)->SetColour((wxColour const &)*arg2);
43411 wxPyEndAllowThreads(__tstate);
43412 if (PyErr_Occurred()) SWIG_fail;
43413 }
43414 resultobj = SWIG_Py_Void();
43415 return resultobj;
43416 fail:
43417 return NULL;
43418 }
43419
43420
43421 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43422 PyObject *obj;
43423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43424 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43425 return SWIG_Py_Void();
43426 }
43427
43428 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43429 return SWIG_Python_InitShadowInstance(args);
43430 }
43431
43432 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43433 PyObject *resultobj = 0;
43434 wxObject *arg1 = (wxObject *) 0 ;
43435 int arg2 ;
43436 wxColour *arg3 = 0 ;
43437 wxColourPickerEvent *result = 0 ;
43438 void *argp1 = 0 ;
43439 int res1 = 0 ;
43440 int val2 ;
43441 int ecode2 = 0 ;
43442 wxColour temp3 ;
43443 PyObject * obj0 = 0 ;
43444 PyObject * obj1 = 0 ;
43445 PyObject * obj2 = 0 ;
43446 char * kwnames[] = {
43447 (char *) "generator",(char *) "id",(char *) "col", NULL
43448 };
43449
43450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43452 if (!SWIG_IsOK(res1)) {
43453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43454 }
43455 arg1 = reinterpret_cast< wxObject * >(argp1);
43456 ecode2 = SWIG_AsVal_int(obj1, &val2);
43457 if (!SWIG_IsOK(ecode2)) {
43458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43459 }
43460 arg2 = static_cast< int >(val2);
43461 {
43462 arg3 = &temp3;
43463 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43464 }
43465 {
43466 PyThreadState* __tstate = wxPyBeginAllowThreads();
43467 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43468 wxPyEndAllowThreads(__tstate);
43469 if (PyErr_Occurred()) SWIG_fail;
43470 }
43471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43472 return resultobj;
43473 fail:
43474 return NULL;
43475 }
43476
43477
43478 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43479 PyObject *resultobj = 0;
43480 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43481 wxColour result;
43482 void *argp1 = 0 ;
43483 int res1 = 0 ;
43484 PyObject *swig_obj[1] ;
43485
43486 if (!args) SWIG_fail;
43487 swig_obj[0] = args;
43488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43489 if (!SWIG_IsOK(res1)) {
43490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43491 }
43492 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43493 {
43494 PyThreadState* __tstate = wxPyBeginAllowThreads();
43495 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43496 wxPyEndAllowThreads(__tstate);
43497 if (PyErr_Occurred()) SWIG_fail;
43498 }
43499 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43500 return resultobj;
43501 fail:
43502 return NULL;
43503 }
43504
43505
43506 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43507 PyObject *resultobj = 0;
43508 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43509 wxColour *arg2 = 0 ;
43510 void *argp1 = 0 ;
43511 int res1 = 0 ;
43512 wxColour temp2 ;
43513 PyObject * obj0 = 0 ;
43514 PyObject * obj1 = 0 ;
43515 char * kwnames[] = {
43516 (char *) "self",(char *) "c", NULL
43517 };
43518
43519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43521 if (!SWIG_IsOK(res1)) {
43522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43523 }
43524 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43525 {
43526 arg2 = &temp2;
43527 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43528 }
43529 {
43530 PyThreadState* __tstate = wxPyBeginAllowThreads();
43531 (arg1)->SetColour((wxColour const &)*arg2);
43532 wxPyEndAllowThreads(__tstate);
43533 if (PyErr_Occurred()) SWIG_fail;
43534 }
43535 resultobj = SWIG_Py_Void();
43536 return resultobj;
43537 fail:
43538 return NULL;
43539 }
43540
43541
43542 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43543 PyObject *obj;
43544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43545 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43546 return SWIG_Py_Void();
43547 }
43548
43549 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43550 return SWIG_Python_InitShadowInstance(args);
43551 }
43552
43553 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43554 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43555 return 1;
43556 }
43557
43558
43559 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43560 PyObject *pyobj = 0;
43561
43562 {
43563 #if wxUSE_UNICODE
43564 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43565 #else
43566 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43567 #endif
43568 }
43569 return pyobj;
43570 }
43571
43572
43573 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43574 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43575 return 1;
43576 }
43577
43578
43579 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43580 PyObject *pyobj = 0;
43581
43582 {
43583 #if wxUSE_UNICODE
43584 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43585 #else
43586 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43587 #endif
43588 }
43589 return pyobj;
43590 }
43591
43592
43593 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43594 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43595 return 1;
43596 }
43597
43598
43599 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43600 PyObject *pyobj = 0;
43601
43602 {
43603 #if wxUSE_UNICODE
43604 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43605 #else
43606 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43607 #endif
43608 }
43609 return pyobj;
43610 }
43611
43612
43613 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43614 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43615 return 1;
43616 }
43617
43618
43619 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43620 PyObject *pyobj = 0;
43621
43622 {
43623 #if wxUSE_UNICODE
43624 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43625 #else
43626 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43627 #endif
43628 }
43629 return pyobj;
43630 }
43631
43632
43633 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43634 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43635 return 1;
43636 }
43637
43638
43639 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43640 PyObject *pyobj = 0;
43641
43642 {
43643 #if wxUSE_UNICODE
43644 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43645 #else
43646 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43647 #endif
43648 }
43649 return pyobj;
43650 }
43651
43652
43653 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43654 PyObject *resultobj = 0;
43655 wxWindow *arg1 = (wxWindow *) 0 ;
43656 int arg2 = (int) -1 ;
43657 wxString const &arg3_defvalue = wxPyEmptyString ;
43658 wxString *arg3 = (wxString *) &arg3_defvalue ;
43659 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43660 wxString *arg4 = (wxString *) &arg4_defvalue ;
43661 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43662 wxString *arg5 = (wxString *) &arg5_defvalue ;
43663 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43664 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43665 wxSize const &arg7_defvalue = wxDefaultSize ;
43666 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43667 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43668 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43669 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43670 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43671 wxString *arg10 = (wxString *) &arg10_defvalue ;
43672 wxFilePickerCtrl *result = 0 ;
43673 void *argp1 = 0 ;
43674 int res1 = 0 ;
43675 int val2 ;
43676 int ecode2 = 0 ;
43677 bool temp3 = false ;
43678 bool temp4 = false ;
43679 bool temp5 = false ;
43680 wxPoint temp6 ;
43681 wxSize temp7 ;
43682 long val8 ;
43683 int ecode8 = 0 ;
43684 void *argp9 = 0 ;
43685 int res9 = 0 ;
43686 bool temp10 = false ;
43687 PyObject * obj0 = 0 ;
43688 PyObject * obj1 = 0 ;
43689 PyObject * obj2 = 0 ;
43690 PyObject * obj3 = 0 ;
43691 PyObject * obj4 = 0 ;
43692 PyObject * obj5 = 0 ;
43693 PyObject * obj6 = 0 ;
43694 PyObject * obj7 = 0 ;
43695 PyObject * obj8 = 0 ;
43696 PyObject * obj9 = 0 ;
43697 char * kwnames[] = {
43698 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43699 };
43700
43701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43703 if (!SWIG_IsOK(res1)) {
43704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43705 }
43706 arg1 = reinterpret_cast< wxWindow * >(argp1);
43707 if (obj1) {
43708 ecode2 = SWIG_AsVal_int(obj1, &val2);
43709 if (!SWIG_IsOK(ecode2)) {
43710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43711 }
43712 arg2 = static_cast< int >(val2);
43713 }
43714 if (obj2) {
43715 {
43716 arg3 = wxString_in_helper(obj2);
43717 if (arg3 == NULL) SWIG_fail;
43718 temp3 = true;
43719 }
43720 }
43721 if (obj3) {
43722 {
43723 arg4 = wxString_in_helper(obj3);
43724 if (arg4 == NULL) SWIG_fail;
43725 temp4 = true;
43726 }
43727 }
43728 if (obj4) {
43729 {
43730 arg5 = wxString_in_helper(obj4);
43731 if (arg5 == NULL) SWIG_fail;
43732 temp5 = true;
43733 }
43734 }
43735 if (obj5) {
43736 {
43737 arg6 = &temp6;
43738 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43739 }
43740 }
43741 if (obj6) {
43742 {
43743 arg7 = &temp7;
43744 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43745 }
43746 }
43747 if (obj7) {
43748 ecode8 = SWIG_AsVal_long(obj7, &val8);
43749 if (!SWIG_IsOK(ecode8)) {
43750 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43751 }
43752 arg8 = static_cast< long >(val8);
43753 }
43754 if (obj8) {
43755 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43756 if (!SWIG_IsOK(res9)) {
43757 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43758 }
43759 if (!argp9) {
43760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43761 }
43762 arg9 = reinterpret_cast< wxValidator * >(argp9);
43763 }
43764 if (obj9) {
43765 {
43766 arg10 = wxString_in_helper(obj9);
43767 if (arg10 == NULL) SWIG_fail;
43768 temp10 = true;
43769 }
43770 }
43771 {
43772 if (!wxPyCheckForApp()) SWIG_fail;
43773 PyThreadState* __tstate = wxPyBeginAllowThreads();
43774 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);
43775 wxPyEndAllowThreads(__tstate);
43776 if (PyErr_Occurred()) SWIG_fail;
43777 }
43778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43779 {
43780 if (temp3)
43781 delete arg3;
43782 }
43783 {
43784 if (temp4)
43785 delete arg4;
43786 }
43787 {
43788 if (temp5)
43789 delete arg5;
43790 }
43791 {
43792 if (temp10)
43793 delete arg10;
43794 }
43795 return resultobj;
43796 fail:
43797 {
43798 if (temp3)
43799 delete arg3;
43800 }
43801 {
43802 if (temp4)
43803 delete arg4;
43804 }
43805 {
43806 if (temp5)
43807 delete arg5;
43808 }
43809 {
43810 if (temp10)
43811 delete arg10;
43812 }
43813 return NULL;
43814 }
43815
43816
43817 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43818 PyObject *resultobj = 0;
43819 wxFilePickerCtrl *result = 0 ;
43820
43821 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43822 {
43823 if (!wxPyCheckForApp()) SWIG_fail;
43824 PyThreadState* __tstate = wxPyBeginAllowThreads();
43825 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43826 wxPyEndAllowThreads(__tstate);
43827 if (PyErr_Occurred()) SWIG_fail;
43828 }
43829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43830 return resultobj;
43831 fail:
43832 return NULL;
43833 }
43834
43835
43836 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43837 PyObject *resultobj = 0;
43838 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43839 wxWindow *arg2 = (wxWindow *) 0 ;
43840 int arg3 = (int) -1 ;
43841 wxString const &arg4_defvalue = wxPyEmptyString ;
43842 wxString *arg4 = (wxString *) &arg4_defvalue ;
43843 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43844 wxString *arg5 = (wxString *) &arg5_defvalue ;
43845 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43846 wxString *arg6 = (wxString *) &arg6_defvalue ;
43847 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43848 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43849 wxSize const &arg8_defvalue = wxDefaultSize ;
43850 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43851 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43852 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43853 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43854 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43855 wxString *arg11 = (wxString *) &arg11_defvalue ;
43856 bool result;
43857 void *argp1 = 0 ;
43858 int res1 = 0 ;
43859 void *argp2 = 0 ;
43860 int res2 = 0 ;
43861 int val3 ;
43862 int ecode3 = 0 ;
43863 bool temp4 = false ;
43864 bool temp5 = false ;
43865 bool temp6 = false ;
43866 wxPoint temp7 ;
43867 wxSize temp8 ;
43868 long val9 ;
43869 int ecode9 = 0 ;
43870 void *argp10 = 0 ;
43871 int res10 = 0 ;
43872 bool temp11 = false ;
43873 PyObject * obj0 = 0 ;
43874 PyObject * obj1 = 0 ;
43875 PyObject * obj2 = 0 ;
43876 PyObject * obj3 = 0 ;
43877 PyObject * obj4 = 0 ;
43878 PyObject * obj5 = 0 ;
43879 PyObject * obj6 = 0 ;
43880 PyObject * obj7 = 0 ;
43881 PyObject * obj8 = 0 ;
43882 PyObject * obj9 = 0 ;
43883 PyObject * obj10 = 0 ;
43884 char * kwnames[] = {
43885 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43886 };
43887
43888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43890 if (!SWIG_IsOK(res1)) {
43891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43892 }
43893 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43894 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43895 if (!SWIG_IsOK(res2)) {
43896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43897 }
43898 arg2 = reinterpret_cast< wxWindow * >(argp2);
43899 if (obj2) {
43900 ecode3 = SWIG_AsVal_int(obj2, &val3);
43901 if (!SWIG_IsOK(ecode3)) {
43902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43903 }
43904 arg3 = static_cast< int >(val3);
43905 }
43906 if (obj3) {
43907 {
43908 arg4 = wxString_in_helper(obj3);
43909 if (arg4 == NULL) SWIG_fail;
43910 temp4 = true;
43911 }
43912 }
43913 if (obj4) {
43914 {
43915 arg5 = wxString_in_helper(obj4);
43916 if (arg5 == NULL) SWIG_fail;
43917 temp5 = true;
43918 }
43919 }
43920 if (obj5) {
43921 {
43922 arg6 = wxString_in_helper(obj5);
43923 if (arg6 == NULL) SWIG_fail;
43924 temp6 = true;
43925 }
43926 }
43927 if (obj6) {
43928 {
43929 arg7 = &temp7;
43930 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43931 }
43932 }
43933 if (obj7) {
43934 {
43935 arg8 = &temp8;
43936 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43937 }
43938 }
43939 if (obj8) {
43940 ecode9 = SWIG_AsVal_long(obj8, &val9);
43941 if (!SWIG_IsOK(ecode9)) {
43942 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43943 }
43944 arg9 = static_cast< long >(val9);
43945 }
43946 if (obj9) {
43947 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43948 if (!SWIG_IsOK(res10)) {
43949 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43950 }
43951 if (!argp10) {
43952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43953 }
43954 arg10 = reinterpret_cast< wxValidator * >(argp10);
43955 }
43956 if (obj10) {
43957 {
43958 arg11 = wxString_in_helper(obj10);
43959 if (arg11 == NULL) SWIG_fail;
43960 temp11 = true;
43961 }
43962 }
43963 {
43964 PyThreadState* __tstate = wxPyBeginAllowThreads();
43965 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);
43966 wxPyEndAllowThreads(__tstate);
43967 if (PyErr_Occurred()) SWIG_fail;
43968 }
43969 {
43970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43971 }
43972 {
43973 if (temp4)
43974 delete arg4;
43975 }
43976 {
43977 if (temp5)
43978 delete arg5;
43979 }
43980 {
43981 if (temp6)
43982 delete arg6;
43983 }
43984 {
43985 if (temp11)
43986 delete arg11;
43987 }
43988 return resultobj;
43989 fail:
43990 {
43991 if (temp4)
43992 delete arg4;
43993 }
43994 {
43995 if (temp5)
43996 delete arg5;
43997 }
43998 {
43999 if (temp6)
44000 delete arg6;
44001 }
44002 {
44003 if (temp11)
44004 delete arg11;
44005 }
44006 return NULL;
44007 }
44008
44009
44010 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44011 PyObject *resultobj = 0;
44012 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44013 wxString result;
44014 void *argp1 = 0 ;
44015 int res1 = 0 ;
44016 PyObject *swig_obj[1] ;
44017
44018 if (!args) SWIG_fail;
44019 swig_obj[0] = args;
44020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44021 if (!SWIG_IsOK(res1)) {
44022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44023 }
44024 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44025 {
44026 PyThreadState* __tstate = wxPyBeginAllowThreads();
44027 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44028 wxPyEndAllowThreads(__tstate);
44029 if (PyErr_Occurred()) SWIG_fail;
44030 }
44031 {
44032 #if wxUSE_UNICODE
44033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44034 #else
44035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44036 #endif
44037 }
44038 return resultobj;
44039 fail:
44040 return NULL;
44041 }
44042
44043
44044 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44045 PyObject *resultobj = 0;
44046 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44047 wxString *arg2 = 0 ;
44048 void *argp1 = 0 ;
44049 int res1 = 0 ;
44050 bool temp2 = false ;
44051 PyObject * obj0 = 0 ;
44052 PyObject * obj1 = 0 ;
44053 char * kwnames[] = {
44054 (char *) "self",(char *) "str", NULL
44055 };
44056
44057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44059 if (!SWIG_IsOK(res1)) {
44060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44061 }
44062 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44063 {
44064 arg2 = wxString_in_helper(obj1);
44065 if (arg2 == NULL) SWIG_fail;
44066 temp2 = true;
44067 }
44068 {
44069 PyThreadState* __tstate = wxPyBeginAllowThreads();
44070 (arg1)->SetPath((wxString const &)*arg2);
44071 wxPyEndAllowThreads(__tstate);
44072 if (PyErr_Occurred()) SWIG_fail;
44073 }
44074 resultobj = SWIG_Py_Void();
44075 {
44076 if (temp2)
44077 delete arg2;
44078 }
44079 return resultobj;
44080 fail:
44081 {
44082 if (temp2)
44083 delete arg2;
44084 }
44085 return NULL;
44086 }
44087
44088
44089 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44090 PyObject *resultobj = 0;
44091 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44092 wxString *arg2 = 0 ;
44093 bool result;
44094 void *argp1 = 0 ;
44095 int res1 = 0 ;
44096 bool temp2 = false ;
44097 PyObject * obj0 = 0 ;
44098 PyObject * obj1 = 0 ;
44099 char * kwnames[] = {
44100 (char *) "self",(char *) "path", NULL
44101 };
44102
44103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44105 if (!SWIG_IsOK(res1)) {
44106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44107 }
44108 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44109 {
44110 arg2 = wxString_in_helper(obj1);
44111 if (arg2 == NULL) SWIG_fail;
44112 temp2 = true;
44113 }
44114 {
44115 PyThreadState* __tstate = wxPyBeginAllowThreads();
44116 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44117 wxPyEndAllowThreads(__tstate);
44118 if (PyErr_Occurred()) SWIG_fail;
44119 }
44120 {
44121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44122 }
44123 {
44124 if (temp2)
44125 delete arg2;
44126 }
44127 return resultobj;
44128 fail:
44129 {
44130 if (temp2)
44131 delete arg2;
44132 }
44133 return NULL;
44134 }
44135
44136
44137 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44138 PyObject *resultobj = 0;
44139 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44140 wxString result;
44141 void *argp1 = 0 ;
44142 int res1 = 0 ;
44143 PyObject *swig_obj[1] ;
44144
44145 if (!args) SWIG_fail;
44146 swig_obj[0] = args;
44147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44148 if (!SWIG_IsOK(res1)) {
44149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44150 }
44151 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44152 {
44153 PyThreadState* __tstate = wxPyBeginAllowThreads();
44154 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44155 wxPyEndAllowThreads(__tstate);
44156 if (PyErr_Occurred()) SWIG_fail;
44157 }
44158 {
44159 #if wxUSE_UNICODE
44160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44161 #else
44162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44163 #endif
44164 }
44165 return resultobj;
44166 fail:
44167 return NULL;
44168 }
44169
44170
44171 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44172 PyObject *obj;
44173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44174 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44175 return SWIG_Py_Void();
44176 }
44177
44178 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44179 return SWIG_Python_InitShadowInstance(args);
44180 }
44181
44182 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44183 PyObject *resultobj = 0;
44184 wxWindow *arg1 = (wxWindow *) 0 ;
44185 int arg2 = (int) -1 ;
44186 wxString const &arg3_defvalue = wxPyEmptyString ;
44187 wxString *arg3 = (wxString *) &arg3_defvalue ;
44188 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44189 wxString *arg4 = (wxString *) &arg4_defvalue ;
44190 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44191 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44192 wxSize const &arg6_defvalue = wxDefaultSize ;
44193 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44194 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44195 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44196 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44197 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44198 wxString *arg9 = (wxString *) &arg9_defvalue ;
44199 wxDirPickerCtrl *result = 0 ;
44200 void *argp1 = 0 ;
44201 int res1 = 0 ;
44202 int val2 ;
44203 int ecode2 = 0 ;
44204 bool temp3 = false ;
44205 bool temp4 = false ;
44206 wxPoint temp5 ;
44207 wxSize temp6 ;
44208 long val7 ;
44209 int ecode7 = 0 ;
44210 void *argp8 = 0 ;
44211 int res8 = 0 ;
44212 bool temp9 = false ;
44213 PyObject * obj0 = 0 ;
44214 PyObject * obj1 = 0 ;
44215 PyObject * obj2 = 0 ;
44216 PyObject * obj3 = 0 ;
44217 PyObject * obj4 = 0 ;
44218 PyObject * obj5 = 0 ;
44219 PyObject * obj6 = 0 ;
44220 PyObject * obj7 = 0 ;
44221 PyObject * obj8 = 0 ;
44222 char * kwnames[] = {
44223 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44224 };
44225
44226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44228 if (!SWIG_IsOK(res1)) {
44229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44230 }
44231 arg1 = reinterpret_cast< wxWindow * >(argp1);
44232 if (obj1) {
44233 ecode2 = SWIG_AsVal_int(obj1, &val2);
44234 if (!SWIG_IsOK(ecode2)) {
44235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44236 }
44237 arg2 = static_cast< int >(val2);
44238 }
44239 if (obj2) {
44240 {
44241 arg3 = wxString_in_helper(obj2);
44242 if (arg3 == NULL) SWIG_fail;
44243 temp3 = true;
44244 }
44245 }
44246 if (obj3) {
44247 {
44248 arg4 = wxString_in_helper(obj3);
44249 if (arg4 == NULL) SWIG_fail;
44250 temp4 = true;
44251 }
44252 }
44253 if (obj4) {
44254 {
44255 arg5 = &temp5;
44256 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44257 }
44258 }
44259 if (obj5) {
44260 {
44261 arg6 = &temp6;
44262 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44263 }
44264 }
44265 if (obj6) {
44266 ecode7 = SWIG_AsVal_long(obj6, &val7);
44267 if (!SWIG_IsOK(ecode7)) {
44268 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44269 }
44270 arg7 = static_cast< long >(val7);
44271 }
44272 if (obj7) {
44273 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44274 if (!SWIG_IsOK(res8)) {
44275 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44276 }
44277 if (!argp8) {
44278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44279 }
44280 arg8 = reinterpret_cast< wxValidator * >(argp8);
44281 }
44282 if (obj8) {
44283 {
44284 arg9 = wxString_in_helper(obj8);
44285 if (arg9 == NULL) SWIG_fail;
44286 temp9 = true;
44287 }
44288 }
44289 {
44290 if (!wxPyCheckForApp()) SWIG_fail;
44291 PyThreadState* __tstate = wxPyBeginAllowThreads();
44292 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);
44293 wxPyEndAllowThreads(__tstate);
44294 if (PyErr_Occurred()) SWIG_fail;
44295 }
44296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44297 {
44298 if (temp3)
44299 delete arg3;
44300 }
44301 {
44302 if (temp4)
44303 delete arg4;
44304 }
44305 {
44306 if (temp9)
44307 delete arg9;
44308 }
44309 return resultobj;
44310 fail:
44311 {
44312 if (temp3)
44313 delete arg3;
44314 }
44315 {
44316 if (temp4)
44317 delete arg4;
44318 }
44319 {
44320 if (temp9)
44321 delete arg9;
44322 }
44323 return NULL;
44324 }
44325
44326
44327 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44328 PyObject *resultobj = 0;
44329 wxDirPickerCtrl *result = 0 ;
44330
44331 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44332 {
44333 if (!wxPyCheckForApp()) SWIG_fail;
44334 PyThreadState* __tstate = wxPyBeginAllowThreads();
44335 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44336 wxPyEndAllowThreads(__tstate);
44337 if (PyErr_Occurred()) SWIG_fail;
44338 }
44339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44340 return resultobj;
44341 fail:
44342 return NULL;
44343 }
44344
44345
44346 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44347 PyObject *resultobj = 0;
44348 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44349 wxWindow *arg2 = (wxWindow *) 0 ;
44350 int arg3 = (int) -1 ;
44351 wxString const &arg4_defvalue = wxPyEmptyString ;
44352 wxString *arg4 = (wxString *) &arg4_defvalue ;
44353 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44354 wxString *arg5 = (wxString *) &arg5_defvalue ;
44355 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44356 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44357 wxSize const &arg7_defvalue = wxDefaultSize ;
44358 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44359 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44360 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44361 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44362 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44363 wxString *arg10 = (wxString *) &arg10_defvalue ;
44364 bool result;
44365 void *argp1 = 0 ;
44366 int res1 = 0 ;
44367 void *argp2 = 0 ;
44368 int res2 = 0 ;
44369 int val3 ;
44370 int ecode3 = 0 ;
44371 bool temp4 = false ;
44372 bool temp5 = false ;
44373 wxPoint temp6 ;
44374 wxSize temp7 ;
44375 long val8 ;
44376 int ecode8 = 0 ;
44377 void *argp9 = 0 ;
44378 int res9 = 0 ;
44379 bool temp10 = false ;
44380 PyObject * obj0 = 0 ;
44381 PyObject * obj1 = 0 ;
44382 PyObject * obj2 = 0 ;
44383 PyObject * obj3 = 0 ;
44384 PyObject * obj4 = 0 ;
44385 PyObject * obj5 = 0 ;
44386 PyObject * obj6 = 0 ;
44387 PyObject * obj7 = 0 ;
44388 PyObject * obj8 = 0 ;
44389 PyObject * obj9 = 0 ;
44390 char * kwnames[] = {
44391 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44392 };
44393
44394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44396 if (!SWIG_IsOK(res1)) {
44397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44398 }
44399 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44401 if (!SWIG_IsOK(res2)) {
44402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44403 }
44404 arg2 = reinterpret_cast< wxWindow * >(argp2);
44405 if (obj2) {
44406 ecode3 = SWIG_AsVal_int(obj2, &val3);
44407 if (!SWIG_IsOK(ecode3)) {
44408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44409 }
44410 arg3 = static_cast< int >(val3);
44411 }
44412 if (obj3) {
44413 {
44414 arg4 = wxString_in_helper(obj3);
44415 if (arg4 == NULL) SWIG_fail;
44416 temp4 = true;
44417 }
44418 }
44419 if (obj4) {
44420 {
44421 arg5 = wxString_in_helper(obj4);
44422 if (arg5 == NULL) SWIG_fail;
44423 temp5 = true;
44424 }
44425 }
44426 if (obj5) {
44427 {
44428 arg6 = &temp6;
44429 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44430 }
44431 }
44432 if (obj6) {
44433 {
44434 arg7 = &temp7;
44435 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44436 }
44437 }
44438 if (obj7) {
44439 ecode8 = SWIG_AsVal_long(obj7, &val8);
44440 if (!SWIG_IsOK(ecode8)) {
44441 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44442 }
44443 arg8 = static_cast< long >(val8);
44444 }
44445 if (obj8) {
44446 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44447 if (!SWIG_IsOK(res9)) {
44448 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44449 }
44450 if (!argp9) {
44451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44452 }
44453 arg9 = reinterpret_cast< wxValidator * >(argp9);
44454 }
44455 if (obj9) {
44456 {
44457 arg10 = wxString_in_helper(obj9);
44458 if (arg10 == NULL) SWIG_fail;
44459 temp10 = true;
44460 }
44461 }
44462 {
44463 PyThreadState* __tstate = wxPyBeginAllowThreads();
44464 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);
44465 wxPyEndAllowThreads(__tstate);
44466 if (PyErr_Occurred()) SWIG_fail;
44467 }
44468 {
44469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44470 }
44471 {
44472 if (temp4)
44473 delete arg4;
44474 }
44475 {
44476 if (temp5)
44477 delete arg5;
44478 }
44479 {
44480 if (temp10)
44481 delete arg10;
44482 }
44483 return resultobj;
44484 fail:
44485 {
44486 if (temp4)
44487 delete arg4;
44488 }
44489 {
44490 if (temp5)
44491 delete arg5;
44492 }
44493 {
44494 if (temp10)
44495 delete arg10;
44496 }
44497 return NULL;
44498 }
44499
44500
44501 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44502 PyObject *resultobj = 0;
44503 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44504 wxString result;
44505 void *argp1 = 0 ;
44506 int res1 = 0 ;
44507 PyObject *swig_obj[1] ;
44508
44509 if (!args) SWIG_fail;
44510 swig_obj[0] = args;
44511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44512 if (!SWIG_IsOK(res1)) {
44513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44514 }
44515 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44516 {
44517 PyThreadState* __tstate = wxPyBeginAllowThreads();
44518 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44519 wxPyEndAllowThreads(__tstate);
44520 if (PyErr_Occurred()) SWIG_fail;
44521 }
44522 {
44523 #if wxUSE_UNICODE
44524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44525 #else
44526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44527 #endif
44528 }
44529 return resultobj;
44530 fail:
44531 return NULL;
44532 }
44533
44534
44535 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44536 PyObject *resultobj = 0;
44537 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44538 wxString *arg2 = 0 ;
44539 void *argp1 = 0 ;
44540 int res1 = 0 ;
44541 bool temp2 = false ;
44542 PyObject * obj0 = 0 ;
44543 PyObject * obj1 = 0 ;
44544 char * kwnames[] = {
44545 (char *) "self",(char *) "str", NULL
44546 };
44547
44548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44550 if (!SWIG_IsOK(res1)) {
44551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44552 }
44553 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44554 {
44555 arg2 = wxString_in_helper(obj1);
44556 if (arg2 == NULL) SWIG_fail;
44557 temp2 = true;
44558 }
44559 {
44560 PyThreadState* __tstate = wxPyBeginAllowThreads();
44561 (arg1)->SetPath((wxString const &)*arg2);
44562 wxPyEndAllowThreads(__tstate);
44563 if (PyErr_Occurred()) SWIG_fail;
44564 }
44565 resultobj = SWIG_Py_Void();
44566 {
44567 if (temp2)
44568 delete arg2;
44569 }
44570 return resultobj;
44571 fail:
44572 {
44573 if (temp2)
44574 delete arg2;
44575 }
44576 return NULL;
44577 }
44578
44579
44580 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44581 PyObject *resultobj = 0;
44582 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44583 wxString *arg2 = 0 ;
44584 bool result;
44585 void *argp1 = 0 ;
44586 int res1 = 0 ;
44587 bool temp2 = false ;
44588 PyObject * obj0 = 0 ;
44589 PyObject * obj1 = 0 ;
44590 char * kwnames[] = {
44591 (char *) "self",(char *) "path", NULL
44592 };
44593
44594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44596 if (!SWIG_IsOK(res1)) {
44597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44598 }
44599 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44600 {
44601 arg2 = wxString_in_helper(obj1);
44602 if (arg2 == NULL) SWIG_fail;
44603 temp2 = true;
44604 }
44605 {
44606 PyThreadState* __tstate = wxPyBeginAllowThreads();
44607 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44608 wxPyEndAllowThreads(__tstate);
44609 if (PyErr_Occurred()) SWIG_fail;
44610 }
44611 {
44612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44613 }
44614 {
44615 if (temp2)
44616 delete arg2;
44617 }
44618 return resultobj;
44619 fail:
44620 {
44621 if (temp2)
44622 delete arg2;
44623 }
44624 return NULL;
44625 }
44626
44627
44628 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44629 PyObject *resultobj = 0;
44630 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44631 wxString result;
44632 void *argp1 = 0 ;
44633 int res1 = 0 ;
44634 PyObject *swig_obj[1] ;
44635
44636 if (!args) SWIG_fail;
44637 swig_obj[0] = args;
44638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44639 if (!SWIG_IsOK(res1)) {
44640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44641 }
44642 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44643 {
44644 PyThreadState* __tstate = wxPyBeginAllowThreads();
44645 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44646 wxPyEndAllowThreads(__tstate);
44647 if (PyErr_Occurred()) SWIG_fail;
44648 }
44649 {
44650 #if wxUSE_UNICODE
44651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44652 #else
44653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44654 #endif
44655 }
44656 return resultobj;
44657 fail:
44658 return NULL;
44659 }
44660
44661
44662 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44663 PyObject *obj;
44664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44665 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44666 return SWIG_Py_Void();
44667 }
44668
44669 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44670 return SWIG_Python_InitShadowInstance(args);
44671 }
44672
44673 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44674 PyObject *resultobj = 0;
44675 wxEventType arg1 ;
44676 wxObject *arg2 = (wxObject *) 0 ;
44677 int arg3 ;
44678 wxString *arg4 = 0 ;
44679 wxFileDirPickerEvent *result = 0 ;
44680 int val1 ;
44681 int ecode1 = 0 ;
44682 void *argp2 = 0 ;
44683 int res2 = 0 ;
44684 int val3 ;
44685 int ecode3 = 0 ;
44686 bool temp4 = false ;
44687 PyObject * obj0 = 0 ;
44688 PyObject * obj1 = 0 ;
44689 PyObject * obj2 = 0 ;
44690 PyObject * obj3 = 0 ;
44691 char * kwnames[] = {
44692 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44693 };
44694
44695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44696 ecode1 = SWIG_AsVal_int(obj0, &val1);
44697 if (!SWIG_IsOK(ecode1)) {
44698 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44699 }
44700 arg1 = static_cast< wxEventType >(val1);
44701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44702 if (!SWIG_IsOK(res2)) {
44703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44704 }
44705 arg2 = reinterpret_cast< wxObject * >(argp2);
44706 ecode3 = SWIG_AsVal_int(obj2, &val3);
44707 if (!SWIG_IsOK(ecode3)) {
44708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44709 }
44710 arg3 = static_cast< int >(val3);
44711 {
44712 arg4 = wxString_in_helper(obj3);
44713 if (arg4 == NULL) SWIG_fail;
44714 temp4 = true;
44715 }
44716 {
44717 PyThreadState* __tstate = wxPyBeginAllowThreads();
44718 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44719 wxPyEndAllowThreads(__tstate);
44720 if (PyErr_Occurred()) SWIG_fail;
44721 }
44722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44723 {
44724 if (temp4)
44725 delete arg4;
44726 }
44727 return resultobj;
44728 fail:
44729 {
44730 if (temp4)
44731 delete arg4;
44732 }
44733 return NULL;
44734 }
44735
44736
44737 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44738 PyObject *resultobj = 0;
44739 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44740 wxString result;
44741 void *argp1 = 0 ;
44742 int res1 = 0 ;
44743 PyObject *swig_obj[1] ;
44744
44745 if (!args) SWIG_fail;
44746 swig_obj[0] = args;
44747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44748 if (!SWIG_IsOK(res1)) {
44749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44750 }
44751 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44752 {
44753 PyThreadState* __tstate = wxPyBeginAllowThreads();
44754 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44755 wxPyEndAllowThreads(__tstate);
44756 if (PyErr_Occurred()) SWIG_fail;
44757 }
44758 {
44759 #if wxUSE_UNICODE
44760 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44761 #else
44762 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44763 #endif
44764 }
44765 return resultobj;
44766 fail:
44767 return NULL;
44768 }
44769
44770
44771 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44772 PyObject *resultobj = 0;
44773 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44774 wxString *arg2 = 0 ;
44775 void *argp1 = 0 ;
44776 int res1 = 0 ;
44777 bool temp2 = false ;
44778 PyObject * obj0 = 0 ;
44779 PyObject * obj1 = 0 ;
44780 char * kwnames[] = {
44781 (char *) "self",(char *) "p", NULL
44782 };
44783
44784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44786 if (!SWIG_IsOK(res1)) {
44787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44788 }
44789 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44790 {
44791 arg2 = wxString_in_helper(obj1);
44792 if (arg2 == NULL) SWIG_fail;
44793 temp2 = true;
44794 }
44795 {
44796 PyThreadState* __tstate = wxPyBeginAllowThreads();
44797 (arg1)->SetPath((wxString const &)*arg2);
44798 wxPyEndAllowThreads(__tstate);
44799 if (PyErr_Occurred()) SWIG_fail;
44800 }
44801 resultobj = SWIG_Py_Void();
44802 {
44803 if (temp2)
44804 delete arg2;
44805 }
44806 return resultobj;
44807 fail:
44808 {
44809 if (temp2)
44810 delete arg2;
44811 }
44812 return NULL;
44813 }
44814
44815
44816 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44817 PyObject *obj;
44818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44819 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44820 return SWIG_Py_Void();
44821 }
44822
44823 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44824 return SWIG_Python_InitShadowInstance(args);
44825 }
44826
44827 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44828 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44829 return 1;
44830 }
44831
44832
44833 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44834 PyObject *pyobj = 0;
44835
44836 {
44837 #if wxUSE_UNICODE
44838 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44839 #else
44840 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44841 #endif
44842 }
44843 return pyobj;
44844 }
44845
44846
44847 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44848 PyObject *resultobj = 0;
44849 wxWindow *arg1 = (wxWindow *) 0 ;
44850 int arg2 = (int) -1 ;
44851 wxFont const &arg3_defvalue = wxNullFont ;
44852 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44855 wxSize const &arg5_defvalue = wxDefaultSize ;
44856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44857 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44858 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44859 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44860 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44861 wxString *arg8 = (wxString *) &arg8_defvalue ;
44862 wxFontPickerCtrl *result = 0 ;
44863 void *argp1 = 0 ;
44864 int res1 = 0 ;
44865 int val2 ;
44866 int ecode2 = 0 ;
44867 void *argp3 = 0 ;
44868 int res3 = 0 ;
44869 wxPoint temp4 ;
44870 wxSize temp5 ;
44871 long val6 ;
44872 int ecode6 = 0 ;
44873 void *argp7 = 0 ;
44874 int res7 = 0 ;
44875 bool temp8 = false ;
44876 PyObject * obj0 = 0 ;
44877 PyObject * obj1 = 0 ;
44878 PyObject * obj2 = 0 ;
44879 PyObject * obj3 = 0 ;
44880 PyObject * obj4 = 0 ;
44881 PyObject * obj5 = 0 ;
44882 PyObject * obj6 = 0 ;
44883 PyObject * obj7 = 0 ;
44884 char * kwnames[] = {
44885 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44886 };
44887
44888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44890 if (!SWIG_IsOK(res1)) {
44891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44892 }
44893 arg1 = reinterpret_cast< wxWindow * >(argp1);
44894 if (obj1) {
44895 ecode2 = SWIG_AsVal_int(obj1, &val2);
44896 if (!SWIG_IsOK(ecode2)) {
44897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44898 }
44899 arg2 = static_cast< int >(val2);
44900 }
44901 if (obj2) {
44902 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44903 if (!SWIG_IsOK(res3)) {
44904 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44905 }
44906 if (!argp3) {
44907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44908 }
44909 arg3 = reinterpret_cast< wxFont * >(argp3);
44910 }
44911 if (obj3) {
44912 {
44913 arg4 = &temp4;
44914 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44915 }
44916 }
44917 if (obj4) {
44918 {
44919 arg5 = &temp5;
44920 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44921 }
44922 }
44923 if (obj5) {
44924 ecode6 = SWIG_AsVal_long(obj5, &val6);
44925 if (!SWIG_IsOK(ecode6)) {
44926 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44927 }
44928 arg6 = static_cast< long >(val6);
44929 }
44930 if (obj6) {
44931 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44932 if (!SWIG_IsOK(res7)) {
44933 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44934 }
44935 if (!argp7) {
44936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44937 }
44938 arg7 = reinterpret_cast< wxValidator * >(argp7);
44939 }
44940 if (obj7) {
44941 {
44942 arg8 = wxString_in_helper(obj7);
44943 if (arg8 == NULL) SWIG_fail;
44944 temp8 = true;
44945 }
44946 }
44947 {
44948 if (!wxPyCheckForApp()) SWIG_fail;
44949 PyThreadState* __tstate = wxPyBeginAllowThreads();
44950 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44951 wxPyEndAllowThreads(__tstate);
44952 if (PyErr_Occurred()) SWIG_fail;
44953 }
44954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44955 {
44956 if (temp8)
44957 delete arg8;
44958 }
44959 return resultobj;
44960 fail:
44961 {
44962 if (temp8)
44963 delete arg8;
44964 }
44965 return NULL;
44966 }
44967
44968
44969 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44970 PyObject *resultobj = 0;
44971 wxFontPickerCtrl *result = 0 ;
44972
44973 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44974 {
44975 if (!wxPyCheckForApp()) SWIG_fail;
44976 PyThreadState* __tstate = wxPyBeginAllowThreads();
44977 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44978 wxPyEndAllowThreads(__tstate);
44979 if (PyErr_Occurred()) SWIG_fail;
44980 }
44981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44982 return resultobj;
44983 fail:
44984 return NULL;
44985 }
44986
44987
44988 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44989 PyObject *resultobj = 0;
44990 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44991 wxWindow *arg2 = (wxWindow *) 0 ;
44992 int arg3 = (int) -1 ;
44993 wxFont const &arg4_defvalue = wxNullFont ;
44994 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44995 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44996 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44997 wxSize const &arg6_defvalue = wxDefaultSize ;
44998 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44999 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45000 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45001 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45002 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45003 wxString *arg9 = (wxString *) &arg9_defvalue ;
45004 bool result;
45005 void *argp1 = 0 ;
45006 int res1 = 0 ;
45007 void *argp2 = 0 ;
45008 int res2 = 0 ;
45009 int val3 ;
45010 int ecode3 = 0 ;
45011 void *argp4 = 0 ;
45012 int res4 = 0 ;
45013 wxPoint temp5 ;
45014 wxSize temp6 ;
45015 long val7 ;
45016 int ecode7 = 0 ;
45017 void *argp8 = 0 ;
45018 int res8 = 0 ;
45019 bool temp9 = false ;
45020 PyObject * obj0 = 0 ;
45021 PyObject * obj1 = 0 ;
45022 PyObject * obj2 = 0 ;
45023 PyObject * obj3 = 0 ;
45024 PyObject * obj4 = 0 ;
45025 PyObject * obj5 = 0 ;
45026 PyObject * obj6 = 0 ;
45027 PyObject * obj7 = 0 ;
45028 PyObject * obj8 = 0 ;
45029 char * kwnames[] = {
45030 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45031 };
45032
45033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45035 if (!SWIG_IsOK(res1)) {
45036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45037 }
45038 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45039 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45040 if (!SWIG_IsOK(res2)) {
45041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45042 }
45043 arg2 = reinterpret_cast< wxWindow * >(argp2);
45044 if (obj2) {
45045 ecode3 = SWIG_AsVal_int(obj2, &val3);
45046 if (!SWIG_IsOK(ecode3)) {
45047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45048 }
45049 arg3 = static_cast< int >(val3);
45050 }
45051 if (obj3) {
45052 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45053 if (!SWIG_IsOK(res4)) {
45054 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45055 }
45056 if (!argp4) {
45057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45058 }
45059 arg4 = reinterpret_cast< wxFont * >(argp4);
45060 }
45061 if (obj4) {
45062 {
45063 arg5 = &temp5;
45064 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45065 }
45066 }
45067 if (obj5) {
45068 {
45069 arg6 = &temp6;
45070 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45071 }
45072 }
45073 if (obj6) {
45074 ecode7 = SWIG_AsVal_long(obj6, &val7);
45075 if (!SWIG_IsOK(ecode7)) {
45076 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45077 }
45078 arg7 = static_cast< long >(val7);
45079 }
45080 if (obj7) {
45081 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45082 if (!SWIG_IsOK(res8)) {
45083 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45084 }
45085 if (!argp8) {
45086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45087 }
45088 arg8 = reinterpret_cast< wxValidator * >(argp8);
45089 }
45090 if (obj8) {
45091 {
45092 arg9 = wxString_in_helper(obj8);
45093 if (arg9 == NULL) SWIG_fail;
45094 temp9 = true;
45095 }
45096 }
45097 {
45098 PyThreadState* __tstate = wxPyBeginAllowThreads();
45099 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45100 wxPyEndAllowThreads(__tstate);
45101 if (PyErr_Occurred()) SWIG_fail;
45102 }
45103 {
45104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45105 }
45106 {
45107 if (temp9)
45108 delete arg9;
45109 }
45110 return resultobj;
45111 fail:
45112 {
45113 if (temp9)
45114 delete arg9;
45115 }
45116 return NULL;
45117 }
45118
45119
45120 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45121 PyObject *resultobj = 0;
45122 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45123 wxFont result;
45124 void *argp1 = 0 ;
45125 int res1 = 0 ;
45126 PyObject *swig_obj[1] ;
45127
45128 if (!args) SWIG_fail;
45129 swig_obj[0] = args;
45130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45131 if (!SWIG_IsOK(res1)) {
45132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45133 }
45134 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45135 {
45136 PyThreadState* __tstate = wxPyBeginAllowThreads();
45137 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45138 wxPyEndAllowThreads(__tstate);
45139 if (PyErr_Occurred()) SWIG_fail;
45140 }
45141 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45142 return resultobj;
45143 fail:
45144 return NULL;
45145 }
45146
45147
45148 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45149 PyObject *resultobj = 0;
45150 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45151 wxFont *arg2 = 0 ;
45152 void *argp1 = 0 ;
45153 int res1 = 0 ;
45154 void *argp2 = 0 ;
45155 int res2 = 0 ;
45156 PyObject * obj0 = 0 ;
45157 PyObject * obj1 = 0 ;
45158 char * kwnames[] = {
45159 (char *) "self",(char *) "f", NULL
45160 };
45161
45162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45164 if (!SWIG_IsOK(res1)) {
45165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45166 }
45167 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45169 if (!SWIG_IsOK(res2)) {
45170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45171 }
45172 if (!argp2) {
45173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45174 }
45175 arg2 = reinterpret_cast< wxFont * >(argp2);
45176 {
45177 PyThreadState* __tstate = wxPyBeginAllowThreads();
45178 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45179 wxPyEndAllowThreads(__tstate);
45180 if (PyErr_Occurred()) SWIG_fail;
45181 }
45182 resultobj = SWIG_Py_Void();
45183 return resultobj;
45184 fail:
45185 return NULL;
45186 }
45187
45188
45189 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45190 PyObject *resultobj = 0;
45191 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45192 unsigned int arg2 ;
45193 void *argp1 = 0 ;
45194 int res1 = 0 ;
45195 unsigned int val2 ;
45196 int ecode2 = 0 ;
45197 PyObject * obj0 = 0 ;
45198 PyObject * obj1 = 0 ;
45199 char * kwnames[] = {
45200 (char *) "self",(char *) "max", NULL
45201 };
45202
45203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45205 if (!SWIG_IsOK(res1)) {
45206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45207 }
45208 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45209 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45210 if (!SWIG_IsOK(ecode2)) {
45211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45212 }
45213 arg2 = static_cast< unsigned int >(val2);
45214 {
45215 PyThreadState* __tstate = wxPyBeginAllowThreads();
45216 (arg1)->SetMaxPointSize(arg2);
45217 wxPyEndAllowThreads(__tstate);
45218 if (PyErr_Occurred()) SWIG_fail;
45219 }
45220 resultobj = SWIG_Py_Void();
45221 return resultobj;
45222 fail:
45223 return NULL;
45224 }
45225
45226
45227 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45228 PyObject *resultobj = 0;
45229 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45230 unsigned int result;
45231 void *argp1 = 0 ;
45232 int res1 = 0 ;
45233 PyObject *swig_obj[1] ;
45234
45235 if (!args) SWIG_fail;
45236 swig_obj[0] = args;
45237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45238 if (!SWIG_IsOK(res1)) {
45239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45240 }
45241 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45242 {
45243 PyThreadState* __tstate = wxPyBeginAllowThreads();
45244 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45245 wxPyEndAllowThreads(__tstate);
45246 if (PyErr_Occurred()) SWIG_fail;
45247 }
45248 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45249 return resultobj;
45250 fail:
45251 return NULL;
45252 }
45253
45254
45255 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45256 PyObject *obj;
45257 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45258 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45259 return SWIG_Py_Void();
45260 }
45261
45262 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45263 return SWIG_Python_InitShadowInstance(args);
45264 }
45265
45266 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45267 PyObject *resultobj = 0;
45268 wxObject *arg1 = (wxObject *) 0 ;
45269 int arg2 ;
45270 wxFont *arg3 = 0 ;
45271 wxFontPickerEvent *result = 0 ;
45272 void *argp1 = 0 ;
45273 int res1 = 0 ;
45274 int val2 ;
45275 int ecode2 = 0 ;
45276 void *argp3 = 0 ;
45277 int res3 = 0 ;
45278 PyObject * obj0 = 0 ;
45279 PyObject * obj1 = 0 ;
45280 PyObject * obj2 = 0 ;
45281 char * kwnames[] = {
45282 (char *) "generator",(char *) "id",(char *) "f", NULL
45283 };
45284
45285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45287 if (!SWIG_IsOK(res1)) {
45288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45289 }
45290 arg1 = reinterpret_cast< wxObject * >(argp1);
45291 ecode2 = SWIG_AsVal_int(obj1, &val2);
45292 if (!SWIG_IsOK(ecode2)) {
45293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45294 }
45295 arg2 = static_cast< int >(val2);
45296 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45297 if (!SWIG_IsOK(res3)) {
45298 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45299 }
45300 if (!argp3) {
45301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45302 }
45303 arg3 = reinterpret_cast< wxFont * >(argp3);
45304 {
45305 PyThreadState* __tstate = wxPyBeginAllowThreads();
45306 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45307 wxPyEndAllowThreads(__tstate);
45308 if (PyErr_Occurred()) SWIG_fail;
45309 }
45310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45311 return resultobj;
45312 fail:
45313 return NULL;
45314 }
45315
45316
45317 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45318 PyObject *resultobj = 0;
45319 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45320 wxFont result;
45321 void *argp1 = 0 ;
45322 int res1 = 0 ;
45323 PyObject *swig_obj[1] ;
45324
45325 if (!args) SWIG_fail;
45326 swig_obj[0] = args;
45327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45328 if (!SWIG_IsOK(res1)) {
45329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45330 }
45331 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45332 {
45333 PyThreadState* __tstate = wxPyBeginAllowThreads();
45334 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45335 wxPyEndAllowThreads(__tstate);
45336 if (PyErr_Occurred()) SWIG_fail;
45337 }
45338 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45339 return resultobj;
45340 fail:
45341 return NULL;
45342 }
45343
45344
45345 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45346 PyObject *resultobj = 0;
45347 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45348 wxFont *arg2 = 0 ;
45349 void *argp1 = 0 ;
45350 int res1 = 0 ;
45351 void *argp2 = 0 ;
45352 int res2 = 0 ;
45353 PyObject * obj0 = 0 ;
45354 PyObject * obj1 = 0 ;
45355 char * kwnames[] = {
45356 (char *) "self",(char *) "c", NULL
45357 };
45358
45359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45361 if (!SWIG_IsOK(res1)) {
45362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45363 }
45364 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45366 if (!SWIG_IsOK(res2)) {
45367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45368 }
45369 if (!argp2) {
45370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45371 }
45372 arg2 = reinterpret_cast< wxFont * >(argp2);
45373 {
45374 PyThreadState* __tstate = wxPyBeginAllowThreads();
45375 (arg1)->SetFont((wxFont const &)*arg2);
45376 wxPyEndAllowThreads(__tstate);
45377 if (PyErr_Occurred()) SWIG_fail;
45378 }
45379 resultobj = SWIG_Py_Void();
45380 return resultobj;
45381 fail:
45382 return NULL;
45383 }
45384
45385
45386 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45387 PyObject *obj;
45388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45389 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45390 return SWIG_Py_Void();
45391 }
45392
45393 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45394 return SWIG_Python_InitShadowInstance(args);
45395 }
45396
45397 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45398 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45399 return 1;
45400 }
45401
45402
45403 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45404 PyObject *pyobj = 0;
45405
45406 {
45407 #if wxUSE_UNICODE
45408 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45409 #else
45410 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45411 #endif
45412 }
45413 return pyobj;
45414 }
45415
45416
45417 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45418 PyObject *resultobj = 0;
45419 wxWindow *arg1 = (wxWindow *) 0 ;
45420 int arg2 = (int) -1 ;
45421 wxString const &arg3_defvalue = wxPyEmptyString ;
45422 wxString *arg3 = (wxString *) &arg3_defvalue ;
45423 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45424 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45425 wxSize const &arg5_defvalue = wxDefaultSize ;
45426 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45427 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45428 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45429 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45430 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45431 wxString *arg8 = (wxString *) &arg8_defvalue ;
45432 wxCollapsiblePane *result = 0 ;
45433 void *argp1 = 0 ;
45434 int res1 = 0 ;
45435 int val2 ;
45436 int ecode2 = 0 ;
45437 bool temp3 = false ;
45438 wxPoint temp4 ;
45439 wxSize temp5 ;
45440 long val6 ;
45441 int ecode6 = 0 ;
45442 void *argp7 = 0 ;
45443 int res7 = 0 ;
45444 bool temp8 = false ;
45445 PyObject * obj0 = 0 ;
45446 PyObject * obj1 = 0 ;
45447 PyObject * obj2 = 0 ;
45448 PyObject * obj3 = 0 ;
45449 PyObject * obj4 = 0 ;
45450 PyObject * obj5 = 0 ;
45451 PyObject * obj6 = 0 ;
45452 PyObject * obj7 = 0 ;
45453 char * kwnames[] = {
45454 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45455 };
45456
45457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45459 if (!SWIG_IsOK(res1)) {
45460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45461 }
45462 arg1 = reinterpret_cast< wxWindow * >(argp1);
45463 if (obj1) {
45464 ecode2 = SWIG_AsVal_int(obj1, &val2);
45465 if (!SWIG_IsOK(ecode2)) {
45466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45467 }
45468 arg2 = static_cast< int >(val2);
45469 }
45470 if (obj2) {
45471 {
45472 arg3 = wxString_in_helper(obj2);
45473 if (arg3 == NULL) SWIG_fail;
45474 temp3 = true;
45475 }
45476 }
45477 if (obj3) {
45478 {
45479 arg4 = &temp4;
45480 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45481 }
45482 }
45483 if (obj4) {
45484 {
45485 arg5 = &temp5;
45486 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45487 }
45488 }
45489 if (obj5) {
45490 ecode6 = SWIG_AsVal_long(obj5, &val6);
45491 if (!SWIG_IsOK(ecode6)) {
45492 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45493 }
45494 arg6 = static_cast< long >(val6);
45495 }
45496 if (obj6) {
45497 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45498 if (!SWIG_IsOK(res7)) {
45499 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45500 }
45501 if (!argp7) {
45502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45503 }
45504 arg7 = reinterpret_cast< wxValidator * >(argp7);
45505 }
45506 if (obj7) {
45507 {
45508 arg8 = wxString_in_helper(obj7);
45509 if (arg8 == NULL) SWIG_fail;
45510 temp8 = true;
45511 }
45512 }
45513 {
45514 if (!wxPyCheckForApp()) SWIG_fail;
45515 PyThreadState* __tstate = wxPyBeginAllowThreads();
45516 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45517 wxPyEndAllowThreads(__tstate);
45518 if (PyErr_Occurred()) SWIG_fail;
45519 }
45520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45521 {
45522 if (temp3)
45523 delete arg3;
45524 }
45525 {
45526 if (temp8)
45527 delete arg8;
45528 }
45529 return resultobj;
45530 fail:
45531 {
45532 if (temp3)
45533 delete arg3;
45534 }
45535 {
45536 if (temp8)
45537 delete arg8;
45538 }
45539 return NULL;
45540 }
45541
45542
45543 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45544 PyObject *resultobj = 0;
45545 wxCollapsiblePane *result = 0 ;
45546
45547 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45548 {
45549 if (!wxPyCheckForApp()) SWIG_fail;
45550 PyThreadState* __tstate = wxPyBeginAllowThreads();
45551 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45552 wxPyEndAllowThreads(__tstate);
45553 if (PyErr_Occurred()) SWIG_fail;
45554 }
45555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45556 return resultobj;
45557 fail:
45558 return NULL;
45559 }
45560
45561
45562 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45563 PyObject *resultobj = 0;
45564 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45565 wxWindow *arg2 = (wxWindow *) 0 ;
45566 int arg3 = (int) -1 ;
45567 wxString const &arg4_defvalue = wxPyEmptyString ;
45568 wxString *arg4 = (wxString *) &arg4_defvalue ;
45569 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45570 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45571 wxSize const &arg6_defvalue = wxDefaultSize ;
45572 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45573 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45574 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45575 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45576 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45577 wxString *arg9 = (wxString *) &arg9_defvalue ;
45578 bool result;
45579 void *argp1 = 0 ;
45580 int res1 = 0 ;
45581 void *argp2 = 0 ;
45582 int res2 = 0 ;
45583 int val3 ;
45584 int ecode3 = 0 ;
45585 bool temp4 = false ;
45586 wxPoint temp5 ;
45587 wxSize temp6 ;
45588 long val7 ;
45589 int ecode7 = 0 ;
45590 void *argp8 = 0 ;
45591 int res8 = 0 ;
45592 bool temp9 = false ;
45593 PyObject * obj0 = 0 ;
45594 PyObject * obj1 = 0 ;
45595 PyObject * obj2 = 0 ;
45596 PyObject * obj3 = 0 ;
45597 PyObject * obj4 = 0 ;
45598 PyObject * obj5 = 0 ;
45599 PyObject * obj6 = 0 ;
45600 PyObject * obj7 = 0 ;
45601 PyObject * obj8 = 0 ;
45602 char * kwnames[] = {
45603 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45604 };
45605
45606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45608 if (!SWIG_IsOK(res1)) {
45609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45610 }
45611 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45612 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45613 if (!SWIG_IsOK(res2)) {
45614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45615 }
45616 arg2 = reinterpret_cast< wxWindow * >(argp2);
45617 if (obj2) {
45618 ecode3 = SWIG_AsVal_int(obj2, &val3);
45619 if (!SWIG_IsOK(ecode3)) {
45620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45621 }
45622 arg3 = static_cast< int >(val3);
45623 }
45624 if (obj3) {
45625 {
45626 arg4 = wxString_in_helper(obj3);
45627 if (arg4 == NULL) SWIG_fail;
45628 temp4 = true;
45629 }
45630 }
45631 if (obj4) {
45632 {
45633 arg5 = &temp5;
45634 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45635 }
45636 }
45637 if (obj5) {
45638 {
45639 arg6 = &temp6;
45640 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45641 }
45642 }
45643 if (obj6) {
45644 ecode7 = SWIG_AsVal_long(obj6, &val7);
45645 if (!SWIG_IsOK(ecode7)) {
45646 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45647 }
45648 arg7 = static_cast< long >(val7);
45649 }
45650 if (obj7) {
45651 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45652 if (!SWIG_IsOK(res8)) {
45653 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45654 }
45655 if (!argp8) {
45656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45657 }
45658 arg8 = reinterpret_cast< wxValidator * >(argp8);
45659 }
45660 if (obj8) {
45661 {
45662 arg9 = wxString_in_helper(obj8);
45663 if (arg9 == NULL) SWIG_fail;
45664 temp9 = true;
45665 }
45666 }
45667 {
45668 PyThreadState* __tstate = wxPyBeginAllowThreads();
45669 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45670 wxPyEndAllowThreads(__tstate);
45671 if (PyErr_Occurred()) SWIG_fail;
45672 }
45673 {
45674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45675 }
45676 {
45677 if (temp4)
45678 delete arg4;
45679 }
45680 {
45681 if (temp9)
45682 delete arg9;
45683 }
45684 return resultobj;
45685 fail:
45686 {
45687 if (temp4)
45688 delete arg4;
45689 }
45690 {
45691 if (temp9)
45692 delete arg9;
45693 }
45694 return NULL;
45695 }
45696
45697
45698 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45699 PyObject *resultobj = 0;
45700 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45701 bool arg2 = (bool) true ;
45702 void *argp1 = 0 ;
45703 int res1 = 0 ;
45704 bool val2 ;
45705 int ecode2 = 0 ;
45706 PyObject * obj0 = 0 ;
45707 PyObject * obj1 = 0 ;
45708 char * kwnames[] = {
45709 (char *) "self",(char *) "collapse", NULL
45710 };
45711
45712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45714 if (!SWIG_IsOK(res1)) {
45715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45716 }
45717 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45718 if (obj1) {
45719 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45720 if (!SWIG_IsOK(ecode2)) {
45721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45722 }
45723 arg2 = static_cast< bool >(val2);
45724 }
45725 {
45726 PyThreadState* __tstate = wxPyBeginAllowThreads();
45727 (arg1)->Collapse(arg2);
45728 wxPyEndAllowThreads(__tstate);
45729 if (PyErr_Occurred()) SWIG_fail;
45730 }
45731 resultobj = SWIG_Py_Void();
45732 return resultobj;
45733 fail:
45734 return NULL;
45735 }
45736
45737
45738 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45739 PyObject *resultobj = 0;
45740 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45741 void *argp1 = 0 ;
45742 int res1 = 0 ;
45743 PyObject *swig_obj[1] ;
45744
45745 if (!args) SWIG_fail;
45746 swig_obj[0] = args;
45747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45748 if (!SWIG_IsOK(res1)) {
45749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45750 }
45751 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45752 {
45753 PyThreadState* __tstate = wxPyBeginAllowThreads();
45754 (arg1)->Expand();
45755 wxPyEndAllowThreads(__tstate);
45756 if (PyErr_Occurred()) SWIG_fail;
45757 }
45758 resultobj = SWIG_Py_Void();
45759 return resultobj;
45760 fail:
45761 return NULL;
45762 }
45763
45764
45765 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45766 PyObject *resultobj = 0;
45767 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45768 bool result;
45769 void *argp1 = 0 ;
45770 int res1 = 0 ;
45771 PyObject *swig_obj[1] ;
45772
45773 if (!args) SWIG_fail;
45774 swig_obj[0] = args;
45775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45776 if (!SWIG_IsOK(res1)) {
45777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45778 }
45779 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45780 {
45781 PyThreadState* __tstate = wxPyBeginAllowThreads();
45782 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45783 wxPyEndAllowThreads(__tstate);
45784 if (PyErr_Occurred()) SWIG_fail;
45785 }
45786 {
45787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45788 }
45789 return resultobj;
45790 fail:
45791 return NULL;
45792 }
45793
45794
45795 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45796 PyObject *resultobj = 0;
45797 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45798 bool result;
45799 void *argp1 = 0 ;
45800 int res1 = 0 ;
45801 PyObject *swig_obj[1] ;
45802
45803 if (!args) SWIG_fail;
45804 swig_obj[0] = args;
45805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45806 if (!SWIG_IsOK(res1)) {
45807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45808 }
45809 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45810 {
45811 PyThreadState* __tstate = wxPyBeginAllowThreads();
45812 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45813 wxPyEndAllowThreads(__tstate);
45814 if (PyErr_Occurred()) SWIG_fail;
45815 }
45816 {
45817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45818 }
45819 return resultobj;
45820 fail:
45821 return NULL;
45822 }
45823
45824
45825 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45826 PyObject *resultobj = 0;
45827 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45828 wxWindow *result = 0 ;
45829 void *argp1 = 0 ;
45830 int res1 = 0 ;
45831 PyObject *swig_obj[1] ;
45832
45833 if (!args) SWIG_fail;
45834 swig_obj[0] = args;
45835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45836 if (!SWIG_IsOK(res1)) {
45837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45838 }
45839 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45840 {
45841 PyThreadState* __tstate = wxPyBeginAllowThreads();
45842 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45843 wxPyEndAllowThreads(__tstate);
45844 if (PyErr_Occurred()) SWIG_fail;
45845 }
45846 {
45847 resultobj = wxPyMake_wxObject(result, 0);
45848 }
45849 return resultobj;
45850 fail:
45851 return NULL;
45852 }
45853
45854
45855 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45856 PyObject *obj;
45857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45858 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45859 return SWIG_Py_Void();
45860 }
45861
45862 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45863 return SWIG_Python_InitShadowInstance(args);
45864 }
45865
45866 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45867 PyObject *resultobj = 0;
45868 wxObject *arg1 = (wxObject *) 0 ;
45869 int arg2 ;
45870 bool arg3 ;
45871 wxCollapsiblePaneEvent *result = 0 ;
45872 void *argp1 = 0 ;
45873 int res1 = 0 ;
45874 int val2 ;
45875 int ecode2 = 0 ;
45876 bool val3 ;
45877 int ecode3 = 0 ;
45878 PyObject * obj0 = 0 ;
45879 PyObject * obj1 = 0 ;
45880 PyObject * obj2 = 0 ;
45881 char * kwnames[] = {
45882 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45883 };
45884
45885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45887 if (!SWIG_IsOK(res1)) {
45888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45889 }
45890 arg1 = reinterpret_cast< wxObject * >(argp1);
45891 ecode2 = SWIG_AsVal_int(obj1, &val2);
45892 if (!SWIG_IsOK(ecode2)) {
45893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45894 }
45895 arg2 = static_cast< int >(val2);
45896 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45897 if (!SWIG_IsOK(ecode3)) {
45898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45899 }
45900 arg3 = static_cast< bool >(val3);
45901 {
45902 PyThreadState* __tstate = wxPyBeginAllowThreads();
45903 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45904 wxPyEndAllowThreads(__tstate);
45905 if (PyErr_Occurred()) SWIG_fail;
45906 }
45907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45908 return resultobj;
45909 fail:
45910 return NULL;
45911 }
45912
45913
45914 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45915 PyObject *resultobj = 0;
45916 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45917 bool result;
45918 void *argp1 = 0 ;
45919 int res1 = 0 ;
45920 PyObject *swig_obj[1] ;
45921
45922 if (!args) SWIG_fail;
45923 swig_obj[0] = args;
45924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45925 if (!SWIG_IsOK(res1)) {
45926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45927 }
45928 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45929 {
45930 PyThreadState* __tstate = wxPyBeginAllowThreads();
45931 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45932 wxPyEndAllowThreads(__tstate);
45933 if (PyErr_Occurred()) SWIG_fail;
45934 }
45935 {
45936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45937 }
45938 return resultobj;
45939 fail:
45940 return NULL;
45941 }
45942
45943
45944 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45945 PyObject *resultobj = 0;
45946 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45947 bool arg2 ;
45948 void *argp1 = 0 ;
45949 int res1 = 0 ;
45950 bool val2 ;
45951 int ecode2 = 0 ;
45952 PyObject * obj0 = 0 ;
45953 PyObject * obj1 = 0 ;
45954 char * kwnames[] = {
45955 (char *) "self",(char *) "c", NULL
45956 };
45957
45958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45960 if (!SWIG_IsOK(res1)) {
45961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45962 }
45963 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45964 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45965 if (!SWIG_IsOK(ecode2)) {
45966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45967 }
45968 arg2 = static_cast< bool >(val2);
45969 {
45970 PyThreadState* __tstate = wxPyBeginAllowThreads();
45971 (arg1)->SetCollapsed(arg2);
45972 wxPyEndAllowThreads(__tstate);
45973 if (PyErr_Occurred()) SWIG_fail;
45974 }
45975 resultobj = SWIG_Py_Void();
45976 return resultobj;
45977 fail:
45978 return NULL;
45979 }
45980
45981
45982 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45983 PyObject *obj;
45984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45985 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
45986 return SWIG_Py_Void();
45987 }
45988
45989 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45990 return SWIG_Python_InitShadowInstance(args);
45991 }
45992
45993 static PyMethodDef SwigMethods[] = {
45994 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45996 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45998 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45999 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46001 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46002 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46003 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46004 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46006 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46007 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46008 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46009 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46010 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46017 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46018 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46019 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46020 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46022 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46024 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46025 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46027 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46029 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46030 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46032 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46033 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46035 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46037 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46039 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46040 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46042 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46044 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46046 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46047 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46048 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46050 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46051 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
46054 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46055 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46058 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46060 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46061 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46062 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46063 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46064 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46065 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46066 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46067 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46068 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46070 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46071 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46073 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46076 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
46078 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
46079 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46080 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46082 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46084 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46086 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46087 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46089 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46092 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46093 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46095 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46097 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46098 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46100 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46101 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46103 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46107 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46108 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46110 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46112 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46116 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46117 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46119 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46130 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46135 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46141 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46142 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46144 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
46148 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46149 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46150 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46152 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46153 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46163 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46164 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46165 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46166 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46167 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46168 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46169 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46171 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46172 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46173 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46174 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46175 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46176 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46177 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46178 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46179 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46180 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46182 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46183 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46185 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46187 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46189 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46192 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46194 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46195 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46196 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46197 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46198 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46199 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46200 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46201 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46203 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46205 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46206 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
46207 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46211 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46213 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46214 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46216 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46217 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46222 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46223 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46224 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46225 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46226 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46227 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46228 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46229 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46230 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46231 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46233 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46234 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46235 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46236 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46237 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
46239 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
46240 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46241 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46244 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46245 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46247 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46248 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46249 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46250 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46251 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46253 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46254 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46255 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46256 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46257 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46258 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46259 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46260 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46262 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46263 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46264 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46265 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46267 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46268 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46269 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46271 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46272 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46273 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46274 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46276 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46277 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46278 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46279 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46280 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46281 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46282 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46284 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46285 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46286 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46289 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46290 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46291 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46292 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46293 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46294 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46295 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46296 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46297 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46299 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46300 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46301 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46302 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46303 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46304 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46306 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46307 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46309 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46310 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46311 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46312 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46314 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46315 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46317 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46319 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46320 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46321 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46322 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46323 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46324 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46326 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46327 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46328 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46330 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46332 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46334 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46335 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46336 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46337 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46338 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46339 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46341 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46342 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46343 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46344 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46346 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46347 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46348 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46349 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46350 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46351 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46354 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46355 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46356 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46357 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46359 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46360 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46361 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46362 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46363 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46364 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46365 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46366 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46367 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46369 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46370 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46372 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46373 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46374 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46375 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
46376 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46377 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46378 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
46379 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46380 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
46381 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46382 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
46383 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
46384 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46385 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46386 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46387 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46388 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46390 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46391 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46392 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46393 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46394 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46395 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46396 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46397 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46398 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46399 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46400 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46401 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46402 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46403 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46404 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46405 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46406 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46407 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
46408 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46409 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46410 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46411 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46412 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
46413 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
46414 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46415 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
46416 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
46417 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
46418 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
46419 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46420 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
46421 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
46422 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
46423 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46424 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
46425 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
46426 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
46427 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
46428 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46429 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
46430 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
46431 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
46432 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
46434 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
46435 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
46436 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
46437 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46438 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46439 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46441 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
46443 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
46444 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
46445 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
46446 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
46447 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46448 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
46449 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
46450 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
46451 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
46452 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46453 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
46454 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
46455 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
46456 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
46457 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46458 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
46459 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
46460 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
46461 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
46462 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
46463 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
46464 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
46465 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
46466 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
46467 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
46468 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
46469 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
46470 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
46471 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
46472 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
46473 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
46474 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
46475 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
46476 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
46477 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46478 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
46479 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46480 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46481 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46482 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46483 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46484 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46485 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
46486 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46487 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
46488 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46489 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
46490 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
46491 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
46492 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46494 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
46495 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
46496 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
46497 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
46498 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46499 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
46500 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
46501 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
46502 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
46503 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
46504 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
46505 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
46506 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46507 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46508 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46509 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
46510 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
46511 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46512 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46513 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46514 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46515 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46516 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
46517 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46518 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
46519 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
46520 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
46521 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
46522 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
46523 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
46524 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46525 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
46526 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
46527 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
46528 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
46529 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
46530 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
46531 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46532 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
46533 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
46534 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
46535 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
46536 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
46537 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
46538 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46539 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46540 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
46541 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
46542 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46543 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
46544 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46545 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46546 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46547 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
46548 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
46549 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
46550 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
46551 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
46552 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
46553 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
46554 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
46555 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
46556 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
46557 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
46558 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
46559 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
46560 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
46561 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
46562 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46563 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46564 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46565 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
46566 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46567 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
46568 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46569 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46570 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
46571 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46572 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46573 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46574 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
46575 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
46576 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
46577 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
46578 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
46579 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
46580 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
46581 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
46582 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
46583 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
46584 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
46585 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
46586 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
46587 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
46588 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46589 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46590 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46591 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46592 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46593 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46594 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46595 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46596 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46597 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46598 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46599 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46600 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46601 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46602 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46603 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46604 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46605 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46606 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46607 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46608 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46609 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46610 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46611 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46612 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46613 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46614 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46615 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46616 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46617 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46618 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46619 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46620 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46621 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46622 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46623 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46624 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46625 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46626 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46627 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46628 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46629 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46630 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46631 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46632 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46633 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46634 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46635 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46636 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46637 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46638 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46639 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46640 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46641 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46642 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46643 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46645 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46646 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46647 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46648 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46649 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46650 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46651 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46652 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46653 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46654 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46655 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46656 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46657 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46658 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46659 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46661 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46662 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46663 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46664 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46665 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46666 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46667 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46668 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46669 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46671 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46672 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46673 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46674 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46675 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46676 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46677 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46678 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46679 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46680 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46681 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46682 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46683 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46684 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46685 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46686 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46687 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46688 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46689 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46691 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46692 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
46693 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46694 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46695 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46696 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46697 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46698 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46699 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46700 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46701 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46702 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46703 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46704 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46705 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46707 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46708 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46709 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46711 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46712 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46714 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46715 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46718 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46719 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46720 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46723 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46724 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46725 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46726 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46727 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46728 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46729 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46731 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46732 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46733 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46734 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46735 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46736 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46737 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46739 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46740 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46741 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46742 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
46743 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
46744 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46745 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46747 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46748 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46749 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46750 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46751 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46752 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46753 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46754 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46755 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46756 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46757 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46758 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46759 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46760 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46761 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46762 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46763 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46764 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46765 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46766 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46767 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46768 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46769 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46770 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46771 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46772 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46773 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46774 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46775 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46776 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46777 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46779 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46780 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46781 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46782 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46783 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46784 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46785 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46786 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46787 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46788 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46789 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46790 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46793 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46794 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46795 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46796 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46797 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46800 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46801 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46802 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46804 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46805 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46806 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46807 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46808 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46809 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46810 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46811 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46812 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46813 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46814 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46815 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46816 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46817 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46818 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46819 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
46820 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46821 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
46822 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46823 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46824 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46825 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46826 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46827 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46828 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46829 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46830 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46831 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46832 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46834 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46835 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46836 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46837 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46838 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46839 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
46840 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46841 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46842 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46843 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46844 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46845 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
46846 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
46847 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46848 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46849 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46850 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46851 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46852 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46853 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46854 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46855 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46856 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46857 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46858 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46859 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46860 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46861 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46862 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46863 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46864 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46865 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46866 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46867 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46868 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46869 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46870 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46871 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46872 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46874 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46876 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46878 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46879 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46880 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46881 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46882 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46883 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46884 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46885 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46886 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46887 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46888 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46889 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46890 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46891 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46893 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46895 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46896 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46897 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46898 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46899 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46900 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46901 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46902 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46904 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46905 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46906 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46907 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46908 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46909 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46910 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46911 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46912 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46913 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46914 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46915 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46916 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46917 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46919 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46920 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46921 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46922 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46923 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46925 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46927 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46929 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46933 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46934 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46935 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46936 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46937 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46938 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46941 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46942 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46944 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46947 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46949 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46950 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46951 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46952 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46953 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46954 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46955 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46956 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46957 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46958 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46959 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46960 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46962 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46963 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46965 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46966 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46967 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46968 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46969 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46970 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46971 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46972 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46973 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46974 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46975 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46976 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46977 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46978 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
46979 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46980 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46981 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46982 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46983 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46984 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46985 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46986 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46987 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46988 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46989 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46990 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46991 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46992 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46993 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46994 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46995 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46996 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46997 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46998 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46999 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47000 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47001 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47002 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47003 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47004 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
47006 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47007 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47008 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47009 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47010 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47011 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47012 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47013 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47014 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
47015 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47016 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47017 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47018 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47019 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47020 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47021 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47022 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47023 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47024 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47025 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47026 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47027 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47028 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47029 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47030 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47031 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47032 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47033 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47034 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47035 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
47036 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47037 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47038 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47039 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47040 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47041 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47042 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47043 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47044 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47045 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47046 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47047 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47048 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47049 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47050 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
47051 { NULL, NULL, 0, NULL }
47052 };
47053
47054
47055 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47056
47057 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47058 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47059 }
47060 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47061 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47062 }
47063 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47064 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47065 }
47066 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47067 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47068 }
47069 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47070 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47071 }
47072 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47073 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47074 }
47075 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47076 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47077 }
47078 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47079 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47080 }
47081 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47082 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47083 }
47084 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47085 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47086 }
47087 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47088 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47089 }
47090 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47091 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47092 }
47093 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47094 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47095 }
47096 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47097 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47098 }
47099 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47100 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47101 }
47102 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47103 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47104 }
47105 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47106 return (void *)((wxEvent *) ((wxPyEvent *) x));
47107 }
47108 static void *_p_wxListEventTo_p_wxEvent(void *x) {
47109 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47110 }
47111 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47112 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47113 }
47114 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47115 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47116 }
47117 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47118 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47119 }
47120 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47121 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47122 }
47123 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47124 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47125 }
47126 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47127 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47128 }
47129 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47130 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47131 }
47132 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47133 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47134 }
47135 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47136 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47137 }
47138 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47139 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47140 }
47141 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47142 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47143 }
47144 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47145 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47146 }
47147 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47148 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47149 }
47150 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47151 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47152 }
47153 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47154 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47155 }
47156 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47157 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47158 }
47159 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47160 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47161 }
47162 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47163 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47164 }
47165 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47166 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47167 }
47168 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47169 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47170 }
47171 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47172 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47173 }
47174 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47175 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47176 }
47177 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47178 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47179 }
47180 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47181 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47182 }
47183 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47184 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47185 }
47186 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47187 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47188 }
47189 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47190 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47191 }
47192 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47193 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47194 }
47195 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47196 return (void *)((wxEvent *) ((wxShowEvent *) x));
47197 }
47198 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47199 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47200 }
47201 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47202 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47203 }
47204 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47205 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47206 }
47207 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47208 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47209 }
47210 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47211 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47212 }
47213 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47214 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47215 }
47216 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47217 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47218 }
47219 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47220 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47221 }
47222 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47223 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47224 }
47225 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47226 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47227 }
47228 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47229 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47230 }
47231 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47232 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47233 }
47234 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47235 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47236 }
47237 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47238 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47239 }
47240 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47241 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47242 }
47243 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47244 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47245 }
47246 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47247 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47248 }
47249 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47250 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47251 }
47252 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47253 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47254 }
47255 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47256 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47257 }
47258 static void *_p_wxToolBarTo_p_wxControl(void *x) {
47259 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47260 }
47261 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47262 return (void *)((wxControl *) ((wxPickerBase *) x));
47263 }
47264 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47265 return (void *)((wxControl *) ((wxToggleButton *) x));
47266 }
47267 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47268 return (void *)((wxControl *) ((wxRadioButton *) x));
47269 }
47270 static void *_p_wxToolbookTo_p_wxControl(void *x) {
47271 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47272 }
47273 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47274 return (void *)((wxControl *) ((wxToolBarBase *) x));
47275 }
47276 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47277 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47278 }
47279 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47280 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47281 }
47282 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47283 return (void *)((wxControl *) ((wxComboBox *) x));
47284 }
47285 static void *_p_wxPyControlTo_p_wxControl(void *x) {
47286 return (void *)((wxControl *) ((wxPyControl *) x));
47287 }
47288 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47289 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47290 }
47291 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47292 return (void *)((wxControl *) ((wxScrollBar *) x));
47293 }
47294 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47295 return (void *)((wxControl *) ((wxControlWithItems *) x));
47296 }
47297 static void *_p_wxGaugeTo_p_wxControl(void *x) {
47298 return (void *)((wxControl *) ((wxGauge *) x));
47299 }
47300 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47301 return (void *)((wxControl *) ((wxStaticLine *) x));
47302 }
47303 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47304 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47305 }
47306 static void *_p_wxListbookTo_p_wxControl(void *x) {
47307 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47308 }
47309 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47310 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47311 }
47312 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47313 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47314 }
47315 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47316 return (void *)((wxControl *) ((wxCheckBox *) x));
47317 }
47318 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47319 return (void *)((wxControl *) ((wxRadioBox *) x));
47320 }
47321 static void *_p_wxChoiceTo_p_wxControl(void *x) {
47322 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47323 }
47324 static void *_p_wxListBoxTo_p_wxControl(void *x) {
47325 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47326 }
47327 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47328 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47329 }
47330 static void *_p_wxListViewTo_p_wxControl(void *x) {
47331 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47332 }
47333 static void *_p_wxNotebookTo_p_wxControl(void *x) {
47334 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47335 }
47336 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47337 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47338 }
47339 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47340 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47341 }
47342 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47343 return (void *)((wxControl *) ((wxStaticText *) x));
47344 }
47345 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47346 return (void *)((wxControl *) ((wxStaticBox *) x));
47347 }
47348 static void *_p_wxSliderTo_p_wxControl(void *x) {
47349 return (void *)((wxControl *) ((wxSlider *) x));
47350 }
47351 static void *_p_wxTreebookTo_p_wxControl(void *x) {
47352 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47353 }
47354 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47355 return (void *)((wxControl *) ((wxSpinButton *) x));
47356 }
47357 static void *_p_wxButtonTo_p_wxControl(void *x) {
47358 return (void *)((wxControl *) ((wxButton *) x));
47359 }
47360 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47361 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47362 }
47363 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47364 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47365 }
47366 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47367 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47368 }
47369 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47370 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47371 }
47372 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47373 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47374 }
47375 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47376 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47377 }
47378 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47379 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47380 }
47381 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47382 return (void *)((wxControl *) ((wxTextCtrl *) x));
47383 }
47384 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47385 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47386 }
47387 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47388 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47389 }
47390 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47391 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47392 }
47393 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
47394 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
47395 }
47396 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
47397 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
47398 }
47399 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
47400 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
47401 }
47402 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
47403 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47404 }
47405 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
47406 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47407 }
47408 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
47409 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47410 }
47411 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
47412 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47413 }
47414 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
47415 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47416 }
47417 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
47418 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
47419 }
47420 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
47421 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
47422 }
47423 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
47424 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
47425 }
47426 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
47427 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
47428 }
47429 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
47430 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
47431 }
47432 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
47433 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47434 }
47435 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
47436 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
47437 }
47438 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
47439 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47440 }
47441 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
47442 return (void *)((wxEvtHandler *) ((wxValidator *) x));
47443 }
47444 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
47445 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
47446 }
47447 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
47448 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47449 }
47450 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
47451 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
47452 }
47453 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
47454 return (void *)((wxEvtHandler *) ((wxMenu *) x));
47455 }
47456 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
47457 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
47458 }
47459 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
47460 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
47461 }
47462 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
47463 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47464 }
47465 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
47466 return (void *)((wxEvtHandler *) ((wxWindow *) x));
47467 }
47468 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
47469 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
47470 }
47471 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
47472 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
47473 }
47474 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
47475 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47476 }
47477 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
47478 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47479 }
47480 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
47481 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47482 }
47483 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
47484 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
47485 }
47486 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
47487 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
47488 }
47489 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
47490 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47491 }
47492 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
47493 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
47494 }
47495 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
47496 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47497 }
47498 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
47499 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
47500 }
47501 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
47502 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
47503 }
47504 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
47505 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47506 }
47507 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
47508 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47509 }
47510 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
47511 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47512 }
47513 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
47514 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47515 }
47516 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
47517 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
47518 }
47519 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
47520 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
47521 }
47522 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
47523 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47524 }
47525 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
47526 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47527 }
47528 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
47529 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47530 }
47531 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
47532 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47533 }
47534 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
47535 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47536 }
47537 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
47538 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47539 }
47540 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
47541 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47542 }
47543 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
47544 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
47545 }
47546 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
47547 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
47548 }
47549 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
47550 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
47551 }
47552 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
47553 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47554 }
47555 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
47556 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
47557 }
47558 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
47559 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
47560 }
47561 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
47562 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47563 }
47564 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
47565 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47566 }
47567 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
47568 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47569 }
47570 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
47571 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47572 }
47573 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
47574 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47575 }
47576 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
47577 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47578 }
47579 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
47580 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47581 }
47582 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
47583 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47584 }
47585 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
47586 return (void *)((wxListBox *) ((wxCheckListBox *) x));
47587 }
47588 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
47589 return (void *)((wxButton *) ((wxBitmapButton *) x));
47590 }
47591 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
47592 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
47593 }
47594 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
47595 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
47596 }
47597 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
47598 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
47599 }
47600 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
47601 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
47602 }
47603 static void *_p_wxToolbookTo_p_wxObject(void *x) {
47604 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47605 }
47606 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47607 return (void *)((wxObject *) ((wxSizerItem *) x));
47608 }
47609 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47610 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47611 }
47612 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47614 }
47615 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47616 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47617 }
47618 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47619 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47620 }
47621 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47622 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47623 }
47624 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47625 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47626 }
47627 static void *_p_wxSizerTo_p_wxObject(void *x) {
47628 return (void *)((wxObject *) ((wxSizer *) x));
47629 }
47630 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47631 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47632 }
47633 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47634 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47635 }
47636 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47637 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47638 }
47639 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47640 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47641 }
47642 static void *_p_wxEventTo_p_wxObject(void *x) {
47643 return (void *)((wxObject *) ((wxEvent *) x));
47644 }
47645 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47646 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47647 }
47648 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47649 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47650 }
47651 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47652 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47653 }
47654 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47655 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47656 }
47657 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47658 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47659 }
47660 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47661 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47662 }
47663 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47664 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47665 }
47666 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47667 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47668 }
47669 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47670 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47671 }
47672 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47673 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47674 }
47675 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47676 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47677 }
47678 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47679 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47680 }
47681 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47682 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47683 }
47684 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47685 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47686 }
47687 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47688 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47689 }
47690 static void *_p_wxControlTo_p_wxObject(void *x) {
47691 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47692 }
47693 static void *_p_wxPyControlTo_p_wxObject(void *x) {
47694 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47695 }
47696 static void *_p_wxGaugeTo_p_wxObject(void *x) {
47697 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47698 }
47699 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47701 }
47702 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47704 }
47705 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47706 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47707 }
47708 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47709 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47710 }
47711 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47712 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47713 }
47714 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47715 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47716 }
47717 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47718 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47719 }
47720 static void *_p_wxChoiceTo_p_wxObject(void *x) {
47721 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47722 }
47723 static void *_p_wxFSFileTo_p_wxObject(void *x) {
47724 return (void *)((wxObject *) ((wxFSFile *) x));
47725 }
47726 static void *_p_wxPySizerTo_p_wxObject(void *x) {
47727 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47728 }
47729 static void *_p_wxTreebookTo_p_wxObject(void *x) {
47730 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47731 }
47732 static void *_p_wxListViewTo_p_wxObject(void *x) {
47733 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47734 }
47735 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47736 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47737 }
47738 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47739 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47740 }
47741 static void *_p_wxNotebookTo_p_wxObject(void *x) {
47742 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47743 }
47744 static void *_p_wxPyEventTo_p_wxObject(void *x) {
47745 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47746 }
47747 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47748 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47749 }
47750 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47751 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47752 }
47753 static void *_p_wxListbookTo_p_wxObject(void *x) {
47754 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47755 }
47756 static void *_p_wxShowEventTo_p_wxObject(void *x) {
47757 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47758 }
47759 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47760 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47761 }
47762 static void *_p_wxSliderTo_p_wxObject(void *x) {
47763 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47764 }
47765 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47766 return (void *)((wxObject *) ((wxMenuItem *) x));
47767 }
47768 static void *_p_wxDateEventTo_p_wxObject(void *x) {
47769 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47770 }
47771 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47772 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47773 }
47774 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47775 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47776 }
47777 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47778 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47779 }
47780 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47781 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47782 }
47783 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47784 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47785 }
47786 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47787 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47788 }
47789 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47790 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47791 }
47792 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47793 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47794 }
47795 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47797 }
47798 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47799 return (void *)((wxObject *) ((wxContextHelp *) x));
47800 }
47801 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
47802 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47803 }
47804 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47805 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47806 }
47807 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47808 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47809 }
47810 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47811 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47812 }
47813 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47814 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47815 }
47816 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47817 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47818 }
47819 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47820 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47821 }
47822 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47823 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47824 }
47825 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47826 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47827 }
47828 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47829 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47830 }
47831 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47832 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47833 }
47834 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47835 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47836 }
47837 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47838 return (void *)((wxObject *) ((wxImageHandler *) x));
47839 }
47840 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47841 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47842 }
47843 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47844 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47845 }
47846 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
47847 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
47848 }
47849 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47850 return (void *)((wxObject *) ((wxEvtHandler *) x));
47851 }
47852 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47853 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47854 }
47855 static void *_p_wxListEventTo_p_wxObject(void *x) {
47856 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47857 }
47858 static void *_p_wxListBoxTo_p_wxObject(void *x) {
47859 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47860 }
47861 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47862 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47863 }
47864 static void *_p_wxButtonTo_p_wxObject(void *x) {
47865 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47866 }
47867 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47868 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47869 }
47870 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47871 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47872 }
47873 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47874 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47875 }
47876 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47877 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47878 }
47879 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47880 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47881 }
47882 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47883 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47884 }
47885 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47886 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47887 }
47888 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47889 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47890 }
47891 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47892 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47893 }
47894 static void *_p_wxListItemTo_p_wxObject(void *x) {
47895 return (void *)((wxObject *) ((wxListItem *) x));
47896 }
47897 static void *_p_wxImageTo_p_wxObject(void *x) {
47898 return (void *)((wxObject *) ((wxImage *) x));
47899 }
47900 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47901 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47902 }
47903 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47904 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47905 }
47906 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47907 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47908 }
47909 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47910 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47911 }
47912 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47913 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47914 }
47915 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47916 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47917 }
47918 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47919 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47920 }
47921 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47922 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47923 }
47924 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47925 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47926 }
47927 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47928 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47929 }
47930 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47931 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47932 }
47933 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47934 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47935 }
47936 static void *_p_wxWindowTo_p_wxObject(void *x) {
47937 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47938 }
47939 static void *_p_wxMenuTo_p_wxObject(void *x) {
47940 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47941 }
47942 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47943 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47944 }
47945 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47946 return (void *)((wxObject *) ((wxFileSystem *) x));
47947 }
47948 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
47949 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47950 }
47951 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47952 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47953 }
47954 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47955 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47956 }
47957 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47958 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47959 }
47960 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47961 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47962 }
47963 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47964 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47965 }
47966 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47967 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47968 }
47969 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47970 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47971 }
47972 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47973 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47974 }
47975 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47976 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47977 }
47978 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47979 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47980 }
47981 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47982 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47983 }
47984 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47985 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47986 }
47987 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47988 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47989 }
47990 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47991 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47992 }
47993 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47994 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47995 }
47996 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47997 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47998 }
47999 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48000 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48001 }
48002 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48003 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48004 }
48005 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48006 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48007 }
48008 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48009 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48010 }
48011 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48012 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48013 }
48014 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48015 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48016 }
48017 static void *_p_wxToolBarTo_p_wxObject(void *x) {
48018 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48019 }
48020 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48021 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48022 }
48023 static void *_p_wxValidatorTo_p_wxObject(void *x) {
48024 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48025 }
48026 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48027 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48028 }
48029 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48030 return (void *)((wxWindow *) ((wxMenuBar *) x));
48031 }
48032 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48033 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48034 }
48035 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48036 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48037 }
48038 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48039 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48040 }
48041 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48042 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48043 }
48044 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48045 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48046 }
48047 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48048 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48049 }
48050 static void *_p_wxControlTo_p_wxWindow(void *x) {
48051 return (void *)((wxWindow *) ((wxControl *) x));
48052 }
48053 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48054 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48055 }
48056 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48057 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48058 }
48059 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48060 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48061 }
48062 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48063 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48064 }
48065 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48066 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48067 }
48068 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48069 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48070 }
48071 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48072 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48073 }
48074 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48075 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48076 }
48077 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48078 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48079 }
48080 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48081 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48082 }
48083 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48084 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48085 }
48086 static void *_p_wxListbookTo_p_wxWindow(void *x) {
48087 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48088 }
48089 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48090 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48091 }
48092 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48093 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48094 }
48095 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48096 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48097 }
48098 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48099 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48100 }
48101 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48102 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48103 }
48104 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48105 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48106 }
48107 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48108 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48109 }
48110 static void *_p_wxListViewTo_p_wxWindow(void *x) {
48111 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48112 }
48113 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48114 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48115 }
48116 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48117 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48118 }
48119 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48120 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48121 }
48122 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48123 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48124 }
48125 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48126 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48127 }
48128 static void *_p_wxSliderTo_p_wxWindow(void *x) {
48129 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48130 }
48131 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48132 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48133 }
48134 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48135 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48136 }
48137 static void *_p_wxButtonTo_p_wxWindow(void *x) {
48138 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48139 }
48140 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48141 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48142 }
48143 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48144 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48145 }
48146 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48147 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48148 }
48149 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48150 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48151 }
48152 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48153 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48154 }
48155 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48156 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48157 }
48158 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48159 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48160 }
48161 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48162 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48163 }
48164 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48165 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48166 }
48167 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48168 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48169 }
48170 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48171 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48172 }
48173 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48174 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48175 }
48176 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48177 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48178 }
48179 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48180 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48181 }
48182 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48183 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48184 }
48185 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48186 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48187 }
48188 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48189 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48190 }
48191 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48192 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48193 }
48194 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48195 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48196 }
48197 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48198 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48199 }
48200 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48201 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48202 }
48203 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48204 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48205 }
48206 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48207 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48208 }
48209 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48210 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48211 }
48212 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48213 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48214 }
48215 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48216 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48217 }
48218 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48219 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48220 }
48221 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48222 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48223 }
48224 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48225 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48226 }
48227 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48228 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48229 }
48230 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48231 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48232 }
48233 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48234 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48235 }
48236 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48237 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48238 }
48239 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48240 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48241 }
48242 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48243 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48244 }
48245 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48246 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48247 }
48248 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48249 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48250 }
48251 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48252 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48253 }
48254 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48255 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48256 }
48257 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48258 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48259 }
48260 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48261 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48262 }
48263 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48264 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48265 }
48266 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48267 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48268 }
48269 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48270 return (void *)((wxValidator *) ((wxPyValidator *) x));
48271 }
48272 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48273 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48274 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};
48275 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48276 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48277 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48278 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48279 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48280 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48281 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48282 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48283 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48284 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48285 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48286 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48287 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48288 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48289 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48290 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48291 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48292 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
48293 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48294 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
48295 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
48296 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48297 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
48298 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48299 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48300 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
48301 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
48302 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48303 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48304 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48305 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48306 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48307 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48308 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48309 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48310 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48311 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48312 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48313 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48314 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48315 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48316 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48317 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
48318 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
48319 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48320 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48321 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48322 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48323 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48324 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48325 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48326 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
48327 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
48328 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48329 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48330 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48331 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48332 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48333 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
48334 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
48335 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48336 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48337 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48338 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48339 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48340 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48341 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48342 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48343 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48344 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48345 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48346 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48347 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48348 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48349 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
48350 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
48351 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48352 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
48353 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
48354 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48355 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
48356 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48357 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48358 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48359 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48360 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
48361 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48362 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
48363 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48364 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48365 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48366 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48367 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48368 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48369 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48370 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48371 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48372 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48373 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48374 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48375 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48376 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48377 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48378 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48379 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48380 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
48381 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
48382 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
48383 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
48384 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
48385 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
48386 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
48387 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
48388 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
48389 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
48390 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
48391 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
48392 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
48393 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
48394 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
48395 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
48396 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
48397 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
48398 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
48399 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
48400 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
48401 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
48402 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
48403 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
48404 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
48405 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
48406 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
48407 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
48408 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
48409 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
48410 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
48411 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
48412 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
48413 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
48414 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
48415 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
48416 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
48417 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
48418 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
48419 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
48420 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
48421 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
48422 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
48423 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
48424 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
48425 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
48426 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
48427 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
48428 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
48429 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
48430 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
48431 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
48432 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
48433 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
48434 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
48435 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
48436 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
48437 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
48438 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
48439 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
48440 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
48441 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
48442 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
48443 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
48444 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
48445 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
48446 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
48447 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
48448 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
48449 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
48450
48451 static swig_type_info *swig_type_initial[] = {
48452 &_swigt__p_bool,
48453 &_swigt__p_char,
48454 &_swigt__p_form_ops_t,
48455 &_swigt__p_int,
48456 &_swigt__p_long,
48457 &_swigt__p_unsigned_char,
48458 &_swigt__p_unsigned_int,
48459 &_swigt__p_unsigned_long,
48460 &_swigt__p_void,
48461 &_swigt__p_wxANIHandler,
48462 &_swigt__p_wxAcceleratorTable,
48463 &_swigt__p_wxActivateEvent,
48464 &_swigt__p_wxArrayInt,
48465 &_swigt__p_wxArrayString,
48466 &_swigt__p_wxBMPHandler,
48467 &_swigt__p_wxBitmap,
48468 &_swigt__p_wxBitmapButton,
48469 &_swigt__p_wxBookCtrlBase,
48470 &_swigt__p_wxBookCtrlBaseEvent,
48471 &_swigt__p_wxBoxSizer,
48472 &_swigt__p_wxButton,
48473 &_swigt__p_wxCURHandler,
48474 &_swigt__p_wxCheckBox,
48475 &_swigt__p_wxCheckListBox,
48476 &_swigt__p_wxChildFocusEvent,
48477 &_swigt__p_wxChoice,
48478 &_swigt__p_wxChoicebook,
48479 &_swigt__p_wxChoicebookEvent,
48480 &_swigt__p_wxClipboardTextEvent,
48481 &_swigt__p_wxCloseEvent,
48482 &_swigt__p_wxCollapsiblePane,
48483 &_swigt__p_wxCollapsiblePaneEvent,
48484 &_swigt__p_wxColour,
48485 &_swigt__p_wxColourPickerCtrl,
48486 &_swigt__p_wxColourPickerEvent,
48487 &_swigt__p_wxComboBox,
48488 &_swigt__p_wxCommandEvent,
48489 &_swigt__p_wxContextHelp,
48490 &_swigt__p_wxContextHelpButton,
48491 &_swigt__p_wxContextMenuEvent,
48492 &_swigt__p_wxControl,
48493 &_swigt__p_wxControlWithItems,
48494 &_swigt__p_wxCursor,
48495 &_swigt__p_wxDC,
48496 &_swigt__p_wxDateEvent,
48497 &_swigt__p_wxDatePickerCtrl,
48498 &_swigt__p_wxDateTime,
48499 &_swigt__p_wxDirFilterListCtrl,
48500 &_swigt__p_wxDirPickerCtrl,
48501 &_swigt__p_wxDisplayChangedEvent,
48502 &_swigt__p_wxDropFilesEvent,
48503 &_swigt__p_wxDuplexMode,
48504 &_swigt__p_wxEraseEvent,
48505 &_swigt__p_wxEvent,
48506 &_swigt__p_wxEvtHandler,
48507 &_swigt__p_wxFSFile,
48508 &_swigt__p_wxFileDirPickerEvent,
48509 &_swigt__p_wxFilePickerCtrl,
48510 &_swigt__p_wxFileSystem,
48511 &_swigt__p_wxFlexGridSizer,
48512 &_swigt__p_wxFocusEvent,
48513 &_swigt__p_wxFont,
48514 &_swigt__p_wxFontPickerCtrl,
48515 &_swigt__p_wxFontPickerEvent,
48516 &_swigt__p_wxGBSizerItem,
48517 &_swigt__p_wxGIFHandler,
48518 &_swigt__p_wxGauge,
48519 &_swigt__p_wxGenericDirCtrl,
48520 &_swigt__p_wxGenericDragImage,
48521 &_swigt__p_wxGridBagSizer,
48522 &_swigt__p_wxGridSizer,
48523 &_swigt__p_wxHelpEvent,
48524 &_swigt__p_wxHelpProvider,
48525 &_swigt__p_wxHyperlinkCtrl,
48526 &_swigt__p_wxHyperlinkEvent,
48527 &_swigt__p_wxICOHandler,
48528 &_swigt__p_wxIcon,
48529 &_swigt__p_wxIconizeEvent,
48530 &_swigt__p_wxIdleEvent,
48531 &_swigt__p_wxImage,
48532 &_swigt__p_wxImageHandler,
48533 &_swigt__p_wxImageList,
48534 &_swigt__p_wxIndividualLayoutConstraint,
48535 &_swigt__p_wxInitDialogEvent,
48536 &_swigt__p_wxItemContainer,
48537 &_swigt__p_wxJPEGHandler,
48538 &_swigt__p_wxKeyEvent,
48539 &_swigt__p_wxLayoutConstraints,
48540 &_swigt__p_wxListBox,
48541 &_swigt__p_wxListEvent,
48542 &_swigt__p_wxListItem,
48543 &_swigt__p_wxListItemAttr,
48544 &_swigt__p_wxListView,
48545 &_swigt__p_wxListbook,
48546 &_swigt__p_wxListbookEvent,
48547 &_swigt__p_wxMaximizeEvent,
48548 &_swigt__p_wxMemoryDC,
48549 &_swigt__p_wxMenu,
48550 &_swigt__p_wxMenuBar,
48551 &_swigt__p_wxMenuEvent,
48552 &_swigt__p_wxMenuItem,
48553 &_swigt__p_wxMouseCaptureChangedEvent,
48554 &_swigt__p_wxMouseCaptureLostEvent,
48555 &_swigt__p_wxMouseEvent,
48556 &_swigt__p_wxMoveEvent,
48557 &_swigt__p_wxNavigationKeyEvent,
48558 &_swigt__p_wxNcPaintEvent,
48559 &_swigt__p_wxNotebook,
48560 &_swigt__p_wxNotebookEvent,
48561 &_swigt__p_wxNotifyEvent,
48562 &_swigt__p_wxObject,
48563 &_swigt__p_wxPCXHandler,
48564 &_swigt__p_wxPNGHandler,
48565 &_swigt__p_wxPNMHandler,
48566 &_swigt__p_wxPaintEvent,
48567 &_swigt__p_wxPaletteChangedEvent,
48568 &_swigt__p_wxPaperSize,
48569 &_swigt__p_wxPickerBase,
48570 &_swigt__p_wxPoint,
48571 &_swigt__p_wxPyApp,
48572 &_swigt__p_wxPyCommandEvent,
48573 &_swigt__p_wxPyControl,
48574 &_swigt__p_wxPyEvent,
48575 &_swigt__p_wxPyImageHandler,
48576 &_swigt__p_wxPyListCtrl,
48577 &_swigt__p_wxPySizer,
48578 &_swigt__p_wxPyTreeCtrl,
48579 &_swigt__p_wxPyTreeItemData,
48580 &_swigt__p_wxPyValidator,
48581 &_swigt__p_wxQueryNewPaletteEvent,
48582 &_swigt__p_wxRadioBox,
48583 &_swigt__p_wxRadioButton,
48584 &_swigt__p_wxRect,
48585 &_swigt__p_wxScrollBar,
48586 &_swigt__p_wxScrollEvent,
48587 &_swigt__p_wxScrollWinEvent,
48588 &_swigt__p_wxSetCursorEvent,
48589 &_swigt__p_wxShowEvent,
48590 &_swigt__p_wxSimpleHelpProvider,
48591 &_swigt__p_wxSize,
48592 &_swigt__p_wxSizeEvent,
48593 &_swigt__p_wxSizer,
48594 &_swigt__p_wxSizerItem,
48595 &_swigt__p_wxSlider,
48596 &_swigt__p_wxSpinButton,
48597 &_swigt__p_wxSpinCtrl,
48598 &_swigt__p_wxSpinEvent,
48599 &_swigt__p_wxStaticBitmap,
48600 &_swigt__p_wxStaticBox,
48601 &_swigt__p_wxStaticBoxSizer,
48602 &_swigt__p_wxStaticLine,
48603 &_swigt__p_wxStaticText,
48604 &_swigt__p_wxStdDialogButtonSizer,
48605 &_swigt__p_wxString,
48606 &_swigt__p_wxSysColourChangedEvent,
48607 &_swigt__p_wxTGAHandler,
48608 &_swigt__p_wxTIFFHandler,
48609 &_swigt__p_wxTextAttr,
48610 &_swigt__p_wxTextCtrl,
48611 &_swigt__p_wxTextUrlEvent,
48612 &_swigt__p_wxToggleButton,
48613 &_swigt__p_wxToolBar,
48614 &_swigt__p_wxToolBarBase,
48615 &_swigt__p_wxToolBarToolBase,
48616 &_swigt__p_wxToolbook,
48617 &_swigt__p_wxToolbookEvent,
48618 &_swigt__p_wxTreeEvent,
48619 &_swigt__p_wxTreeItemId,
48620 &_swigt__p_wxTreebook,
48621 &_swigt__p_wxTreebookEvent,
48622 &_swigt__p_wxUpdateUIEvent,
48623 &_swigt__p_wxValidator,
48624 &_swigt__p_wxVisualAttributes,
48625 &_swigt__p_wxWindow,
48626 &_swigt__p_wxWindowBase,
48627 &_swigt__p_wxWindowCreateEvent,
48628 &_swigt__p_wxWindowDestroyEvent,
48629 &_swigt__p_wxXPMHandler,
48630 };
48631
48632 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48633 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48634 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48635 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48636 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48637 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48638 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48639 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48640 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48641 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48642 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48643 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48644 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}};
48645 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}};
48646 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}};
48647 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}};
48648 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48649 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48650 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
48651 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48652 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48653 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
48654 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
48655 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
48656 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48657 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48658 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48659 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
48660 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
48661 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48662 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48663 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48664 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48665 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48666 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48667 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
48668 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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}};
48669 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48670 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
48671 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_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}};
48672 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
48673 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48674 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48675 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48676 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48677 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
48678 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48679 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48680 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48681 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48682 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48683 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48684 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48685 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
48686 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
48687 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48688 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48689 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48690 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48691 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48692 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
48693 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
48694 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48695 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48696 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48697 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48698 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48699 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48700 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48701 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48702 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48703 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48704 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
48705 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_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_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_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_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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}};
48706 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48707 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48708 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48709 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
48710 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_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_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_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_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 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_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_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}};
48711 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48712 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48713 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
48714 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48715 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48716 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48717 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48718 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48719 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48720 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}};
48721 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48722 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
48723 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48724 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48725 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}};
48726 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48727 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}};
48728 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48729 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48730 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48731 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48732 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48733 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48734 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48735 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48736 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48737 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48738 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}};
48739 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
48740 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48741 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48742 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48743 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48744 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48745 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48746 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48747 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48748 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48749 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48750 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48751 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
48752 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48753 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48754 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48755 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
48756 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48757 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48758 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48759 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48760 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
48761 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48762 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48763 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48764 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
48765 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
48766 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
48767 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
48768 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48769 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
48770 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_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_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_wxPNGHandler, _p_wxPNGHandlerTo_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_wxTGAHandler, _p_wxTGAHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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_wxCollapsiblePane, _p_wxCollapsiblePaneTo_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_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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}};
48771 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
48772 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}};
48773 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48774 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48775 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}};
48776 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48777 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48778 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48779 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48780 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48781 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48782 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48783 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48784 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48785 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48786 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48787 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48788 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48789 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48790 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48791 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48792 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48793 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48794 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48795 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48796 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48797 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48798 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}};
48799 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48800 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48801 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48802 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48803 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48804 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48805 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48806 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}};
48807 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
48808 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_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_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
48809 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
48810
48811 static swig_cast_info *swig_cast_initial[] = {
48812 _swigc__p_bool,
48813 _swigc__p_char,
48814 _swigc__p_form_ops_t,
48815 _swigc__p_int,
48816 _swigc__p_long,
48817 _swigc__p_unsigned_char,
48818 _swigc__p_unsigned_int,
48819 _swigc__p_unsigned_long,
48820 _swigc__p_void,
48821 _swigc__p_wxANIHandler,
48822 _swigc__p_wxAcceleratorTable,
48823 _swigc__p_wxActivateEvent,
48824 _swigc__p_wxArrayInt,
48825 _swigc__p_wxArrayString,
48826 _swigc__p_wxBMPHandler,
48827 _swigc__p_wxBitmap,
48828 _swigc__p_wxBitmapButton,
48829 _swigc__p_wxBookCtrlBase,
48830 _swigc__p_wxBookCtrlBaseEvent,
48831 _swigc__p_wxBoxSizer,
48832 _swigc__p_wxButton,
48833 _swigc__p_wxCURHandler,
48834 _swigc__p_wxCheckBox,
48835 _swigc__p_wxCheckListBox,
48836 _swigc__p_wxChildFocusEvent,
48837 _swigc__p_wxChoice,
48838 _swigc__p_wxChoicebook,
48839 _swigc__p_wxChoicebookEvent,
48840 _swigc__p_wxClipboardTextEvent,
48841 _swigc__p_wxCloseEvent,
48842 _swigc__p_wxCollapsiblePane,
48843 _swigc__p_wxCollapsiblePaneEvent,
48844 _swigc__p_wxColour,
48845 _swigc__p_wxColourPickerCtrl,
48846 _swigc__p_wxColourPickerEvent,
48847 _swigc__p_wxComboBox,
48848 _swigc__p_wxCommandEvent,
48849 _swigc__p_wxContextHelp,
48850 _swigc__p_wxContextHelpButton,
48851 _swigc__p_wxContextMenuEvent,
48852 _swigc__p_wxControl,
48853 _swigc__p_wxControlWithItems,
48854 _swigc__p_wxCursor,
48855 _swigc__p_wxDC,
48856 _swigc__p_wxDateEvent,
48857 _swigc__p_wxDatePickerCtrl,
48858 _swigc__p_wxDateTime,
48859 _swigc__p_wxDirFilterListCtrl,
48860 _swigc__p_wxDirPickerCtrl,
48861 _swigc__p_wxDisplayChangedEvent,
48862 _swigc__p_wxDropFilesEvent,
48863 _swigc__p_wxDuplexMode,
48864 _swigc__p_wxEraseEvent,
48865 _swigc__p_wxEvent,
48866 _swigc__p_wxEvtHandler,
48867 _swigc__p_wxFSFile,
48868 _swigc__p_wxFileDirPickerEvent,
48869 _swigc__p_wxFilePickerCtrl,
48870 _swigc__p_wxFileSystem,
48871 _swigc__p_wxFlexGridSizer,
48872 _swigc__p_wxFocusEvent,
48873 _swigc__p_wxFont,
48874 _swigc__p_wxFontPickerCtrl,
48875 _swigc__p_wxFontPickerEvent,
48876 _swigc__p_wxGBSizerItem,
48877 _swigc__p_wxGIFHandler,
48878 _swigc__p_wxGauge,
48879 _swigc__p_wxGenericDirCtrl,
48880 _swigc__p_wxGenericDragImage,
48881 _swigc__p_wxGridBagSizer,
48882 _swigc__p_wxGridSizer,
48883 _swigc__p_wxHelpEvent,
48884 _swigc__p_wxHelpProvider,
48885 _swigc__p_wxHyperlinkCtrl,
48886 _swigc__p_wxHyperlinkEvent,
48887 _swigc__p_wxICOHandler,
48888 _swigc__p_wxIcon,
48889 _swigc__p_wxIconizeEvent,
48890 _swigc__p_wxIdleEvent,
48891 _swigc__p_wxImage,
48892 _swigc__p_wxImageHandler,
48893 _swigc__p_wxImageList,
48894 _swigc__p_wxIndividualLayoutConstraint,
48895 _swigc__p_wxInitDialogEvent,
48896 _swigc__p_wxItemContainer,
48897 _swigc__p_wxJPEGHandler,
48898 _swigc__p_wxKeyEvent,
48899 _swigc__p_wxLayoutConstraints,
48900 _swigc__p_wxListBox,
48901 _swigc__p_wxListEvent,
48902 _swigc__p_wxListItem,
48903 _swigc__p_wxListItemAttr,
48904 _swigc__p_wxListView,
48905 _swigc__p_wxListbook,
48906 _swigc__p_wxListbookEvent,
48907 _swigc__p_wxMaximizeEvent,
48908 _swigc__p_wxMemoryDC,
48909 _swigc__p_wxMenu,
48910 _swigc__p_wxMenuBar,
48911 _swigc__p_wxMenuEvent,
48912 _swigc__p_wxMenuItem,
48913 _swigc__p_wxMouseCaptureChangedEvent,
48914 _swigc__p_wxMouseCaptureLostEvent,
48915 _swigc__p_wxMouseEvent,
48916 _swigc__p_wxMoveEvent,
48917 _swigc__p_wxNavigationKeyEvent,
48918 _swigc__p_wxNcPaintEvent,
48919 _swigc__p_wxNotebook,
48920 _swigc__p_wxNotebookEvent,
48921 _swigc__p_wxNotifyEvent,
48922 _swigc__p_wxObject,
48923 _swigc__p_wxPCXHandler,
48924 _swigc__p_wxPNGHandler,
48925 _swigc__p_wxPNMHandler,
48926 _swigc__p_wxPaintEvent,
48927 _swigc__p_wxPaletteChangedEvent,
48928 _swigc__p_wxPaperSize,
48929 _swigc__p_wxPickerBase,
48930 _swigc__p_wxPoint,
48931 _swigc__p_wxPyApp,
48932 _swigc__p_wxPyCommandEvent,
48933 _swigc__p_wxPyControl,
48934 _swigc__p_wxPyEvent,
48935 _swigc__p_wxPyImageHandler,
48936 _swigc__p_wxPyListCtrl,
48937 _swigc__p_wxPySizer,
48938 _swigc__p_wxPyTreeCtrl,
48939 _swigc__p_wxPyTreeItemData,
48940 _swigc__p_wxPyValidator,
48941 _swigc__p_wxQueryNewPaletteEvent,
48942 _swigc__p_wxRadioBox,
48943 _swigc__p_wxRadioButton,
48944 _swigc__p_wxRect,
48945 _swigc__p_wxScrollBar,
48946 _swigc__p_wxScrollEvent,
48947 _swigc__p_wxScrollWinEvent,
48948 _swigc__p_wxSetCursorEvent,
48949 _swigc__p_wxShowEvent,
48950 _swigc__p_wxSimpleHelpProvider,
48951 _swigc__p_wxSize,
48952 _swigc__p_wxSizeEvent,
48953 _swigc__p_wxSizer,
48954 _swigc__p_wxSizerItem,
48955 _swigc__p_wxSlider,
48956 _swigc__p_wxSpinButton,
48957 _swigc__p_wxSpinCtrl,
48958 _swigc__p_wxSpinEvent,
48959 _swigc__p_wxStaticBitmap,
48960 _swigc__p_wxStaticBox,
48961 _swigc__p_wxStaticBoxSizer,
48962 _swigc__p_wxStaticLine,
48963 _swigc__p_wxStaticText,
48964 _swigc__p_wxStdDialogButtonSizer,
48965 _swigc__p_wxString,
48966 _swigc__p_wxSysColourChangedEvent,
48967 _swigc__p_wxTGAHandler,
48968 _swigc__p_wxTIFFHandler,
48969 _swigc__p_wxTextAttr,
48970 _swigc__p_wxTextCtrl,
48971 _swigc__p_wxTextUrlEvent,
48972 _swigc__p_wxToggleButton,
48973 _swigc__p_wxToolBar,
48974 _swigc__p_wxToolBarBase,
48975 _swigc__p_wxToolBarToolBase,
48976 _swigc__p_wxToolbook,
48977 _swigc__p_wxToolbookEvent,
48978 _swigc__p_wxTreeEvent,
48979 _swigc__p_wxTreeItemId,
48980 _swigc__p_wxTreebook,
48981 _swigc__p_wxTreebookEvent,
48982 _swigc__p_wxUpdateUIEvent,
48983 _swigc__p_wxValidator,
48984 _swigc__p_wxVisualAttributes,
48985 _swigc__p_wxWindow,
48986 _swigc__p_wxWindowBase,
48987 _swigc__p_wxWindowCreateEvent,
48988 _swigc__p_wxWindowDestroyEvent,
48989 _swigc__p_wxXPMHandler,
48990 };
48991
48992
48993 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48994
48995 static swig_const_info swig_const_table[] = {
48996 {0, 0, 0, 0.0, 0, 0}};
48997
48998 #ifdef __cplusplus
48999 }
49000 #endif
49001 /* -----------------------------------------------------------------------------
49002 * Type initialization:
49003 * This problem is tough by the requirement that no dynamic
49004 * memory is used. Also, since swig_type_info structures store pointers to
49005 * swig_cast_info structures and swig_cast_info structures store pointers back
49006 * to swig_type_info structures, we need some lookup code at initialization.
49007 * The idea is that swig generates all the structures that are needed.
49008 * The runtime then collects these partially filled structures.
49009 * The SWIG_InitializeModule function takes these initial arrays out of
49010 * swig_module, and does all the lookup, filling in the swig_module.types
49011 * array with the correct data and linking the correct swig_cast_info
49012 * structures together.
49013 *
49014 * The generated swig_type_info structures are assigned staticly to an initial
49015 * array. We just loop though that array, and handle each type individually.
49016 * First we lookup if this type has been already loaded, and if so, use the
49017 * loaded structure instead of the generated one. Then we have to fill in the
49018 * cast linked list. The cast data is initially stored in something like a
49019 * two-dimensional array. Each row corresponds to a type (there are the same
49020 * number of rows as there are in the swig_type_initial array). Each entry in
49021 * a column is one of the swig_cast_info structures for that type.
49022 * The cast_initial array is actually an array of arrays, because each row has
49023 * a variable number of columns. So to actually build the cast linked list,
49024 * we find the array of casts associated with the type, and loop through it
49025 * adding the casts to the list. The one last trick we need to do is making
49026 * sure the type pointer in the swig_cast_info struct is correct.
49027 *
49028 * First off, we lookup the cast->type name to see if it is already loaded.
49029 * There are three cases to handle:
49030 * 1) If the cast->type has already been loaded AND the type we are adding
49031 * casting info to has not been loaded (it is in this module), THEN we
49032 * replace the cast->type pointer with the type pointer that has already
49033 * been loaded.
49034 * 2) If BOTH types (the one we are adding casting info to, and the
49035 * cast->type) are loaded, THEN the cast info has already been loaded by
49036 * the previous module so we just ignore it.
49037 * 3) Finally, if cast->type has not already been loaded, then we add that
49038 * swig_cast_info to the linked list (because the cast->type) pointer will
49039 * be correct.
49040 * ----------------------------------------------------------------------------- */
49041
49042 #ifdef __cplusplus
49043 extern "C" {
49044 #if 0
49045 } /* c-mode */
49046 #endif
49047 #endif
49048
49049 #if 0
49050 #define SWIGRUNTIME_DEBUG
49051 #endif
49052
49053 SWIGRUNTIME void
49054 SWIG_InitializeModule(void *clientdata) {
49055 size_t i;
49056 swig_module_info *module_head;
49057 static int init_run = 0;
49058
49059 clientdata = clientdata;
49060
49061 if (init_run) return;
49062 init_run = 1;
49063
49064 /* Initialize the swig_module */
49065 swig_module.type_initial = swig_type_initial;
49066 swig_module.cast_initial = swig_cast_initial;
49067
49068 /* Try and load any already created modules */
49069 module_head = SWIG_GetModule(clientdata);
49070 if (module_head) {
49071 swig_module.next = module_head->next;
49072 module_head->next = &swig_module;
49073 } else {
49074 /* This is the first module loaded */
49075 swig_module.next = &swig_module;
49076 SWIG_SetModule(clientdata, &swig_module);
49077 }
49078
49079 /* Now work on filling in swig_module.types */
49080 #ifdef SWIGRUNTIME_DEBUG
49081 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49082 #endif
49083 for (i = 0; i < swig_module.size; ++i) {
49084 swig_type_info *type = 0;
49085 swig_type_info *ret;
49086 swig_cast_info *cast;
49087
49088 #ifdef SWIGRUNTIME_DEBUG
49089 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49090 #endif
49091
49092 /* if there is another module already loaded */
49093 if (swig_module.next != &swig_module) {
49094 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
49095 }
49096 if (type) {
49097 /* Overwrite clientdata field */
49098 #ifdef SWIGRUNTIME_DEBUG
49099 printf("SWIG_InitializeModule: found type %s\n", type->name);
49100 #endif
49101 if (swig_module.type_initial[i]->clientdata) {
49102 type->clientdata = swig_module.type_initial[i]->clientdata;
49103 #ifdef SWIGRUNTIME_DEBUG
49104 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49105 #endif
49106 }
49107 } else {
49108 type = swig_module.type_initial[i];
49109 }
49110
49111 /* Insert casting types */
49112 cast = swig_module.cast_initial[i];
49113 while (cast->type) {
49114 /* Don't need to add information already in the list */
49115 ret = 0;
49116 #ifdef SWIGRUNTIME_DEBUG
49117 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49118 #endif
49119 if (swig_module.next != &swig_module) {
49120 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49121 #ifdef SWIGRUNTIME_DEBUG
49122 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49123 #endif
49124 }
49125 if (ret) {
49126 if (type == swig_module.type_initial[i]) {
49127 #ifdef SWIGRUNTIME_DEBUG
49128 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49129 #endif
49130 cast->type = ret;
49131 ret = 0;
49132 } else {
49133 /* Check for casting already in the list */
49134 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49135 #ifdef SWIGRUNTIME_DEBUG
49136 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49137 #endif
49138 if (!ocast) ret = 0;
49139 }
49140 }
49141
49142 if (!ret) {
49143 #ifdef SWIGRUNTIME_DEBUG
49144 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49145 #endif
49146 if (type->cast) {
49147 type->cast->prev = cast;
49148 cast->next = type->cast;
49149 }
49150 type->cast = cast;
49151 }
49152 cast++;
49153 }
49154 /* Set entry in modules->types array equal to the type */
49155 swig_module.types[i] = type;
49156 }
49157 swig_module.types[i] = 0;
49158
49159 #ifdef SWIGRUNTIME_DEBUG
49160 printf("**** SWIG_InitializeModule: Cast List ******\n");
49161 for (i = 0; i < swig_module.size; ++i) {
49162 int j = 0;
49163 swig_cast_info *cast = swig_module.cast_initial[i];
49164 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49165 while (cast->type) {
49166 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49167 cast++;
49168 ++j;
49169 }
49170 printf("---- Total casts: %d\n",j);
49171 }
49172 printf("**** SWIG_InitializeModule: Cast List ******\n");
49173 #endif
49174 }
49175
49176 /* This function will propagate the clientdata field of type to
49177 * any new swig_type_info structures that have been added into the list
49178 * of equivalent types. It is like calling
49179 * SWIG_TypeClientData(type, clientdata) a second time.
49180 */
49181 SWIGRUNTIME void
49182 SWIG_PropagateClientData(void) {
49183 size_t i;
49184 swig_cast_info *equiv;
49185 static int init_run = 0;
49186
49187 if (init_run) return;
49188 init_run = 1;
49189
49190 for (i = 0; i < swig_module.size; i++) {
49191 if (swig_module.types[i]->clientdata) {
49192 equiv = swig_module.types[i]->cast;
49193 while (equiv) {
49194 if (!equiv->converter) {
49195 if (equiv->type && !equiv->type->clientdata)
49196 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49197 }
49198 equiv = equiv->next;
49199 }
49200 }
49201 }
49202 }
49203
49204 #ifdef __cplusplus
49205 #if 0
49206 {
49207 /* c-mode */
49208 #endif
49209 }
49210 #endif
49211
49212
49213
49214 #ifdef __cplusplus
49215 extern "C" {
49216 #endif
49217
49218 /* Python-specific SWIG API */
49219 #define SWIG_newvarlink() SWIG_Python_newvarlink()
49220 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49221 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49222
49223 /* -----------------------------------------------------------------------------
49224 * global variable support code.
49225 * ----------------------------------------------------------------------------- */
49226
49227 typedef struct swig_globalvar {
49228 char *name; /* Name of global variable */
49229 PyObject *(*get_attr)(void); /* Return the current value */
49230 int (*set_attr)(PyObject *); /* Set the value */
49231 struct swig_globalvar *next;
49232 } swig_globalvar;
49233
49234 typedef struct swig_varlinkobject {
49235 PyObject_HEAD
49236 swig_globalvar *vars;
49237 } swig_varlinkobject;
49238
49239 SWIGINTERN PyObject *
49240 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49241 return PyString_FromString("<Swig global variables>");
49242 }
49243
49244 SWIGINTERN PyObject *
49245 swig_varlink_str(swig_varlinkobject *v) {
49246 PyObject *str = PyString_FromString("(");
49247 swig_globalvar *var;
49248 for (var = v->vars; var; var=var->next) {
49249 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49250 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49251 }
49252 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49253 return str;
49254 }
49255
49256 SWIGINTERN int
49257 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49258 PyObject *str = swig_varlink_str(v);
49259 fprintf(fp,"Swig global variables ");
49260 fprintf(fp,"%s\n", PyString_AsString(str));
49261 Py_DECREF(str);
49262 return 0;
49263 }
49264
49265 SWIGINTERN void
49266 swig_varlink_dealloc(swig_varlinkobject *v) {
49267 swig_globalvar *var = v->vars;
49268 while (var) {
49269 swig_globalvar *n = var->next;
49270 free(var->name);
49271 free(var);
49272 var = n;
49273 }
49274 }
49275
49276 SWIGINTERN PyObject *
49277 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49278 PyObject *res = NULL;
49279 swig_globalvar *var = v->vars;
49280 while (var) {
49281 if (strcmp(var->name,n) == 0) {
49282 res = (*var->get_attr)();
49283 break;
49284 }
49285 var = var->next;
49286 }
49287 if (res == NULL && !PyErr_Occurred()) {
49288 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49289 }
49290 return res;
49291 }
49292
49293 SWIGINTERN int
49294 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49295 int res = 1;
49296 swig_globalvar *var = v->vars;
49297 while (var) {
49298 if (strcmp(var->name,n) == 0) {
49299 res = (*var->set_attr)(p);
49300 break;
49301 }
49302 var = var->next;
49303 }
49304 if (res == 1 && !PyErr_Occurred()) {
49305 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49306 }
49307 return res;
49308 }
49309
49310 SWIGINTERN PyTypeObject*
49311 swig_varlink_type(void) {
49312 static char varlink__doc__[] = "Swig var link object";
49313 static PyTypeObject varlink_type;
49314 static int type_init = 0;
49315 if (!type_init) {
49316 const PyTypeObject tmp
49317 = {
49318 PyObject_HEAD_INIT(NULL)
49319 0, /* Number of items in variable part (ob_size) */
49320 (char *)"swigvarlink", /* Type name (tp_name) */
49321 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49322 0, /* Itemsize (tp_itemsize) */
49323 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49324 (printfunc) swig_varlink_print, /* Print (tp_print) */
49325 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49326 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49327 0, /* tp_compare */
49328 (reprfunc) swig_varlink_repr, /* tp_repr */
49329 0, /* tp_as_number */
49330 0, /* tp_as_sequence */
49331 0, /* tp_as_mapping */
49332 0, /* tp_hash */
49333 0, /* tp_call */
49334 (reprfunc)swig_varlink_str, /* tp_str */
49335 0, /* tp_getattro */
49336 0, /* tp_setattro */
49337 0, /* tp_as_buffer */
49338 0, /* tp_flags */
49339 varlink__doc__, /* tp_doc */
49340 0, /* tp_traverse */
49341 0, /* tp_clear */
49342 0, /* tp_richcompare */
49343 0, /* tp_weaklistoffset */
49344 #if PY_VERSION_HEX >= 0x02020000
49345 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49346 #endif
49347 #if PY_VERSION_HEX >= 0x02030000
49348 0, /* tp_del */
49349 #endif
49350 #ifdef COUNT_ALLOCS
49351 0,0,0,0 /* tp_alloc -> tp_next */
49352 #endif
49353 };
49354 varlink_type = tmp;
49355 varlink_type.ob_type = &PyType_Type;
49356 type_init = 1;
49357 }
49358 return &varlink_type;
49359 }
49360
49361 /* Create a variable linking object for use later */
49362 SWIGINTERN PyObject *
49363 SWIG_Python_newvarlink(void) {
49364 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49365 if (result) {
49366 result->vars = 0;
49367 }
49368 return ((PyObject*) result);
49369 }
49370
49371 SWIGINTERN void
49372 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49373 swig_varlinkobject *v = (swig_varlinkobject *) p;
49374 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49375 if (gv) {
49376 size_t size = strlen(name)+1;
49377 gv->name = (char *)malloc(size);
49378 if (gv->name) {
49379 strncpy(gv->name,name,size);
49380 gv->get_attr = get_attr;
49381 gv->set_attr = set_attr;
49382 gv->next = v->vars;
49383 }
49384 }
49385 v->vars = gv;
49386 }
49387
49388 SWIGINTERN PyObject *
49389 SWIG_globals() {
49390 static PyObject *_SWIG_globals = 0;
49391 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
49392 return _SWIG_globals;
49393 }
49394
49395 /* -----------------------------------------------------------------------------
49396 * constants/methods manipulation
49397 * ----------------------------------------------------------------------------- */
49398
49399 /* Install Constants */
49400 SWIGINTERN void
49401 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
49402 PyObject *obj = 0;
49403 size_t i;
49404 for (i = 0; constants[i].type; ++i) {
49405 switch(constants[i].type) {
49406 case SWIG_PY_POINTER:
49407 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
49408 break;
49409 case SWIG_PY_BINARY:
49410 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
49411 break;
49412 default:
49413 obj = 0;
49414 break;
49415 }
49416 if (obj) {
49417 PyDict_SetItemString(d, constants[i].name, obj);
49418 Py_DECREF(obj);
49419 }
49420 }
49421 }
49422
49423 /* -----------------------------------------------------------------------------*/
49424 /* Fix SwigMethods to carry the callback ptrs when needed */
49425 /* -----------------------------------------------------------------------------*/
49426
49427 SWIGINTERN void
49428 SWIG_Python_FixMethods(PyMethodDef *methods,
49429 swig_const_info *const_table,
49430 swig_type_info **types,
49431 swig_type_info **types_initial) {
49432 size_t i;
49433 for (i = 0; methods[i].ml_name; ++i) {
49434 const char *c = methods[i].ml_doc;
49435 if (c && (c = strstr(c, "swig_ptr: "))) {
49436 int j;
49437 swig_const_info *ci = 0;
49438 const char *name = c + 10;
49439 for (j = 0; const_table[j].type; ++j) {
49440 if (strncmp(const_table[j].name, name,
49441 strlen(const_table[j].name)) == 0) {
49442 ci = &(const_table[j]);
49443 break;
49444 }
49445 }
49446 if (ci) {
49447 size_t shift = (ci->ptype) - types;
49448 swig_type_info *ty = types_initial[shift];
49449 size_t ldoc = (c - methods[i].ml_doc);
49450 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
49451 char *ndoc = (char*)malloc(ldoc + lptr + 10);
49452 if (ndoc) {
49453 char *buff = ndoc;
49454 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
49455 if (ptr) {
49456 strncpy(buff, methods[i].ml_doc, ldoc);
49457 buff += ldoc;
49458 strncpy(buff, "swig_ptr: ", 10);
49459 buff += 10;
49460 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
49461 methods[i].ml_doc = ndoc;
49462 }
49463 }
49464 }
49465 }
49466 }
49467 }
49468
49469 #ifdef __cplusplus
49470 }
49471 #endif
49472
49473 /* -----------------------------------------------------------------------------*
49474 * Partial Init method
49475 * -----------------------------------------------------------------------------*/
49476
49477 #ifdef __cplusplus
49478 extern "C"
49479 #endif
49480 SWIGEXPORT void SWIG_init(void) {
49481 PyObject *m, *d;
49482
49483 /* Fix SwigMethods to carry the callback ptrs when needed */
49484 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
49485
49486 m = Py_InitModule((char *) SWIG_name, SwigMethods);
49487 d = PyModule_GetDict(m);
49488
49489 SWIG_InitializeModule(0);
49490 SWIG_InstallConstants(d,swig_const_table);
49491
49492
49493 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
49494 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
49495 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
49496 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
49497 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
49498 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
49499 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
49500 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
49501 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
49502 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
49503 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
49504 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
49505 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
49506 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
49507 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
49508 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
49509 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
49510 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
49511 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
49512 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
49513 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
49514 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
49515 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
49516 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
49517 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
49518 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
49519 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
49520 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
49521 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
49522 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
49523 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
49524 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
49525 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
49526 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
49527 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
49528 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
49529 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
49530 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
49531 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
49532 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
49533 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
49534 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
49535 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
49536 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
49537 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
49538 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
49539 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
49540 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
49541 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
49542 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
49543 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
49544 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
49545 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
49546 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
49547 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
49548 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
49549 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
49550 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
49551 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
49552 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
49553 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
49554 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
49555 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
49556 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
49557 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
49558 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
49559 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
49560 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
49561 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
49562 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
49563 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
49564 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
49565 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
49566 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
49567 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
49568 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
49569 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
49570 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
49571 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
49572 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
49573 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
49574 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
49575 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
49576 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
49577 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
49578 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
49579 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
49580 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
49581 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
49582 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
49583 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
49584 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
49585 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
49586 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
49587 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
49588 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
49589 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
49590 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
49591 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
49592 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
49593 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
49594 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
49595 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
49596 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
49597 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
49598 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
49599 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
49600 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
49601 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
49602 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
49603 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
49604 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
49605 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
49606 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
49607 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
49608 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
49609 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
49610 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
49611 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
49612 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
49613 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
49614 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
49615 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
49616 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
49617 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
49618 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
49619 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
49620 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
49621 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
49622 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
49623 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
49624 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
49625 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
49626 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
49627 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
49628 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
49629 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
49630 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49631 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49632 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49633 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49634 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49635 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49636 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49637 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49638 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49639 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49640 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49641 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49642 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49643 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49644 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49645 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49646 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49647 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49648 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
49649 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
49650 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
49651 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
49652 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
49653 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49654 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49655 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49656 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49657 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49658 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49659 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49660 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49661 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
49662 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
49663 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49664 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49665 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49666 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49667 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49668 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49669 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49670 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49671 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49672 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49673 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49674 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49675 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49676 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49677 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49678 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49679 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49680 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49681 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49682 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49683 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49684 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49685 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49686 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49687 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49688 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49689 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49690 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49691 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49692 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49693 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49694 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49695 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49696 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49697 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49698 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49699 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49700 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49701 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49702 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49703 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49704 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49705 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49706 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49707 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49708 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49709 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
49710 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
49711 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49712 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49713 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49714 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49715 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49716 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49717 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49718 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49719 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49720 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49721 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49722 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49723 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49724 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49725 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49726 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49727 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49728 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49729 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49730 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49731 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49732 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49733 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49734 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49735 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49736 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49737 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49738 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49739 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49740 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49741 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49742 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49743 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49744 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49745 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49746 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49747 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49748 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49749 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49750 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49751 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49752 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49753
49754 // Map renamed classes back to their common name for OOR
49755 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49756
49757 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49758 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49759 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49760 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49761 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49762 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49763 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49764 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49765 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49766 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49767 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49768 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49769 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49770 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49771 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
49772 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49773 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49774 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49775 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49776 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49777 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49778 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49779 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49780 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49781 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49782 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49783 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49784 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49785 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49786 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49787 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49788 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49789 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49790 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49791 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49792 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49793 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49794 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49795 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49796 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49797 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49798 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49799 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49800 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49801 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49802 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49803 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49804 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49805 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49806 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49807 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49808 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49809 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49810 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49811 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
49812 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
49813
49814 // Map renamed classes back to their common name for OOR
49815 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49816 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49817
49818 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49819 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49820 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49821 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49822 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49823 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
49824 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49825 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
49826 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49827 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49828 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
49829
49830 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49831
49832 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49833 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49834 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49835 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49836 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49837 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
49838 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49839 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
49840 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49841 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49842 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
49843 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49844 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
49845 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49846 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49847 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49848 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49849 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49850 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49851 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49852 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49853 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49854 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49855 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49856 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49857 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49858 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49859 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49860 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49861 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49862 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49863 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49864 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49865 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49866 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49867 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49868 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49869 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49870 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49871 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49872 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49873 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49874 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
49875 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
49876 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
49877 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
49878 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
49879 }
49880