]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
778024f878a2dd2470bc3a7f462ddd9452085ec0
[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_write(wxTextCtrl *self,wxString const &text){
2901 self->AppendText(text);
2902 }
2903 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2904 return self->GetValue().Mid(from, to - from);
2905 }
2906 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2907 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2908 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2909 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2910 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2911
2912 SWIGINTERNINLINE PyObject*
2913 SWIG_From_unsigned_SS_long (unsigned long value)
2914 {
2915 return (value > LONG_MAX) ?
2916 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2917 }
2918
2919
2920 SWIGINTERNINLINE PyObject *
2921 SWIG_From_size_t (size_t value)
2922 {
2923 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2924 }
2925
2926
2927 SWIGINTERNINLINE PyObject *
2928 SWIG_From_unsigned_SS_int (unsigned int value)
2929 {
2930 return SWIG_From_unsigned_SS_long (value);
2931 }
2932
2933
2934 #include <wx/slider.h>
2935
2936
2937 static const wxString wxPySliderNameStr(wxSliderNameStr);
2938 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2939
2940 #if !wxUSE_TOGGLEBTN
2941 // implement dummy items for platforms that don't have this class
2942
2943 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2944
2945 class wxToggleButton : public wxControl
2946 {
2947 public:
2948 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2949 const wxPoint&, const wxSize&, long,
2950 const wxValidator&, const wxString&)
2951 { wxPyRaiseNotImplemented(); }
2952
2953 wxToggleButton()
2954 { wxPyRaiseNotImplemented(); }
2955 };
2956 #endif
2957
2958 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2959
2960 SWIGINTERNINLINE int
2961 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2962 {
2963 unsigned long v;
2964 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2965 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2966 return res;
2967 }
2968
2969 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2970 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2971 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2972 if (udata) {
2973 Py_INCREF(udata->m_obj);
2974 return udata->m_obj;
2975 } else {
2976 Py_INCREF(Py_None);
2977 return Py_None;
2978 }
2979 }
2980 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2981 self->SetClientData(new wxPyUserData(clientData));
2982 }
2983 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){
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
2990 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){
2991 wxPyUserData* udata = NULL;
2992 if (clientData && clientData != Py_None)
2993 udata = new wxPyUserData(clientData);
2994 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2995 shortHelp, longHelp, udata);
2996 }
2997 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2998 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2999 if (udata) {
3000 Py_INCREF(udata->m_obj);
3001 return udata->m_obj;
3002 } else {
3003 Py_INCREF(Py_None);
3004 return Py_None;
3005 }
3006 }
3007 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3008 self->SetToolClientData(id, new wxPyUserData(clientData));
3009 }
3010
3011 #include <wx/listctrl.h>
3012
3013 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3014 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3015 // Python aware sorting function for wxPyListCtrl
3016 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3017 int retval = 0;
3018 PyObject* func = (PyObject*)funcPtr;
3019 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3020
3021 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3022 PyObject* result = PyEval_CallObject(func, args);
3023 Py_DECREF(args);
3024 if (result) {
3025 retval = PyInt_AsLong(result);
3026 Py_DECREF(result);
3027 }
3028
3029 wxPyEndBlockThreads(blocked);
3030 return retval;
3031 }
3032
3033 // C++ Version of a Python aware class
3034 class wxPyListCtrl : public wxListCtrl {
3035 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3036 public:
3037 wxPyListCtrl() : wxListCtrl() {}
3038 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3039 const wxPoint& pos,
3040 const wxSize& size,
3041 long style,
3042 const wxValidator& validator,
3043 const wxString& name) :
3044 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3045
3046 bool Create(wxWindow* parent, wxWindowID id,
3047 const wxPoint& pos,
3048 const wxSize& size,
3049 long style,
3050 const wxValidator& validator,
3051 const wxString& name) {
3052 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3053 }
3054
3055 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3056 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3057
3058 // use the virtual version to avoid a confusing assert in the base class
3059 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3060 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3061
3062 PYPRIVATE;
3063 };
3064
3065 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3066
3067 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3068 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3069 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3070 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3071
3072
3073 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3074 wxListItem item;
3075 item.SetMask( wxLIST_MASK_STATE |
3076 wxLIST_MASK_TEXT |
3077 wxLIST_MASK_IMAGE |
3078 wxLIST_MASK_DATA |
3079 wxLIST_SET_ITEM |
3080 wxLIST_MASK_WIDTH |
3081 wxLIST_MASK_FORMAT
3082 );
3083 if (self->GetColumn(col, item))
3084 return new wxListItem(item);
3085 else
3086 return NULL;
3087 }
3088 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3089 wxListItem* info = new wxListItem;
3090 info->m_itemId = itemId;
3091 info->m_col = col;
3092 info->m_mask = 0xFFFF;
3093 self->GetItem(*info);
3094 return info;
3095 }
3096 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3097 wxPoint pos;
3098 self->GetItemPosition(item, pos);
3099 return pos;
3100 }
3101 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3102 wxRect rect;
3103 self->GetItemRect(item, rect, code);
3104 return rect;
3105 }
3106 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3107 if (!PyCallable_Check(func))
3108 return false;
3109 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3110 }
3111 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3112
3113
3114
3115 return (wxWindow*)self->m_mainWin;
3116
3117 }
3118
3119 #include <wx/treectrl.h>
3120 #include "wx/wxPython/pytree.h"
3121
3122 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3123 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3124 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3125 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3126
3127 static wxTreeItemId wxNullTreeItemId;
3128
3129 // C++ version of Python aware wxTreeCtrl
3130 class wxPyTreeCtrl : public wxTreeCtrl {
3131 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3132 public:
3133 wxPyTreeCtrl() : wxTreeCtrl() {}
3134 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3135 const wxPoint& pos,
3136 const wxSize& size,
3137 long style,
3138 const wxValidator& validator,
3139 const wxString& name) :
3140 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3141
3142 bool Create(wxWindow *parent, wxWindowID id,
3143 const wxPoint& pos,
3144 const wxSize& size,
3145 long style,
3146 const wxValidator& validator,
3147 const wxString& name) {
3148 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3149 }
3150
3151
3152 int OnCompareItems(const wxTreeItemId& item1,
3153 const wxTreeItemId& item2) {
3154 int rval = 0;
3155 bool found;
3156 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3157 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3158 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3159 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3160 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3161 Py_DECREF(o1);
3162 Py_DECREF(o2);
3163 }
3164 wxPyEndBlockThreads(blocked);
3165 if (! found)
3166 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3167 return rval;
3168 }
3169 PYPRIVATE;
3170 };
3171
3172 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3173
3174
3175 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData();
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 }
3182 return data;
3183 }
3184 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3185 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3186 if (data == NULL) {
3187 data = new wxPyTreeItemData();
3188 data->SetId(item); // set the id
3189 self->SetItemData(item, data);
3190 }
3191 return data->GetData();
3192 }
3193 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 }
3197 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3198 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3199 if (data == NULL) {
3200 data = new wxPyTreeItemData(obj);
3201 data->SetId(item); // set the id
3202 self->SetItemData(item, data);
3203 } else
3204 data->SetData(obj);
3205 }
3206 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3208 PyObject* rval = PyList_New(0);
3209 wxArrayTreeItemIds array;
3210 size_t num, x;
3211 num = self->GetSelections(array);
3212 for (x=0; x < num; x++) {
3213 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3214 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3215 PyList_Append(rval, item);
3216 Py_DECREF(item);
3217 }
3218 wxPyEndBlockThreads(blocked);
3219 return rval;
3220 }
3221 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3222 void* cookie = 0;
3223 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3225 PyObject* tup = PyTuple_New(2);
3226 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3227 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3228 wxPyEndBlockThreads(blocked);
3229 return tup;
3230 }
3231 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3232 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3233 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3234 PyObject* tup = PyTuple_New(2);
3235 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3236 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3237 wxPyEndBlockThreads(blocked);
3238 return tup;
3239 }
3240 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3241 wxRect rect;
3242 if (self->GetBoundingRect(item, rect, textOnly)) {
3243 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3244 wxRect* r = new wxRect(rect);
3245 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3246 wxPyEndBlockThreads(blocked);
3247 return val;
3248 }
3249 else
3250 RETURN_NONE();
3251 }
3252 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3253
3254 SWIGINTERNINLINE PyObject*
3255 SWIG_From_bool (bool value)
3256 {
3257 return PyBool_FromLong(value ? 1 : 0);
3258 }
3259
3260 // C++ version of Python aware wxControl
3261 class wxPyControl : public wxControl
3262 {
3263 DECLARE_DYNAMIC_CLASS(wxPyControl)
3264 public:
3265 wxPyControl() : wxControl() {}
3266 wxPyControl(wxWindow* parent, const wxWindowID id,
3267 const wxPoint& pos = wxDefaultPosition,
3268 const wxSize& size = wxDefaultSize,
3269 long style = 0,
3270 const wxValidator& validator=wxDefaultValidator,
3271 const wxString& name = wxPyControlNameStr)
3272 : wxControl(parent, id, pos, size, style, validator, name) {}
3273
3274
3275 bool DoEraseBackground(wxDC* dc) {
3276 #ifdef __WXMSW__
3277 return wxWindow::DoEraseBackground(dc->GetHDC());
3278 #else
3279 dc->SetBackground(wxBrush(GetBackgroundColour()));
3280 dc->Clear();
3281 return true;
3282 #endif
3283 }
3284
3285 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3286 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3287 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3288 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3289
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3291 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3293
3294 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3295 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3296
3297 DEC_PYCALLBACK__(InitDialog);
3298 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3299 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3300 DEC_PYCALLBACK_BOOL_(Validate);
3301
3302 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3303 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3304 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3305
3306 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3307 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3308
3309 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3310 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3311
3312 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3313
3314 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3315
3316 PYPRIVATE;
3317 };
3318
3319 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3320
3321 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3322 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3323 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3324 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3325
3326 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3327 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3328 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3329
3330 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3331 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3332
3333 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3334 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3335 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3336 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3337
3338 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3339 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3340 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3341
3342 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3343 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3344
3345 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3346 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3347
3348 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3349
3350 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3351
3352
3353
3354 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3355
3356 #include <wx/generic/dragimgg.h>
3357
3358 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3359 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3360 wxDateTime rv;
3361 self->GetRange(&rv, NULL);
3362 return rv;
3363 }
3364 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3365 wxDateTime rv;
3366 self->GetRange(NULL, &rv);
3367 return rv;
3368 }
3369 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3370 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3371 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3372 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3373 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3374 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3375 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3376 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3377 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3378 #ifdef __cplusplus
3379 extern "C" {
3380 #endif
3381 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3382 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3383 return 1;
3384 }
3385
3386
3387 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3388 PyObject *pyobj = 0;
3389
3390 {
3391 #if wxUSE_UNICODE
3392 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3393 #else
3394 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3395 #endif
3396 }
3397 return pyobj;
3398 }
3399
3400
3401 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj = 0;
3403 wxWindow *arg1 = (wxWindow *) 0 ;
3404 int arg2 = (int) -1 ;
3405 wxString const &arg3_defvalue = wxPyEmptyString ;
3406 wxString *arg3 = (wxString *) &arg3_defvalue ;
3407 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3408 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3409 wxSize const &arg5_defvalue = wxDefaultSize ;
3410 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3411 long arg6 = (long) 0 ;
3412 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3413 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3414 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3415 wxString *arg8 = (wxString *) &arg8_defvalue ;
3416 wxButton *result = 0 ;
3417 void *argp1 = 0 ;
3418 int res1 = 0 ;
3419 int val2 ;
3420 int ecode2 = 0 ;
3421 bool temp3 = false ;
3422 wxPoint temp4 ;
3423 wxSize temp5 ;
3424 long val6 ;
3425 int ecode6 = 0 ;
3426 void *argp7 = 0 ;
3427 int res7 = 0 ;
3428 bool temp8 = false ;
3429 PyObject * obj0 = 0 ;
3430 PyObject * obj1 = 0 ;
3431 PyObject * obj2 = 0 ;
3432 PyObject * obj3 = 0 ;
3433 PyObject * obj4 = 0 ;
3434 PyObject * obj5 = 0 ;
3435 PyObject * obj6 = 0 ;
3436 PyObject * obj7 = 0 ;
3437 char * kwnames[] = {
3438 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3439 };
3440
3441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3443 if (!SWIG_IsOK(res1)) {
3444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3445 }
3446 arg1 = reinterpret_cast< wxWindow * >(argp1);
3447 if (obj1) {
3448 ecode2 = SWIG_AsVal_int(obj1, &val2);
3449 if (!SWIG_IsOK(ecode2)) {
3450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3451 }
3452 arg2 = static_cast< int >(val2);
3453 }
3454 if (obj2) {
3455 {
3456 arg3 = wxString_in_helper(obj2);
3457 if (arg3 == NULL) SWIG_fail;
3458 temp3 = true;
3459 }
3460 }
3461 if (obj3) {
3462 {
3463 arg4 = &temp4;
3464 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3465 }
3466 }
3467 if (obj4) {
3468 {
3469 arg5 = &temp5;
3470 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3471 }
3472 }
3473 if (obj5) {
3474 ecode6 = SWIG_AsVal_long(obj5, &val6);
3475 if (!SWIG_IsOK(ecode6)) {
3476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3477 }
3478 arg6 = static_cast< long >(val6);
3479 }
3480 if (obj6) {
3481 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3482 if (!SWIG_IsOK(res7)) {
3483 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3484 }
3485 if (!argp7) {
3486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3487 }
3488 arg7 = reinterpret_cast< wxValidator * >(argp7);
3489 }
3490 if (obj7) {
3491 {
3492 arg8 = wxString_in_helper(obj7);
3493 if (arg8 == NULL) SWIG_fail;
3494 temp8 = true;
3495 }
3496 }
3497 {
3498 if (!wxPyCheckForApp()) SWIG_fail;
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3505 {
3506 if (temp3)
3507 delete arg3;
3508 }
3509 {
3510 if (temp8)
3511 delete arg8;
3512 }
3513 return resultobj;
3514 fail:
3515 {
3516 if (temp3)
3517 delete arg3;
3518 }
3519 {
3520 if (temp8)
3521 delete arg8;
3522 }
3523 return NULL;
3524 }
3525
3526
3527 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3528 PyObject *resultobj = 0;
3529 wxButton *result = 0 ;
3530
3531 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3532 {
3533 if (!wxPyCheckForApp()) SWIG_fail;
3534 PyThreadState* __tstate = wxPyBeginAllowThreads();
3535 result = (wxButton *)new wxButton();
3536 wxPyEndAllowThreads(__tstate);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3540 return resultobj;
3541 fail:
3542 return NULL;
3543 }
3544
3545
3546 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3547 PyObject *resultobj = 0;
3548 wxButton *arg1 = (wxButton *) 0 ;
3549 wxWindow *arg2 = (wxWindow *) 0 ;
3550 int arg3 = (int) -1 ;
3551 wxString const &arg4_defvalue = wxPyEmptyString ;
3552 wxString *arg4 = (wxString *) &arg4_defvalue ;
3553 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3554 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3555 wxSize const &arg6_defvalue = wxDefaultSize ;
3556 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3557 long arg7 = (long) 0 ;
3558 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3559 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3560 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3561 wxString *arg9 = (wxString *) &arg9_defvalue ;
3562 bool result;
3563 void *argp1 = 0 ;
3564 int res1 = 0 ;
3565 void *argp2 = 0 ;
3566 int res2 = 0 ;
3567 int val3 ;
3568 int ecode3 = 0 ;
3569 bool temp4 = false ;
3570 wxPoint temp5 ;
3571 wxSize temp6 ;
3572 long val7 ;
3573 int ecode7 = 0 ;
3574 void *argp8 = 0 ;
3575 int res8 = 0 ;
3576 bool temp9 = false ;
3577 PyObject * obj0 = 0 ;
3578 PyObject * obj1 = 0 ;
3579 PyObject * obj2 = 0 ;
3580 PyObject * obj3 = 0 ;
3581 PyObject * obj4 = 0 ;
3582 PyObject * obj5 = 0 ;
3583 PyObject * obj6 = 0 ;
3584 PyObject * obj7 = 0 ;
3585 PyObject * obj8 = 0 ;
3586 char * kwnames[] = {
3587 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3588 };
3589
3590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3592 if (!SWIG_IsOK(res1)) {
3593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3594 }
3595 arg1 = reinterpret_cast< wxButton * >(argp1);
3596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3597 if (!SWIG_IsOK(res2)) {
3598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3599 }
3600 arg2 = reinterpret_cast< wxWindow * >(argp2);
3601 if (obj2) {
3602 ecode3 = SWIG_AsVal_int(obj2, &val3);
3603 if (!SWIG_IsOK(ecode3)) {
3604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3605 }
3606 arg3 = static_cast< int >(val3);
3607 }
3608 if (obj3) {
3609 {
3610 arg4 = wxString_in_helper(obj3);
3611 if (arg4 == NULL) SWIG_fail;
3612 temp4 = true;
3613 }
3614 }
3615 if (obj4) {
3616 {
3617 arg5 = &temp5;
3618 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3619 }
3620 }
3621 if (obj5) {
3622 {
3623 arg6 = &temp6;
3624 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3625 }
3626 }
3627 if (obj6) {
3628 ecode7 = SWIG_AsVal_long(obj6, &val7);
3629 if (!SWIG_IsOK(ecode7)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3631 }
3632 arg7 = static_cast< long >(val7);
3633 }
3634 if (obj7) {
3635 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3636 if (!SWIG_IsOK(res8)) {
3637 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3638 }
3639 if (!argp8) {
3640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3641 }
3642 arg8 = reinterpret_cast< wxValidator * >(argp8);
3643 }
3644 if (obj8) {
3645 {
3646 arg9 = wxString_in_helper(obj8);
3647 if (arg9 == NULL) SWIG_fail;
3648 temp9 = true;
3649 }
3650 }
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 {
3658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3659 }
3660 {
3661 if (temp4)
3662 delete arg4;
3663 }
3664 {
3665 if (temp9)
3666 delete arg9;
3667 }
3668 return resultobj;
3669 fail:
3670 {
3671 if (temp4)
3672 delete arg4;
3673 }
3674 {
3675 if (temp9)
3676 delete arg9;
3677 }
3678 return NULL;
3679 }
3680
3681
3682 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3683 PyObject *resultobj = 0;
3684 wxButton *arg1 = (wxButton *) 0 ;
3685 void *argp1 = 0 ;
3686 int res1 = 0 ;
3687 PyObject *swig_obj[1] ;
3688
3689 if (!args) SWIG_fail;
3690 swig_obj[0] = args;
3691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3692 if (!SWIG_IsOK(res1)) {
3693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3694 }
3695 arg1 = reinterpret_cast< wxButton * >(argp1);
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 (arg1)->SetDefault();
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_Py_Void();
3703 return resultobj;
3704 fail:
3705 return NULL;
3706 }
3707
3708
3709 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3710 PyObject *resultobj = 0;
3711 wxSize result;
3712
3713 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 result = wxButton::GetDefaultSize();
3717 wxPyEndAllowThreads(__tstate);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 }
3720 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3721 return resultobj;
3722 fail:
3723 return NULL;
3724 }
3725
3726
3727 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj = 0;
3729 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3730 SwigValueWrapper<wxVisualAttributes > result;
3731 int val1 ;
3732 int ecode1 = 0 ;
3733 PyObject * obj0 = 0 ;
3734 char * kwnames[] = {
3735 (char *) "variant", NULL
3736 };
3737
3738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3739 if (obj0) {
3740 ecode1 = SWIG_AsVal_int(obj0, &val1);
3741 if (!SWIG_IsOK(ecode1)) {
3742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3743 }
3744 arg1 = static_cast< wxWindowVariant >(val1);
3745 }
3746 {
3747 if (!wxPyCheckForApp()) SWIG_fail;
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 result = wxButton::GetClassDefaultAttributes(arg1);
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *obj;
3762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3763 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3764 return SWIG_Py_Void();
3765 }
3766
3767 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3768 return SWIG_Python_InitShadowInstance(args);
3769 }
3770
3771 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj = 0;
3773 wxWindow *arg1 = (wxWindow *) 0 ;
3774 int arg2 = (int) -1 ;
3775 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3776 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3779 wxSize const &arg5_defvalue = wxDefaultSize ;
3780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3781 long arg6 = (long) wxBU_AUTODRAW ;
3782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3784 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3785 wxString *arg8 = (wxString *) &arg8_defvalue ;
3786 wxBitmapButton *result = 0 ;
3787 void *argp1 = 0 ;
3788 int res1 = 0 ;
3789 int val2 ;
3790 int ecode2 = 0 ;
3791 void *argp3 = 0 ;
3792 int res3 = 0 ;
3793 wxPoint temp4 ;
3794 wxSize temp5 ;
3795 long val6 ;
3796 int ecode6 = 0 ;
3797 void *argp7 = 0 ;
3798 int res7 = 0 ;
3799 bool temp8 = false ;
3800 PyObject * obj0 = 0 ;
3801 PyObject * obj1 = 0 ;
3802 PyObject * obj2 = 0 ;
3803 PyObject * obj3 = 0 ;
3804 PyObject * obj4 = 0 ;
3805 PyObject * obj5 = 0 ;
3806 PyObject * obj6 = 0 ;
3807 PyObject * obj7 = 0 ;
3808 char * kwnames[] = {
3809 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3810 };
3811
3812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3814 if (!SWIG_IsOK(res1)) {
3815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3816 }
3817 arg1 = reinterpret_cast< wxWindow * >(argp1);
3818 if (obj1) {
3819 ecode2 = SWIG_AsVal_int(obj1, &val2);
3820 if (!SWIG_IsOK(ecode2)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3822 }
3823 arg2 = static_cast< int >(val2);
3824 }
3825 if (obj2) {
3826 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3827 if (!SWIG_IsOK(res3)) {
3828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 if (!argp3) {
3831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3832 }
3833 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3834 }
3835 if (obj3) {
3836 {
3837 arg4 = &temp4;
3838 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3839 }
3840 }
3841 if (obj4) {
3842 {
3843 arg5 = &temp5;
3844 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3845 }
3846 }
3847 if (obj5) {
3848 ecode6 = SWIG_AsVal_long(obj5, &val6);
3849 if (!SWIG_IsOK(ecode6)) {
3850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3851 }
3852 arg6 = static_cast< long >(val6);
3853 }
3854 if (obj6) {
3855 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3856 if (!SWIG_IsOK(res7)) {
3857 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3858 }
3859 if (!argp7) {
3860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3861 }
3862 arg7 = reinterpret_cast< wxValidator * >(argp7);
3863 }
3864 if (obj7) {
3865 {
3866 arg8 = wxString_in_helper(obj7);
3867 if (arg8 == NULL) SWIG_fail;
3868 temp8 = true;
3869 }
3870 }
3871 {
3872 if (!wxPyCheckForApp()) SWIG_fail;
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3879 {
3880 if (temp8)
3881 delete arg8;
3882 }
3883 return resultobj;
3884 fail:
3885 {
3886 if (temp8)
3887 delete arg8;
3888 }
3889 return NULL;
3890 }
3891
3892
3893 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3894 PyObject *resultobj = 0;
3895 wxBitmapButton *result = 0 ;
3896
3897 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3898 {
3899 if (!wxPyCheckForApp()) SWIG_fail;
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxBitmapButton *)new wxBitmapButton();
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3906 return resultobj;
3907 fail:
3908 return NULL;
3909 }
3910
3911
3912 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3913 PyObject *resultobj = 0;
3914 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3915 wxWindow *arg2 = (wxWindow *) 0 ;
3916 int arg3 = (int) -1 ;
3917 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3918 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3919 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3920 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3921 wxSize const &arg6_defvalue = wxDefaultSize ;
3922 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3923 long arg7 = (long) wxBU_AUTODRAW ;
3924 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3925 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3926 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3927 wxString *arg9 = (wxString *) &arg9_defvalue ;
3928 bool result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 void *argp2 = 0 ;
3932 int res2 = 0 ;
3933 int val3 ;
3934 int ecode3 = 0 ;
3935 void *argp4 = 0 ;
3936 int res4 = 0 ;
3937 wxPoint temp5 ;
3938 wxSize temp6 ;
3939 long val7 ;
3940 int ecode7 = 0 ;
3941 void *argp8 = 0 ;
3942 int res8 = 0 ;
3943 bool temp9 = false ;
3944 PyObject * obj0 = 0 ;
3945 PyObject * obj1 = 0 ;
3946 PyObject * obj2 = 0 ;
3947 PyObject * obj3 = 0 ;
3948 PyObject * obj4 = 0 ;
3949 PyObject * obj5 = 0 ;
3950 PyObject * obj6 = 0 ;
3951 PyObject * obj7 = 0 ;
3952 PyObject * obj8 = 0 ;
3953 char * kwnames[] = {
3954 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3955 };
3956
3957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3961 }
3962 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3964 if (!SWIG_IsOK(res2)) {
3965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3966 }
3967 arg2 = reinterpret_cast< wxWindow * >(argp2);
3968 if (obj2) {
3969 ecode3 = SWIG_AsVal_int(obj2, &val3);
3970 if (!SWIG_IsOK(ecode3)) {
3971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3972 }
3973 arg3 = static_cast< int >(val3);
3974 }
3975 if (obj3) {
3976 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3977 if (!SWIG_IsOK(res4)) {
3978 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3979 }
3980 if (!argp4) {
3981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3982 }
3983 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3984 }
3985 if (obj4) {
3986 {
3987 arg5 = &temp5;
3988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3989 }
3990 }
3991 if (obj5) {
3992 {
3993 arg6 = &temp6;
3994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3995 }
3996 }
3997 if (obj6) {
3998 ecode7 = SWIG_AsVal_long(obj6, &val7);
3999 if (!SWIG_IsOK(ecode7)) {
4000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4001 }
4002 arg7 = static_cast< long >(val7);
4003 }
4004 if (obj7) {
4005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4006 if (!SWIG_IsOK(res8)) {
4007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 if (!argp8) {
4010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4011 }
4012 arg8 = reinterpret_cast< wxValidator * >(argp8);
4013 }
4014 if (obj8) {
4015 {
4016 arg9 = wxString_in_helper(obj8);
4017 if (arg9 == NULL) SWIG_fail;
4018 temp9 = true;
4019 }
4020 }
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4029 }
4030 {
4031 if (temp9)
4032 delete arg9;
4033 }
4034 return resultobj;
4035 fail:
4036 {
4037 if (temp9)
4038 delete arg9;
4039 }
4040 return NULL;
4041 }
4042
4043
4044 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4047 wxBitmap result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject *swig_obj[1] ;
4051
4052 if (!args) SWIG_fail;
4053 swig_obj[0] = args;
4054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4055 if (!SWIG_IsOK(res1)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4057 }
4058 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (arg1)->GetBitmapLabel();
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4066 return resultobj;
4067 fail:
4068 return NULL;
4069 }
4070
4071
4072 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4073 PyObject *resultobj = 0;
4074 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4075 wxBitmap result;
4076 void *argp1 = 0 ;
4077 int res1 = 0 ;
4078 PyObject *swig_obj[1] ;
4079
4080 if (!args) SWIG_fail;
4081 swig_obj[0] = args;
4082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4083 if (!SWIG_IsOK(res1)) {
4084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4085 }
4086 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (arg1)->GetBitmapDisabled();
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4094 return resultobj;
4095 fail:
4096 return NULL;
4097 }
4098
4099
4100 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4101 PyObject *resultobj = 0;
4102 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4103 wxBitmap result;
4104 void *argp1 = 0 ;
4105 int res1 = 0 ;
4106 PyObject *swig_obj[1] ;
4107
4108 if (!args) SWIG_fail;
4109 swig_obj[0] = args;
4110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4111 if (!SWIG_IsOK(res1)) {
4112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4113 }
4114 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 result = (arg1)->GetBitmapFocus();
4118 wxPyEndAllowThreads(__tstate);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4122 return resultobj;
4123 fail:
4124 return NULL;
4125 }
4126
4127
4128 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4129 PyObject *resultobj = 0;
4130 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4131 wxBitmap result;
4132 void *argp1 = 0 ;
4133 int res1 = 0 ;
4134 PyObject *swig_obj[1] ;
4135
4136 if (!args) SWIG_fail;
4137 swig_obj[0] = args;
4138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4139 if (!SWIG_IsOK(res1)) {
4140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4141 }
4142 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (arg1)->GetBitmapSelected();
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4150 return resultobj;
4151 fail:
4152 return NULL;
4153 }
4154
4155
4156 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4157 PyObject *resultobj = 0;
4158 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4159 wxBitmap result;
4160 void *argp1 = 0 ;
4161 int res1 = 0 ;
4162 PyObject *swig_obj[1] ;
4163
4164 if (!args) SWIG_fail;
4165 swig_obj[0] = args;
4166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4167 if (!SWIG_IsOK(res1)) {
4168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4169 }
4170 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 result = (arg1)->GetBitmapHover();
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4178 return resultobj;
4179 fail:
4180 return NULL;
4181 }
4182
4183
4184 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj = 0;
4186 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4187 wxBitmap *arg2 = 0 ;
4188 void *argp1 = 0 ;
4189 int res1 = 0 ;
4190 void *argp2 = 0 ;
4191 int res2 = 0 ;
4192 PyObject * obj0 = 0 ;
4193 PyObject * obj1 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "self",(char *) "bitmap", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4200 if (!SWIG_IsOK(res1)) {
4201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4202 }
4203 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4205 if (!SWIG_IsOK(res2)) {
4206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 if (!argp2) {
4209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4210 }
4211 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220 fail:
4221 return NULL;
4222 }
4223
4224
4225 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj = 0;
4227 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4228 wxBitmap *arg2 = 0 ;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 void *argp2 = 0 ;
4232 int res2 = 0 ;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 char * kwnames[] = {
4236 (char *) "self",(char *) "bitmap", NULL
4237 };
4238
4239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4241 if (!SWIG_IsOK(res1)) {
4242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4243 }
4244 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4246 if (!SWIG_IsOK(res2)) {
4247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 if (!argp2) {
4250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4251 }
4252 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261 fail:
4262 return NULL;
4263 }
4264
4265
4266 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4267 PyObject *resultobj = 0;
4268 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4269 wxBitmap *arg2 = 0 ;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 void *argp2 = 0 ;
4273 int res2 = 0 ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 char * kwnames[] = {
4277 (char *) "self",(char *) "bitmap", NULL
4278 };
4279
4280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4282 if (!SWIG_IsOK(res1)) {
4283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4284 }
4285 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4287 if (!SWIG_IsOK(res2)) {
4288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 if (!argp2) {
4291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4292 }
4293 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = SWIG_Py_Void();
4301 return resultobj;
4302 fail:
4303 return NULL;
4304 }
4305
4306
4307 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4308 PyObject *resultobj = 0;
4309 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4310 wxBitmap *arg2 = 0 ;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 void *argp2 = 0 ;
4314 int res2 = 0 ;
4315 PyObject * obj0 = 0 ;
4316 PyObject * obj1 = 0 ;
4317 char * kwnames[] = {
4318 (char *) "self",(char *) "bitmap", NULL
4319 };
4320
4321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4325 }
4326 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4328 if (!SWIG_IsOK(res2)) {
4329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 if (!argp2) {
4332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4333 }
4334 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
4337 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 resultobj = SWIG_Py_Void();
4342 return resultobj;
4343 fail:
4344 return NULL;
4345 }
4346
4347
4348 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj = 0;
4350 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4351 wxBitmap *arg2 = 0 ;
4352 void *argp1 = 0 ;
4353 int res1 = 0 ;
4354 void *argp2 = 0 ;
4355 int res2 = 0 ;
4356 PyObject * obj0 = 0 ;
4357 PyObject * obj1 = 0 ;
4358 char * kwnames[] = {
4359 (char *) "self",(char *) "hover", NULL
4360 };
4361
4362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4364 if (!SWIG_IsOK(res1)) {
4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4366 }
4367 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4369 if (!SWIG_IsOK(res2)) {
4370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 if (!argp2) {
4373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4374 }
4375 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4376 {
4377 PyThreadState* __tstate = wxPyBeginAllowThreads();
4378 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4379 wxPyEndAllowThreads(__tstate);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 }
4382 resultobj = SWIG_Py_Void();
4383 return resultobj;
4384 fail:
4385 return NULL;
4386 }
4387
4388
4389 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4390 PyObject *resultobj = 0;
4391 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4392 int arg2 ;
4393 int arg3 ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 int val2 ;
4397 int ecode2 = 0 ;
4398 int val3 ;
4399 int ecode3 = 0 ;
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 PyObject * obj2 = 0 ;
4403 char * kwnames[] = {
4404 (char *) "self",(char *) "x",(char *) "y", NULL
4405 };
4406
4407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4411 }
4412 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4413 ecode2 = SWIG_AsVal_int(obj1, &val2);
4414 if (!SWIG_IsOK(ecode2)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4416 }
4417 arg2 = static_cast< int >(val2);
4418 ecode3 = SWIG_AsVal_int(obj2, &val3);
4419 if (!SWIG_IsOK(ecode3)) {
4420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4421 }
4422 arg3 = static_cast< int >(val3);
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 (arg1)->SetMargins(arg2,arg3);
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 resultobj = SWIG_Py_Void();
4430 return resultobj;
4431 fail:
4432 return NULL;
4433 }
4434
4435
4436 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4437 PyObject *resultobj = 0;
4438 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4439 int result;
4440 void *argp1 = 0 ;
4441 int res1 = 0 ;
4442 PyObject *swig_obj[1] ;
4443
4444 if (!args) SWIG_fail;
4445 swig_obj[0] = args;
4446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4447 if (!SWIG_IsOK(res1)) {
4448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4449 }
4450 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 resultobj = SWIG_From_int(static_cast< int >(result));
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4465 PyObject *resultobj = 0;
4466 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4467 int result;
4468 void *argp1 = 0 ;
4469 int res1 = 0 ;
4470 PyObject *swig_obj[1] ;
4471
4472 if (!args) SWIG_fail;
4473 swig_obj[0] = args;
4474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4475 if (!SWIG_IsOK(res1)) {
4476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4477 }
4478 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_From_int(static_cast< int >(result));
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 PyObject *obj;
4494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4495 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4496 return SWIG_Py_Void();
4497 }
4498
4499 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4500 return SWIG_Python_InitShadowInstance(args);
4501 }
4502
4503 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4504 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4505 return 1;
4506 }
4507
4508
4509 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4510 PyObject *pyobj = 0;
4511
4512 {
4513 #if wxUSE_UNICODE
4514 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4515 #else
4516 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4517 #endif
4518 }
4519 return pyobj;
4520 }
4521
4522
4523 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj = 0;
4525 wxWindow *arg1 = (wxWindow *) 0 ;
4526 int arg2 = (int) -1 ;
4527 wxString const &arg3_defvalue = wxPyEmptyString ;
4528 wxString *arg3 = (wxString *) &arg3_defvalue ;
4529 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4530 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4531 wxSize const &arg5_defvalue = wxDefaultSize ;
4532 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4533 long arg6 = (long) 0 ;
4534 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4535 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4536 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4537 wxString *arg8 = (wxString *) &arg8_defvalue ;
4538 wxCheckBox *result = 0 ;
4539 void *argp1 = 0 ;
4540 int res1 = 0 ;
4541 int val2 ;
4542 int ecode2 = 0 ;
4543 bool temp3 = false ;
4544 wxPoint temp4 ;
4545 wxSize temp5 ;
4546 long val6 ;
4547 int ecode6 = 0 ;
4548 void *argp7 = 0 ;
4549 int res7 = 0 ;
4550 bool temp8 = false ;
4551 PyObject * obj0 = 0 ;
4552 PyObject * obj1 = 0 ;
4553 PyObject * obj2 = 0 ;
4554 PyObject * obj3 = 0 ;
4555 PyObject * obj4 = 0 ;
4556 PyObject * obj5 = 0 ;
4557 PyObject * obj6 = 0 ;
4558 PyObject * obj7 = 0 ;
4559 char * kwnames[] = {
4560 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4561 };
4562
4563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4565 if (!SWIG_IsOK(res1)) {
4566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4567 }
4568 arg1 = reinterpret_cast< wxWindow * >(argp1);
4569 if (obj1) {
4570 ecode2 = SWIG_AsVal_int(obj1, &val2);
4571 if (!SWIG_IsOK(ecode2)) {
4572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4573 }
4574 arg2 = static_cast< int >(val2);
4575 }
4576 if (obj2) {
4577 {
4578 arg3 = wxString_in_helper(obj2);
4579 if (arg3 == NULL) SWIG_fail;
4580 temp3 = true;
4581 }
4582 }
4583 if (obj3) {
4584 {
4585 arg4 = &temp4;
4586 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4587 }
4588 }
4589 if (obj4) {
4590 {
4591 arg5 = &temp5;
4592 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4593 }
4594 }
4595 if (obj5) {
4596 ecode6 = SWIG_AsVal_long(obj5, &val6);
4597 if (!SWIG_IsOK(ecode6)) {
4598 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4599 }
4600 arg6 = static_cast< long >(val6);
4601 }
4602 if (obj6) {
4603 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4604 if (!SWIG_IsOK(res7)) {
4605 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 if (!argp7) {
4608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4609 }
4610 arg7 = reinterpret_cast< wxValidator * >(argp7);
4611 }
4612 if (obj7) {
4613 {
4614 arg8 = wxString_in_helper(obj7);
4615 if (arg8 == NULL) SWIG_fail;
4616 temp8 = true;
4617 }
4618 }
4619 {
4620 if (!wxPyCheckForApp()) SWIG_fail;
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4627 {
4628 if (temp3)
4629 delete arg3;
4630 }
4631 {
4632 if (temp8)
4633 delete arg8;
4634 }
4635 return resultobj;
4636 fail:
4637 {
4638 if (temp3)
4639 delete arg3;
4640 }
4641 {
4642 if (temp8)
4643 delete arg8;
4644 }
4645 return NULL;
4646 }
4647
4648
4649 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4650 PyObject *resultobj = 0;
4651 wxCheckBox *result = 0 ;
4652
4653 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4654 {
4655 if (!wxPyCheckForApp()) SWIG_fail;
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 result = (wxCheckBox *)new wxCheckBox();
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4662 return resultobj;
4663 fail:
4664 return NULL;
4665 }
4666
4667
4668 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj = 0;
4670 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4671 wxWindow *arg2 = (wxWindow *) 0 ;
4672 int arg3 = (int) -1 ;
4673 wxString const &arg4_defvalue = wxPyEmptyString ;
4674 wxString *arg4 = (wxString *) &arg4_defvalue ;
4675 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4676 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4677 wxSize const &arg6_defvalue = wxDefaultSize ;
4678 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4679 long arg7 = (long) 0 ;
4680 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4681 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4682 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4683 wxString *arg9 = (wxString *) &arg9_defvalue ;
4684 bool result;
4685 void *argp1 = 0 ;
4686 int res1 = 0 ;
4687 void *argp2 = 0 ;
4688 int res2 = 0 ;
4689 int val3 ;
4690 int ecode3 = 0 ;
4691 bool temp4 = false ;
4692 wxPoint temp5 ;
4693 wxSize temp6 ;
4694 long val7 ;
4695 int ecode7 = 0 ;
4696 void *argp8 = 0 ;
4697 int res8 = 0 ;
4698 bool temp9 = false ;
4699 PyObject * obj0 = 0 ;
4700 PyObject * obj1 = 0 ;
4701 PyObject * obj2 = 0 ;
4702 PyObject * obj3 = 0 ;
4703 PyObject * obj4 = 0 ;
4704 PyObject * obj5 = 0 ;
4705 PyObject * obj6 = 0 ;
4706 PyObject * obj7 = 0 ;
4707 PyObject * obj8 = 0 ;
4708 char * kwnames[] = {
4709 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4710 };
4711
4712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4714 if (!SWIG_IsOK(res1)) {
4715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4716 }
4717 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4719 if (!SWIG_IsOK(res2)) {
4720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4721 }
4722 arg2 = reinterpret_cast< wxWindow * >(argp2);
4723 if (obj2) {
4724 ecode3 = SWIG_AsVal_int(obj2, &val3);
4725 if (!SWIG_IsOK(ecode3)) {
4726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4727 }
4728 arg3 = static_cast< int >(val3);
4729 }
4730 if (obj3) {
4731 {
4732 arg4 = wxString_in_helper(obj3);
4733 if (arg4 == NULL) SWIG_fail;
4734 temp4 = true;
4735 }
4736 }
4737 if (obj4) {
4738 {
4739 arg5 = &temp5;
4740 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4741 }
4742 }
4743 if (obj5) {
4744 {
4745 arg6 = &temp6;
4746 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4747 }
4748 }
4749 if (obj6) {
4750 ecode7 = SWIG_AsVal_long(obj6, &val7);
4751 if (!SWIG_IsOK(ecode7)) {
4752 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4753 }
4754 arg7 = static_cast< long >(val7);
4755 }
4756 if (obj7) {
4757 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4758 if (!SWIG_IsOK(res8)) {
4759 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 if (!argp8) {
4762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4763 }
4764 arg8 = reinterpret_cast< wxValidator * >(argp8);
4765 }
4766 if (obj8) {
4767 {
4768 arg9 = wxString_in_helper(obj8);
4769 if (arg9 == NULL) SWIG_fail;
4770 temp9 = true;
4771 }
4772 }
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 {
4780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4781 }
4782 {
4783 if (temp4)
4784 delete arg4;
4785 }
4786 {
4787 if (temp9)
4788 delete arg9;
4789 }
4790 return resultobj;
4791 fail:
4792 {
4793 if (temp4)
4794 delete arg4;
4795 }
4796 {
4797 if (temp9)
4798 delete arg9;
4799 }
4800 return NULL;
4801 }
4802
4803
4804 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4817 }
4818 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (bool)(arg1)->GetValue();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4827 }
4828 return resultobj;
4829 fail:
4830 return NULL;
4831 }
4832
4833
4834 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4835 PyObject *resultobj = 0;
4836 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4837 bool result;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 PyObject *swig_obj[1] ;
4841
4842 if (!args) SWIG_fail;
4843 swig_obj[0] = args;
4844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4847 }
4848 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4849 {
4850 PyThreadState* __tstate = wxPyBeginAllowThreads();
4851 result = (bool)(arg1)->IsChecked();
4852 wxPyEndAllowThreads(__tstate);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 {
4856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4857 }
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj = 0;
4866 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4867 bool arg2 ;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 bool val2 ;
4871 int ecode2 = 0 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 char * kwnames[] = {
4875 (char *) "self",(char *) "state", NULL
4876 };
4877
4878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4880 if (!SWIG_IsOK(res1)) {
4881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4882 }
4883 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4884 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4885 if (!SWIG_IsOK(ecode2)) {
4886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4887 }
4888 arg2 = static_cast< bool >(val2);
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 (arg1)->SetValue(arg2);
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 resultobj = SWIG_Py_Void();
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4903 PyObject *resultobj = 0;
4904 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4905 wxCheckBoxState result;
4906 void *argp1 = 0 ;
4907 int res1 = 0 ;
4908 PyObject *swig_obj[1] ;
4909
4910 if (!args) SWIG_fail;
4911 swig_obj[0] = args;
4912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4913 if (!SWIG_IsOK(res1)) {
4914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4915 }
4916 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 resultobj = SWIG_From_int(static_cast< int >(result));
4924 return resultobj;
4925 fail:
4926 return NULL;
4927 }
4928
4929
4930 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4931 PyObject *resultobj = 0;
4932 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4933 wxCheckBoxState arg2 ;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 int val2 ;
4937 int ecode2 = 0 ;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 char * kwnames[] = {
4941 (char *) "self",(char *) "state", NULL
4942 };
4943
4944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4946 if (!SWIG_IsOK(res1)) {
4947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4948 }
4949 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4950 ecode2 = SWIG_AsVal_int(obj1, &val2);
4951 if (!SWIG_IsOK(ecode2)) {
4952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4953 }
4954 arg2 = static_cast< wxCheckBoxState >(val2);
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 (arg1)->Set3StateValue(arg2);
4958 wxPyEndAllowThreads(__tstate);
4959 if (PyErr_Occurred()) SWIG_fail;
4960 }
4961 resultobj = SWIG_Py_Void();
4962 return resultobj;
4963 fail:
4964 return NULL;
4965 }
4966
4967
4968 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4971 bool result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4991 }
4992 return resultobj;
4993 fail:
4994 return NULL;
4995 }
4996
4997
4998 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4999 PyObject *resultobj = 0;
5000 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5001 bool result;
5002 void *argp1 = 0 ;
5003 int res1 = 0 ;
5004 PyObject *swig_obj[1] ;
5005
5006 if (!args) SWIG_fail;
5007 swig_obj[0] = args;
5008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5009 if (!SWIG_IsOK(res1)) {
5010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5011 }
5012 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 {
5020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5021 }
5022 return resultobj;
5023 fail:
5024 return NULL;
5025 }
5026
5027
5028 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj = 0;
5030 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5031 SwigValueWrapper<wxVisualAttributes > result;
5032 int val1 ;
5033 int ecode1 = 0 ;
5034 PyObject * obj0 = 0 ;
5035 char * kwnames[] = {
5036 (char *) "variant", NULL
5037 };
5038
5039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5040 if (obj0) {
5041 ecode1 = SWIG_AsVal_int(obj0, &val1);
5042 if (!SWIG_IsOK(ecode1)) {
5043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5044 }
5045 arg1 = static_cast< wxWindowVariant >(val1);
5046 }
5047 {
5048 if (!wxPyCheckForApp()) SWIG_fail;
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 PyObject *obj;
5063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5064 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5065 return SWIG_Py_Void();
5066 }
5067
5068 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 return SWIG_Python_InitShadowInstance(args);
5070 }
5071
5072 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5073 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5074 return 1;
5075 }
5076
5077
5078 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5079 PyObject *pyobj = 0;
5080
5081 {
5082 #if wxUSE_UNICODE
5083 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5084 #else
5085 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5086 #endif
5087 }
5088 return pyobj;
5089 }
5090
5091
5092 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj = 0;
5094 wxWindow *arg1 = (wxWindow *) 0 ;
5095 int arg2 = (int) -1 ;
5096 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5097 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5098 wxSize const &arg4_defvalue = wxDefaultSize ;
5099 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5100 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5101 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5102 long arg6 = (long) 0 ;
5103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5105 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5106 wxString *arg8 = (wxString *) &arg8_defvalue ;
5107 wxChoice *result = 0 ;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 int val2 ;
5111 int ecode2 = 0 ;
5112 wxPoint temp3 ;
5113 wxSize temp4 ;
5114 bool temp5 = false ;
5115 long val6 ;
5116 int ecode6 = 0 ;
5117 void *argp7 = 0 ;
5118 int res7 = 0 ;
5119 bool temp8 = false ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 PyObject * obj2 = 0 ;
5123 PyObject * obj3 = 0 ;
5124 PyObject * obj4 = 0 ;
5125 PyObject * obj5 = 0 ;
5126 PyObject * obj6 = 0 ;
5127 PyObject * obj7 = 0 ;
5128 char * kwnames[] = {
5129 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5130 };
5131
5132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5134 if (!SWIG_IsOK(res1)) {
5135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5136 }
5137 arg1 = reinterpret_cast< wxWindow * >(argp1);
5138 if (obj1) {
5139 ecode2 = SWIG_AsVal_int(obj1, &val2);
5140 if (!SWIG_IsOK(ecode2)) {
5141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5142 }
5143 arg2 = static_cast< int >(val2);
5144 }
5145 if (obj2) {
5146 {
5147 arg3 = &temp3;
5148 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5149 }
5150 }
5151 if (obj3) {
5152 {
5153 arg4 = &temp4;
5154 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5155 }
5156 }
5157 if (obj4) {
5158 {
5159 if (! PySequence_Check(obj4)) {
5160 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5161 SWIG_fail;
5162 }
5163 arg5 = new wxArrayString;
5164 temp5 = true;
5165 int i, len=PySequence_Length(obj4);
5166 for (i=0; i<len; i++) {
5167 PyObject* item = PySequence_GetItem(obj4, i);
5168 wxString* s = wxString_in_helper(item);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 arg5->Add(*s);
5171 delete s;
5172 Py_DECREF(item);
5173 }
5174 }
5175 }
5176 if (obj5) {
5177 ecode6 = SWIG_AsVal_long(obj5, &val6);
5178 if (!SWIG_IsOK(ecode6)) {
5179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5180 }
5181 arg6 = static_cast< long >(val6);
5182 }
5183 if (obj6) {
5184 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5185 if (!SWIG_IsOK(res7)) {
5186 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 if (!argp7) {
5189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5190 }
5191 arg7 = reinterpret_cast< wxValidator * >(argp7);
5192 }
5193 if (obj7) {
5194 {
5195 arg8 = wxString_in_helper(obj7);
5196 if (arg8 == NULL) SWIG_fail;
5197 temp8 = true;
5198 }
5199 }
5200 {
5201 if (!wxPyCheckForApp()) SWIG_fail;
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5208 {
5209 if (temp5) delete arg5;
5210 }
5211 {
5212 if (temp8)
5213 delete arg8;
5214 }
5215 return resultobj;
5216 fail:
5217 {
5218 if (temp5) delete arg5;
5219 }
5220 {
5221 if (temp8)
5222 delete arg8;
5223 }
5224 return NULL;
5225 }
5226
5227
5228 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxChoice *result = 0 ;
5231
5232 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5233 {
5234 if (!wxPyCheckForApp()) SWIG_fail;
5235 PyThreadState* __tstate = wxPyBeginAllowThreads();
5236 result = (wxChoice *)new wxChoice();
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5241 return resultobj;
5242 fail:
5243 return NULL;
5244 }
5245
5246
5247 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj = 0;
5249 wxChoice *arg1 = (wxChoice *) 0 ;
5250 wxWindow *arg2 = (wxWindow *) 0 ;
5251 int arg3 = (int) -1 ;
5252 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5253 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5254 wxSize const &arg5_defvalue = wxDefaultSize ;
5255 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5256 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5257 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5258 long arg7 = (long) 0 ;
5259 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5260 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5261 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5262 wxString *arg9 = (wxString *) &arg9_defvalue ;
5263 bool result;
5264 void *argp1 = 0 ;
5265 int res1 = 0 ;
5266 void *argp2 = 0 ;
5267 int res2 = 0 ;
5268 int val3 ;
5269 int ecode3 = 0 ;
5270 wxPoint temp4 ;
5271 wxSize temp5 ;
5272 bool temp6 = false ;
5273 long val7 ;
5274 int ecode7 = 0 ;
5275 void *argp8 = 0 ;
5276 int res8 = 0 ;
5277 bool temp9 = false ;
5278 PyObject * obj0 = 0 ;
5279 PyObject * obj1 = 0 ;
5280 PyObject * obj2 = 0 ;
5281 PyObject * obj3 = 0 ;
5282 PyObject * obj4 = 0 ;
5283 PyObject * obj5 = 0 ;
5284 PyObject * obj6 = 0 ;
5285 PyObject * obj7 = 0 ;
5286 PyObject * obj8 = 0 ;
5287 char * kwnames[] = {
5288 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5289 };
5290
5291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5293 if (!SWIG_IsOK(res1)) {
5294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5295 }
5296 arg1 = reinterpret_cast< wxChoice * >(argp1);
5297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5298 if (!SWIG_IsOK(res2)) {
5299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5300 }
5301 arg2 = reinterpret_cast< wxWindow * >(argp2);
5302 if (obj2) {
5303 ecode3 = SWIG_AsVal_int(obj2, &val3);
5304 if (!SWIG_IsOK(ecode3)) {
5305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5306 }
5307 arg3 = static_cast< int >(val3);
5308 }
5309 if (obj3) {
5310 {
5311 arg4 = &temp4;
5312 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5313 }
5314 }
5315 if (obj4) {
5316 {
5317 arg5 = &temp5;
5318 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5319 }
5320 }
5321 if (obj5) {
5322 {
5323 if (! PySequence_Check(obj5)) {
5324 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5325 SWIG_fail;
5326 }
5327 arg6 = new wxArrayString;
5328 temp6 = true;
5329 int i, len=PySequence_Length(obj5);
5330 for (i=0; i<len; i++) {
5331 PyObject* item = PySequence_GetItem(obj5, i);
5332 wxString* s = wxString_in_helper(item);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 arg6->Add(*s);
5335 delete s;
5336 Py_DECREF(item);
5337 }
5338 }
5339 }
5340 if (obj6) {
5341 ecode7 = SWIG_AsVal_long(obj6, &val7);
5342 if (!SWIG_IsOK(ecode7)) {
5343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5344 }
5345 arg7 = static_cast< long >(val7);
5346 }
5347 if (obj7) {
5348 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5349 if (!SWIG_IsOK(res8)) {
5350 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 if (!argp8) {
5353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5354 }
5355 arg8 = reinterpret_cast< wxValidator * >(argp8);
5356 }
5357 if (obj8) {
5358 {
5359 arg9 = wxString_in_helper(obj8);
5360 if (arg9 == NULL) SWIG_fail;
5361 temp9 = true;
5362 }
5363 }
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 {
5371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5372 }
5373 {
5374 if (temp6) delete arg6;
5375 }
5376 {
5377 if (temp9)
5378 delete arg9;
5379 }
5380 return resultobj;
5381 fail:
5382 {
5383 if (temp6) delete arg6;
5384 }
5385 {
5386 if (temp9)
5387 delete arg9;
5388 }
5389 return NULL;
5390 }
5391
5392
5393 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5394 PyObject *resultobj = 0;
5395 wxChoice *arg1 = (wxChoice *) 0 ;
5396 int result;
5397 void *argp1 = 0 ;
5398 int res1 = 0 ;
5399 PyObject *swig_obj[1] ;
5400
5401 if (!args) SWIG_fail;
5402 swig_obj[0] = args;
5403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5406 }
5407 arg1 = reinterpret_cast< wxChoice * >(argp1);
5408 {
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = SWIG_From_int(static_cast< int >(result));
5415 return resultobj;
5416 fail:
5417 return NULL;
5418 }
5419
5420
5421 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj = 0;
5423 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5424 SwigValueWrapper<wxVisualAttributes > result;
5425 int val1 ;
5426 int ecode1 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 char * kwnames[] = {
5429 (char *) "variant", NULL
5430 };
5431
5432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5433 if (obj0) {
5434 ecode1 = SWIG_AsVal_int(obj0, &val1);
5435 if (!SWIG_IsOK(ecode1)) {
5436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5437 }
5438 arg1 = static_cast< wxWindowVariant >(val1);
5439 }
5440 {
5441 if (!wxPyCheckForApp()) SWIG_fail;
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 result = wxChoice::GetClassDefaultAttributes(arg1);
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5448 return resultobj;
5449 fail:
5450 return NULL;
5451 }
5452
5453
5454 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 PyObject *obj;
5456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5457 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5458 return SWIG_Py_Void();
5459 }
5460
5461 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5462 return SWIG_Python_InitShadowInstance(args);
5463 }
5464
5465 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5466 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5467 return 1;
5468 }
5469
5470
5471 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5472 PyObject *pyobj = 0;
5473
5474 {
5475 #if wxUSE_UNICODE
5476 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5477 #else
5478 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5479 #endif
5480 }
5481 return pyobj;
5482 }
5483
5484
5485 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj = 0;
5487 wxWindow *arg1 = (wxWindow *) 0 ;
5488 int arg2 = (int) -1 ;
5489 wxString const &arg3_defvalue = wxPyEmptyString ;
5490 wxString *arg3 = (wxString *) &arg3_defvalue ;
5491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5493 wxSize const &arg5_defvalue = wxDefaultSize ;
5494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5495 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5496 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5497 long arg7 = (long) 0 ;
5498 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5499 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5500 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5501 wxString *arg9 = (wxString *) &arg9_defvalue ;
5502 wxComboBox *result = 0 ;
5503 void *argp1 = 0 ;
5504 int res1 = 0 ;
5505 int val2 ;
5506 int ecode2 = 0 ;
5507 bool temp3 = false ;
5508 wxPoint temp4 ;
5509 wxSize temp5 ;
5510 bool temp6 = false ;
5511 long val7 ;
5512 int ecode7 = 0 ;
5513 void *argp8 = 0 ;
5514 int res8 = 0 ;
5515 bool temp9 = false ;
5516 PyObject * obj0 = 0 ;
5517 PyObject * obj1 = 0 ;
5518 PyObject * obj2 = 0 ;
5519 PyObject * obj3 = 0 ;
5520 PyObject * obj4 = 0 ;
5521 PyObject * obj5 = 0 ;
5522 PyObject * obj6 = 0 ;
5523 PyObject * obj7 = 0 ;
5524 PyObject * obj8 = 0 ;
5525 char * kwnames[] = {
5526 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5527 };
5528
5529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5533 }
5534 arg1 = reinterpret_cast< wxWindow * >(argp1);
5535 if (obj1) {
5536 ecode2 = SWIG_AsVal_int(obj1, &val2);
5537 if (!SWIG_IsOK(ecode2)) {
5538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5539 }
5540 arg2 = static_cast< int >(val2);
5541 }
5542 if (obj2) {
5543 {
5544 arg3 = wxString_in_helper(obj2);
5545 if (arg3 == NULL) SWIG_fail;
5546 temp3 = true;
5547 }
5548 }
5549 if (obj3) {
5550 {
5551 arg4 = &temp4;
5552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5553 }
5554 }
5555 if (obj4) {
5556 {
5557 arg5 = &temp5;
5558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5559 }
5560 }
5561 if (obj5) {
5562 {
5563 if (! PySequence_Check(obj5)) {
5564 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5565 SWIG_fail;
5566 }
5567 arg6 = new wxArrayString;
5568 temp6 = true;
5569 int i, len=PySequence_Length(obj5);
5570 for (i=0; i<len; i++) {
5571 PyObject* item = PySequence_GetItem(obj5, i);
5572 wxString* s = wxString_in_helper(item);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 arg6->Add(*s);
5575 delete s;
5576 Py_DECREF(item);
5577 }
5578 }
5579 }
5580 if (obj6) {
5581 ecode7 = SWIG_AsVal_long(obj6, &val7);
5582 if (!SWIG_IsOK(ecode7)) {
5583 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5584 }
5585 arg7 = static_cast< long >(val7);
5586 }
5587 if (obj7) {
5588 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5589 if (!SWIG_IsOK(res8)) {
5590 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 if (!argp8) {
5593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5594 }
5595 arg8 = reinterpret_cast< wxValidator * >(argp8);
5596 }
5597 if (obj8) {
5598 {
5599 arg9 = wxString_in_helper(obj8);
5600 if (arg9 == NULL) SWIG_fail;
5601 temp9 = true;
5602 }
5603 }
5604 {
5605 if (!wxPyCheckForApp()) SWIG_fail;
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 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);
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5612 {
5613 if (temp3)
5614 delete arg3;
5615 }
5616 {
5617 if (temp6) delete arg6;
5618 }
5619 {
5620 if (temp9)
5621 delete arg9;
5622 }
5623 return resultobj;
5624 fail:
5625 {
5626 if (temp3)
5627 delete arg3;
5628 }
5629 {
5630 if (temp6) delete arg6;
5631 }
5632 {
5633 if (temp9)
5634 delete arg9;
5635 }
5636 return NULL;
5637 }
5638
5639
5640 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 wxComboBox *result = 0 ;
5643
5644 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5645 {
5646 if (!wxPyCheckForApp()) SWIG_fail;
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (wxComboBox *)new wxComboBox();
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5653 return resultobj;
5654 fail:
5655 return NULL;
5656 }
5657
5658
5659 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj = 0;
5661 wxComboBox *arg1 = (wxComboBox *) 0 ;
5662 wxWindow *arg2 = (wxWindow *) 0 ;
5663 int arg3 = (int) -1 ;
5664 wxString const &arg4_defvalue = wxPyEmptyString ;
5665 wxString *arg4 = (wxString *) &arg4_defvalue ;
5666 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5667 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5668 wxSize const &arg6_defvalue = wxDefaultSize ;
5669 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5670 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5671 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5672 long arg8 = (long) 0 ;
5673 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5674 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5675 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5676 wxString *arg10 = (wxString *) &arg10_defvalue ;
5677 bool result;
5678 void *argp1 = 0 ;
5679 int res1 = 0 ;
5680 void *argp2 = 0 ;
5681 int res2 = 0 ;
5682 int val3 ;
5683 int ecode3 = 0 ;
5684 bool temp4 = false ;
5685 wxPoint temp5 ;
5686 wxSize temp6 ;
5687 bool temp7 = false ;
5688 long val8 ;
5689 int ecode8 = 0 ;
5690 void *argp9 = 0 ;
5691 int res9 = 0 ;
5692 bool temp10 = false ;
5693 PyObject * obj0 = 0 ;
5694 PyObject * obj1 = 0 ;
5695 PyObject * obj2 = 0 ;
5696 PyObject * obj3 = 0 ;
5697 PyObject * obj4 = 0 ;
5698 PyObject * obj5 = 0 ;
5699 PyObject * obj6 = 0 ;
5700 PyObject * obj7 = 0 ;
5701 PyObject * obj8 = 0 ;
5702 PyObject * obj9 = 0 ;
5703 char * kwnames[] = {
5704 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5705 };
5706
5707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5709 if (!SWIG_IsOK(res1)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5711 }
5712 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5714 if (!SWIG_IsOK(res2)) {
5715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5716 }
5717 arg2 = reinterpret_cast< wxWindow * >(argp2);
5718 if (obj2) {
5719 ecode3 = SWIG_AsVal_int(obj2, &val3);
5720 if (!SWIG_IsOK(ecode3)) {
5721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5722 }
5723 arg3 = static_cast< int >(val3);
5724 }
5725 if (obj3) {
5726 {
5727 arg4 = wxString_in_helper(obj3);
5728 if (arg4 == NULL) SWIG_fail;
5729 temp4 = true;
5730 }
5731 }
5732 if (obj4) {
5733 {
5734 arg5 = &temp5;
5735 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5736 }
5737 }
5738 if (obj5) {
5739 {
5740 arg6 = &temp6;
5741 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5742 }
5743 }
5744 if (obj6) {
5745 {
5746 if (! PySequence_Check(obj6)) {
5747 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5748 SWIG_fail;
5749 }
5750 arg7 = new wxArrayString;
5751 temp7 = true;
5752 int i, len=PySequence_Length(obj6);
5753 for (i=0; i<len; i++) {
5754 PyObject* item = PySequence_GetItem(obj6, i);
5755 wxString* s = wxString_in_helper(item);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 arg7->Add(*s);
5758 delete s;
5759 Py_DECREF(item);
5760 }
5761 }
5762 }
5763 if (obj7) {
5764 ecode8 = SWIG_AsVal_long(obj7, &val8);
5765 if (!SWIG_IsOK(ecode8)) {
5766 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5767 }
5768 arg8 = static_cast< long >(val8);
5769 }
5770 if (obj8) {
5771 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5772 if (!SWIG_IsOK(res9)) {
5773 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5774 }
5775 if (!argp9) {
5776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5777 }
5778 arg9 = reinterpret_cast< wxValidator * >(argp9);
5779 }
5780 if (obj9) {
5781 {
5782 arg10 = wxString_in_helper(obj9);
5783 if (arg10 == NULL) SWIG_fail;
5784 temp10 = true;
5785 }
5786 }
5787 {
5788 PyThreadState* __tstate = wxPyBeginAllowThreads();
5789 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);
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 {
5794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5795 }
5796 {
5797 if (temp4)
5798 delete arg4;
5799 }
5800 {
5801 if (temp7) delete arg7;
5802 }
5803 {
5804 if (temp10)
5805 delete arg10;
5806 }
5807 return resultobj;
5808 fail:
5809 {
5810 if (temp4)
5811 delete arg4;
5812 }
5813 {
5814 if (temp7) delete arg7;
5815 }
5816 {
5817 if (temp10)
5818 delete arg10;
5819 }
5820 return NULL;
5821 }
5822
5823
5824 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5825 PyObject *resultobj = 0;
5826 wxComboBox *arg1 = (wxComboBox *) 0 ;
5827 wxString result;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 PyObject *swig_obj[1] ;
5831
5832 if (!args) SWIG_fail;
5833 swig_obj[0] = args;
5834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5837 }
5838 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = ((wxComboBox const *)arg1)->GetValue();
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 {
5846 #if wxUSE_UNICODE
5847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5848 #else
5849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5850 #endif
5851 }
5852 return resultobj;
5853 fail:
5854 return NULL;
5855 }
5856
5857
5858 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj = 0;
5860 wxComboBox *arg1 = (wxComboBox *) 0 ;
5861 wxString *arg2 = 0 ;
5862 void *argp1 = 0 ;
5863 int res1 = 0 ;
5864 bool temp2 = false ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "self",(char *) "value", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5873 if (!SWIG_IsOK(res1)) {
5874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5875 }
5876 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5877 {
5878 arg2 = wxString_in_helper(obj1);
5879 if (arg2 == NULL) SWIG_fail;
5880 temp2 = true;
5881 }
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 (arg1)->SetValue((wxString const &)*arg2);
5885 wxPyEndAllowThreads(__tstate);
5886 if (PyErr_Occurred()) SWIG_fail;
5887 }
5888 resultobj = SWIG_Py_Void();
5889 {
5890 if (temp2)
5891 delete arg2;
5892 }
5893 return resultobj;
5894 fail:
5895 {
5896 if (temp2)
5897 delete arg2;
5898 }
5899 return NULL;
5900 }
5901
5902
5903 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5904 PyObject *resultobj = 0;
5905 wxComboBox *arg1 = (wxComboBox *) 0 ;
5906 void *argp1 = 0 ;
5907 int res1 = 0 ;
5908 PyObject *swig_obj[1] ;
5909
5910 if (!args) SWIG_fail;
5911 swig_obj[0] = args;
5912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5915 }
5916 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 (arg1)->Copy();
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 resultobj = SWIG_Py_Void();
5924 return resultobj;
5925 fail:
5926 return NULL;
5927 }
5928
5929
5930 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5931 PyObject *resultobj = 0;
5932 wxComboBox *arg1 = (wxComboBox *) 0 ;
5933 void *argp1 = 0 ;
5934 int res1 = 0 ;
5935 PyObject *swig_obj[1] ;
5936
5937 if (!args) SWIG_fail;
5938 swig_obj[0] = args;
5939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5942 }
5943 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 (arg1)->Cut();
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 resultobj = SWIG_Py_Void();
5951 return resultobj;
5952 fail:
5953 return NULL;
5954 }
5955
5956
5957 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5958 PyObject *resultobj = 0;
5959 wxComboBox *arg1 = (wxComboBox *) 0 ;
5960 void *argp1 = 0 ;
5961 int res1 = 0 ;
5962 PyObject *swig_obj[1] ;
5963
5964 if (!args) SWIG_fail;
5965 swig_obj[0] = args;
5966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5967 if (!SWIG_IsOK(res1)) {
5968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5969 }
5970 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 (arg1)->Paste();
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_Py_Void();
5978 return resultobj;
5979 fail:
5980 return NULL;
5981 }
5982
5983
5984 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj = 0;
5986 wxComboBox *arg1 = (wxComboBox *) 0 ;
5987 long arg2 ;
5988 void *argp1 = 0 ;
5989 int res1 = 0 ;
5990 long val2 ;
5991 int ecode2 = 0 ;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 char * kwnames[] = {
5995 (char *) "self",(char *) "pos", NULL
5996 };
5997
5998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6000 if (!SWIG_IsOK(res1)) {
6001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6002 }
6003 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6004 ecode2 = SWIG_AsVal_long(obj1, &val2);
6005 if (!SWIG_IsOK(ecode2)) {
6006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6007 }
6008 arg2 = static_cast< long >(val2);
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 (arg1)->SetInsertionPoint(arg2);
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 resultobj = SWIG_Py_Void();
6016 return resultobj;
6017 fail:
6018 return NULL;
6019 }
6020
6021
6022 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6023 PyObject *resultobj = 0;
6024 wxComboBox *arg1 = (wxComboBox *) 0 ;
6025 long result;
6026 void *argp1 = 0 ;
6027 int res1 = 0 ;
6028 PyObject *swig_obj[1] ;
6029
6030 if (!args) SWIG_fail;
6031 swig_obj[0] = args;
6032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6033 if (!SWIG_IsOK(res1)) {
6034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6035 }
6036 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 resultobj = SWIG_From_long(static_cast< long >(result));
6044 return resultobj;
6045 fail:
6046 return NULL;
6047 }
6048
6049
6050 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6051 PyObject *resultobj = 0;
6052 wxComboBox *arg1 = (wxComboBox *) 0 ;
6053 long result;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 PyObject *swig_obj[1] ;
6057
6058 if (!args) SWIG_fail;
6059 swig_obj[0] = args;
6060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6061 if (!SWIG_IsOK(res1)) {
6062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6063 }
6064 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_From_long(static_cast< long >(result));
6072 return resultobj;
6073 fail:
6074 return NULL;
6075 }
6076
6077
6078 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6079 PyObject *resultobj = 0;
6080 wxComboBox *arg1 = (wxComboBox *) 0 ;
6081 long arg2 ;
6082 long arg3 ;
6083 wxString *arg4 = 0 ;
6084 void *argp1 = 0 ;
6085 int res1 = 0 ;
6086 long val2 ;
6087 int ecode2 = 0 ;
6088 long val3 ;
6089 int ecode3 = 0 ;
6090 bool temp4 = false ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 PyObject * obj2 = 0 ;
6094 PyObject * obj3 = 0 ;
6095 char * kwnames[] = {
6096 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6097 };
6098
6099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6101 if (!SWIG_IsOK(res1)) {
6102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6103 }
6104 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6105 ecode2 = SWIG_AsVal_long(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6108 }
6109 arg2 = static_cast< long >(val2);
6110 ecode3 = SWIG_AsVal_long(obj2, &val3);
6111 if (!SWIG_IsOK(ecode3)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6113 }
6114 arg3 = static_cast< long >(val3);
6115 {
6116 arg4 = wxString_in_helper(obj3);
6117 if (arg4 == NULL) SWIG_fail;
6118 temp4 = true;
6119 }
6120 {
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 resultobj = SWIG_Py_Void();
6127 {
6128 if (temp4)
6129 delete arg4;
6130 }
6131 return resultobj;
6132 fail:
6133 {
6134 if (temp4)
6135 delete arg4;
6136 }
6137 return NULL;
6138 }
6139
6140
6141 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj = 0;
6143 wxComboBox *arg1 = (wxComboBox *) 0 ;
6144 long arg2 ;
6145 long arg3 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 long val2 ;
6149 int ecode2 = 0 ;
6150 long val3 ;
6151 int ecode3 = 0 ;
6152 PyObject * obj0 = 0 ;
6153 PyObject * obj1 = 0 ;
6154 PyObject * obj2 = 0 ;
6155 char * kwnames[] = {
6156 (char *) "self",(char *) "from",(char *) "to", NULL
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6161 if (!SWIG_IsOK(res1)) {
6162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6163 }
6164 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6165 ecode2 = SWIG_AsVal_long(obj1, &val2);
6166 if (!SWIG_IsOK(ecode2)) {
6167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6168 }
6169 arg2 = static_cast< long >(val2);
6170 ecode3 = SWIG_AsVal_long(obj2, &val3);
6171 if (!SWIG_IsOK(ecode3)) {
6172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6173 }
6174 arg3 = static_cast< long >(val3);
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 (arg1)->SetSelection(arg2,arg3);
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_Py_Void();
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 wxComboBox *arg1 = (wxComboBox *) 0 ;
6191 long *arg2 = (long *) 0 ;
6192 long *arg3 = (long *) 0 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 long temp2 ;
6196 int res2 = SWIG_TMPOBJ ;
6197 long temp3 ;
6198 int res3 = SWIG_TMPOBJ ;
6199 PyObject *swig_obj[1] ;
6200
6201 arg2 = &temp2;
6202 arg3 = &temp3;
6203 if (!args) SWIG_fail;
6204 swig_obj[0] = args;
6205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6206 if (!SWIG_IsOK(res1)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6208 }
6209 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 (arg1)->GetSelection(arg2,arg3);
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_Py_Void();
6217 if (SWIG_IsTmpObj(res2)) {
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6219 } else {
6220 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6222 }
6223 if (SWIG_IsTmpObj(res3)) {
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6225 } else {
6226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6228 }
6229 return resultobj;
6230 fail:
6231 return NULL;
6232 }
6233
6234
6235 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6236 PyObject *resultobj = 0;
6237 wxComboBox *arg1 = (wxComboBox *) 0 ;
6238 int result;
6239 void *argp1 = 0 ;
6240 int res1 = 0 ;
6241 PyObject *swig_obj[1] ;
6242
6243 if (!args) SWIG_fail;
6244 swig_obj[0] = args;
6245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6246 if (!SWIG_IsOK(res1)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6248 }
6249 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6250 {
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 resultobj = SWIG_From_int(static_cast< int >(result));
6257 return resultobj;
6258 fail:
6259 return NULL;
6260 }
6261
6262
6263 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj = 0;
6265 wxComboBox *arg1 = (wxComboBox *) 0 ;
6266 wxString *arg2 = 0 ;
6267 bool result;
6268 void *argp1 = 0 ;
6269 int res1 = 0 ;
6270 bool temp2 = false ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 char * kwnames[] = {
6274 (char *) "self",(char *) "string", NULL
6275 };
6276
6277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6279 if (!SWIG_IsOK(res1)) {
6280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6281 }
6282 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6283 {
6284 arg2 = wxString_in_helper(obj1);
6285 if (arg2 == NULL) SWIG_fail;
6286 temp2 = true;
6287 }
6288 {
6289 PyThreadState* __tstate = wxPyBeginAllowThreads();
6290 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 }
6294 {
6295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6296 }
6297 {
6298 if (temp2)
6299 delete arg2;
6300 }
6301 return resultobj;
6302 fail:
6303 {
6304 if (temp2)
6305 delete arg2;
6306 }
6307 return NULL;
6308 }
6309
6310
6311 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj = 0;
6313 wxComboBox *arg1 = (wxComboBox *) 0 ;
6314 bool arg2 ;
6315 void *argp1 = 0 ;
6316 int res1 = 0 ;
6317 bool val2 ;
6318 int ecode2 = 0 ;
6319 PyObject * obj0 = 0 ;
6320 PyObject * obj1 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "editable", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6329 }
6330 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6331 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6332 if (!SWIG_IsOK(ecode2)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6334 }
6335 arg2 = static_cast< bool >(val2);
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 (arg1)->SetEditable(arg2);
6339 wxPyEndAllowThreads(__tstate);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 }
6342 resultobj = SWIG_Py_Void();
6343 return resultobj;
6344 fail:
6345 return NULL;
6346 }
6347
6348
6349 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6350 PyObject *resultobj = 0;
6351 wxComboBox *arg1 = (wxComboBox *) 0 ;
6352 void *argp1 = 0 ;
6353 int res1 = 0 ;
6354 PyObject *swig_obj[1] ;
6355
6356 if (!args) SWIG_fail;
6357 swig_obj[0] = args;
6358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6359 if (!SWIG_IsOK(res1)) {
6360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6361 }
6362 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 (arg1)->SetInsertionPointEnd();
6366 wxPyEndAllowThreads(__tstate);
6367 if (PyErr_Occurred()) SWIG_fail;
6368 }
6369 resultobj = SWIG_Py_Void();
6370 return resultobj;
6371 fail:
6372 return NULL;
6373 }
6374
6375
6376 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6377 PyObject *resultobj = 0;
6378 wxComboBox *arg1 = (wxComboBox *) 0 ;
6379 long arg2 ;
6380 long arg3 ;
6381 void *argp1 = 0 ;
6382 int res1 = 0 ;
6383 long val2 ;
6384 int ecode2 = 0 ;
6385 long val3 ;
6386 int ecode3 = 0 ;
6387 PyObject * obj0 = 0 ;
6388 PyObject * obj1 = 0 ;
6389 PyObject * obj2 = 0 ;
6390 char * kwnames[] = {
6391 (char *) "self",(char *) "from",(char *) "to", NULL
6392 };
6393
6394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6398 }
6399 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6400 ecode2 = SWIG_AsVal_long(obj1, &val2);
6401 if (!SWIG_IsOK(ecode2)) {
6402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6403 }
6404 arg2 = static_cast< long >(val2);
6405 ecode3 = SWIG_AsVal_long(obj2, &val3);
6406 if (!SWIG_IsOK(ecode3)) {
6407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6408 }
6409 arg3 = static_cast< long >(val3);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 (arg1)->Remove(arg2,arg3);
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424 PyObject *resultobj = 0;
6425 wxComboBox *arg1 = (wxComboBox *) 0 ;
6426 bool result;
6427 void *argp1 = 0 ;
6428 int res1 = 0 ;
6429 PyObject *swig_obj[1] ;
6430
6431 if (!args) SWIG_fail;
6432 swig_obj[0] = args;
6433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6434 if (!SWIG_IsOK(res1)) {
6435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6436 }
6437 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6438 {
6439 PyThreadState* __tstate = wxPyBeginAllowThreads();
6440 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 {
6445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6446 }
6447 return resultobj;
6448 fail:
6449 return NULL;
6450 }
6451
6452
6453 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6454 PyObject *resultobj = 0;
6455 wxComboBox *arg1 = (wxComboBox *) 0 ;
6456 void *argp1 = 0 ;
6457 int res1 = 0 ;
6458 PyObject *swig_obj[1] ;
6459
6460 if (!args) SWIG_fail;
6461 swig_obj[0] = args;
6462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6463 if (!SWIG_IsOK(res1)) {
6464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6465 }
6466 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6467 {
6468 PyThreadState* __tstate = wxPyBeginAllowThreads();
6469 (arg1)->Undo();
6470 wxPyEndAllowThreads(__tstate);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 resultobj = SWIG_Py_Void();
6474 return resultobj;
6475 fail:
6476 return NULL;
6477 }
6478
6479
6480 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6481 PyObject *resultobj = 0;
6482 wxComboBox *arg1 = (wxComboBox *) 0 ;
6483 void *argp1 = 0 ;
6484 int res1 = 0 ;
6485 PyObject *swig_obj[1] ;
6486
6487 if (!args) SWIG_fail;
6488 swig_obj[0] = args;
6489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6490 if (!SWIG_IsOK(res1)) {
6491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6492 }
6493 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6494 {
6495 PyThreadState* __tstate = wxPyBeginAllowThreads();
6496 (arg1)->Redo();
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) SWIG_fail;
6499 }
6500 resultobj = SWIG_Py_Void();
6501 return resultobj;
6502 fail:
6503 return NULL;
6504 }
6505
6506
6507 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6508 PyObject *resultobj = 0;
6509 wxComboBox *arg1 = (wxComboBox *) 0 ;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 PyObject *swig_obj[1] ;
6513
6514 if (!args) SWIG_fail;
6515 swig_obj[0] = args;
6516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6519 }
6520 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 (arg1)->SelectAll();
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_Py_Void();
6528 return resultobj;
6529 fail:
6530 return NULL;
6531 }
6532
6533
6534 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6535 PyObject *resultobj = 0;
6536 wxComboBox *arg1 = (wxComboBox *) 0 ;
6537 bool result;
6538 void *argp1 = 0 ;
6539 int res1 = 0 ;
6540 PyObject *swig_obj[1] ;
6541
6542 if (!args) SWIG_fail;
6543 swig_obj[0] = args;
6544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6545 if (!SWIG_IsOK(res1)) {
6546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6547 }
6548 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6552 wxPyEndAllowThreads(__tstate);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 {
6556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6557 }
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6565 PyObject *resultobj = 0;
6566 wxComboBox *arg1 = (wxComboBox *) 0 ;
6567 bool result;
6568 void *argp1 = 0 ;
6569 int res1 = 0 ;
6570 PyObject *swig_obj[1] ;
6571
6572 if (!args) SWIG_fail;
6573 swig_obj[0] = args;
6574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6575 if (!SWIG_IsOK(res1)) {
6576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6577 }
6578 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6579 {
6580 PyThreadState* __tstate = wxPyBeginAllowThreads();
6581 result = (bool)((wxComboBox const *)arg1)->CanCut();
6582 wxPyEndAllowThreads(__tstate);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 {
6586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6587 }
6588 return resultobj;
6589 fail:
6590 return NULL;
6591 }
6592
6593
6594 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6595 PyObject *resultobj = 0;
6596 wxComboBox *arg1 = (wxComboBox *) 0 ;
6597 bool result;
6598 void *argp1 = 0 ;
6599 int res1 = 0 ;
6600 PyObject *swig_obj[1] ;
6601
6602 if (!args) SWIG_fail;
6603 swig_obj[0] = args;
6604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6605 if (!SWIG_IsOK(res1)) {
6606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6607 }
6608 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6609 {
6610 PyThreadState* __tstate = wxPyBeginAllowThreads();
6611 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6612 wxPyEndAllowThreads(__tstate);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
6615 {
6616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6617 }
6618 return resultobj;
6619 fail:
6620 return NULL;
6621 }
6622
6623
6624 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6625 PyObject *resultobj = 0;
6626 wxComboBox *arg1 = (wxComboBox *) 0 ;
6627 bool result;
6628 void *argp1 = 0 ;
6629 int res1 = 0 ;
6630 PyObject *swig_obj[1] ;
6631
6632 if (!args) SWIG_fail;
6633 swig_obj[0] = args;
6634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6635 if (!SWIG_IsOK(res1)) {
6636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6637 }
6638 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6639 {
6640 PyThreadState* __tstate = wxPyBeginAllowThreads();
6641 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 {
6646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6647 }
6648 return resultobj;
6649 fail:
6650 return NULL;
6651 }
6652
6653
6654 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6655 PyObject *resultobj = 0;
6656 wxComboBox *arg1 = (wxComboBox *) 0 ;
6657 bool result;
6658 void *argp1 = 0 ;
6659 int res1 = 0 ;
6660 PyObject *swig_obj[1] ;
6661
6662 if (!args) SWIG_fail;
6663 swig_obj[0] = args;
6664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6665 if (!SWIG_IsOK(res1)) {
6666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6667 }
6668 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 {
6676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6677 }
6678 return resultobj;
6679 fail:
6680 return NULL;
6681 }
6682
6683
6684 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj = 0;
6686 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6687 SwigValueWrapper<wxVisualAttributes > result;
6688 int val1 ;
6689 int ecode1 = 0 ;
6690 PyObject * obj0 = 0 ;
6691 char * kwnames[] = {
6692 (char *) "variant", NULL
6693 };
6694
6695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6696 if (obj0) {
6697 ecode1 = SWIG_AsVal_int(obj0, &val1);
6698 if (!SWIG_IsOK(ecode1)) {
6699 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6700 }
6701 arg1 = static_cast< wxWindowVariant >(val1);
6702 }
6703 {
6704 if (!wxPyCheckForApp()) SWIG_fail;
6705 PyThreadState* __tstate = wxPyBeginAllowThreads();
6706 result = wxComboBox::GetClassDefaultAttributes(arg1);
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6711 return resultobj;
6712 fail:
6713 return NULL;
6714 }
6715
6716
6717 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6718 PyObject *obj;
6719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6720 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6721 return SWIG_Py_Void();
6722 }
6723
6724 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6725 return SWIG_Python_InitShadowInstance(args);
6726 }
6727
6728 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6729 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6730 return 1;
6731 }
6732
6733
6734 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6735 PyObject *pyobj = 0;
6736
6737 {
6738 #if wxUSE_UNICODE
6739 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6740 #else
6741 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6742 #endif
6743 }
6744 return pyobj;
6745 }
6746
6747
6748 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj = 0;
6750 wxWindow *arg1 = (wxWindow *) 0 ;
6751 int arg2 = (int) -1 ;
6752 int arg3 = (int) 100 ;
6753 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6754 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6755 wxSize const &arg5_defvalue = wxDefaultSize ;
6756 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6757 long arg6 = (long) wxGA_HORIZONTAL ;
6758 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6759 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6760 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6761 wxString *arg8 = (wxString *) &arg8_defvalue ;
6762 wxGauge *result = 0 ;
6763 void *argp1 = 0 ;
6764 int res1 = 0 ;
6765 int val2 ;
6766 int ecode2 = 0 ;
6767 int val3 ;
6768 int ecode3 = 0 ;
6769 wxPoint temp4 ;
6770 wxSize temp5 ;
6771 long val6 ;
6772 int ecode6 = 0 ;
6773 void *argp7 = 0 ;
6774 int res7 = 0 ;
6775 bool temp8 = false ;
6776 PyObject * obj0 = 0 ;
6777 PyObject * obj1 = 0 ;
6778 PyObject * obj2 = 0 ;
6779 PyObject * obj3 = 0 ;
6780 PyObject * obj4 = 0 ;
6781 PyObject * obj5 = 0 ;
6782 PyObject * obj6 = 0 ;
6783 PyObject * obj7 = 0 ;
6784 char * kwnames[] = {
6785 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6786 };
6787
6788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6790 if (!SWIG_IsOK(res1)) {
6791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6792 }
6793 arg1 = reinterpret_cast< wxWindow * >(argp1);
6794 if (obj1) {
6795 ecode2 = SWIG_AsVal_int(obj1, &val2);
6796 if (!SWIG_IsOK(ecode2)) {
6797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6798 }
6799 arg2 = static_cast< int >(val2);
6800 }
6801 if (obj2) {
6802 ecode3 = SWIG_AsVal_int(obj2, &val3);
6803 if (!SWIG_IsOK(ecode3)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6805 }
6806 arg3 = static_cast< int >(val3);
6807 }
6808 if (obj3) {
6809 {
6810 arg4 = &temp4;
6811 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6812 }
6813 }
6814 if (obj4) {
6815 {
6816 arg5 = &temp5;
6817 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6818 }
6819 }
6820 if (obj5) {
6821 ecode6 = SWIG_AsVal_long(obj5, &val6);
6822 if (!SWIG_IsOK(ecode6)) {
6823 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6824 }
6825 arg6 = static_cast< long >(val6);
6826 }
6827 if (obj6) {
6828 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6829 if (!SWIG_IsOK(res7)) {
6830 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6831 }
6832 if (!argp7) {
6833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6834 }
6835 arg7 = reinterpret_cast< wxValidator * >(argp7);
6836 }
6837 if (obj7) {
6838 {
6839 arg8 = wxString_in_helper(obj7);
6840 if (arg8 == NULL) SWIG_fail;
6841 temp8 = true;
6842 }
6843 }
6844 {
6845 if (!wxPyCheckForApp()) SWIG_fail;
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6852 {
6853 if (temp8)
6854 delete arg8;
6855 }
6856 return resultobj;
6857 fail:
6858 {
6859 if (temp8)
6860 delete arg8;
6861 }
6862 return NULL;
6863 }
6864
6865
6866 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6867 PyObject *resultobj = 0;
6868 wxGauge *result = 0 ;
6869
6870 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6871 {
6872 if (!wxPyCheckForApp()) SWIG_fail;
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 result = (wxGauge *)new wxGauge();
6875 wxPyEndAllowThreads(__tstate);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6879 return resultobj;
6880 fail:
6881 return NULL;
6882 }
6883
6884
6885 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6886 PyObject *resultobj = 0;
6887 wxGauge *arg1 = (wxGauge *) 0 ;
6888 wxWindow *arg2 = (wxWindow *) 0 ;
6889 int arg3 = (int) -1 ;
6890 int arg4 = (int) 100 ;
6891 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6892 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6893 wxSize const &arg6_defvalue = wxDefaultSize ;
6894 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6895 long arg7 = (long) wxGA_HORIZONTAL ;
6896 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6897 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6898 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6899 wxString *arg9 = (wxString *) &arg9_defvalue ;
6900 bool result;
6901 void *argp1 = 0 ;
6902 int res1 = 0 ;
6903 void *argp2 = 0 ;
6904 int res2 = 0 ;
6905 int val3 ;
6906 int ecode3 = 0 ;
6907 int val4 ;
6908 int ecode4 = 0 ;
6909 wxPoint temp5 ;
6910 wxSize temp6 ;
6911 long val7 ;
6912 int ecode7 = 0 ;
6913 void *argp8 = 0 ;
6914 int res8 = 0 ;
6915 bool temp9 = false ;
6916 PyObject * obj0 = 0 ;
6917 PyObject * obj1 = 0 ;
6918 PyObject * obj2 = 0 ;
6919 PyObject * obj3 = 0 ;
6920 PyObject * obj4 = 0 ;
6921 PyObject * obj5 = 0 ;
6922 PyObject * obj6 = 0 ;
6923 PyObject * obj7 = 0 ;
6924 PyObject * obj8 = 0 ;
6925 char * kwnames[] = {
6926 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6927 };
6928
6929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6931 if (!SWIG_IsOK(res1)) {
6932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6933 }
6934 arg1 = reinterpret_cast< wxGauge * >(argp1);
6935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6936 if (!SWIG_IsOK(res2)) {
6937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6938 }
6939 arg2 = reinterpret_cast< wxWindow * >(argp2);
6940 if (obj2) {
6941 ecode3 = SWIG_AsVal_int(obj2, &val3);
6942 if (!SWIG_IsOK(ecode3)) {
6943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6944 }
6945 arg3 = static_cast< int >(val3);
6946 }
6947 if (obj3) {
6948 ecode4 = SWIG_AsVal_int(obj3, &val4);
6949 if (!SWIG_IsOK(ecode4)) {
6950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6951 }
6952 arg4 = static_cast< int >(val4);
6953 }
6954 if (obj4) {
6955 {
6956 arg5 = &temp5;
6957 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6958 }
6959 }
6960 if (obj5) {
6961 {
6962 arg6 = &temp6;
6963 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6964 }
6965 }
6966 if (obj6) {
6967 ecode7 = SWIG_AsVal_long(obj6, &val7);
6968 if (!SWIG_IsOK(ecode7)) {
6969 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6970 }
6971 arg7 = static_cast< long >(val7);
6972 }
6973 if (obj7) {
6974 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6975 if (!SWIG_IsOK(res8)) {
6976 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6977 }
6978 if (!argp8) {
6979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6980 }
6981 arg8 = reinterpret_cast< wxValidator * >(argp8);
6982 }
6983 if (obj8) {
6984 {
6985 arg9 = wxString_in_helper(obj8);
6986 if (arg9 == NULL) SWIG_fail;
6987 temp9 = true;
6988 }
6989 }
6990 {
6991 PyThreadState* __tstate = wxPyBeginAllowThreads();
6992 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 {
6997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6998 }
6999 {
7000 if (temp9)
7001 delete arg9;
7002 }
7003 return resultobj;
7004 fail:
7005 {
7006 if (temp9)
7007 delete arg9;
7008 }
7009 return NULL;
7010 }
7011
7012
7013 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7014 PyObject *resultobj = 0;
7015 wxGauge *arg1 = (wxGauge *) 0 ;
7016 int arg2 ;
7017 void *argp1 = 0 ;
7018 int res1 = 0 ;
7019 int val2 ;
7020 int ecode2 = 0 ;
7021 PyObject * obj0 = 0 ;
7022 PyObject * obj1 = 0 ;
7023 char * kwnames[] = {
7024 (char *) "self",(char *) "range", NULL
7025 };
7026
7027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7029 if (!SWIG_IsOK(res1)) {
7030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7031 }
7032 arg1 = reinterpret_cast< wxGauge * >(argp1);
7033 ecode2 = SWIG_AsVal_int(obj1, &val2);
7034 if (!SWIG_IsOK(ecode2)) {
7035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7036 }
7037 arg2 = static_cast< int >(val2);
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 (arg1)->SetRange(arg2);
7041 wxPyEndAllowThreads(__tstate);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 resultobj = SWIG_Py_Void();
7045 return resultobj;
7046 fail:
7047 return NULL;
7048 }
7049
7050
7051 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7052 PyObject *resultobj = 0;
7053 wxGauge *arg1 = (wxGauge *) 0 ;
7054 int result;
7055 void *argp1 = 0 ;
7056 int res1 = 0 ;
7057 PyObject *swig_obj[1] ;
7058
7059 if (!args) SWIG_fail;
7060 swig_obj[0] = args;
7061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7062 if (!SWIG_IsOK(res1)) {
7063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7064 }
7065 arg1 = reinterpret_cast< wxGauge * >(argp1);
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 result = (int)((wxGauge const *)arg1)->GetRange();
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 resultobj = SWIG_From_int(static_cast< int >(result));
7073 return resultobj;
7074 fail:
7075 return NULL;
7076 }
7077
7078
7079 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj = 0;
7081 wxGauge *arg1 = (wxGauge *) 0 ;
7082 int arg2 ;
7083 void *argp1 = 0 ;
7084 int res1 = 0 ;
7085 int val2 ;
7086 int ecode2 = 0 ;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char * kwnames[] = {
7090 (char *) "self",(char *) "pos", NULL
7091 };
7092
7093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7095 if (!SWIG_IsOK(res1)) {
7096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7097 }
7098 arg1 = reinterpret_cast< wxGauge * >(argp1);
7099 ecode2 = SWIG_AsVal_int(obj1, &val2);
7100 if (!SWIG_IsOK(ecode2)) {
7101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7102 }
7103 arg2 = static_cast< int >(val2);
7104 {
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
7106 (arg1)->SetValue(arg2);
7107 wxPyEndAllowThreads(__tstate);
7108 if (PyErr_Occurred()) SWIG_fail;
7109 }
7110 resultobj = SWIG_Py_Void();
7111 return resultobj;
7112 fail:
7113 return NULL;
7114 }
7115
7116
7117 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7118 PyObject *resultobj = 0;
7119 wxGauge *arg1 = (wxGauge *) 0 ;
7120 int result;
7121 void *argp1 = 0 ;
7122 int res1 = 0 ;
7123 PyObject *swig_obj[1] ;
7124
7125 if (!args) SWIG_fail;
7126 swig_obj[0] = args;
7127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7128 if (!SWIG_IsOK(res1)) {
7129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7130 }
7131 arg1 = reinterpret_cast< wxGauge * >(argp1);
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 result = (int)((wxGauge const *)arg1)->GetValue();
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 resultobj = SWIG_From_int(static_cast< int >(result));
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7146 PyObject *resultobj = 0;
7147 wxGauge *arg1 = (wxGauge *) 0 ;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 PyObject *swig_obj[1] ;
7151
7152 if (!args) SWIG_fail;
7153 swig_obj[0] = args;
7154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7155 if (!SWIG_IsOK(res1)) {
7156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7157 }
7158 arg1 = reinterpret_cast< wxGauge * >(argp1);
7159 {
7160 PyThreadState* __tstate = wxPyBeginAllowThreads();
7161 (arg1)->Pulse();
7162 wxPyEndAllowThreads(__tstate);
7163 if (PyErr_Occurred()) SWIG_fail;
7164 }
7165 resultobj = SWIG_Py_Void();
7166 return resultobj;
7167 fail:
7168 return NULL;
7169 }
7170
7171
7172 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7173 PyObject *resultobj = 0;
7174 wxGauge *arg1 = (wxGauge *) 0 ;
7175 bool result;
7176 void *argp1 = 0 ;
7177 int res1 = 0 ;
7178 PyObject *swig_obj[1] ;
7179
7180 if (!args) SWIG_fail;
7181 swig_obj[0] = args;
7182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7183 if (!SWIG_IsOK(res1)) {
7184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7185 }
7186 arg1 = reinterpret_cast< wxGauge * >(argp1);
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 result = (bool)((wxGauge const *)arg1)->IsVertical();
7190 wxPyEndAllowThreads(__tstate);
7191 if (PyErr_Occurred()) SWIG_fail;
7192 }
7193 {
7194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7195 }
7196 return resultobj;
7197 fail:
7198 return NULL;
7199 }
7200
7201
7202 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7203 PyObject *resultobj = 0;
7204 wxGauge *arg1 = (wxGauge *) 0 ;
7205 int arg2 ;
7206 void *argp1 = 0 ;
7207 int res1 = 0 ;
7208 int val2 ;
7209 int ecode2 = 0 ;
7210 PyObject * obj0 = 0 ;
7211 PyObject * obj1 = 0 ;
7212 char * kwnames[] = {
7213 (char *) "self",(char *) "w", NULL
7214 };
7215
7216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7218 if (!SWIG_IsOK(res1)) {
7219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7220 }
7221 arg1 = reinterpret_cast< wxGauge * >(argp1);
7222 ecode2 = SWIG_AsVal_int(obj1, &val2);
7223 if (!SWIG_IsOK(ecode2)) {
7224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7225 }
7226 arg2 = static_cast< int >(val2);
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 (arg1)->SetShadowWidth(arg2);
7230 wxPyEndAllowThreads(__tstate);
7231 if (PyErr_Occurred()) SWIG_fail;
7232 }
7233 resultobj = SWIG_Py_Void();
7234 return resultobj;
7235 fail:
7236 return NULL;
7237 }
7238
7239
7240 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7241 PyObject *resultobj = 0;
7242 wxGauge *arg1 = (wxGauge *) 0 ;
7243 int result;
7244 void *argp1 = 0 ;
7245 int res1 = 0 ;
7246 PyObject *swig_obj[1] ;
7247
7248 if (!args) SWIG_fail;
7249 swig_obj[0] = args;
7250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7251 if (!SWIG_IsOK(res1)) {
7252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7253 }
7254 arg1 = reinterpret_cast< wxGauge * >(argp1);
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7258 wxPyEndAllowThreads(__tstate);
7259 if (PyErr_Occurred()) SWIG_fail;
7260 }
7261 resultobj = SWIG_From_int(static_cast< int >(result));
7262 return resultobj;
7263 fail:
7264 return NULL;
7265 }
7266
7267
7268 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7269 PyObject *resultobj = 0;
7270 wxGauge *arg1 = (wxGauge *) 0 ;
7271 int arg2 ;
7272 void *argp1 = 0 ;
7273 int res1 = 0 ;
7274 int val2 ;
7275 int ecode2 = 0 ;
7276 PyObject * obj0 = 0 ;
7277 PyObject * obj1 = 0 ;
7278 char * kwnames[] = {
7279 (char *) "self",(char *) "w", NULL
7280 };
7281
7282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7284 if (!SWIG_IsOK(res1)) {
7285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7286 }
7287 arg1 = reinterpret_cast< wxGauge * >(argp1);
7288 ecode2 = SWIG_AsVal_int(obj1, &val2);
7289 if (!SWIG_IsOK(ecode2)) {
7290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7291 }
7292 arg2 = static_cast< int >(val2);
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 (arg1)->SetBezelFace(arg2);
7296 wxPyEndAllowThreads(__tstate);
7297 if (PyErr_Occurred()) SWIG_fail;
7298 }
7299 resultobj = SWIG_Py_Void();
7300 return resultobj;
7301 fail:
7302 return NULL;
7303 }
7304
7305
7306 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7307 PyObject *resultobj = 0;
7308 wxGauge *arg1 = (wxGauge *) 0 ;
7309 int result;
7310 void *argp1 = 0 ;
7311 int res1 = 0 ;
7312 PyObject *swig_obj[1] ;
7313
7314 if (!args) SWIG_fail;
7315 swig_obj[0] = args;
7316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7317 if (!SWIG_IsOK(res1)) {
7318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7319 }
7320 arg1 = reinterpret_cast< wxGauge * >(argp1);
7321 {
7322 PyThreadState* __tstate = wxPyBeginAllowThreads();
7323 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7324 wxPyEndAllowThreads(__tstate);
7325 if (PyErr_Occurred()) SWIG_fail;
7326 }
7327 resultobj = SWIG_From_int(static_cast< int >(result));
7328 return resultobj;
7329 fail:
7330 return NULL;
7331 }
7332
7333
7334 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7335 PyObject *resultobj = 0;
7336 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7337 SwigValueWrapper<wxVisualAttributes > result;
7338 int val1 ;
7339 int ecode1 = 0 ;
7340 PyObject * obj0 = 0 ;
7341 char * kwnames[] = {
7342 (char *) "variant", NULL
7343 };
7344
7345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7346 if (obj0) {
7347 ecode1 = SWIG_AsVal_int(obj0, &val1);
7348 if (!SWIG_IsOK(ecode1)) {
7349 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7350 }
7351 arg1 = static_cast< wxWindowVariant >(val1);
7352 }
7353 {
7354 if (!wxPyCheckForApp()) SWIG_fail;
7355 PyThreadState* __tstate = wxPyBeginAllowThreads();
7356 result = wxGauge::GetClassDefaultAttributes(arg1);
7357 wxPyEndAllowThreads(__tstate);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7368 PyObject *obj;
7369 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7370 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7371 return SWIG_Py_Void();
7372 }
7373
7374 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7375 return SWIG_Python_InitShadowInstance(args);
7376 }
7377
7378 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7379 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7380 return 1;
7381 }
7382
7383
7384 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7385 PyObject *pyobj = 0;
7386
7387 {
7388 #if wxUSE_UNICODE
7389 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7390 #else
7391 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7392 #endif
7393 }
7394 return pyobj;
7395 }
7396
7397
7398 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7399 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7400 return 1;
7401 }
7402
7403
7404 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7405 PyObject *pyobj = 0;
7406
7407 {
7408 #if wxUSE_UNICODE
7409 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7410 #else
7411 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7412 #endif
7413 }
7414 return pyobj;
7415 }
7416
7417
7418 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7419 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7420 return 1;
7421 }
7422
7423
7424 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7425 PyObject *pyobj = 0;
7426
7427 {
7428 #if wxUSE_UNICODE
7429 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7430 #else
7431 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7432 #endif
7433 }
7434 return pyobj;
7435 }
7436
7437
7438 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7439 PyObject *resultobj = 0;
7440 wxWindow *arg1 = (wxWindow *) 0 ;
7441 int arg2 = (int) -1 ;
7442 wxString const &arg3_defvalue = wxPyEmptyString ;
7443 wxString *arg3 = (wxString *) &arg3_defvalue ;
7444 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7445 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7446 wxSize const &arg5_defvalue = wxDefaultSize ;
7447 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7448 long arg6 = (long) 0 ;
7449 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7450 wxString *arg7 = (wxString *) &arg7_defvalue ;
7451 wxStaticBox *result = 0 ;
7452 void *argp1 = 0 ;
7453 int res1 = 0 ;
7454 int val2 ;
7455 int ecode2 = 0 ;
7456 bool temp3 = false ;
7457 wxPoint temp4 ;
7458 wxSize temp5 ;
7459 long val6 ;
7460 int ecode6 = 0 ;
7461 bool temp7 = false ;
7462 PyObject * obj0 = 0 ;
7463 PyObject * obj1 = 0 ;
7464 PyObject * obj2 = 0 ;
7465 PyObject * obj3 = 0 ;
7466 PyObject * obj4 = 0 ;
7467 PyObject * obj5 = 0 ;
7468 PyObject * obj6 = 0 ;
7469 char * kwnames[] = {
7470 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7471 };
7472
7473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7475 if (!SWIG_IsOK(res1)) {
7476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7477 }
7478 arg1 = reinterpret_cast< wxWindow * >(argp1);
7479 if (obj1) {
7480 ecode2 = SWIG_AsVal_int(obj1, &val2);
7481 if (!SWIG_IsOK(ecode2)) {
7482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7483 }
7484 arg2 = static_cast< int >(val2);
7485 }
7486 if (obj2) {
7487 {
7488 arg3 = wxString_in_helper(obj2);
7489 if (arg3 == NULL) SWIG_fail;
7490 temp3 = true;
7491 }
7492 }
7493 if (obj3) {
7494 {
7495 arg4 = &temp4;
7496 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7497 }
7498 }
7499 if (obj4) {
7500 {
7501 arg5 = &temp5;
7502 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7503 }
7504 }
7505 if (obj5) {
7506 ecode6 = SWIG_AsVal_long(obj5, &val6);
7507 if (!SWIG_IsOK(ecode6)) {
7508 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7509 }
7510 arg6 = static_cast< long >(val6);
7511 }
7512 if (obj6) {
7513 {
7514 arg7 = wxString_in_helper(obj6);
7515 if (arg7 == NULL) SWIG_fail;
7516 temp7 = true;
7517 }
7518 }
7519 {
7520 if (!wxPyCheckForApp()) SWIG_fail;
7521 PyThreadState* __tstate = wxPyBeginAllowThreads();
7522 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7523 wxPyEndAllowThreads(__tstate);
7524 if (PyErr_Occurred()) SWIG_fail;
7525 }
7526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7527 {
7528 if (temp3)
7529 delete arg3;
7530 }
7531 {
7532 if (temp7)
7533 delete arg7;
7534 }
7535 return resultobj;
7536 fail:
7537 {
7538 if (temp3)
7539 delete arg3;
7540 }
7541 {
7542 if (temp7)
7543 delete arg7;
7544 }
7545 return NULL;
7546 }
7547
7548
7549 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7550 PyObject *resultobj = 0;
7551 wxStaticBox *result = 0 ;
7552
7553 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7554 {
7555 if (!wxPyCheckForApp()) SWIG_fail;
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (wxStaticBox *)new wxStaticBox();
7558 wxPyEndAllowThreads(__tstate);
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7562 return resultobj;
7563 fail:
7564 return NULL;
7565 }
7566
7567
7568 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj = 0;
7570 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7571 wxWindow *arg2 = (wxWindow *) 0 ;
7572 int arg3 = (int) -1 ;
7573 wxString const &arg4_defvalue = wxPyEmptyString ;
7574 wxString *arg4 = (wxString *) &arg4_defvalue ;
7575 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7576 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7577 wxSize const &arg6_defvalue = wxDefaultSize ;
7578 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7579 long arg7 = (long) 0 ;
7580 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7581 wxString *arg8 = (wxString *) &arg8_defvalue ;
7582 bool result;
7583 void *argp1 = 0 ;
7584 int res1 = 0 ;
7585 void *argp2 = 0 ;
7586 int res2 = 0 ;
7587 int val3 ;
7588 int ecode3 = 0 ;
7589 bool temp4 = false ;
7590 wxPoint temp5 ;
7591 wxSize temp6 ;
7592 long val7 ;
7593 int ecode7 = 0 ;
7594 bool temp8 = false ;
7595 PyObject * obj0 = 0 ;
7596 PyObject * obj1 = 0 ;
7597 PyObject * obj2 = 0 ;
7598 PyObject * obj3 = 0 ;
7599 PyObject * obj4 = 0 ;
7600 PyObject * obj5 = 0 ;
7601 PyObject * obj6 = 0 ;
7602 PyObject * obj7 = 0 ;
7603 char * kwnames[] = {
7604 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7605 };
7606
7607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7611 }
7612 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7614 if (!SWIG_IsOK(res2)) {
7615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7616 }
7617 arg2 = reinterpret_cast< wxWindow * >(argp2);
7618 if (obj2) {
7619 ecode3 = SWIG_AsVal_int(obj2, &val3);
7620 if (!SWIG_IsOK(ecode3)) {
7621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7622 }
7623 arg3 = static_cast< int >(val3);
7624 }
7625 if (obj3) {
7626 {
7627 arg4 = wxString_in_helper(obj3);
7628 if (arg4 == NULL) SWIG_fail;
7629 temp4 = true;
7630 }
7631 }
7632 if (obj4) {
7633 {
7634 arg5 = &temp5;
7635 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7636 }
7637 }
7638 if (obj5) {
7639 {
7640 arg6 = &temp6;
7641 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7642 }
7643 }
7644 if (obj6) {
7645 ecode7 = SWIG_AsVal_long(obj6, &val7);
7646 if (!SWIG_IsOK(ecode7)) {
7647 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7648 }
7649 arg7 = static_cast< long >(val7);
7650 }
7651 if (obj7) {
7652 {
7653 arg8 = wxString_in_helper(obj7);
7654 if (arg8 == NULL) SWIG_fail;
7655 temp8 = true;
7656 }
7657 }
7658 {
7659 PyThreadState* __tstate = wxPyBeginAllowThreads();
7660 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7661 wxPyEndAllowThreads(__tstate);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 {
7665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7666 }
7667 {
7668 if (temp4)
7669 delete arg4;
7670 }
7671 {
7672 if (temp8)
7673 delete arg8;
7674 }
7675 return resultobj;
7676 fail:
7677 {
7678 if (temp4)
7679 delete arg4;
7680 }
7681 {
7682 if (temp8)
7683 delete arg8;
7684 }
7685 return NULL;
7686 }
7687
7688
7689 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj = 0;
7691 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7692 SwigValueWrapper<wxVisualAttributes > result;
7693 int val1 ;
7694 int ecode1 = 0 ;
7695 PyObject * obj0 = 0 ;
7696 char * kwnames[] = {
7697 (char *) "variant", NULL
7698 };
7699
7700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7701 if (obj0) {
7702 ecode1 = SWIG_AsVal_int(obj0, &val1);
7703 if (!SWIG_IsOK(ecode1)) {
7704 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7705 }
7706 arg1 = static_cast< wxWindowVariant >(val1);
7707 }
7708 {
7709 if (!wxPyCheckForApp()) SWIG_fail;
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7712 wxPyEndAllowThreads(__tstate);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7716 return resultobj;
7717 fail:
7718 return NULL;
7719 }
7720
7721
7722 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7723 PyObject *obj;
7724 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7725 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7726 return SWIG_Py_Void();
7727 }
7728
7729 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7730 return SWIG_Python_InitShadowInstance(args);
7731 }
7732
7733 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7734 PyObject *resultobj = 0;
7735 wxWindow *arg1 = (wxWindow *) 0 ;
7736 int arg2 = (int) -1 ;
7737 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7738 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7739 wxSize const &arg4_defvalue = wxDefaultSize ;
7740 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7741 long arg5 = (long) wxLI_HORIZONTAL ;
7742 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7743 wxString *arg6 = (wxString *) &arg6_defvalue ;
7744 wxStaticLine *result = 0 ;
7745 void *argp1 = 0 ;
7746 int res1 = 0 ;
7747 int val2 ;
7748 int ecode2 = 0 ;
7749 wxPoint temp3 ;
7750 wxSize temp4 ;
7751 long val5 ;
7752 int ecode5 = 0 ;
7753 bool temp6 = false ;
7754 PyObject * obj0 = 0 ;
7755 PyObject * obj1 = 0 ;
7756 PyObject * obj2 = 0 ;
7757 PyObject * obj3 = 0 ;
7758 PyObject * obj4 = 0 ;
7759 PyObject * obj5 = 0 ;
7760 char * kwnames[] = {
7761 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7762 };
7763
7764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7766 if (!SWIG_IsOK(res1)) {
7767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7768 }
7769 arg1 = reinterpret_cast< wxWindow * >(argp1);
7770 if (obj1) {
7771 ecode2 = SWIG_AsVal_int(obj1, &val2);
7772 if (!SWIG_IsOK(ecode2)) {
7773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7774 }
7775 arg2 = static_cast< int >(val2);
7776 }
7777 if (obj2) {
7778 {
7779 arg3 = &temp3;
7780 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7781 }
7782 }
7783 if (obj3) {
7784 {
7785 arg4 = &temp4;
7786 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7787 }
7788 }
7789 if (obj4) {
7790 ecode5 = SWIG_AsVal_long(obj4, &val5);
7791 if (!SWIG_IsOK(ecode5)) {
7792 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7793 }
7794 arg5 = static_cast< long >(val5);
7795 }
7796 if (obj5) {
7797 {
7798 arg6 = wxString_in_helper(obj5);
7799 if (arg6 == NULL) SWIG_fail;
7800 temp6 = true;
7801 }
7802 }
7803 {
7804 if (!wxPyCheckForApp()) SWIG_fail;
7805 PyThreadState* __tstate = wxPyBeginAllowThreads();
7806 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7807 wxPyEndAllowThreads(__tstate);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 }
7810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7811 {
7812 if (temp6)
7813 delete arg6;
7814 }
7815 return resultobj;
7816 fail:
7817 {
7818 if (temp6)
7819 delete arg6;
7820 }
7821 return NULL;
7822 }
7823
7824
7825 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7826 PyObject *resultobj = 0;
7827 wxStaticLine *result = 0 ;
7828
7829 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7830 {
7831 if (!wxPyCheckForApp()) SWIG_fail;
7832 PyThreadState* __tstate = wxPyBeginAllowThreads();
7833 result = (wxStaticLine *)new wxStaticLine();
7834 wxPyEndAllowThreads(__tstate);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7838 return resultobj;
7839 fail:
7840 return NULL;
7841 }
7842
7843
7844 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7845 PyObject *resultobj = 0;
7846 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7847 wxWindow *arg2 = (wxWindow *) 0 ;
7848 int arg3 = (int) -1 ;
7849 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7850 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7851 wxSize const &arg5_defvalue = wxDefaultSize ;
7852 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7853 long arg6 = (long) wxLI_HORIZONTAL ;
7854 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7855 wxString *arg7 = (wxString *) &arg7_defvalue ;
7856 bool result;
7857 void *argp1 = 0 ;
7858 int res1 = 0 ;
7859 void *argp2 = 0 ;
7860 int res2 = 0 ;
7861 int val3 ;
7862 int ecode3 = 0 ;
7863 wxPoint temp4 ;
7864 wxSize temp5 ;
7865 long val6 ;
7866 int ecode6 = 0 ;
7867 bool temp7 = false ;
7868 PyObject * obj0 = 0 ;
7869 PyObject * obj1 = 0 ;
7870 PyObject * obj2 = 0 ;
7871 PyObject * obj3 = 0 ;
7872 PyObject * obj4 = 0 ;
7873 PyObject * obj5 = 0 ;
7874 PyObject * obj6 = 0 ;
7875 char * kwnames[] = {
7876 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7877 };
7878
7879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7881 if (!SWIG_IsOK(res1)) {
7882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7883 }
7884 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7885 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7886 if (!SWIG_IsOK(res2)) {
7887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7888 }
7889 arg2 = reinterpret_cast< wxWindow * >(argp2);
7890 if (obj2) {
7891 ecode3 = SWIG_AsVal_int(obj2, &val3);
7892 if (!SWIG_IsOK(ecode3)) {
7893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7894 }
7895 arg3 = static_cast< int >(val3);
7896 }
7897 if (obj3) {
7898 {
7899 arg4 = &temp4;
7900 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7901 }
7902 }
7903 if (obj4) {
7904 {
7905 arg5 = &temp5;
7906 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7907 }
7908 }
7909 if (obj5) {
7910 ecode6 = SWIG_AsVal_long(obj5, &val6);
7911 if (!SWIG_IsOK(ecode6)) {
7912 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7913 }
7914 arg6 = static_cast< long >(val6);
7915 }
7916 if (obj6) {
7917 {
7918 arg7 = wxString_in_helper(obj6);
7919 if (arg7 == NULL) SWIG_fail;
7920 temp7 = true;
7921 }
7922 }
7923 {
7924 PyThreadState* __tstate = wxPyBeginAllowThreads();
7925 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7926 wxPyEndAllowThreads(__tstate);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 {
7930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7931 }
7932 {
7933 if (temp7)
7934 delete arg7;
7935 }
7936 return resultobj;
7937 fail:
7938 {
7939 if (temp7)
7940 delete arg7;
7941 }
7942 return NULL;
7943 }
7944
7945
7946 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7947 PyObject *resultobj = 0;
7948 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7949 bool result;
7950 void *argp1 = 0 ;
7951 int res1 = 0 ;
7952 PyObject *swig_obj[1] ;
7953
7954 if (!args) SWIG_fail;
7955 swig_obj[0] = args;
7956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7957 if (!SWIG_IsOK(res1)) {
7958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7959 }
7960 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7964 wxPyEndAllowThreads(__tstate);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 {
7968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7969 }
7970 return resultobj;
7971 fail:
7972 return NULL;
7973 }
7974
7975
7976 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7977 PyObject *resultobj = 0;
7978 int result;
7979
7980 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = (int)wxStaticLine::GetDefaultSize();
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_From_int(static_cast< int >(result));
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj = 0;
7996 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7997 SwigValueWrapper<wxVisualAttributes > result;
7998 int val1 ;
7999 int ecode1 = 0 ;
8000 PyObject * obj0 = 0 ;
8001 char * kwnames[] = {
8002 (char *) "variant", NULL
8003 };
8004
8005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8006 if (obj0) {
8007 ecode1 = SWIG_AsVal_int(obj0, &val1);
8008 if (!SWIG_IsOK(ecode1)) {
8009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8010 }
8011 arg1 = static_cast< wxWindowVariant >(val1);
8012 }
8013 {
8014 if (!wxPyCheckForApp()) SWIG_fail;
8015 PyThreadState* __tstate = wxPyBeginAllowThreads();
8016 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *obj;
8029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8030 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8031 return SWIG_Py_Void();
8032 }
8033
8034 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8035 return SWIG_Python_InitShadowInstance(args);
8036 }
8037
8038 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj = 0;
8040 wxWindow *arg1 = (wxWindow *) 0 ;
8041 int arg2 = (int) -1 ;
8042 wxString const &arg3_defvalue = wxPyEmptyString ;
8043 wxString *arg3 = (wxString *) &arg3_defvalue ;
8044 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8045 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8046 wxSize const &arg5_defvalue = wxDefaultSize ;
8047 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8048 long arg6 = (long) 0 ;
8049 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8050 wxString *arg7 = (wxString *) &arg7_defvalue ;
8051 wxStaticText *result = 0 ;
8052 void *argp1 = 0 ;
8053 int res1 = 0 ;
8054 int val2 ;
8055 int ecode2 = 0 ;
8056 bool temp3 = false ;
8057 wxPoint temp4 ;
8058 wxSize temp5 ;
8059 long val6 ;
8060 int ecode6 = 0 ;
8061 bool temp7 = false ;
8062 PyObject * obj0 = 0 ;
8063 PyObject * obj1 = 0 ;
8064 PyObject * obj2 = 0 ;
8065 PyObject * obj3 = 0 ;
8066 PyObject * obj4 = 0 ;
8067 PyObject * obj5 = 0 ;
8068 PyObject * obj6 = 0 ;
8069 char * kwnames[] = {
8070 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8071 };
8072
8073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8075 if (!SWIG_IsOK(res1)) {
8076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8077 }
8078 arg1 = reinterpret_cast< wxWindow * >(argp1);
8079 if (obj1) {
8080 ecode2 = SWIG_AsVal_int(obj1, &val2);
8081 if (!SWIG_IsOK(ecode2)) {
8082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8083 }
8084 arg2 = static_cast< int >(val2);
8085 }
8086 if (obj2) {
8087 {
8088 arg3 = wxString_in_helper(obj2);
8089 if (arg3 == NULL) SWIG_fail;
8090 temp3 = true;
8091 }
8092 }
8093 if (obj3) {
8094 {
8095 arg4 = &temp4;
8096 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8097 }
8098 }
8099 if (obj4) {
8100 {
8101 arg5 = &temp5;
8102 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8103 }
8104 }
8105 if (obj5) {
8106 ecode6 = SWIG_AsVal_long(obj5, &val6);
8107 if (!SWIG_IsOK(ecode6)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8109 }
8110 arg6 = static_cast< long >(val6);
8111 }
8112 if (obj6) {
8113 {
8114 arg7 = wxString_in_helper(obj6);
8115 if (arg7 == NULL) SWIG_fail;
8116 temp7 = true;
8117 }
8118 }
8119 {
8120 if (!wxPyCheckForApp()) SWIG_fail;
8121 PyThreadState* __tstate = wxPyBeginAllowThreads();
8122 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8127 {
8128 if (temp3)
8129 delete arg3;
8130 }
8131 {
8132 if (temp7)
8133 delete arg7;
8134 }
8135 return resultobj;
8136 fail:
8137 {
8138 if (temp3)
8139 delete arg3;
8140 }
8141 {
8142 if (temp7)
8143 delete arg7;
8144 }
8145 return NULL;
8146 }
8147
8148
8149 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8150 PyObject *resultobj = 0;
8151 wxStaticText *result = 0 ;
8152
8153 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8154 {
8155 if (!wxPyCheckForApp()) SWIG_fail;
8156 PyThreadState* __tstate = wxPyBeginAllowThreads();
8157 result = (wxStaticText *)new wxStaticText();
8158 wxPyEndAllowThreads(__tstate);
8159 if (PyErr_Occurred()) SWIG_fail;
8160 }
8161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8162 return resultobj;
8163 fail:
8164 return NULL;
8165 }
8166
8167
8168 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8169 PyObject *resultobj = 0;
8170 wxStaticText *arg1 = (wxStaticText *) 0 ;
8171 wxWindow *arg2 = (wxWindow *) 0 ;
8172 int arg3 = (int) -1 ;
8173 wxString const &arg4_defvalue = wxPyEmptyString ;
8174 wxString *arg4 = (wxString *) &arg4_defvalue ;
8175 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8176 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8177 wxSize const &arg6_defvalue = wxDefaultSize ;
8178 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8179 long arg7 = (long) 0 ;
8180 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8181 wxString *arg8 = (wxString *) &arg8_defvalue ;
8182 bool result;
8183 void *argp1 = 0 ;
8184 int res1 = 0 ;
8185 void *argp2 = 0 ;
8186 int res2 = 0 ;
8187 int val3 ;
8188 int ecode3 = 0 ;
8189 bool temp4 = false ;
8190 wxPoint temp5 ;
8191 wxSize temp6 ;
8192 long val7 ;
8193 int ecode7 = 0 ;
8194 bool temp8 = false ;
8195 PyObject * obj0 = 0 ;
8196 PyObject * obj1 = 0 ;
8197 PyObject * obj2 = 0 ;
8198 PyObject * obj3 = 0 ;
8199 PyObject * obj4 = 0 ;
8200 PyObject * obj5 = 0 ;
8201 PyObject * obj6 = 0 ;
8202 PyObject * obj7 = 0 ;
8203 char * kwnames[] = {
8204 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8205 };
8206
8207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8209 if (!SWIG_IsOK(res1)) {
8210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8211 }
8212 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8213 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8214 if (!SWIG_IsOK(res2)) {
8215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8216 }
8217 arg2 = reinterpret_cast< wxWindow * >(argp2);
8218 if (obj2) {
8219 ecode3 = SWIG_AsVal_int(obj2, &val3);
8220 if (!SWIG_IsOK(ecode3)) {
8221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8222 }
8223 arg3 = static_cast< int >(val3);
8224 }
8225 if (obj3) {
8226 {
8227 arg4 = wxString_in_helper(obj3);
8228 if (arg4 == NULL) SWIG_fail;
8229 temp4 = true;
8230 }
8231 }
8232 if (obj4) {
8233 {
8234 arg5 = &temp5;
8235 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8236 }
8237 }
8238 if (obj5) {
8239 {
8240 arg6 = &temp6;
8241 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8242 }
8243 }
8244 if (obj6) {
8245 ecode7 = SWIG_AsVal_long(obj6, &val7);
8246 if (!SWIG_IsOK(ecode7)) {
8247 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8248 }
8249 arg7 = static_cast< long >(val7);
8250 }
8251 if (obj7) {
8252 {
8253 arg8 = wxString_in_helper(obj7);
8254 if (arg8 == NULL) SWIG_fail;
8255 temp8 = true;
8256 }
8257 }
8258 {
8259 PyThreadState* __tstate = wxPyBeginAllowThreads();
8260 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8261 wxPyEndAllowThreads(__tstate);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 {
8265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8266 }
8267 {
8268 if (temp4)
8269 delete arg4;
8270 }
8271 {
8272 if (temp8)
8273 delete arg8;
8274 }
8275 return resultobj;
8276 fail:
8277 {
8278 if (temp4)
8279 delete arg4;
8280 }
8281 {
8282 if (temp8)
8283 delete arg8;
8284 }
8285 return NULL;
8286 }
8287
8288
8289 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8290 PyObject *resultobj = 0;
8291 wxStaticText *arg1 = (wxStaticText *) 0 ;
8292 int arg2 ;
8293 void *argp1 = 0 ;
8294 int res1 = 0 ;
8295 int val2 ;
8296 int ecode2 = 0 ;
8297 PyObject * obj0 = 0 ;
8298 PyObject * obj1 = 0 ;
8299 char * kwnames[] = {
8300 (char *) "self",(char *) "width", NULL
8301 };
8302
8303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8305 if (!SWIG_IsOK(res1)) {
8306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8307 }
8308 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8309 ecode2 = SWIG_AsVal_int(obj1, &val2);
8310 if (!SWIG_IsOK(ecode2)) {
8311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8312 }
8313 arg2 = static_cast< int >(val2);
8314 {
8315 PyThreadState* __tstate = wxPyBeginAllowThreads();
8316 (arg1)->Wrap(arg2);
8317 wxPyEndAllowThreads(__tstate);
8318 if (PyErr_Occurred()) SWIG_fail;
8319 }
8320 resultobj = SWIG_Py_Void();
8321 return resultobj;
8322 fail:
8323 return NULL;
8324 }
8325
8326
8327 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8328 PyObject *resultobj = 0;
8329 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8330 SwigValueWrapper<wxVisualAttributes > result;
8331 int val1 ;
8332 int ecode1 = 0 ;
8333 PyObject * obj0 = 0 ;
8334 char * kwnames[] = {
8335 (char *) "variant", NULL
8336 };
8337
8338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8339 if (obj0) {
8340 ecode1 = SWIG_AsVal_int(obj0, &val1);
8341 if (!SWIG_IsOK(ecode1)) {
8342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8343 }
8344 arg1 = static_cast< wxWindowVariant >(val1);
8345 }
8346 {
8347 if (!wxPyCheckForApp()) SWIG_fail;
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 result = wxStaticText::GetClassDefaultAttributes(arg1);
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8354 return resultobj;
8355 fail:
8356 return NULL;
8357 }
8358
8359
8360 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8361 PyObject *obj;
8362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8363 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8364 return SWIG_Py_Void();
8365 }
8366
8367 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8368 return SWIG_Python_InitShadowInstance(args);
8369 }
8370
8371 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8372 PyObject *resultobj = 0;
8373 wxWindow *arg1 = (wxWindow *) 0 ;
8374 int arg2 = (int) -1 ;
8375 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8376 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8377 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8378 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8379 wxSize const &arg5_defvalue = wxDefaultSize ;
8380 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8381 long arg6 = (long) 0 ;
8382 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8383 wxString *arg7 = (wxString *) &arg7_defvalue ;
8384 wxStaticBitmap *result = 0 ;
8385 void *argp1 = 0 ;
8386 int res1 = 0 ;
8387 int val2 ;
8388 int ecode2 = 0 ;
8389 void *argp3 = 0 ;
8390 int res3 = 0 ;
8391 wxPoint temp4 ;
8392 wxSize temp5 ;
8393 long val6 ;
8394 int ecode6 = 0 ;
8395 bool temp7 = false ;
8396 PyObject * obj0 = 0 ;
8397 PyObject * obj1 = 0 ;
8398 PyObject * obj2 = 0 ;
8399 PyObject * obj3 = 0 ;
8400 PyObject * obj4 = 0 ;
8401 PyObject * obj5 = 0 ;
8402 PyObject * obj6 = 0 ;
8403 char * kwnames[] = {
8404 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8405 };
8406
8407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8409 if (!SWIG_IsOK(res1)) {
8410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8411 }
8412 arg1 = reinterpret_cast< wxWindow * >(argp1);
8413 if (obj1) {
8414 ecode2 = SWIG_AsVal_int(obj1, &val2);
8415 if (!SWIG_IsOK(ecode2)) {
8416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8417 }
8418 arg2 = static_cast< int >(val2);
8419 }
8420 if (obj2) {
8421 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8422 if (!SWIG_IsOK(res3)) {
8423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8424 }
8425 if (!argp3) {
8426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8427 }
8428 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8429 }
8430 if (obj3) {
8431 {
8432 arg4 = &temp4;
8433 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8434 }
8435 }
8436 if (obj4) {
8437 {
8438 arg5 = &temp5;
8439 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8440 }
8441 }
8442 if (obj5) {
8443 ecode6 = SWIG_AsVal_long(obj5, &val6);
8444 if (!SWIG_IsOK(ecode6)) {
8445 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8446 }
8447 arg6 = static_cast< long >(val6);
8448 }
8449 if (obj6) {
8450 {
8451 arg7 = wxString_in_helper(obj6);
8452 if (arg7 == NULL) SWIG_fail;
8453 temp7 = true;
8454 }
8455 }
8456 {
8457 if (!wxPyCheckForApp()) SWIG_fail;
8458 PyThreadState* __tstate = wxPyBeginAllowThreads();
8459 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8460 wxPyEndAllowThreads(__tstate);
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8464 {
8465 if (temp7)
8466 delete arg7;
8467 }
8468 return resultobj;
8469 fail:
8470 {
8471 if (temp7)
8472 delete arg7;
8473 }
8474 return NULL;
8475 }
8476
8477
8478 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8479 PyObject *resultobj = 0;
8480 wxStaticBitmap *result = 0 ;
8481
8482 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8483 {
8484 if (!wxPyCheckForApp()) SWIG_fail;
8485 PyThreadState* __tstate = wxPyBeginAllowThreads();
8486 result = (wxStaticBitmap *)new wxStaticBitmap();
8487 wxPyEndAllowThreads(__tstate);
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8491 return resultobj;
8492 fail:
8493 return NULL;
8494 }
8495
8496
8497 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8498 PyObject *resultobj = 0;
8499 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8500 wxWindow *arg2 = (wxWindow *) 0 ;
8501 int arg3 = (int) -1 ;
8502 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8503 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8504 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8505 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8506 wxSize const &arg6_defvalue = wxDefaultSize ;
8507 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8508 long arg7 = (long) 0 ;
8509 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8510 wxString *arg8 = (wxString *) &arg8_defvalue ;
8511 bool result;
8512 void *argp1 = 0 ;
8513 int res1 = 0 ;
8514 void *argp2 = 0 ;
8515 int res2 = 0 ;
8516 int val3 ;
8517 int ecode3 = 0 ;
8518 void *argp4 = 0 ;
8519 int res4 = 0 ;
8520 wxPoint temp5 ;
8521 wxSize temp6 ;
8522 long val7 ;
8523 int ecode7 = 0 ;
8524 bool temp8 = false ;
8525 PyObject * obj0 = 0 ;
8526 PyObject * obj1 = 0 ;
8527 PyObject * obj2 = 0 ;
8528 PyObject * obj3 = 0 ;
8529 PyObject * obj4 = 0 ;
8530 PyObject * obj5 = 0 ;
8531 PyObject * obj6 = 0 ;
8532 PyObject * obj7 = 0 ;
8533 char * kwnames[] = {
8534 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8535 };
8536
8537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8539 if (!SWIG_IsOK(res1)) {
8540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8541 }
8542 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8543 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8544 if (!SWIG_IsOK(res2)) {
8545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8546 }
8547 arg2 = reinterpret_cast< wxWindow * >(argp2);
8548 if (obj2) {
8549 ecode3 = SWIG_AsVal_int(obj2, &val3);
8550 if (!SWIG_IsOK(ecode3)) {
8551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8552 }
8553 arg3 = static_cast< int >(val3);
8554 }
8555 if (obj3) {
8556 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8557 if (!SWIG_IsOK(res4)) {
8558 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8559 }
8560 if (!argp4) {
8561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8562 }
8563 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8564 }
8565 if (obj4) {
8566 {
8567 arg5 = &temp5;
8568 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8569 }
8570 }
8571 if (obj5) {
8572 {
8573 arg6 = &temp6;
8574 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8575 }
8576 }
8577 if (obj6) {
8578 ecode7 = SWIG_AsVal_long(obj6, &val7);
8579 if (!SWIG_IsOK(ecode7)) {
8580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8581 }
8582 arg7 = static_cast< long >(val7);
8583 }
8584 if (obj7) {
8585 {
8586 arg8 = wxString_in_helper(obj7);
8587 if (arg8 == NULL) SWIG_fail;
8588 temp8 = true;
8589 }
8590 }
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8594 wxPyEndAllowThreads(__tstate);
8595 if (PyErr_Occurred()) SWIG_fail;
8596 }
8597 {
8598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8599 }
8600 {
8601 if (temp8)
8602 delete arg8;
8603 }
8604 return resultobj;
8605 fail:
8606 {
8607 if (temp8)
8608 delete arg8;
8609 }
8610 return NULL;
8611 }
8612
8613
8614 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8615 PyObject *resultobj = 0;
8616 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8617 wxBitmap result;
8618 void *argp1 = 0 ;
8619 int res1 = 0 ;
8620 PyObject *swig_obj[1] ;
8621
8622 if (!args) SWIG_fail;
8623 swig_obj[0] = args;
8624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8625 if (!SWIG_IsOK(res1)) {
8626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8627 }
8628 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8629 {
8630 PyThreadState* __tstate = wxPyBeginAllowThreads();
8631 result = (arg1)->GetBitmap();
8632 wxPyEndAllowThreads(__tstate);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8636 return resultobj;
8637 fail:
8638 return NULL;
8639 }
8640
8641
8642 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj = 0;
8644 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8645 wxBitmap *arg2 = 0 ;
8646 void *argp1 = 0 ;
8647 int res1 = 0 ;
8648 void *argp2 = 0 ;
8649 int res2 = 0 ;
8650 PyObject * obj0 = 0 ;
8651 PyObject * obj1 = 0 ;
8652 char * kwnames[] = {
8653 (char *) "self",(char *) "bitmap", NULL
8654 };
8655
8656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8658 if (!SWIG_IsOK(res1)) {
8659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8660 }
8661 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8663 if (!SWIG_IsOK(res2)) {
8664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8665 }
8666 if (!argp2) {
8667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8668 }
8669 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8670 {
8671 PyThreadState* __tstate = wxPyBeginAllowThreads();
8672 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8673 wxPyEndAllowThreads(__tstate);
8674 if (PyErr_Occurred()) SWIG_fail;
8675 }
8676 resultobj = SWIG_Py_Void();
8677 return resultobj;
8678 fail:
8679 return NULL;
8680 }
8681
8682
8683 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8684 PyObject *resultobj = 0;
8685 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8686 wxIcon *arg2 = 0 ;
8687 void *argp1 = 0 ;
8688 int res1 = 0 ;
8689 void *argp2 = 0 ;
8690 int res2 = 0 ;
8691 PyObject * obj0 = 0 ;
8692 PyObject * obj1 = 0 ;
8693 char * kwnames[] = {
8694 (char *) "self",(char *) "icon", NULL
8695 };
8696
8697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8699 if (!SWIG_IsOK(res1)) {
8700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8701 }
8702 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8704 if (!SWIG_IsOK(res2)) {
8705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8706 }
8707 if (!argp2) {
8708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8709 }
8710 arg2 = reinterpret_cast< wxIcon * >(argp2);
8711 {
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 (arg1)->SetIcon((wxIcon const &)*arg2);
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 resultobj = SWIG_Py_Void();
8718 return resultobj;
8719 fail:
8720 return NULL;
8721 }
8722
8723
8724 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj = 0;
8726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8727 SwigValueWrapper<wxVisualAttributes > result;
8728 int val1 ;
8729 int ecode1 = 0 ;
8730 PyObject * obj0 = 0 ;
8731 char * kwnames[] = {
8732 (char *) "variant", NULL
8733 };
8734
8735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8736 if (obj0) {
8737 ecode1 = SWIG_AsVal_int(obj0, &val1);
8738 if (!SWIG_IsOK(ecode1)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8740 }
8741 arg1 = static_cast< wxWindowVariant >(val1);
8742 }
8743 {
8744 if (!wxPyCheckForApp()) SWIG_fail;
8745 PyThreadState* __tstate = wxPyBeginAllowThreads();
8746 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8747 wxPyEndAllowThreads(__tstate);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8751 return resultobj;
8752 fail:
8753 return NULL;
8754 }
8755
8756
8757 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8758 PyObject *obj;
8759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8760 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8761 return SWIG_Py_Void();
8762 }
8763
8764 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8765 return SWIG_Python_InitShadowInstance(args);
8766 }
8767
8768 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8769 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8770 return 1;
8771 }
8772
8773
8774 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8775 PyObject *pyobj = 0;
8776
8777 {
8778 #if wxUSE_UNICODE
8779 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8780 #else
8781 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8782 #endif
8783 }
8784 return pyobj;
8785 }
8786
8787
8788 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8789 PyObject *resultobj = 0;
8790 wxWindow *arg1 = (wxWindow *) 0 ;
8791 int arg2 = (int) -1 ;
8792 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8793 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8794 wxSize const &arg4_defvalue = wxDefaultSize ;
8795 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8796 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8797 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8798 long arg6 = (long) 0 ;
8799 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8800 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8801 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8802 wxString *arg8 = (wxString *) &arg8_defvalue ;
8803 wxListBox *result = 0 ;
8804 void *argp1 = 0 ;
8805 int res1 = 0 ;
8806 int val2 ;
8807 int ecode2 = 0 ;
8808 wxPoint temp3 ;
8809 wxSize temp4 ;
8810 bool temp5 = false ;
8811 long val6 ;
8812 int ecode6 = 0 ;
8813 void *argp7 = 0 ;
8814 int res7 = 0 ;
8815 bool temp8 = false ;
8816 PyObject * obj0 = 0 ;
8817 PyObject * obj1 = 0 ;
8818 PyObject * obj2 = 0 ;
8819 PyObject * obj3 = 0 ;
8820 PyObject * obj4 = 0 ;
8821 PyObject * obj5 = 0 ;
8822 PyObject * obj6 = 0 ;
8823 PyObject * obj7 = 0 ;
8824 char * kwnames[] = {
8825 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8826 };
8827
8828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8830 if (!SWIG_IsOK(res1)) {
8831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8832 }
8833 arg1 = reinterpret_cast< wxWindow * >(argp1);
8834 if (obj1) {
8835 ecode2 = SWIG_AsVal_int(obj1, &val2);
8836 if (!SWIG_IsOK(ecode2)) {
8837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8838 }
8839 arg2 = static_cast< int >(val2);
8840 }
8841 if (obj2) {
8842 {
8843 arg3 = &temp3;
8844 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8845 }
8846 }
8847 if (obj3) {
8848 {
8849 arg4 = &temp4;
8850 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8851 }
8852 }
8853 if (obj4) {
8854 {
8855 if (! PySequence_Check(obj4)) {
8856 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8857 SWIG_fail;
8858 }
8859 arg5 = new wxArrayString;
8860 temp5 = true;
8861 int i, len=PySequence_Length(obj4);
8862 for (i=0; i<len; i++) {
8863 PyObject* item = PySequence_GetItem(obj4, i);
8864 wxString* s = wxString_in_helper(item);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 arg5->Add(*s);
8867 delete s;
8868 Py_DECREF(item);
8869 }
8870 }
8871 }
8872 if (obj5) {
8873 ecode6 = SWIG_AsVal_long(obj5, &val6);
8874 if (!SWIG_IsOK(ecode6)) {
8875 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8876 }
8877 arg6 = static_cast< long >(val6);
8878 }
8879 if (obj6) {
8880 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8881 if (!SWIG_IsOK(res7)) {
8882 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8883 }
8884 if (!argp7) {
8885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8886 }
8887 arg7 = reinterpret_cast< wxValidator * >(argp7);
8888 }
8889 if (obj7) {
8890 {
8891 arg8 = wxString_in_helper(obj7);
8892 if (arg8 == NULL) SWIG_fail;
8893 temp8 = true;
8894 }
8895 }
8896 {
8897 if (!wxPyCheckForApp()) SWIG_fail;
8898 PyThreadState* __tstate = wxPyBeginAllowThreads();
8899 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8904 {
8905 if (temp5) delete arg5;
8906 }
8907 {
8908 if (temp8)
8909 delete arg8;
8910 }
8911 return resultobj;
8912 fail:
8913 {
8914 if (temp5) delete arg5;
8915 }
8916 {
8917 if (temp8)
8918 delete arg8;
8919 }
8920 return NULL;
8921 }
8922
8923
8924 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8925 PyObject *resultobj = 0;
8926 wxListBox *result = 0 ;
8927
8928 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8929 {
8930 if (!wxPyCheckForApp()) SWIG_fail;
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 result = (wxListBox *)new wxListBox();
8933 wxPyEndAllowThreads(__tstate);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 }
8936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8937 return resultobj;
8938 fail:
8939 return NULL;
8940 }
8941
8942
8943 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8944 PyObject *resultobj = 0;
8945 wxListBox *arg1 = (wxListBox *) 0 ;
8946 wxWindow *arg2 = (wxWindow *) 0 ;
8947 int arg3 = (int) -1 ;
8948 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8949 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8950 wxSize const &arg5_defvalue = wxDefaultSize ;
8951 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8952 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8953 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8954 long arg7 = (long) 0 ;
8955 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8956 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8957 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8958 wxString *arg9 = (wxString *) &arg9_defvalue ;
8959 bool result;
8960 void *argp1 = 0 ;
8961 int res1 = 0 ;
8962 void *argp2 = 0 ;
8963 int res2 = 0 ;
8964 int val3 ;
8965 int ecode3 = 0 ;
8966 wxPoint temp4 ;
8967 wxSize temp5 ;
8968 bool temp6 = false ;
8969 long val7 ;
8970 int ecode7 = 0 ;
8971 void *argp8 = 0 ;
8972 int res8 = 0 ;
8973 bool temp9 = false ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 PyObject * obj2 = 0 ;
8977 PyObject * obj3 = 0 ;
8978 PyObject * obj4 = 0 ;
8979 PyObject * obj5 = 0 ;
8980 PyObject * obj6 = 0 ;
8981 PyObject * obj7 = 0 ;
8982 PyObject * obj8 = 0 ;
8983 char * kwnames[] = {
8984 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8985 };
8986
8987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8989 if (!SWIG_IsOK(res1)) {
8990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8991 }
8992 arg1 = reinterpret_cast< wxListBox * >(argp1);
8993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8994 if (!SWIG_IsOK(res2)) {
8995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8996 }
8997 arg2 = reinterpret_cast< wxWindow * >(argp2);
8998 if (obj2) {
8999 ecode3 = SWIG_AsVal_int(obj2, &val3);
9000 if (!SWIG_IsOK(ecode3)) {
9001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9002 }
9003 arg3 = static_cast< int >(val3);
9004 }
9005 if (obj3) {
9006 {
9007 arg4 = &temp4;
9008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9009 }
9010 }
9011 if (obj4) {
9012 {
9013 arg5 = &temp5;
9014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9015 }
9016 }
9017 if (obj5) {
9018 {
9019 if (! PySequence_Check(obj5)) {
9020 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9021 SWIG_fail;
9022 }
9023 arg6 = new wxArrayString;
9024 temp6 = true;
9025 int i, len=PySequence_Length(obj5);
9026 for (i=0; i<len; i++) {
9027 PyObject* item = PySequence_GetItem(obj5, i);
9028 wxString* s = wxString_in_helper(item);
9029 if (PyErr_Occurred()) SWIG_fail;
9030 arg6->Add(*s);
9031 delete s;
9032 Py_DECREF(item);
9033 }
9034 }
9035 }
9036 if (obj6) {
9037 ecode7 = SWIG_AsVal_long(obj6, &val7);
9038 if (!SWIG_IsOK(ecode7)) {
9039 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9040 }
9041 arg7 = static_cast< long >(val7);
9042 }
9043 if (obj7) {
9044 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9045 if (!SWIG_IsOK(res8)) {
9046 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9047 }
9048 if (!argp8) {
9049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9050 }
9051 arg8 = reinterpret_cast< wxValidator * >(argp8);
9052 }
9053 if (obj8) {
9054 {
9055 arg9 = wxString_in_helper(obj8);
9056 if (arg9 == NULL) SWIG_fail;
9057 temp9 = true;
9058 }
9059 }
9060 {
9061 PyThreadState* __tstate = wxPyBeginAllowThreads();
9062 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 {
9067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9068 }
9069 {
9070 if (temp6) delete arg6;
9071 }
9072 {
9073 if (temp9)
9074 delete arg9;
9075 }
9076 return resultobj;
9077 fail:
9078 {
9079 if (temp6) delete arg6;
9080 }
9081 {
9082 if (temp9)
9083 delete arg9;
9084 }
9085 return NULL;
9086 }
9087
9088
9089 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9090 PyObject *resultobj = 0;
9091 wxListBox *arg1 = (wxListBox *) 0 ;
9092 wxString *arg2 = 0 ;
9093 int arg3 ;
9094 PyObject *arg4 = (PyObject *) NULL ;
9095 void *argp1 = 0 ;
9096 int res1 = 0 ;
9097 bool temp2 = false ;
9098 int val3 ;
9099 int ecode3 = 0 ;
9100 PyObject * obj0 = 0 ;
9101 PyObject * obj1 = 0 ;
9102 PyObject * obj2 = 0 ;
9103 PyObject * obj3 = 0 ;
9104 char * kwnames[] = {
9105 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9106 };
9107
9108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9110 if (!SWIG_IsOK(res1)) {
9111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9112 }
9113 arg1 = reinterpret_cast< wxListBox * >(argp1);
9114 {
9115 arg2 = wxString_in_helper(obj1);
9116 if (arg2 == NULL) SWIG_fail;
9117 temp2 = true;
9118 }
9119 ecode3 = SWIG_AsVal_int(obj2, &val3);
9120 if (!SWIG_IsOK(ecode3)) {
9121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9122 }
9123 arg3 = static_cast< int >(val3);
9124 if (obj3) {
9125 arg4 = obj3;
9126 }
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) SWIG_fail;
9132 }
9133 resultobj = SWIG_Py_Void();
9134 {
9135 if (temp2)
9136 delete arg2;
9137 }
9138 return resultobj;
9139 fail:
9140 {
9141 if (temp2)
9142 delete arg2;
9143 }
9144 return NULL;
9145 }
9146
9147
9148 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9149 PyObject *resultobj = 0;
9150 wxListBox *arg1 = (wxListBox *) 0 ;
9151 wxArrayString *arg2 = 0 ;
9152 unsigned int arg3 ;
9153 void *argp1 = 0 ;
9154 int res1 = 0 ;
9155 bool temp2 = false ;
9156 unsigned int val3 ;
9157 int ecode3 = 0 ;
9158 PyObject * obj0 = 0 ;
9159 PyObject * obj1 = 0 ;
9160 PyObject * obj2 = 0 ;
9161 char * kwnames[] = {
9162 (char *) "self",(char *) "items",(char *) "pos", NULL
9163 };
9164
9165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9169 }
9170 arg1 = reinterpret_cast< wxListBox * >(argp1);
9171 {
9172 if (! PySequence_Check(obj1)) {
9173 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9174 SWIG_fail;
9175 }
9176 arg2 = new wxArrayString;
9177 temp2 = true;
9178 int i, len=PySequence_Length(obj1);
9179 for (i=0; i<len; i++) {
9180 PyObject* item = PySequence_GetItem(obj1, i);
9181 wxString* s = wxString_in_helper(item);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 arg2->Add(*s);
9184 delete s;
9185 Py_DECREF(item);
9186 }
9187 }
9188 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9189 if (!SWIG_IsOK(ecode3)) {
9190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9191 }
9192 arg3 = static_cast< unsigned int >(val3);
9193 {
9194 PyThreadState* __tstate = wxPyBeginAllowThreads();
9195 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9196 wxPyEndAllowThreads(__tstate);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 }
9199 resultobj = SWIG_Py_Void();
9200 {
9201 if (temp2) delete arg2;
9202 }
9203 return resultobj;
9204 fail:
9205 {
9206 if (temp2) delete arg2;
9207 }
9208 return NULL;
9209 }
9210
9211
9212 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9213 PyObject *resultobj = 0;
9214 wxListBox *arg1 = (wxListBox *) 0 ;
9215 wxArrayString *arg2 = 0 ;
9216 void *argp1 = 0 ;
9217 int res1 = 0 ;
9218 bool temp2 = false ;
9219 PyObject * obj0 = 0 ;
9220 PyObject * obj1 = 0 ;
9221 char * kwnames[] = {
9222 (char *) "self",(char *) "items", NULL
9223 };
9224
9225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9227 if (!SWIG_IsOK(res1)) {
9228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9229 }
9230 arg1 = reinterpret_cast< wxListBox * >(argp1);
9231 {
9232 if (! PySequence_Check(obj1)) {
9233 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9234 SWIG_fail;
9235 }
9236 arg2 = new wxArrayString;
9237 temp2 = true;
9238 int i, len=PySequence_Length(obj1);
9239 for (i=0; i<len; i++) {
9240 PyObject* item = PySequence_GetItem(obj1, i);
9241 wxString* s = wxString_in_helper(item);
9242 if (PyErr_Occurred()) SWIG_fail;
9243 arg2->Add(*s);
9244 delete s;
9245 Py_DECREF(item);
9246 }
9247 }
9248 {
9249 PyThreadState* __tstate = wxPyBeginAllowThreads();
9250 (arg1)->Set((wxArrayString const &)*arg2);
9251 wxPyEndAllowThreads(__tstate);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 }
9254 resultobj = SWIG_Py_Void();
9255 {
9256 if (temp2) delete arg2;
9257 }
9258 return resultobj;
9259 fail:
9260 {
9261 if (temp2) delete arg2;
9262 }
9263 return NULL;
9264 }
9265
9266
9267 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj = 0;
9269 wxListBox *arg1 = (wxListBox *) 0 ;
9270 int arg2 ;
9271 bool result;
9272 void *argp1 = 0 ;
9273 int res1 = 0 ;
9274 int val2 ;
9275 int ecode2 = 0 ;
9276 PyObject * obj0 = 0 ;
9277 PyObject * obj1 = 0 ;
9278 char * kwnames[] = {
9279 (char *) "self",(char *) "n", NULL
9280 };
9281
9282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9284 if (!SWIG_IsOK(res1)) {
9285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9286 }
9287 arg1 = reinterpret_cast< wxListBox * >(argp1);
9288 ecode2 = SWIG_AsVal_int(obj1, &val2);
9289 if (!SWIG_IsOK(ecode2)) {
9290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9291 }
9292 arg2 = static_cast< int >(val2);
9293 {
9294 PyThreadState* __tstate = wxPyBeginAllowThreads();
9295 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 {
9300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9301 }
9302 return resultobj;
9303 fail:
9304 return NULL;
9305 }
9306
9307
9308 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9309 PyObject *resultobj = 0;
9310 wxListBox *arg1 = (wxListBox *) 0 ;
9311 int arg2 ;
9312 bool arg3 = (bool) true ;
9313 void *argp1 = 0 ;
9314 int res1 = 0 ;
9315 int val2 ;
9316 int ecode2 = 0 ;
9317 bool val3 ;
9318 int ecode3 = 0 ;
9319 PyObject * obj0 = 0 ;
9320 PyObject * obj1 = 0 ;
9321 PyObject * obj2 = 0 ;
9322 char * kwnames[] = {
9323 (char *) "self",(char *) "n",(char *) "select", NULL
9324 };
9325
9326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9328 if (!SWIG_IsOK(res1)) {
9329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9330 }
9331 arg1 = reinterpret_cast< wxListBox * >(argp1);
9332 ecode2 = SWIG_AsVal_int(obj1, &val2);
9333 if (!SWIG_IsOK(ecode2)) {
9334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9335 }
9336 arg2 = static_cast< int >(val2);
9337 if (obj2) {
9338 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9339 if (!SWIG_IsOK(ecode3)) {
9340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9341 }
9342 arg3 = static_cast< bool >(val3);
9343 }
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 (arg1)->SetSelection(arg2,arg3);
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 resultobj = SWIG_Py_Void();
9351 return resultobj;
9352 fail:
9353 return NULL;
9354 }
9355
9356
9357 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9358 PyObject *resultobj = 0;
9359 wxListBox *arg1 = (wxListBox *) 0 ;
9360 int arg2 ;
9361 void *argp1 = 0 ;
9362 int res1 = 0 ;
9363 int val2 ;
9364 int ecode2 = 0 ;
9365 PyObject * obj0 = 0 ;
9366 PyObject * obj1 = 0 ;
9367 char * kwnames[] = {
9368 (char *) "self",(char *) "n", NULL
9369 };
9370
9371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9373 if (!SWIG_IsOK(res1)) {
9374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9375 }
9376 arg1 = reinterpret_cast< wxListBox * >(argp1);
9377 ecode2 = SWIG_AsVal_int(obj1, &val2);
9378 if (!SWIG_IsOK(ecode2)) {
9379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9380 }
9381 arg2 = static_cast< int >(val2);
9382 {
9383 PyThreadState* __tstate = wxPyBeginAllowThreads();
9384 (arg1)->Select(arg2);
9385 wxPyEndAllowThreads(__tstate);
9386 if (PyErr_Occurred()) SWIG_fail;
9387 }
9388 resultobj = SWIG_Py_Void();
9389 return resultobj;
9390 fail:
9391 return NULL;
9392 }
9393
9394
9395 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9396 PyObject *resultobj = 0;
9397 wxListBox *arg1 = (wxListBox *) 0 ;
9398 int arg2 ;
9399 void *argp1 = 0 ;
9400 int res1 = 0 ;
9401 int val2 ;
9402 int ecode2 = 0 ;
9403 PyObject * obj0 = 0 ;
9404 PyObject * obj1 = 0 ;
9405 char * kwnames[] = {
9406 (char *) "self",(char *) "n", NULL
9407 };
9408
9409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9411 if (!SWIG_IsOK(res1)) {
9412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9413 }
9414 arg1 = reinterpret_cast< wxListBox * >(argp1);
9415 ecode2 = SWIG_AsVal_int(obj1, &val2);
9416 if (!SWIG_IsOK(ecode2)) {
9417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9418 }
9419 arg2 = static_cast< int >(val2);
9420 {
9421 PyThreadState* __tstate = wxPyBeginAllowThreads();
9422 (arg1)->Deselect(arg2);
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 resultobj = SWIG_Py_Void();
9427 return resultobj;
9428 fail:
9429 return NULL;
9430 }
9431
9432
9433 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9434 PyObject *resultobj = 0;
9435 wxListBox *arg1 = (wxListBox *) 0 ;
9436 int arg2 = (int) -1 ;
9437 void *argp1 = 0 ;
9438 int res1 = 0 ;
9439 int val2 ;
9440 int ecode2 = 0 ;
9441 PyObject * obj0 = 0 ;
9442 PyObject * obj1 = 0 ;
9443 char * kwnames[] = {
9444 (char *) "self",(char *) "itemToLeaveSelected", NULL
9445 };
9446
9447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9449 if (!SWIG_IsOK(res1)) {
9450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9451 }
9452 arg1 = reinterpret_cast< wxListBox * >(argp1);
9453 if (obj1) {
9454 ecode2 = SWIG_AsVal_int(obj1, &val2);
9455 if (!SWIG_IsOK(ecode2)) {
9456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9457 }
9458 arg2 = static_cast< int >(val2);
9459 }
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 (arg1)->DeselectAll(arg2);
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 resultobj = SWIG_Py_Void();
9467 return resultobj;
9468 fail:
9469 return NULL;
9470 }
9471
9472
9473 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9474 PyObject *resultobj = 0;
9475 wxListBox *arg1 = (wxListBox *) 0 ;
9476 wxString *arg2 = 0 ;
9477 bool arg3 = (bool) true ;
9478 bool result;
9479 void *argp1 = 0 ;
9480 int res1 = 0 ;
9481 bool temp2 = false ;
9482 bool val3 ;
9483 int ecode3 = 0 ;
9484 PyObject * obj0 = 0 ;
9485 PyObject * obj1 = 0 ;
9486 PyObject * obj2 = 0 ;
9487 char * kwnames[] = {
9488 (char *) "self",(char *) "s",(char *) "select", NULL
9489 };
9490
9491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9493 if (!SWIG_IsOK(res1)) {
9494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9495 }
9496 arg1 = reinterpret_cast< wxListBox * >(argp1);
9497 {
9498 arg2 = wxString_in_helper(obj1);
9499 if (arg2 == NULL) SWIG_fail;
9500 temp2 = true;
9501 }
9502 if (obj2) {
9503 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9504 if (!SWIG_IsOK(ecode3)) {
9505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9506 }
9507 arg3 = static_cast< bool >(val3);
9508 }
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9512 wxPyEndAllowThreads(__tstate);
9513 if (PyErr_Occurred()) SWIG_fail;
9514 }
9515 {
9516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9517 }
9518 {
9519 if (temp2)
9520 delete arg2;
9521 }
9522 return resultobj;
9523 fail:
9524 {
9525 if (temp2)
9526 delete arg2;
9527 }
9528 return NULL;
9529 }
9530
9531
9532 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9533 PyObject *resultobj = 0;
9534 wxListBox *arg1 = (wxListBox *) 0 ;
9535 PyObject *result = 0 ;
9536 void *argp1 = 0 ;
9537 int res1 = 0 ;
9538 PyObject *swig_obj[1] ;
9539
9540 if (!args) SWIG_fail;
9541 swig_obj[0] = args;
9542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9543 if (!SWIG_IsOK(res1)) {
9544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9545 }
9546 arg1 = reinterpret_cast< wxListBox * >(argp1);
9547 {
9548 PyThreadState* __tstate = wxPyBeginAllowThreads();
9549 result = (PyObject *)wxListBox_GetSelections(arg1);
9550 wxPyEndAllowThreads(__tstate);
9551 if (PyErr_Occurred()) SWIG_fail;
9552 }
9553 resultobj = result;
9554 return resultobj;
9555 fail:
9556 return NULL;
9557 }
9558
9559
9560 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9561 PyObject *resultobj = 0;
9562 wxListBox *arg1 = (wxListBox *) 0 ;
9563 int arg2 ;
9564 void *argp1 = 0 ;
9565 int res1 = 0 ;
9566 int val2 ;
9567 int ecode2 = 0 ;
9568 PyObject * obj0 = 0 ;
9569 PyObject * obj1 = 0 ;
9570 char * kwnames[] = {
9571 (char *) "self",(char *) "n", NULL
9572 };
9573
9574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9576 if (!SWIG_IsOK(res1)) {
9577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9578 }
9579 arg1 = reinterpret_cast< wxListBox * >(argp1);
9580 ecode2 = SWIG_AsVal_int(obj1, &val2);
9581 if (!SWIG_IsOK(ecode2)) {
9582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9583 }
9584 arg2 = static_cast< int >(val2);
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 (arg1)->SetFirstItem(arg2);
9588 wxPyEndAllowThreads(__tstate);
9589 if (PyErr_Occurred()) SWIG_fail;
9590 }
9591 resultobj = SWIG_Py_Void();
9592 return resultobj;
9593 fail:
9594 return NULL;
9595 }
9596
9597
9598 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9599 PyObject *resultobj = 0;
9600 wxListBox *arg1 = (wxListBox *) 0 ;
9601 wxString *arg2 = 0 ;
9602 void *argp1 = 0 ;
9603 int res1 = 0 ;
9604 bool temp2 = false ;
9605 PyObject * obj0 = 0 ;
9606 PyObject * obj1 = 0 ;
9607 char * kwnames[] = {
9608 (char *) "self",(char *) "s", NULL
9609 };
9610
9611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9613 if (!SWIG_IsOK(res1)) {
9614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9615 }
9616 arg1 = reinterpret_cast< wxListBox * >(argp1);
9617 {
9618 arg2 = wxString_in_helper(obj1);
9619 if (arg2 == NULL) SWIG_fail;
9620 temp2 = true;
9621 }
9622 {
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 (arg1)->SetFirstItem((wxString const &)*arg2);
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 resultobj = SWIG_Py_Void();
9629 {
9630 if (temp2)
9631 delete arg2;
9632 }
9633 return resultobj;
9634 fail:
9635 {
9636 if (temp2)
9637 delete arg2;
9638 }
9639 return NULL;
9640 }
9641
9642
9643 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj = 0;
9645 wxListBox *arg1 = (wxListBox *) 0 ;
9646 int arg2 ;
9647 void *argp1 = 0 ;
9648 int res1 = 0 ;
9649 int val2 ;
9650 int ecode2 = 0 ;
9651 PyObject * obj0 = 0 ;
9652 PyObject * obj1 = 0 ;
9653 char * kwnames[] = {
9654 (char *) "self",(char *) "n", NULL
9655 };
9656
9657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9659 if (!SWIG_IsOK(res1)) {
9660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9661 }
9662 arg1 = reinterpret_cast< wxListBox * >(argp1);
9663 ecode2 = SWIG_AsVal_int(obj1, &val2);
9664 if (!SWIG_IsOK(ecode2)) {
9665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9666 }
9667 arg2 = static_cast< int >(val2);
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 (arg1)->EnsureVisible(arg2);
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 resultobj = SWIG_Py_Void();
9675 return resultobj;
9676 fail:
9677 return NULL;
9678 }
9679
9680
9681 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj = 0;
9683 wxListBox *arg1 = (wxListBox *) 0 ;
9684 wxString *arg2 = 0 ;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 bool temp2 = false ;
9688 PyObject * obj0 = 0 ;
9689 PyObject * obj1 = 0 ;
9690 char * kwnames[] = {
9691 (char *) "self",(char *) "s", NULL
9692 };
9693
9694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9696 if (!SWIG_IsOK(res1)) {
9697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9698 }
9699 arg1 = reinterpret_cast< wxListBox * >(argp1);
9700 {
9701 arg2 = wxString_in_helper(obj1);
9702 if (arg2 == NULL) SWIG_fail;
9703 temp2 = true;
9704 }
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
9711 resultobj = SWIG_Py_Void();
9712 {
9713 if (temp2)
9714 delete arg2;
9715 }
9716 return resultobj;
9717 fail:
9718 {
9719 if (temp2)
9720 delete arg2;
9721 }
9722 return NULL;
9723 }
9724
9725
9726 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9727 PyObject *resultobj = 0;
9728 wxListBox *arg1 = (wxListBox *) 0 ;
9729 bool result;
9730 void *argp1 = 0 ;
9731 int res1 = 0 ;
9732 PyObject *swig_obj[1] ;
9733
9734 if (!args) SWIG_fail;
9735 swig_obj[0] = args;
9736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9737 if (!SWIG_IsOK(res1)) {
9738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9739 }
9740 arg1 = reinterpret_cast< wxListBox * >(argp1);
9741 {
9742 PyThreadState* __tstate = wxPyBeginAllowThreads();
9743 result = (bool)((wxListBox const *)arg1)->IsSorted();
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 {
9748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9749 }
9750 return resultobj;
9751 fail:
9752 return NULL;
9753 }
9754
9755
9756 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj = 0;
9758 wxListBox *arg1 = (wxListBox *) 0 ;
9759 wxPoint *arg2 = 0 ;
9760 int result;
9761 void *argp1 = 0 ;
9762 int res1 = 0 ;
9763 wxPoint temp2 ;
9764 PyObject * obj0 = 0 ;
9765 PyObject * obj1 = 0 ;
9766 char * kwnames[] = {
9767 (char *) "self",(char *) "pt", NULL
9768 };
9769
9770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9772 if (!SWIG_IsOK(res1)) {
9773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9774 }
9775 arg1 = reinterpret_cast< wxListBox * >(argp1);
9776 {
9777 arg2 = &temp2;
9778 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9779 }
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 resultobj = SWIG_From_int(static_cast< int >(result));
9787 return resultobj;
9788 fail:
9789 return NULL;
9790 }
9791
9792
9793 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9794 PyObject *resultobj = 0;
9795 wxListBox *arg1 = (wxListBox *) 0 ;
9796 int arg2 ;
9797 wxColour *arg3 = 0 ;
9798 void *argp1 = 0 ;
9799 int res1 = 0 ;
9800 int val2 ;
9801 int ecode2 = 0 ;
9802 wxColour temp3 ;
9803 PyObject * obj0 = 0 ;
9804 PyObject * obj1 = 0 ;
9805 PyObject * obj2 = 0 ;
9806 char * kwnames[] = {
9807 (char *) "self",(char *) "item",(char *) "c", NULL
9808 };
9809
9810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9812 if (!SWIG_IsOK(res1)) {
9813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9814 }
9815 arg1 = reinterpret_cast< wxListBox * >(argp1);
9816 ecode2 = SWIG_AsVal_int(obj1, &val2);
9817 if (!SWIG_IsOK(ecode2)) {
9818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9819 }
9820 arg2 = static_cast< int >(val2);
9821 {
9822 arg3 = &temp3;
9823 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9824 }
9825 {
9826 PyThreadState* __tstate = wxPyBeginAllowThreads();
9827 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9828 wxPyEndAllowThreads(__tstate);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 }
9831 resultobj = SWIG_Py_Void();
9832 return resultobj;
9833 fail:
9834 return NULL;
9835 }
9836
9837
9838 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9839 PyObject *resultobj = 0;
9840 wxListBox *arg1 = (wxListBox *) 0 ;
9841 int arg2 ;
9842 wxColour *arg3 = 0 ;
9843 void *argp1 = 0 ;
9844 int res1 = 0 ;
9845 int val2 ;
9846 int ecode2 = 0 ;
9847 wxColour temp3 ;
9848 PyObject * obj0 = 0 ;
9849 PyObject * obj1 = 0 ;
9850 PyObject * obj2 = 0 ;
9851 char * kwnames[] = {
9852 (char *) "self",(char *) "item",(char *) "c", NULL
9853 };
9854
9855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9857 if (!SWIG_IsOK(res1)) {
9858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9859 }
9860 arg1 = reinterpret_cast< wxListBox * >(argp1);
9861 ecode2 = SWIG_AsVal_int(obj1, &val2);
9862 if (!SWIG_IsOK(ecode2)) {
9863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9864 }
9865 arg2 = static_cast< int >(val2);
9866 {
9867 arg3 = &temp3;
9868 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9869 }
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 resultobj = SWIG_Py_Void();
9877 return resultobj;
9878 fail:
9879 return NULL;
9880 }
9881
9882
9883 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9884 PyObject *resultobj = 0;
9885 wxListBox *arg1 = (wxListBox *) 0 ;
9886 int arg2 ;
9887 wxFont *arg3 = 0 ;
9888 void *argp1 = 0 ;
9889 int res1 = 0 ;
9890 int val2 ;
9891 int ecode2 = 0 ;
9892 void *argp3 = 0 ;
9893 int res3 = 0 ;
9894 PyObject * obj0 = 0 ;
9895 PyObject * obj1 = 0 ;
9896 PyObject * obj2 = 0 ;
9897 char * kwnames[] = {
9898 (char *) "self",(char *) "item",(char *) "f", NULL
9899 };
9900
9901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9903 if (!SWIG_IsOK(res1)) {
9904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9905 }
9906 arg1 = reinterpret_cast< wxListBox * >(argp1);
9907 ecode2 = SWIG_AsVal_int(obj1, &val2);
9908 if (!SWIG_IsOK(ecode2)) {
9909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9910 }
9911 arg2 = static_cast< int >(val2);
9912 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9913 if (!SWIG_IsOK(res3)) {
9914 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9915 }
9916 if (!argp3) {
9917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9918 }
9919 arg3 = reinterpret_cast< wxFont * >(argp3);
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 resultobj = SWIG_Py_Void();
9927 return resultobj;
9928 fail:
9929 return NULL;
9930 }
9931
9932
9933 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9934 PyObject *resultobj = 0;
9935 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9936 SwigValueWrapper<wxVisualAttributes > result;
9937 int val1 ;
9938 int ecode1 = 0 ;
9939 PyObject * obj0 = 0 ;
9940 char * kwnames[] = {
9941 (char *) "variant", NULL
9942 };
9943
9944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9945 if (obj0) {
9946 ecode1 = SWIG_AsVal_int(obj0, &val1);
9947 if (!SWIG_IsOK(ecode1)) {
9948 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9949 }
9950 arg1 = static_cast< wxWindowVariant >(val1);
9951 }
9952 {
9953 if (!wxPyCheckForApp()) SWIG_fail;
9954 PyThreadState* __tstate = wxPyBeginAllowThreads();
9955 result = wxListBox::GetClassDefaultAttributes(arg1);
9956 wxPyEndAllowThreads(__tstate);
9957 if (PyErr_Occurred()) SWIG_fail;
9958 }
9959 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9960 return resultobj;
9961 fail:
9962 return NULL;
9963 }
9964
9965
9966 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9967 PyObject *obj;
9968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9969 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9970 return SWIG_Py_Void();
9971 }
9972
9973 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9974 return SWIG_Python_InitShadowInstance(args);
9975 }
9976
9977 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9978 PyObject *resultobj = 0;
9979 wxWindow *arg1 = (wxWindow *) 0 ;
9980 int arg2 = (int) -1 ;
9981 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9982 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9983 wxSize const &arg4_defvalue = wxDefaultSize ;
9984 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9985 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9986 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9987 long arg6 = (long) 0 ;
9988 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9989 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9990 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9991 wxString *arg8 = (wxString *) &arg8_defvalue ;
9992 wxCheckListBox *result = 0 ;
9993 void *argp1 = 0 ;
9994 int res1 = 0 ;
9995 int val2 ;
9996 int ecode2 = 0 ;
9997 wxPoint temp3 ;
9998 wxSize temp4 ;
9999 bool temp5 = false ;
10000 long val6 ;
10001 int ecode6 = 0 ;
10002 void *argp7 = 0 ;
10003 int res7 = 0 ;
10004 bool temp8 = false ;
10005 PyObject * obj0 = 0 ;
10006 PyObject * obj1 = 0 ;
10007 PyObject * obj2 = 0 ;
10008 PyObject * obj3 = 0 ;
10009 PyObject * obj4 = 0 ;
10010 PyObject * obj5 = 0 ;
10011 PyObject * obj6 = 0 ;
10012 PyObject * obj7 = 0 ;
10013 char * kwnames[] = {
10014 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10015 };
10016
10017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10019 if (!SWIG_IsOK(res1)) {
10020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10021 }
10022 arg1 = reinterpret_cast< wxWindow * >(argp1);
10023 if (obj1) {
10024 ecode2 = SWIG_AsVal_int(obj1, &val2);
10025 if (!SWIG_IsOK(ecode2)) {
10026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10027 }
10028 arg2 = static_cast< int >(val2);
10029 }
10030 if (obj2) {
10031 {
10032 arg3 = &temp3;
10033 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10034 }
10035 }
10036 if (obj3) {
10037 {
10038 arg4 = &temp4;
10039 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10040 }
10041 }
10042 if (obj4) {
10043 {
10044 if (! PySequence_Check(obj4)) {
10045 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10046 SWIG_fail;
10047 }
10048 arg5 = new wxArrayString;
10049 temp5 = true;
10050 int i, len=PySequence_Length(obj4);
10051 for (i=0; i<len; i++) {
10052 PyObject* item = PySequence_GetItem(obj4, i);
10053 wxString* s = wxString_in_helper(item);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 arg5->Add(*s);
10056 delete s;
10057 Py_DECREF(item);
10058 }
10059 }
10060 }
10061 if (obj5) {
10062 ecode6 = SWIG_AsVal_long(obj5, &val6);
10063 if (!SWIG_IsOK(ecode6)) {
10064 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10065 }
10066 arg6 = static_cast< long >(val6);
10067 }
10068 if (obj6) {
10069 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10070 if (!SWIG_IsOK(res7)) {
10071 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10072 }
10073 if (!argp7) {
10074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10075 }
10076 arg7 = reinterpret_cast< wxValidator * >(argp7);
10077 }
10078 if (obj7) {
10079 {
10080 arg8 = wxString_in_helper(obj7);
10081 if (arg8 == NULL) SWIG_fail;
10082 temp8 = true;
10083 }
10084 }
10085 {
10086 if (!wxPyCheckForApp()) SWIG_fail;
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10089 wxPyEndAllowThreads(__tstate);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10093 {
10094 if (temp5) delete arg5;
10095 }
10096 {
10097 if (temp8)
10098 delete arg8;
10099 }
10100 return resultobj;
10101 fail:
10102 {
10103 if (temp5) delete arg5;
10104 }
10105 {
10106 if (temp8)
10107 delete arg8;
10108 }
10109 return NULL;
10110 }
10111
10112
10113 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10114 PyObject *resultobj = 0;
10115 wxCheckListBox *result = 0 ;
10116
10117 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10118 {
10119 if (!wxPyCheckForApp()) SWIG_fail;
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = (wxCheckListBox *)new wxCheckListBox();
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10126 return resultobj;
10127 fail:
10128 return NULL;
10129 }
10130
10131
10132 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj = 0;
10134 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10135 wxWindow *arg2 = (wxWindow *) 0 ;
10136 int arg3 = (int) -1 ;
10137 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10138 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10139 wxSize const &arg5_defvalue = wxDefaultSize ;
10140 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10141 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10142 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10143 long arg7 = (long) 0 ;
10144 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10145 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10146 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10147 wxString *arg9 = (wxString *) &arg9_defvalue ;
10148 bool result;
10149 void *argp1 = 0 ;
10150 int res1 = 0 ;
10151 void *argp2 = 0 ;
10152 int res2 = 0 ;
10153 int val3 ;
10154 int ecode3 = 0 ;
10155 wxPoint temp4 ;
10156 wxSize temp5 ;
10157 bool temp6 = false ;
10158 long val7 ;
10159 int ecode7 = 0 ;
10160 void *argp8 = 0 ;
10161 int res8 = 0 ;
10162 bool temp9 = false ;
10163 PyObject * obj0 = 0 ;
10164 PyObject * obj1 = 0 ;
10165 PyObject * obj2 = 0 ;
10166 PyObject * obj3 = 0 ;
10167 PyObject * obj4 = 0 ;
10168 PyObject * obj5 = 0 ;
10169 PyObject * obj6 = 0 ;
10170 PyObject * obj7 = 0 ;
10171 PyObject * obj8 = 0 ;
10172 char * kwnames[] = {
10173 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10174 };
10175
10176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10178 if (!SWIG_IsOK(res1)) {
10179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10180 }
10181 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10182 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10183 if (!SWIG_IsOK(res2)) {
10184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10185 }
10186 arg2 = reinterpret_cast< wxWindow * >(argp2);
10187 if (obj2) {
10188 ecode3 = SWIG_AsVal_int(obj2, &val3);
10189 if (!SWIG_IsOK(ecode3)) {
10190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10191 }
10192 arg3 = static_cast< int >(val3);
10193 }
10194 if (obj3) {
10195 {
10196 arg4 = &temp4;
10197 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10198 }
10199 }
10200 if (obj4) {
10201 {
10202 arg5 = &temp5;
10203 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10204 }
10205 }
10206 if (obj5) {
10207 {
10208 if (! PySequence_Check(obj5)) {
10209 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10210 SWIG_fail;
10211 }
10212 arg6 = new wxArrayString;
10213 temp6 = true;
10214 int i, len=PySequence_Length(obj5);
10215 for (i=0; i<len; i++) {
10216 PyObject* item = PySequence_GetItem(obj5, i);
10217 wxString* s = wxString_in_helper(item);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 arg6->Add(*s);
10220 delete s;
10221 Py_DECREF(item);
10222 }
10223 }
10224 }
10225 if (obj6) {
10226 ecode7 = SWIG_AsVal_long(obj6, &val7);
10227 if (!SWIG_IsOK(ecode7)) {
10228 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10229 }
10230 arg7 = static_cast< long >(val7);
10231 }
10232 if (obj7) {
10233 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10234 if (!SWIG_IsOK(res8)) {
10235 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10236 }
10237 if (!argp8) {
10238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10239 }
10240 arg8 = reinterpret_cast< wxValidator * >(argp8);
10241 }
10242 if (obj8) {
10243 {
10244 arg9 = wxString_in_helper(obj8);
10245 if (arg9 == NULL) SWIG_fail;
10246 temp9 = true;
10247 }
10248 }
10249 {
10250 PyThreadState* __tstate = wxPyBeginAllowThreads();
10251 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10252 wxPyEndAllowThreads(__tstate);
10253 if (PyErr_Occurred()) SWIG_fail;
10254 }
10255 {
10256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10257 }
10258 {
10259 if (temp6) delete arg6;
10260 }
10261 {
10262 if (temp9)
10263 delete arg9;
10264 }
10265 return resultobj;
10266 fail:
10267 {
10268 if (temp6) delete arg6;
10269 }
10270 {
10271 if (temp9)
10272 delete arg9;
10273 }
10274 return NULL;
10275 }
10276
10277
10278 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10279 PyObject *resultobj = 0;
10280 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10281 unsigned int arg2 ;
10282 bool result;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 unsigned int val2 ;
10286 int ecode2 = 0 ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 char * kwnames[] = {
10290 (char *) "self",(char *) "index", NULL
10291 };
10292
10293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10295 if (!SWIG_IsOK(res1)) {
10296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10297 }
10298 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10299 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10300 if (!SWIG_IsOK(ecode2)) {
10301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10302 }
10303 arg2 = static_cast< unsigned int >(val2);
10304 {
10305 PyThreadState* __tstate = wxPyBeginAllowThreads();
10306 result = (bool)(arg1)->IsChecked(arg2);
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 {
10311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10312 }
10313 return resultobj;
10314 fail:
10315 return NULL;
10316 }
10317
10318
10319 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj = 0;
10321 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10322 unsigned int arg2 ;
10323 int arg3 = (int) true ;
10324 void *argp1 = 0 ;
10325 int res1 = 0 ;
10326 unsigned int val2 ;
10327 int ecode2 = 0 ;
10328 int val3 ;
10329 int ecode3 = 0 ;
10330 PyObject * obj0 = 0 ;
10331 PyObject * obj1 = 0 ;
10332 PyObject * obj2 = 0 ;
10333 char * kwnames[] = {
10334 (char *) "self",(char *) "index",(char *) "check", NULL
10335 };
10336
10337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10341 }
10342 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10343 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10344 if (!SWIG_IsOK(ecode2)) {
10345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10346 }
10347 arg2 = static_cast< unsigned int >(val2);
10348 if (obj2) {
10349 ecode3 = SWIG_AsVal_int(obj2, &val3);
10350 if (!SWIG_IsOK(ecode3)) {
10351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10352 }
10353 arg3 = static_cast< int >(val3);
10354 }
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 (arg1)->Check(arg2,arg3);
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 resultobj = SWIG_Py_Void();
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10369 PyObject *resultobj = 0;
10370 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10371 int result;
10372 void *argp1 = 0 ;
10373 int res1 = 0 ;
10374 PyObject *swig_obj[1] ;
10375
10376 if (!args) SWIG_fail;
10377 swig_obj[0] = args;
10378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10379 if (!SWIG_IsOK(res1)) {
10380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10381 }
10382 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 result = (int)(arg1)->GetItemHeight();
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 resultobj = SWIG_From_int(static_cast< int >(result));
10390 return resultobj;
10391 fail:
10392 return NULL;
10393 }
10394
10395
10396 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10397 PyObject *obj;
10398 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10399 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10400 return SWIG_Py_Void();
10401 }
10402
10403 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10404 return SWIG_Python_InitShadowInstance(args);
10405 }
10406
10407 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10408 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10409 return 1;
10410 }
10411
10412
10413 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10414 PyObject *pyobj = 0;
10415
10416 {
10417 #if wxUSE_UNICODE
10418 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10419 #else
10420 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10421 #endif
10422 }
10423 return pyobj;
10424 }
10425
10426
10427 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10428 PyObject *resultobj = 0;
10429 wxColour const &arg1_defvalue = wxNullColour ;
10430 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10431 wxColour const &arg2_defvalue = wxNullColour ;
10432 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10433 wxFont const &arg3_defvalue = wxNullFont ;
10434 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10435 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10436 wxTextAttr *result = 0 ;
10437 wxColour temp1 ;
10438 wxColour temp2 ;
10439 void *argp3 = 0 ;
10440 int res3 = 0 ;
10441 int val4 ;
10442 int ecode4 = 0 ;
10443 PyObject * obj0 = 0 ;
10444 PyObject * obj1 = 0 ;
10445 PyObject * obj2 = 0 ;
10446 PyObject * obj3 = 0 ;
10447 char * kwnames[] = {
10448 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10449 };
10450
10451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10452 if (obj0) {
10453 {
10454 arg1 = &temp1;
10455 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10456 }
10457 }
10458 if (obj1) {
10459 {
10460 arg2 = &temp2;
10461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10462 }
10463 }
10464 if (obj2) {
10465 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10466 if (!SWIG_IsOK(res3)) {
10467 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10468 }
10469 if (!argp3) {
10470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10471 }
10472 arg3 = reinterpret_cast< wxFont * >(argp3);
10473 }
10474 if (obj3) {
10475 ecode4 = SWIG_AsVal_int(obj3, &val4);
10476 if (!SWIG_IsOK(ecode4)) {
10477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10478 }
10479 arg4 = static_cast< wxTextAttrAlignment >(val4);
10480 }
10481 {
10482 PyThreadState* __tstate = wxPyBeginAllowThreads();
10483 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10484 wxPyEndAllowThreads(__tstate);
10485 if (PyErr_Occurred()) SWIG_fail;
10486 }
10487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10488 return resultobj;
10489 fail:
10490 return NULL;
10491 }
10492
10493
10494 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10495 PyObject *resultobj = 0;
10496 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10497 void *argp1 = 0 ;
10498 int res1 = 0 ;
10499 PyObject *swig_obj[1] ;
10500
10501 if (!args) SWIG_fail;
10502 swig_obj[0] = args;
10503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10504 if (!SWIG_IsOK(res1)) {
10505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10506 }
10507 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10508 {
10509 PyThreadState* __tstate = wxPyBeginAllowThreads();
10510 delete arg1;
10511
10512 wxPyEndAllowThreads(__tstate);
10513 if (PyErr_Occurred()) SWIG_fail;
10514 }
10515 resultobj = SWIG_Py_Void();
10516 return resultobj;
10517 fail:
10518 return NULL;
10519 }
10520
10521
10522 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10523 PyObject *resultobj = 0;
10524 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10525 void *argp1 = 0 ;
10526 int res1 = 0 ;
10527 PyObject *swig_obj[1] ;
10528
10529 if (!args) SWIG_fail;
10530 swig_obj[0] = args;
10531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10532 if (!SWIG_IsOK(res1)) {
10533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10534 }
10535 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10536 {
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 (arg1)->Init();
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 resultobj = SWIG_Py_Void();
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj = 0;
10551 wxTextAttr *arg1 = 0 ;
10552 wxTextAttr *arg2 = 0 ;
10553 wxTextAttr result;
10554 void *argp1 = 0 ;
10555 int res1 = 0 ;
10556 void *argp2 = 0 ;
10557 int res2 = 0 ;
10558 PyObject * obj0 = 0 ;
10559 PyObject * obj1 = 0 ;
10560 char * kwnames[] = {
10561 (char *) "base",(char *) "overlay", NULL
10562 };
10563
10564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10565 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10566 if (!SWIG_IsOK(res1)) {
10567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10568 }
10569 if (!argp1) {
10570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10571 }
10572 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10573 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10574 if (!SWIG_IsOK(res2)) {
10575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10576 }
10577 if (!argp2) {
10578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10579 }
10580 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10581 {
10582 PyThreadState* __tstate = wxPyBeginAllowThreads();
10583 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10584 wxPyEndAllowThreads(__tstate);
10585 if (PyErr_Occurred()) SWIG_fail;
10586 }
10587 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10588 return resultobj;
10589 fail:
10590 return NULL;
10591 }
10592
10593
10594 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10595 PyObject *resultobj = 0;
10596 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10597 wxColour *arg2 = 0 ;
10598 void *argp1 = 0 ;
10599 int res1 = 0 ;
10600 wxColour temp2 ;
10601 PyObject * obj0 = 0 ;
10602 PyObject * obj1 = 0 ;
10603 char * kwnames[] = {
10604 (char *) "self",(char *) "colText", NULL
10605 };
10606
10607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10609 if (!SWIG_IsOK(res1)) {
10610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10611 }
10612 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10613 {
10614 arg2 = &temp2;
10615 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10616 }
10617 {
10618 PyThreadState* __tstate = wxPyBeginAllowThreads();
10619 (arg1)->SetTextColour((wxColour const &)*arg2);
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 resultobj = SWIG_Py_Void();
10624 return resultobj;
10625 fail:
10626 return NULL;
10627 }
10628
10629
10630 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10631 PyObject *resultobj = 0;
10632 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10633 wxColour *arg2 = 0 ;
10634 void *argp1 = 0 ;
10635 int res1 = 0 ;
10636 wxColour temp2 ;
10637 PyObject * obj0 = 0 ;
10638 PyObject * obj1 = 0 ;
10639 char * kwnames[] = {
10640 (char *) "self",(char *) "colBack", NULL
10641 };
10642
10643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10645 if (!SWIG_IsOK(res1)) {
10646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10647 }
10648 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10649 {
10650 arg2 = &temp2;
10651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 resultobj = SWIG_Py_Void();
10660 return resultobj;
10661 fail:
10662 return NULL;
10663 }
10664
10665
10666 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj = 0;
10668 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10669 wxFont *arg2 = 0 ;
10670 long arg3 = (long) wxTEXT_ATTR_FONT ;
10671 void *argp1 = 0 ;
10672 int res1 = 0 ;
10673 void *argp2 = 0 ;
10674 int res2 = 0 ;
10675 long val3 ;
10676 int ecode3 = 0 ;
10677 PyObject * obj0 = 0 ;
10678 PyObject * obj1 = 0 ;
10679 PyObject * obj2 = 0 ;
10680 char * kwnames[] = {
10681 (char *) "self",(char *) "font",(char *) "flags", NULL
10682 };
10683
10684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10686 if (!SWIG_IsOK(res1)) {
10687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10688 }
10689 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10691 if (!SWIG_IsOK(res2)) {
10692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10693 }
10694 if (!argp2) {
10695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10696 }
10697 arg2 = reinterpret_cast< wxFont * >(argp2);
10698 if (obj2) {
10699 ecode3 = SWIG_AsVal_long(obj2, &val3);
10700 if (!SWIG_IsOK(ecode3)) {
10701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10702 }
10703 arg3 = static_cast< long >(val3);
10704 }
10705 {
10706 PyThreadState* __tstate = wxPyBeginAllowThreads();
10707 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 resultobj = SWIG_Py_Void();
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj = 0;
10720 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10721 wxTextAttrAlignment arg2 ;
10722 void *argp1 = 0 ;
10723 int res1 = 0 ;
10724 int val2 ;
10725 int ecode2 = 0 ;
10726 PyObject * obj0 = 0 ;
10727 PyObject * obj1 = 0 ;
10728 char * kwnames[] = {
10729 (char *) "self",(char *) "alignment", NULL
10730 };
10731
10732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10734 if (!SWIG_IsOK(res1)) {
10735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10736 }
10737 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10738 ecode2 = SWIG_AsVal_int(obj1, &val2);
10739 if (!SWIG_IsOK(ecode2)) {
10740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10741 }
10742 arg2 = static_cast< wxTextAttrAlignment >(val2);
10743 {
10744 PyThreadState* __tstate = wxPyBeginAllowThreads();
10745 (arg1)->SetAlignment(arg2);
10746 wxPyEndAllowThreads(__tstate);
10747 if (PyErr_Occurred()) SWIG_fail;
10748 }
10749 resultobj = SWIG_Py_Void();
10750 return resultobj;
10751 fail:
10752 return NULL;
10753 }
10754
10755
10756 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10757 PyObject *resultobj = 0;
10758 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10759 wxArrayInt *arg2 = 0 ;
10760 void *argp1 = 0 ;
10761 int res1 = 0 ;
10762 bool temp2 = false ;
10763 PyObject * obj0 = 0 ;
10764 PyObject * obj1 = 0 ;
10765 char * kwnames[] = {
10766 (char *) "self",(char *) "tabs", NULL
10767 };
10768
10769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10771 if (!SWIG_IsOK(res1)) {
10772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10773 }
10774 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10775 {
10776 if (! PySequence_Check(obj1)) {
10777 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10778 SWIG_fail;
10779 }
10780 arg2 = new wxArrayInt;
10781 temp2 = true;
10782 int i, len=PySequence_Length(obj1);
10783 for (i=0; i<len; i++) {
10784 PyObject* item = PySequence_GetItem(obj1, i);
10785 PyObject* number = PyNumber_Int(item);
10786 if (!number) {
10787 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10788 SWIG_fail;
10789 }
10790 arg2->Add(PyInt_AS_LONG(number));
10791 Py_DECREF(item);
10792 Py_DECREF(number);
10793 }
10794 }
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_Py_Void();
10802 {
10803 if (temp2) delete arg2;
10804 }
10805 return resultobj;
10806 fail:
10807 {
10808 if (temp2) delete arg2;
10809 }
10810 return NULL;
10811 }
10812
10813
10814 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = 0;
10816 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10817 int arg2 ;
10818 int arg3 = (int) 0 ;
10819 void *argp1 = 0 ;
10820 int res1 = 0 ;
10821 int val2 ;
10822 int ecode2 = 0 ;
10823 int val3 ;
10824 int ecode3 = 0 ;
10825 PyObject * obj0 = 0 ;
10826 PyObject * obj1 = 0 ;
10827 PyObject * obj2 = 0 ;
10828 char * kwnames[] = {
10829 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10830 };
10831
10832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10834 if (!SWIG_IsOK(res1)) {
10835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10836 }
10837 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10838 ecode2 = SWIG_AsVal_int(obj1, &val2);
10839 if (!SWIG_IsOK(ecode2)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10841 }
10842 arg2 = static_cast< int >(val2);
10843 if (obj2) {
10844 ecode3 = SWIG_AsVal_int(obj2, &val3);
10845 if (!SWIG_IsOK(ecode3)) {
10846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10847 }
10848 arg3 = static_cast< int >(val3);
10849 }
10850 {
10851 PyThreadState* __tstate = wxPyBeginAllowThreads();
10852 (arg1)->SetLeftIndent(arg2,arg3);
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 resultobj = SWIG_Py_Void();
10857 return resultobj;
10858 fail:
10859 return NULL;
10860 }
10861
10862
10863 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj = 0;
10865 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10866 int arg2 ;
10867 void *argp1 = 0 ;
10868 int res1 = 0 ;
10869 int val2 ;
10870 int ecode2 = 0 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 char * kwnames[] = {
10874 (char *) "self",(char *) "indent", NULL
10875 };
10876
10877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10881 }
10882 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10883 ecode2 = SWIG_AsVal_int(obj1, &val2);
10884 if (!SWIG_IsOK(ecode2)) {
10885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10886 }
10887 arg2 = static_cast< int >(val2);
10888 {
10889 PyThreadState* __tstate = wxPyBeginAllowThreads();
10890 (arg1)->SetRightIndent(arg2);
10891 wxPyEndAllowThreads(__tstate);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 }
10894 resultobj = SWIG_Py_Void();
10895 return resultobj;
10896 fail:
10897 return NULL;
10898 }
10899
10900
10901 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10902 PyObject *resultobj = 0;
10903 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10904 long arg2 ;
10905 void *argp1 = 0 ;
10906 int res1 = 0 ;
10907 long val2 ;
10908 int ecode2 = 0 ;
10909 PyObject * obj0 = 0 ;
10910 PyObject * obj1 = 0 ;
10911 char * kwnames[] = {
10912 (char *) "self",(char *) "flags", NULL
10913 };
10914
10915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10917 if (!SWIG_IsOK(res1)) {
10918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10919 }
10920 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10921 ecode2 = SWIG_AsVal_long(obj1, &val2);
10922 if (!SWIG_IsOK(ecode2)) {
10923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10924 }
10925 arg2 = static_cast< long >(val2);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 (arg1)->SetFlags(arg2);
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 resultobj = SWIG_Py_Void();
10933 return resultobj;
10934 fail:
10935 return NULL;
10936 }
10937
10938
10939 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10940 PyObject *resultobj = 0;
10941 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10942 bool result;
10943 void *argp1 = 0 ;
10944 int res1 = 0 ;
10945 PyObject *swig_obj[1] ;
10946
10947 if (!args) SWIG_fail;
10948 swig_obj[0] = args;
10949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10952 }
10953 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10962 }
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10970 PyObject *resultobj = 0;
10971 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10972 bool result;
10973 void *argp1 = 0 ;
10974 int res1 = 0 ;
10975 PyObject *swig_obj[1] ;
10976
10977 if (!args) SWIG_fail;
10978 swig_obj[0] = args;
10979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10980 if (!SWIG_IsOK(res1)) {
10981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10982 }
10983 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 {
10991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10992 }
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11000 PyObject *resultobj = 0;
11001 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11002 bool result;
11003 void *argp1 = 0 ;
11004 int res1 = 0 ;
11005 PyObject *swig_obj[1] ;
11006
11007 if (!args) SWIG_fail;
11008 swig_obj[0] = args;
11009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11012 }
11013 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11014 {
11015 PyThreadState* __tstate = wxPyBeginAllowThreads();
11016 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11017 wxPyEndAllowThreads(__tstate);
11018 if (PyErr_Occurred()) SWIG_fail;
11019 }
11020 {
11021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11022 }
11023 return resultobj;
11024 fail:
11025 return NULL;
11026 }
11027
11028
11029 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11030 PyObject *resultobj = 0;
11031 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11032 bool result;
11033 void *argp1 = 0 ;
11034 int res1 = 0 ;
11035 PyObject *swig_obj[1] ;
11036
11037 if (!args) SWIG_fail;
11038 swig_obj[0] = args;
11039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11040 if (!SWIG_IsOK(res1)) {
11041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11042 }
11043 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11044 {
11045 PyThreadState* __tstate = wxPyBeginAllowThreads();
11046 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11047 wxPyEndAllowThreads(__tstate);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 {
11051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11052 }
11053 return resultobj;
11054 fail:
11055 return NULL;
11056 }
11057
11058
11059 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11060 PyObject *resultobj = 0;
11061 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11062 bool result;
11063 void *argp1 = 0 ;
11064 int res1 = 0 ;
11065 PyObject *swig_obj[1] ;
11066
11067 if (!args) SWIG_fail;
11068 swig_obj[0] = args;
11069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11072 }
11073 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11074 {
11075 PyThreadState* __tstate = wxPyBeginAllowThreads();
11076 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11077 wxPyEndAllowThreads(__tstate);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 }
11080 {
11081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11082 }
11083 return resultobj;
11084 fail:
11085 return NULL;
11086 }
11087
11088
11089 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11090 PyObject *resultobj = 0;
11091 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11092 bool result;
11093 void *argp1 = 0 ;
11094 int res1 = 0 ;
11095 PyObject *swig_obj[1] ;
11096
11097 if (!args) SWIG_fail;
11098 swig_obj[0] = args;
11099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11100 if (!SWIG_IsOK(res1)) {
11101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11102 }
11103 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11107 wxPyEndAllowThreads(__tstate);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 {
11111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11112 }
11113 return resultobj;
11114 fail:
11115 return NULL;
11116 }
11117
11118
11119 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11120 PyObject *resultobj = 0;
11121 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11122 bool result;
11123 void *argp1 = 0 ;
11124 int res1 = 0 ;
11125 PyObject *swig_obj[1] ;
11126
11127 if (!args) SWIG_fail;
11128 swig_obj[0] = args;
11129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11130 if (!SWIG_IsOK(res1)) {
11131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11132 }
11133 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11134 {
11135 PyThreadState* __tstate = wxPyBeginAllowThreads();
11136 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11137 wxPyEndAllowThreads(__tstate);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 }
11140 {
11141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11142 }
11143 return resultobj;
11144 fail:
11145 return NULL;
11146 }
11147
11148
11149 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11150 PyObject *resultobj = 0;
11151 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11152 long arg2 ;
11153 bool result;
11154 void *argp1 = 0 ;
11155 int res1 = 0 ;
11156 long val2 ;
11157 int ecode2 = 0 ;
11158 PyObject * obj0 = 0 ;
11159 PyObject * obj1 = 0 ;
11160 char * kwnames[] = {
11161 (char *) "self",(char *) "flag", NULL
11162 };
11163
11164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11166 if (!SWIG_IsOK(res1)) {
11167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11168 }
11169 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11170 ecode2 = SWIG_AsVal_long(obj1, &val2);
11171 if (!SWIG_IsOK(ecode2)) {
11172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11173 }
11174 arg2 = static_cast< long >(val2);
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 {
11182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11183 }
11184 return resultobj;
11185 fail:
11186 return NULL;
11187 }
11188
11189
11190 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11191 PyObject *resultobj = 0;
11192 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11193 wxColour *result = 0 ;
11194 void *argp1 = 0 ;
11195 int res1 = 0 ;
11196 PyObject *swig_obj[1] ;
11197
11198 if (!args) SWIG_fail;
11199 swig_obj[0] = args;
11200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11203 }
11204 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 {
11208 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11209 result = (wxColour *) &_result_ref;
11210 }
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11215 return resultobj;
11216 fail:
11217 return NULL;
11218 }
11219
11220
11221 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11222 PyObject *resultobj = 0;
11223 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11224 wxColour *result = 0 ;
11225 void *argp1 = 0 ;
11226 int res1 = 0 ;
11227 PyObject *swig_obj[1] ;
11228
11229 if (!args) SWIG_fail;
11230 swig_obj[0] = args;
11231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11232 if (!SWIG_IsOK(res1)) {
11233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11234 }
11235 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 {
11239 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11240 result = (wxColour *) &_result_ref;
11241 }
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11246 return resultobj;
11247 fail:
11248 return NULL;
11249 }
11250
11251
11252 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11253 PyObject *resultobj = 0;
11254 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11255 wxFont *result = 0 ;
11256 void *argp1 = 0 ;
11257 int res1 = 0 ;
11258 PyObject *swig_obj[1] ;
11259
11260 if (!args) SWIG_fail;
11261 swig_obj[0] = args;
11262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11263 if (!SWIG_IsOK(res1)) {
11264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11265 }
11266 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 {
11270 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11271 result = (wxFont *) &_result_ref;
11272 }
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 {
11277 wxFont* resultptr = new wxFont(*result);
11278 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11279 }
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11287 PyObject *resultobj = 0;
11288 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11289 wxTextAttrAlignment result;
11290 void *argp1 = 0 ;
11291 int res1 = 0 ;
11292 PyObject *swig_obj[1] ;
11293
11294 if (!args) SWIG_fail;
11295 swig_obj[0] = args;
11296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11299 }
11300 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 resultobj = SWIG_From_int(static_cast< int >(result));
11308 return resultobj;
11309 fail:
11310 return NULL;
11311 }
11312
11313
11314 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11315 PyObject *resultobj = 0;
11316 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11317 wxArrayInt *result = 0 ;
11318 void *argp1 = 0 ;
11319 int res1 = 0 ;
11320 PyObject *swig_obj[1] ;
11321
11322 if (!args) SWIG_fail;
11323 swig_obj[0] = args;
11324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11325 if (!SWIG_IsOK(res1)) {
11326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11327 }
11328 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11329 {
11330 PyThreadState* __tstate = wxPyBeginAllowThreads();
11331 {
11332 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11333 result = (wxArrayInt *) &_result_ref;
11334 }
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 {
11339 resultobj = wxArrayInt2PyList_helper(*result);
11340 }
11341 return resultobj;
11342 fail:
11343 return NULL;
11344 }
11345
11346
11347 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11348 PyObject *resultobj = 0;
11349 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11350 long result;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 PyObject *swig_obj[1] ;
11354
11355 if (!args) SWIG_fail;
11356 swig_obj[0] = args;
11357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11360 }
11361 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 resultobj = SWIG_From_long(static_cast< long >(result));
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11376 PyObject *resultobj = 0;
11377 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11378 long result;
11379 void *argp1 = 0 ;
11380 int res1 = 0 ;
11381 PyObject *swig_obj[1] ;
11382
11383 if (!args) SWIG_fail;
11384 swig_obj[0] = args;
11385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11386 if (!SWIG_IsOK(res1)) {
11387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11388 }
11389 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 resultobj = SWIG_From_long(static_cast< long >(result));
11397 return resultobj;
11398 fail:
11399 return NULL;
11400 }
11401
11402
11403 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11404 PyObject *resultobj = 0;
11405 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11406 long result;
11407 void *argp1 = 0 ;
11408 int res1 = 0 ;
11409 PyObject *swig_obj[1] ;
11410
11411 if (!args) SWIG_fail;
11412 swig_obj[0] = args;
11413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11414 if (!SWIG_IsOK(res1)) {
11415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11416 }
11417 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 resultobj = SWIG_From_long(static_cast< long >(result));
11425 return resultobj;
11426 fail:
11427 return NULL;
11428 }
11429
11430
11431 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11432 PyObject *resultobj = 0;
11433 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11434 long result;
11435 void *argp1 = 0 ;
11436 int res1 = 0 ;
11437 PyObject *swig_obj[1] ;
11438
11439 if (!args) SWIG_fail;
11440 swig_obj[0] = args;
11441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11442 if (!SWIG_IsOK(res1)) {
11443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11444 }
11445 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11446 {
11447 PyThreadState* __tstate = wxPyBeginAllowThreads();
11448 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 resultobj = SWIG_From_long(static_cast< long >(result));
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11460 PyObject *resultobj = 0;
11461 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11462 bool result;
11463 void *argp1 = 0 ;
11464 int res1 = 0 ;
11465 PyObject *swig_obj[1] ;
11466
11467 if (!args) SWIG_fail;
11468 swig_obj[0] = args;
11469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11470 if (!SWIG_IsOK(res1)) {
11471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11472 }
11473 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 {
11481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11482 }
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj = 0;
11491 wxTextAttr *arg1 = 0 ;
11492 wxTextAttr *arg2 = 0 ;
11493 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11494 wxTextAttr result;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 void *argp2 = 0 ;
11498 int res2 = 0 ;
11499 void *argp3 = 0 ;
11500 int res3 = 0 ;
11501 PyObject * obj0 = 0 ;
11502 PyObject * obj1 = 0 ;
11503 PyObject * obj2 = 0 ;
11504 char * kwnames[] = {
11505 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11506 };
11507
11508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11509 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11510 if (!SWIG_IsOK(res1)) {
11511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11512 }
11513 if (!argp1) {
11514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11515 }
11516 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11518 if (!SWIG_IsOK(res2)) {
11519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11520 }
11521 if (!argp2) {
11522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11523 }
11524 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11525 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11526 if (!SWIG_IsOK(res3)) {
11527 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11528 }
11529 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11544 PyObject *obj;
11545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11546 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11547 return SWIG_Py_Void();
11548 }
11549
11550 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11551 return SWIG_Python_InitShadowInstance(args);
11552 }
11553
11554 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11555 PyObject *resultobj = 0;
11556 wxWindow *arg1 = (wxWindow *) 0 ;
11557 int arg2 = (int) -1 ;
11558 wxString const &arg3_defvalue = wxPyEmptyString ;
11559 wxString *arg3 = (wxString *) &arg3_defvalue ;
11560 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11561 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11562 wxSize const &arg5_defvalue = wxDefaultSize ;
11563 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11564 long arg6 = (long) 0 ;
11565 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11566 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11567 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11568 wxString *arg8 = (wxString *) &arg8_defvalue ;
11569 wxTextCtrl *result = 0 ;
11570 void *argp1 = 0 ;
11571 int res1 = 0 ;
11572 int val2 ;
11573 int ecode2 = 0 ;
11574 bool temp3 = false ;
11575 wxPoint temp4 ;
11576 wxSize temp5 ;
11577 long val6 ;
11578 int ecode6 = 0 ;
11579 void *argp7 = 0 ;
11580 int res7 = 0 ;
11581 bool temp8 = false ;
11582 PyObject * obj0 = 0 ;
11583 PyObject * obj1 = 0 ;
11584 PyObject * obj2 = 0 ;
11585 PyObject * obj3 = 0 ;
11586 PyObject * obj4 = 0 ;
11587 PyObject * obj5 = 0 ;
11588 PyObject * obj6 = 0 ;
11589 PyObject * obj7 = 0 ;
11590 char * kwnames[] = {
11591 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11592 };
11593
11594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11596 if (!SWIG_IsOK(res1)) {
11597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11598 }
11599 arg1 = reinterpret_cast< wxWindow * >(argp1);
11600 if (obj1) {
11601 ecode2 = SWIG_AsVal_int(obj1, &val2);
11602 if (!SWIG_IsOK(ecode2)) {
11603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11604 }
11605 arg2 = static_cast< int >(val2);
11606 }
11607 if (obj2) {
11608 {
11609 arg3 = wxString_in_helper(obj2);
11610 if (arg3 == NULL) SWIG_fail;
11611 temp3 = true;
11612 }
11613 }
11614 if (obj3) {
11615 {
11616 arg4 = &temp4;
11617 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11618 }
11619 }
11620 if (obj4) {
11621 {
11622 arg5 = &temp5;
11623 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11624 }
11625 }
11626 if (obj5) {
11627 ecode6 = SWIG_AsVal_long(obj5, &val6);
11628 if (!SWIG_IsOK(ecode6)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11630 }
11631 arg6 = static_cast< long >(val6);
11632 }
11633 if (obj6) {
11634 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11635 if (!SWIG_IsOK(res7)) {
11636 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11637 }
11638 if (!argp7) {
11639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11640 }
11641 arg7 = reinterpret_cast< wxValidator * >(argp7);
11642 }
11643 if (obj7) {
11644 {
11645 arg8 = wxString_in_helper(obj7);
11646 if (arg8 == NULL) SWIG_fail;
11647 temp8 = true;
11648 }
11649 }
11650 {
11651 if (!wxPyCheckForApp()) SWIG_fail;
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11658 {
11659 if (temp3)
11660 delete arg3;
11661 }
11662 {
11663 if (temp8)
11664 delete arg8;
11665 }
11666 return resultobj;
11667 fail:
11668 {
11669 if (temp3)
11670 delete arg3;
11671 }
11672 {
11673 if (temp8)
11674 delete arg8;
11675 }
11676 return NULL;
11677 }
11678
11679
11680 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11681 PyObject *resultobj = 0;
11682 wxTextCtrl *result = 0 ;
11683
11684 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11685 {
11686 if (!wxPyCheckForApp()) SWIG_fail;
11687 PyThreadState* __tstate = wxPyBeginAllowThreads();
11688 result = (wxTextCtrl *)new wxTextCtrl();
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj = 0;
11701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11702 wxWindow *arg2 = (wxWindow *) 0 ;
11703 int arg3 = (int) -1 ;
11704 wxString const &arg4_defvalue = wxPyEmptyString ;
11705 wxString *arg4 = (wxString *) &arg4_defvalue ;
11706 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11707 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11708 wxSize const &arg6_defvalue = wxDefaultSize ;
11709 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11710 long arg7 = (long) 0 ;
11711 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11712 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11713 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11714 wxString *arg9 = (wxString *) &arg9_defvalue ;
11715 bool result;
11716 void *argp1 = 0 ;
11717 int res1 = 0 ;
11718 void *argp2 = 0 ;
11719 int res2 = 0 ;
11720 int val3 ;
11721 int ecode3 = 0 ;
11722 bool temp4 = false ;
11723 wxPoint temp5 ;
11724 wxSize temp6 ;
11725 long val7 ;
11726 int ecode7 = 0 ;
11727 void *argp8 = 0 ;
11728 int res8 = 0 ;
11729 bool temp9 = false ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 PyObject * obj2 = 0 ;
11733 PyObject * obj3 = 0 ;
11734 PyObject * obj4 = 0 ;
11735 PyObject * obj5 = 0 ;
11736 PyObject * obj6 = 0 ;
11737 PyObject * obj7 = 0 ;
11738 PyObject * obj8 = 0 ;
11739 char * kwnames[] = {
11740 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11741 };
11742
11743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11745 if (!SWIG_IsOK(res1)) {
11746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11747 }
11748 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11749 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11750 if (!SWIG_IsOK(res2)) {
11751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11752 }
11753 arg2 = reinterpret_cast< wxWindow * >(argp2);
11754 if (obj2) {
11755 ecode3 = SWIG_AsVal_int(obj2, &val3);
11756 if (!SWIG_IsOK(ecode3)) {
11757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11758 }
11759 arg3 = static_cast< int >(val3);
11760 }
11761 if (obj3) {
11762 {
11763 arg4 = wxString_in_helper(obj3);
11764 if (arg4 == NULL) SWIG_fail;
11765 temp4 = true;
11766 }
11767 }
11768 if (obj4) {
11769 {
11770 arg5 = &temp5;
11771 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11772 }
11773 }
11774 if (obj5) {
11775 {
11776 arg6 = &temp6;
11777 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11778 }
11779 }
11780 if (obj6) {
11781 ecode7 = SWIG_AsVal_long(obj6, &val7);
11782 if (!SWIG_IsOK(ecode7)) {
11783 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11784 }
11785 arg7 = static_cast< long >(val7);
11786 }
11787 if (obj7) {
11788 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11789 if (!SWIG_IsOK(res8)) {
11790 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11791 }
11792 if (!argp8) {
11793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11794 }
11795 arg8 = reinterpret_cast< wxValidator * >(argp8);
11796 }
11797 if (obj8) {
11798 {
11799 arg9 = wxString_in_helper(obj8);
11800 if (arg9 == NULL) SWIG_fail;
11801 temp9 = true;
11802 }
11803 }
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11807 wxPyEndAllowThreads(__tstate);
11808 if (PyErr_Occurred()) SWIG_fail;
11809 }
11810 {
11811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11812 }
11813 {
11814 if (temp4)
11815 delete arg4;
11816 }
11817 {
11818 if (temp9)
11819 delete arg9;
11820 }
11821 return resultobj;
11822 fail:
11823 {
11824 if (temp4)
11825 delete arg4;
11826 }
11827 {
11828 if (temp9)
11829 delete arg9;
11830 }
11831 return NULL;
11832 }
11833
11834
11835 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11836 PyObject *resultobj = 0;
11837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11838 wxString result;
11839 void *argp1 = 0 ;
11840 int res1 = 0 ;
11841 PyObject *swig_obj[1] ;
11842
11843 if (!args) SWIG_fail;
11844 swig_obj[0] = args;
11845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11846 if (!SWIG_IsOK(res1)) {
11847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11848 }
11849 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11850 {
11851 PyThreadState* __tstate = wxPyBeginAllowThreads();
11852 result = ((wxTextCtrl const *)arg1)->GetValue();
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 {
11857 #if wxUSE_UNICODE
11858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11859 #else
11860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11861 #endif
11862 }
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj = 0;
11871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11872 wxString *arg2 = 0 ;
11873 void *argp1 = 0 ;
11874 int res1 = 0 ;
11875 bool temp2 = false ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 char * kwnames[] = {
11879 (char *) "self",(char *) "value", NULL
11880 };
11881
11882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11884 if (!SWIG_IsOK(res1)) {
11885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11886 }
11887 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11888 {
11889 arg2 = wxString_in_helper(obj1);
11890 if (arg2 == NULL) SWIG_fail;
11891 temp2 = true;
11892 }
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 (arg1)->SetValue((wxString const &)*arg2);
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = SWIG_Py_Void();
11900 {
11901 if (temp2)
11902 delete arg2;
11903 }
11904 return resultobj;
11905 fail:
11906 {
11907 if (temp2)
11908 delete arg2;
11909 }
11910 return NULL;
11911 }
11912
11913
11914 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11915 PyObject *resultobj = 0;
11916 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11917 bool result;
11918 void *argp1 = 0 ;
11919 int res1 = 0 ;
11920 PyObject *swig_obj[1] ;
11921
11922 if (!args) SWIG_fail;
11923 swig_obj[0] = args;
11924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11925 if (!SWIG_IsOK(res1)) {
11926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11927 }
11928 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11929 {
11930 PyThreadState* __tstate = wxPyBeginAllowThreads();
11931 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11932 wxPyEndAllowThreads(__tstate);
11933 if (PyErr_Occurred()) SWIG_fail;
11934 }
11935 {
11936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11937 }
11938 return resultobj;
11939 fail:
11940 return NULL;
11941 }
11942
11943
11944 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11945 PyObject *resultobj = 0;
11946 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11947 wxString *arg2 = 0 ;
11948 void *argp1 = 0 ;
11949 int res1 = 0 ;
11950 bool temp2 = false ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 char * kwnames[] = {
11954 (char *) "self",(char *) "value", NULL
11955 };
11956
11957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11959 if (!SWIG_IsOK(res1)) {
11960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11961 }
11962 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11963 {
11964 arg2 = wxString_in_helper(obj1);
11965 if (arg2 == NULL) SWIG_fail;
11966 temp2 = true;
11967 }
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 (arg1)->ChangeValue((wxString const &)*arg2);
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 resultobj = SWIG_Py_Void();
11975 {
11976 if (temp2)
11977 delete arg2;
11978 }
11979 return resultobj;
11980 fail:
11981 {
11982 if (temp2)
11983 delete arg2;
11984 }
11985 return NULL;
11986 }
11987
11988
11989 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11990 PyObject *resultobj = 0;
11991 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11992 long arg2 ;
11993 long arg3 ;
11994 wxString result;
11995 void *argp1 = 0 ;
11996 int res1 = 0 ;
11997 long val2 ;
11998 int ecode2 = 0 ;
11999 long val3 ;
12000 int ecode3 = 0 ;
12001 PyObject * obj0 = 0 ;
12002 PyObject * obj1 = 0 ;
12003 PyObject * obj2 = 0 ;
12004 char * kwnames[] = {
12005 (char *) "self",(char *) "from",(char *) "to", NULL
12006 };
12007
12008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12010 if (!SWIG_IsOK(res1)) {
12011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12012 }
12013 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12014 ecode2 = SWIG_AsVal_long(obj1, &val2);
12015 if (!SWIG_IsOK(ecode2)) {
12016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12017 }
12018 arg2 = static_cast< long >(val2);
12019 ecode3 = SWIG_AsVal_long(obj2, &val3);
12020 if (!SWIG_IsOK(ecode3)) {
12021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12022 }
12023 arg3 = static_cast< long >(val3);
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 #if wxUSE_UNICODE
12032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12033 #else
12034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12035 #endif
12036 }
12037 return resultobj;
12038 fail:
12039 return NULL;
12040 }
12041
12042
12043 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12046 long arg2 ;
12047 int result;
12048 void *argp1 = 0 ;
12049 int res1 = 0 ;
12050 long val2 ;
12051 int ecode2 = 0 ;
12052 PyObject * obj0 = 0 ;
12053 PyObject * obj1 = 0 ;
12054 char * kwnames[] = {
12055 (char *) "self",(char *) "lineNo", NULL
12056 };
12057
12058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12060 if (!SWIG_IsOK(res1)) {
12061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12062 }
12063 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12064 ecode2 = SWIG_AsVal_long(obj1, &val2);
12065 if (!SWIG_IsOK(ecode2)) {
12066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12067 }
12068 arg2 = static_cast< long >(val2);
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
12071 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 resultobj = SWIG_From_int(static_cast< int >(result));
12076 return resultobj;
12077 fail:
12078 return NULL;
12079 }
12080
12081
12082 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj = 0;
12084 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12085 long arg2 ;
12086 wxString result;
12087 void *argp1 = 0 ;
12088 int res1 = 0 ;
12089 long val2 ;
12090 int ecode2 = 0 ;
12091 PyObject * obj0 = 0 ;
12092 PyObject * obj1 = 0 ;
12093 char * kwnames[] = {
12094 (char *) "self",(char *) "lineNo", NULL
12095 };
12096
12097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12099 if (!SWIG_IsOK(res1)) {
12100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12101 }
12102 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12103 ecode2 = SWIG_AsVal_long(obj1, &val2);
12104 if (!SWIG_IsOK(ecode2)) {
12105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12106 }
12107 arg2 = static_cast< long >(val2);
12108 {
12109 PyThreadState* __tstate = wxPyBeginAllowThreads();
12110 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12111 wxPyEndAllowThreads(__tstate);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 }
12114 {
12115 #if wxUSE_UNICODE
12116 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12117 #else
12118 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12119 #endif
12120 }
12121 return resultobj;
12122 fail:
12123 return NULL;
12124 }
12125
12126
12127 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12128 PyObject *resultobj = 0;
12129 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12130 int result;
12131 void *argp1 = 0 ;
12132 int res1 = 0 ;
12133 PyObject *swig_obj[1] ;
12134
12135 if (!args) SWIG_fail;
12136 swig_obj[0] = args;
12137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12138 if (!SWIG_IsOK(res1)) {
12139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12140 }
12141 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 resultobj = SWIG_From_int(static_cast< int >(result));
12149 return resultobj;
12150 fail:
12151 return NULL;
12152 }
12153
12154
12155 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12156 PyObject *resultobj = 0;
12157 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12158 bool result;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 PyObject *swig_obj[1] ;
12162
12163 if (!args) SWIG_fail;
12164 swig_obj[0] = args;
12165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12168 }
12169 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 {
12177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12178 }
12179 return resultobj;
12180 fail:
12181 return NULL;
12182 }
12183
12184
12185 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12186 PyObject *resultobj = 0;
12187 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12188 bool result;
12189 void *argp1 = 0 ;
12190 int res1 = 0 ;
12191 PyObject *swig_obj[1] ;
12192
12193 if (!args) SWIG_fail;
12194 swig_obj[0] = args;
12195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12196 if (!SWIG_IsOK(res1)) {
12197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12198 }
12199 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 {
12207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12208 }
12209 return resultobj;
12210 fail:
12211 return NULL;
12212 }
12213
12214
12215 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12216 PyObject *resultobj = 0;
12217 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12218 bool result;
12219 void *argp1 = 0 ;
12220 int res1 = 0 ;
12221 PyObject *swig_obj[1] ;
12222
12223 if (!args) SWIG_fail;
12224 swig_obj[0] = args;
12225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12226 if (!SWIG_IsOK(res1)) {
12227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12228 }
12229 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12230 {
12231 PyThreadState* __tstate = wxPyBeginAllowThreads();
12232 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12233 wxPyEndAllowThreads(__tstate);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 }
12236 {
12237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12238 }
12239 return resultobj;
12240 fail:
12241 return NULL;
12242 }
12243
12244
12245 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12246 PyObject *resultobj = 0;
12247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12248 bool result;
12249 void *argp1 = 0 ;
12250 int res1 = 0 ;
12251 PyObject *swig_obj[1] ;
12252
12253 if (!args) SWIG_fail;
12254 swig_obj[0] = args;
12255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12256 if (!SWIG_IsOK(res1)) {
12257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12258 }
12259 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12260 {
12261 PyThreadState* __tstate = wxPyBeginAllowThreads();
12262 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12263 wxPyEndAllowThreads(__tstate);
12264 if (PyErr_Occurred()) SWIG_fail;
12265 }
12266 {
12267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12268 }
12269 return resultobj;
12270 fail:
12271 return NULL;
12272 }
12273
12274
12275 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12276 PyObject *resultobj = 0;
12277 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12278 long *arg2 = (long *) 0 ;
12279 long *arg3 = (long *) 0 ;
12280 void *argp1 = 0 ;
12281 int res1 = 0 ;
12282 long temp2 ;
12283 int res2 = SWIG_TMPOBJ ;
12284 long temp3 ;
12285 int res3 = SWIG_TMPOBJ ;
12286 PyObject *swig_obj[1] ;
12287
12288 arg2 = &temp2;
12289 arg3 = &temp3;
12290 if (!args) SWIG_fail;
12291 swig_obj[0] = args;
12292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12293 if (!SWIG_IsOK(res1)) {
12294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12295 }
12296 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 resultobj = SWIG_Py_Void();
12304 if (SWIG_IsTmpObj(res2)) {
12305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12306 } else {
12307 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12309 }
12310 if (SWIG_IsTmpObj(res3)) {
12311 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12312 } else {
12313 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12314 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12315 }
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12323 PyObject *resultobj = 0;
12324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12325 wxString result;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 PyObject *swig_obj[1] ;
12329
12330 if (!args) SWIG_fail;
12331 swig_obj[0] = args;
12332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12333 if (!SWIG_IsOK(res1)) {
12334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12335 }
12336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 {
12344 #if wxUSE_UNICODE
12345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12346 #else
12347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12348 #endif
12349 }
12350 return resultobj;
12351 fail:
12352 return NULL;
12353 }
12354
12355
12356 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12357 PyObject *resultobj = 0;
12358 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12359 void *argp1 = 0 ;
12360 int res1 = 0 ;
12361 PyObject *swig_obj[1] ;
12362
12363 if (!args) SWIG_fail;
12364 swig_obj[0] = args;
12365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12366 if (!SWIG_IsOK(res1)) {
12367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12368 }
12369 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 (arg1)->Clear();
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 resultobj = SWIG_Py_Void();
12377 return resultobj;
12378 fail:
12379 return NULL;
12380 }
12381
12382
12383 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj = 0;
12385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12386 long arg2 ;
12387 long arg3 ;
12388 wxString *arg4 = 0 ;
12389 void *argp1 = 0 ;
12390 int res1 = 0 ;
12391 long val2 ;
12392 int ecode2 = 0 ;
12393 long val3 ;
12394 int ecode3 = 0 ;
12395 bool temp4 = false ;
12396 PyObject * obj0 = 0 ;
12397 PyObject * obj1 = 0 ;
12398 PyObject * obj2 = 0 ;
12399 PyObject * obj3 = 0 ;
12400 char * kwnames[] = {
12401 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12402 };
12403
12404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12406 if (!SWIG_IsOK(res1)) {
12407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12408 }
12409 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12410 ecode2 = SWIG_AsVal_long(obj1, &val2);
12411 if (!SWIG_IsOK(ecode2)) {
12412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12413 }
12414 arg2 = static_cast< long >(val2);
12415 ecode3 = SWIG_AsVal_long(obj2, &val3);
12416 if (!SWIG_IsOK(ecode3)) {
12417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12418 }
12419 arg3 = static_cast< long >(val3);
12420 {
12421 arg4 = wxString_in_helper(obj3);
12422 if (arg4 == NULL) SWIG_fail;
12423 temp4 = true;
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 resultobj = SWIG_Py_Void();
12432 {
12433 if (temp4)
12434 delete arg4;
12435 }
12436 return resultobj;
12437 fail:
12438 {
12439 if (temp4)
12440 delete arg4;
12441 }
12442 return NULL;
12443 }
12444
12445
12446 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12447 PyObject *resultobj = 0;
12448 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12449 long arg2 ;
12450 long arg3 ;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 long val2 ;
12454 int ecode2 = 0 ;
12455 long val3 ;
12456 int ecode3 = 0 ;
12457 PyObject * obj0 = 0 ;
12458 PyObject * obj1 = 0 ;
12459 PyObject * obj2 = 0 ;
12460 char * kwnames[] = {
12461 (char *) "self",(char *) "from",(char *) "to", NULL
12462 };
12463
12464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12466 if (!SWIG_IsOK(res1)) {
12467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12468 }
12469 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12470 ecode2 = SWIG_AsVal_long(obj1, &val2);
12471 if (!SWIG_IsOK(ecode2)) {
12472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12473 }
12474 arg2 = static_cast< long >(val2);
12475 ecode3 = SWIG_AsVal_long(obj2, &val3);
12476 if (!SWIG_IsOK(ecode3)) {
12477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12478 }
12479 arg3 = static_cast< long >(val3);
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 (arg1)->Remove(arg2,arg3);
12483 wxPyEndAllowThreads(__tstate);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 resultobj = SWIG_Py_Void();
12487 return resultobj;
12488 fail:
12489 return NULL;
12490 }
12491
12492
12493 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12494 PyObject *resultobj = 0;
12495 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12496 wxString *arg2 = 0 ;
12497 int arg3 = (int) wxTEXT_TYPE_ANY ;
12498 bool result;
12499 void *argp1 = 0 ;
12500 int res1 = 0 ;
12501 bool temp2 = false ;
12502 int val3 ;
12503 int ecode3 = 0 ;
12504 PyObject * obj0 = 0 ;
12505 PyObject * obj1 = 0 ;
12506 PyObject * obj2 = 0 ;
12507 char * kwnames[] = {
12508 (char *) "self",(char *) "file",(char *) "fileType", NULL
12509 };
12510
12511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12513 if (!SWIG_IsOK(res1)) {
12514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12515 }
12516 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12517 {
12518 arg2 = wxString_in_helper(obj1);
12519 if (arg2 == NULL) SWIG_fail;
12520 temp2 = true;
12521 }
12522 if (obj2) {
12523 ecode3 = SWIG_AsVal_int(obj2, &val3);
12524 if (!SWIG_IsOK(ecode3)) {
12525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12526 }
12527 arg3 = static_cast< int >(val3);
12528 }
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 {
12536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12537 }
12538 {
12539 if (temp2)
12540 delete arg2;
12541 }
12542 return resultobj;
12543 fail:
12544 {
12545 if (temp2)
12546 delete arg2;
12547 }
12548 return NULL;
12549 }
12550
12551
12552 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12553 PyObject *resultobj = 0;
12554 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12555 wxString const &arg2_defvalue = wxPyEmptyString ;
12556 wxString *arg2 = (wxString *) &arg2_defvalue ;
12557 int arg3 = (int) wxTEXT_TYPE_ANY ;
12558 bool result;
12559 void *argp1 = 0 ;
12560 int res1 = 0 ;
12561 bool temp2 = false ;
12562 int val3 ;
12563 int ecode3 = 0 ;
12564 PyObject * obj0 = 0 ;
12565 PyObject * obj1 = 0 ;
12566 PyObject * obj2 = 0 ;
12567 char * kwnames[] = {
12568 (char *) "self",(char *) "file",(char *) "fileType", NULL
12569 };
12570
12571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12573 if (!SWIG_IsOK(res1)) {
12574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12575 }
12576 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12577 if (obj1) {
12578 {
12579 arg2 = wxString_in_helper(obj1);
12580 if (arg2 == NULL) SWIG_fail;
12581 temp2 = true;
12582 }
12583 }
12584 if (obj2) {
12585 ecode3 = SWIG_AsVal_int(obj2, &val3);
12586 if (!SWIG_IsOK(ecode3)) {
12587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12588 }
12589 arg3 = static_cast< int >(val3);
12590 }
12591 {
12592 PyThreadState* __tstate = wxPyBeginAllowThreads();
12593 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12594 wxPyEndAllowThreads(__tstate);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 }
12597 {
12598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12599 }
12600 {
12601 if (temp2)
12602 delete arg2;
12603 }
12604 return resultobj;
12605 fail:
12606 {
12607 if (temp2)
12608 delete arg2;
12609 }
12610 return NULL;
12611 }
12612
12613
12614 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12615 PyObject *resultobj = 0;
12616 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12617 void *argp1 = 0 ;
12618 int res1 = 0 ;
12619 PyObject *swig_obj[1] ;
12620
12621 if (!args) SWIG_fail;
12622 swig_obj[0] = args;
12623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12626 }
12627 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 (arg1)->MarkDirty();
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 resultobj = SWIG_Py_Void();
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12642 PyObject *resultobj = 0;
12643 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12644 void *argp1 = 0 ;
12645 int res1 = 0 ;
12646 PyObject *swig_obj[1] ;
12647
12648 if (!args) SWIG_fail;
12649 swig_obj[0] = args;
12650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12651 if (!SWIG_IsOK(res1)) {
12652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12653 }
12654 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 (arg1)->DiscardEdits();
12658 wxPyEndAllowThreads(__tstate);
12659 if (PyErr_Occurred()) SWIG_fail;
12660 }
12661 resultobj = SWIG_Py_Void();
12662 return resultobj;
12663 fail:
12664 return NULL;
12665 }
12666
12667
12668 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12669 PyObject *resultobj = 0;
12670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12671 bool arg2 ;
12672 void *argp1 = 0 ;
12673 int res1 = 0 ;
12674 bool val2 ;
12675 int ecode2 = 0 ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 char * kwnames[] = {
12679 (char *) "self",(char *) "modified", NULL
12680 };
12681
12682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12684 if (!SWIG_IsOK(res1)) {
12685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12686 }
12687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12688 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12689 if (!SWIG_IsOK(ecode2)) {
12690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12691 }
12692 arg2 = static_cast< bool >(val2);
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 (arg1)->SetModified(arg2);
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 resultobj = SWIG_Py_Void();
12700 return resultobj;
12701 fail:
12702 return NULL;
12703 }
12704
12705
12706 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12707 PyObject *resultobj = 0;
12708 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12709 unsigned long arg2 ;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 unsigned long val2 ;
12713 int ecode2 = 0 ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 char * kwnames[] = {
12717 (char *) "self",(char *) "len", NULL
12718 };
12719
12720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12724 }
12725 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12726 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12727 if (!SWIG_IsOK(ecode2)) {
12728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12729 }
12730 arg2 = static_cast< unsigned long >(val2);
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 (arg1)->SetMaxLength(arg2);
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 resultobj = SWIG_Py_Void();
12738 return resultobj;
12739 fail:
12740 return NULL;
12741 }
12742
12743
12744 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj = 0;
12746 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12747 wxString *arg2 = 0 ;
12748 void *argp1 = 0 ;
12749 int res1 = 0 ;
12750 bool temp2 = false ;
12751 PyObject * obj0 = 0 ;
12752 PyObject * obj1 = 0 ;
12753 char * kwnames[] = {
12754 (char *) "self",(char *) "text", NULL
12755 };
12756
12757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12759 if (!SWIG_IsOK(res1)) {
12760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12761 }
12762 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12763 {
12764 arg2 = wxString_in_helper(obj1);
12765 if (arg2 == NULL) SWIG_fail;
12766 temp2 = true;
12767 }
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 (arg1)->WriteText((wxString const &)*arg2);
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 resultobj = SWIG_Py_Void();
12775 {
12776 if (temp2)
12777 delete arg2;
12778 }
12779 return resultobj;
12780 fail:
12781 {
12782 if (temp2)
12783 delete arg2;
12784 }
12785 return NULL;
12786 }
12787
12788
12789 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj = 0;
12791 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12792 wxString *arg2 = 0 ;
12793 void *argp1 = 0 ;
12794 int res1 = 0 ;
12795 bool temp2 = false ;
12796 PyObject * obj0 = 0 ;
12797 PyObject * obj1 = 0 ;
12798 char * kwnames[] = {
12799 (char *) "self",(char *) "text", NULL
12800 };
12801
12802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12804 if (!SWIG_IsOK(res1)) {
12805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12806 }
12807 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12808 {
12809 arg2 = wxString_in_helper(obj1);
12810 if (arg2 == NULL) SWIG_fail;
12811 temp2 = true;
12812 }
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 (arg1)->AppendText((wxString const &)*arg2);
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 resultobj = SWIG_Py_Void();
12820 {
12821 if (temp2)
12822 delete arg2;
12823 }
12824 return resultobj;
12825 fail:
12826 {
12827 if (temp2)
12828 delete arg2;
12829 }
12830 return NULL;
12831 }
12832
12833
12834 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj = 0;
12836 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12837 wxKeyEvent *arg2 = 0 ;
12838 bool result;
12839 void *argp1 = 0 ;
12840 int res1 = 0 ;
12841 void *argp2 = 0 ;
12842 int res2 = 0 ;
12843 PyObject * obj0 = 0 ;
12844 PyObject * obj1 = 0 ;
12845 char * kwnames[] = {
12846 (char *) "self",(char *) "event", NULL
12847 };
12848
12849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12851 if (!SWIG_IsOK(res1)) {
12852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12853 }
12854 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12856 if (!SWIG_IsOK(res2)) {
12857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12858 }
12859 if (!argp2) {
12860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12861 }
12862 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12863 {
12864 PyThreadState* __tstate = wxPyBeginAllowThreads();
12865 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12866 wxPyEndAllowThreads(__tstate);
12867 if (PyErr_Occurred()) SWIG_fail;
12868 }
12869 {
12870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12871 }
12872 return resultobj;
12873 fail:
12874 return NULL;
12875 }
12876
12877
12878 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12879 PyObject *resultobj = 0;
12880 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12881 long arg2 ;
12882 long arg3 ;
12883 wxTextAttr *arg4 = 0 ;
12884 bool result;
12885 void *argp1 = 0 ;
12886 int res1 = 0 ;
12887 long val2 ;
12888 int ecode2 = 0 ;
12889 long val3 ;
12890 int ecode3 = 0 ;
12891 void *argp4 = 0 ;
12892 int res4 = 0 ;
12893 PyObject * obj0 = 0 ;
12894 PyObject * obj1 = 0 ;
12895 PyObject * obj2 = 0 ;
12896 PyObject * obj3 = 0 ;
12897 char * kwnames[] = {
12898 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12899 };
12900
12901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12903 if (!SWIG_IsOK(res1)) {
12904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12905 }
12906 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12907 ecode2 = SWIG_AsVal_long(obj1, &val2);
12908 if (!SWIG_IsOK(ecode2)) {
12909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12910 }
12911 arg2 = static_cast< long >(val2);
12912 ecode3 = SWIG_AsVal_long(obj2, &val3);
12913 if (!SWIG_IsOK(ecode3)) {
12914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12915 }
12916 arg3 = static_cast< long >(val3);
12917 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12918 if (!SWIG_IsOK(res4)) {
12919 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12920 }
12921 if (!argp4) {
12922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12923 }
12924 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 {
12932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12933 }
12934 return resultobj;
12935 fail:
12936 return NULL;
12937 }
12938
12939
12940 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj = 0;
12942 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12943 long arg2 ;
12944 wxTextAttr *arg3 = 0 ;
12945 bool result;
12946 void *argp1 = 0 ;
12947 int res1 = 0 ;
12948 long val2 ;
12949 int ecode2 = 0 ;
12950 void *argp3 = 0 ;
12951 int res3 = 0 ;
12952 PyObject * obj0 = 0 ;
12953 PyObject * obj1 = 0 ;
12954 PyObject * obj2 = 0 ;
12955 char * kwnames[] = {
12956 (char *) "self",(char *) "position",(char *) "style", NULL
12957 };
12958
12959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12961 if (!SWIG_IsOK(res1)) {
12962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12963 }
12964 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12965 ecode2 = SWIG_AsVal_long(obj1, &val2);
12966 if (!SWIG_IsOK(ecode2)) {
12967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12968 }
12969 arg2 = static_cast< long >(val2);
12970 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12971 if (!SWIG_IsOK(res3)) {
12972 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12973 }
12974 if (!argp3) {
12975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12976 }
12977 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12981 wxPyEndAllowThreads(__tstate);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 }
12984 {
12985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12986 }
12987 return resultobj;
12988 fail:
12989 return NULL;
12990 }
12991
12992
12993 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 wxTextAttr *arg2 = 0 ;
12997 bool result;
12998 void *argp1 = 0 ;
12999 int res1 = 0 ;
13000 void *argp2 = 0 ;
13001 int res2 = 0 ;
13002 PyObject * obj0 = 0 ;
13003 PyObject * obj1 = 0 ;
13004 char * kwnames[] = {
13005 (char *) "self",(char *) "style", NULL
13006 };
13007
13008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13010 if (!SWIG_IsOK(res1)) {
13011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13012 }
13013 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13015 if (!SWIG_IsOK(res2)) {
13016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13017 }
13018 if (!argp2) {
13019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13020 }
13021 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13025 wxPyEndAllowThreads(__tstate);
13026 if (PyErr_Occurred()) SWIG_fail;
13027 }
13028 {
13029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13030 }
13031 return resultobj;
13032 fail:
13033 return NULL;
13034 }
13035
13036
13037 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13038 PyObject *resultobj = 0;
13039 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13040 wxTextAttr *result = 0 ;
13041 void *argp1 = 0 ;
13042 int res1 = 0 ;
13043 PyObject *swig_obj[1] ;
13044
13045 if (!args) SWIG_fail;
13046 swig_obj[0] = args;
13047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13048 if (!SWIG_IsOK(res1)) {
13049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13050 }
13051 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 {
13055 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13056 result = (wxTextAttr *) &_result_ref;
13057 }
13058 wxPyEndAllowThreads(__tstate);
13059 if (PyErr_Occurred()) SWIG_fail;
13060 }
13061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13062 return resultobj;
13063 fail:
13064 return NULL;
13065 }
13066
13067
13068 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13069 PyObject *resultobj = 0;
13070 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13071 long arg2 ;
13072 long arg3 ;
13073 long result;
13074 void *argp1 = 0 ;
13075 int res1 = 0 ;
13076 long val2 ;
13077 int ecode2 = 0 ;
13078 long val3 ;
13079 int ecode3 = 0 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 PyObject * obj2 = 0 ;
13083 char * kwnames[] = {
13084 (char *) "self",(char *) "x",(char *) "y", NULL
13085 };
13086
13087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13089 if (!SWIG_IsOK(res1)) {
13090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13091 }
13092 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13093 ecode2 = SWIG_AsVal_long(obj1, &val2);
13094 if (!SWIG_IsOK(ecode2)) {
13095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13096 }
13097 arg2 = static_cast< long >(val2);
13098 ecode3 = SWIG_AsVal_long(obj2, &val3);
13099 if (!SWIG_IsOK(ecode3)) {
13100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13101 }
13102 arg3 = static_cast< long >(val3);
13103 {
13104 PyThreadState* __tstate = wxPyBeginAllowThreads();
13105 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13106 wxPyEndAllowThreads(__tstate);
13107 if (PyErr_Occurred()) SWIG_fail;
13108 }
13109 resultobj = SWIG_From_long(static_cast< long >(result));
13110 return resultobj;
13111 fail:
13112 return NULL;
13113 }
13114
13115
13116 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13117 PyObject *resultobj = 0;
13118 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13119 long arg2 ;
13120 long *arg3 = (long *) 0 ;
13121 long *arg4 = (long *) 0 ;
13122 void *argp1 = 0 ;
13123 int res1 = 0 ;
13124 long val2 ;
13125 int ecode2 = 0 ;
13126 long temp3 ;
13127 int res3 = SWIG_TMPOBJ ;
13128 long temp4 ;
13129 int res4 = SWIG_TMPOBJ ;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 char * kwnames[] = {
13133 (char *) "self",(char *) "pos", NULL
13134 };
13135
13136 arg3 = &temp3;
13137 arg4 = &temp4;
13138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13140 if (!SWIG_IsOK(res1)) {
13141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13142 }
13143 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13144 ecode2 = SWIG_AsVal_long(obj1, &val2);
13145 if (!SWIG_IsOK(ecode2)) {
13146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13147 }
13148 arg2 = static_cast< long >(val2);
13149 {
13150 PyThreadState* __tstate = wxPyBeginAllowThreads();
13151 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13152 wxPyEndAllowThreads(__tstate);
13153 if (PyErr_Occurred()) SWIG_fail;
13154 }
13155 resultobj = SWIG_Py_Void();
13156 if (SWIG_IsTmpObj(res3)) {
13157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13158 } else {
13159 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13161 }
13162 if (SWIG_IsTmpObj(res4)) {
13163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13164 } else {
13165 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13167 }
13168 return resultobj;
13169 fail:
13170 return NULL;
13171 }
13172
13173
13174 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13175 PyObject *resultobj = 0;
13176 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13177 long arg2 ;
13178 void *argp1 = 0 ;
13179 int res1 = 0 ;
13180 long val2 ;
13181 int ecode2 = 0 ;
13182 PyObject * obj0 = 0 ;
13183 PyObject * obj1 = 0 ;
13184 char * kwnames[] = {
13185 (char *) "self",(char *) "pos", NULL
13186 };
13187
13188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13190 if (!SWIG_IsOK(res1)) {
13191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13192 }
13193 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13194 ecode2 = SWIG_AsVal_long(obj1, &val2);
13195 if (!SWIG_IsOK(ecode2)) {
13196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13197 }
13198 arg2 = static_cast< long >(val2);
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 (arg1)->ShowPosition(arg2);
13202 wxPyEndAllowThreads(__tstate);
13203 if (PyErr_Occurred()) SWIG_fail;
13204 }
13205 resultobj = SWIG_Py_Void();
13206 return resultobj;
13207 fail:
13208 return NULL;
13209 }
13210
13211
13212 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13213 PyObject *resultobj = 0;
13214 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13215 wxPoint *arg2 = 0 ;
13216 long *arg3 = (long *) 0 ;
13217 long *arg4 = (long *) 0 ;
13218 wxTextCtrlHitTestResult result;
13219 void *argp1 = 0 ;
13220 int res1 = 0 ;
13221 wxPoint temp2 ;
13222 long temp3 ;
13223 int res3 = SWIG_TMPOBJ ;
13224 long temp4 ;
13225 int res4 = SWIG_TMPOBJ ;
13226 PyObject * obj0 = 0 ;
13227 PyObject * obj1 = 0 ;
13228 char * kwnames[] = {
13229 (char *) "self",(char *) "pt", NULL
13230 };
13231
13232 arg3 = &temp3;
13233 arg4 = &temp4;
13234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13236 if (!SWIG_IsOK(res1)) {
13237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13238 }
13239 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13240 {
13241 arg2 = &temp2;
13242 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13243 }
13244 {
13245 PyThreadState* __tstate = wxPyBeginAllowThreads();
13246 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 resultobj = SWIG_From_int(static_cast< int >(result));
13251 if (SWIG_IsTmpObj(res3)) {
13252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13253 } else {
13254 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13256 }
13257 if (SWIG_IsTmpObj(res4)) {
13258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13259 } else {
13260 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13262 }
13263 return resultobj;
13264 fail:
13265 return NULL;
13266 }
13267
13268
13269 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj = 0;
13271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13272 wxPoint *arg2 = 0 ;
13273 long *arg3 = (long *) 0 ;
13274 wxTextCtrlHitTestResult result;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 wxPoint temp2 ;
13278 long temp3 ;
13279 int res3 = SWIG_TMPOBJ ;
13280 PyObject * obj0 = 0 ;
13281 PyObject * obj1 = 0 ;
13282 char * kwnames[] = {
13283 (char *) "self",(char *) "pt", NULL
13284 };
13285
13286 arg3 = &temp3;
13287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13289 if (!SWIG_IsOK(res1)) {
13290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13291 }
13292 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13293 {
13294 arg2 = &temp2;
13295 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13296 }
13297 {
13298 PyThreadState* __tstate = wxPyBeginAllowThreads();
13299 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13300 wxPyEndAllowThreads(__tstate);
13301 if (PyErr_Occurred()) SWIG_fail;
13302 }
13303 resultobj = SWIG_From_int(static_cast< int >(result));
13304 if (SWIG_IsTmpObj(res3)) {
13305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13306 } else {
13307 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13309 }
13310 return resultobj;
13311 fail:
13312 return NULL;
13313 }
13314
13315
13316 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13317 PyObject *resultobj = 0;
13318 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13319 void *argp1 = 0 ;
13320 int res1 = 0 ;
13321 PyObject *swig_obj[1] ;
13322
13323 if (!args) SWIG_fail;
13324 swig_obj[0] = args;
13325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13326 if (!SWIG_IsOK(res1)) {
13327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13328 }
13329 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13330 {
13331 PyThreadState* __tstate = wxPyBeginAllowThreads();
13332 (arg1)->Copy();
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 resultobj = SWIG_Py_Void();
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13344 PyObject *resultobj = 0;
13345 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13346 void *argp1 = 0 ;
13347 int res1 = 0 ;
13348 PyObject *swig_obj[1] ;
13349
13350 if (!args) SWIG_fail;
13351 swig_obj[0] = args;
13352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13353 if (!SWIG_IsOK(res1)) {
13354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13355 }
13356 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13357 {
13358 PyThreadState* __tstate = wxPyBeginAllowThreads();
13359 (arg1)->Cut();
13360 wxPyEndAllowThreads(__tstate);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 resultobj = SWIG_Py_Void();
13364 return resultobj;
13365 fail:
13366 return NULL;
13367 }
13368
13369
13370 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13371 PyObject *resultobj = 0;
13372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13373 void *argp1 = 0 ;
13374 int res1 = 0 ;
13375 PyObject *swig_obj[1] ;
13376
13377 if (!args) SWIG_fail;
13378 swig_obj[0] = args;
13379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13380 if (!SWIG_IsOK(res1)) {
13381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13382 }
13383 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13384 {
13385 PyThreadState* __tstate = wxPyBeginAllowThreads();
13386 (arg1)->Paste();
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = SWIG_Py_Void();
13391 return resultobj;
13392 fail:
13393 return NULL;
13394 }
13395
13396
13397 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13398 PyObject *resultobj = 0;
13399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13400 bool result;
13401 void *argp1 = 0 ;
13402 int res1 = 0 ;
13403 PyObject *swig_obj[1] ;
13404
13405 if (!args) SWIG_fail;
13406 swig_obj[0] = args;
13407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13408 if (!SWIG_IsOK(res1)) {
13409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13410 }
13411 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13412 {
13413 PyThreadState* __tstate = wxPyBeginAllowThreads();
13414 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13415 wxPyEndAllowThreads(__tstate);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
13418 {
13419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13420 }
13421 return resultobj;
13422 fail:
13423 return NULL;
13424 }
13425
13426
13427 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13428 PyObject *resultobj = 0;
13429 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13430 bool result;
13431 void *argp1 = 0 ;
13432 int res1 = 0 ;
13433 PyObject *swig_obj[1] ;
13434
13435 if (!args) SWIG_fail;
13436 swig_obj[0] = args;
13437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13438 if (!SWIG_IsOK(res1)) {
13439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13440 }
13441 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13445 wxPyEndAllowThreads(__tstate);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 }
13448 {
13449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13450 }
13451 return resultobj;
13452 fail:
13453 return NULL;
13454 }
13455
13456
13457 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13458 PyObject *resultobj = 0;
13459 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13460 bool result;
13461 void *argp1 = 0 ;
13462 int res1 = 0 ;
13463 PyObject *swig_obj[1] ;
13464
13465 if (!args) SWIG_fail;
13466 swig_obj[0] = args;
13467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13468 if (!SWIG_IsOK(res1)) {
13469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13470 }
13471 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13472 {
13473 PyThreadState* __tstate = wxPyBeginAllowThreads();
13474 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13475 wxPyEndAllowThreads(__tstate);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 {
13479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13480 }
13481 return resultobj;
13482 fail:
13483 return NULL;
13484 }
13485
13486
13487 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13488 PyObject *resultobj = 0;
13489 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13490 void *argp1 = 0 ;
13491 int res1 = 0 ;
13492 PyObject *swig_obj[1] ;
13493
13494 if (!args) SWIG_fail;
13495 swig_obj[0] = args;
13496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13497 if (!SWIG_IsOK(res1)) {
13498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13499 }
13500 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13501 {
13502 PyThreadState* __tstate = wxPyBeginAllowThreads();
13503 (arg1)->Undo();
13504 wxPyEndAllowThreads(__tstate);
13505 if (PyErr_Occurred()) SWIG_fail;
13506 }
13507 resultobj = SWIG_Py_Void();
13508 return resultobj;
13509 fail:
13510 return NULL;
13511 }
13512
13513
13514 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13515 PyObject *resultobj = 0;
13516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13517 void *argp1 = 0 ;
13518 int res1 = 0 ;
13519 PyObject *swig_obj[1] ;
13520
13521 if (!args) SWIG_fail;
13522 swig_obj[0] = args;
13523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13526 }
13527 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 (arg1)->Redo();
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 resultobj = SWIG_Py_Void();
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13544 bool result;
13545 void *argp1 = 0 ;
13546 int res1 = 0 ;
13547 PyObject *swig_obj[1] ;
13548
13549 if (!args) SWIG_fail;
13550 swig_obj[0] = args;
13551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13554 }
13555 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 {
13563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13564 }
13565 return resultobj;
13566 fail:
13567 return NULL;
13568 }
13569
13570
13571 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13572 PyObject *resultobj = 0;
13573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13574 bool result;
13575 void *argp1 = 0 ;
13576 int res1 = 0 ;
13577 PyObject *swig_obj[1] ;
13578
13579 if (!args) SWIG_fail;
13580 swig_obj[0] = args;
13581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13582 if (!SWIG_IsOK(res1)) {
13583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13584 }
13585 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 {
13593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13594 }
13595 return resultobj;
13596 fail:
13597 return NULL;
13598 }
13599
13600
13601 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13602 PyObject *resultobj = 0;
13603 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13604 long arg2 ;
13605 void *argp1 = 0 ;
13606 int res1 = 0 ;
13607 long val2 ;
13608 int ecode2 = 0 ;
13609 PyObject * obj0 = 0 ;
13610 PyObject * obj1 = 0 ;
13611 char * kwnames[] = {
13612 (char *) "self",(char *) "pos", NULL
13613 };
13614
13615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13617 if (!SWIG_IsOK(res1)) {
13618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13619 }
13620 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13621 ecode2 = SWIG_AsVal_long(obj1, &val2);
13622 if (!SWIG_IsOK(ecode2)) {
13623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13624 }
13625 arg2 = static_cast< long >(val2);
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 (arg1)->SetInsertionPoint(arg2);
13629 wxPyEndAllowThreads(__tstate);
13630 if (PyErr_Occurred()) SWIG_fail;
13631 }
13632 resultobj = SWIG_Py_Void();
13633 return resultobj;
13634 fail:
13635 return NULL;
13636 }
13637
13638
13639 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13640 PyObject *resultobj = 0;
13641 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13642 void *argp1 = 0 ;
13643 int res1 = 0 ;
13644 PyObject *swig_obj[1] ;
13645
13646 if (!args) SWIG_fail;
13647 swig_obj[0] = args;
13648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13649 if (!SWIG_IsOK(res1)) {
13650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13651 }
13652 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 (arg1)->SetInsertionPointEnd();
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 resultobj = SWIG_Py_Void();
13660 return resultobj;
13661 fail:
13662 return NULL;
13663 }
13664
13665
13666 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13667 PyObject *resultobj = 0;
13668 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13669 long result;
13670 void *argp1 = 0 ;
13671 int res1 = 0 ;
13672 PyObject *swig_obj[1] ;
13673
13674 if (!args) SWIG_fail;
13675 swig_obj[0] = args;
13676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13677 if (!SWIG_IsOK(res1)) {
13678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13679 }
13680 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 resultobj = SWIG_From_long(static_cast< long >(result));
13688 return resultobj;
13689 fail:
13690 return NULL;
13691 }
13692
13693
13694 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13695 PyObject *resultobj = 0;
13696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13697 long result;
13698 void *argp1 = 0 ;
13699 int res1 = 0 ;
13700 PyObject *swig_obj[1] ;
13701
13702 if (!args) SWIG_fail;
13703 swig_obj[0] = args;
13704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13705 if (!SWIG_IsOK(res1)) {
13706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13707 }
13708 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13709 {
13710 PyThreadState* __tstate = wxPyBeginAllowThreads();
13711 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 resultobj = SWIG_From_long(static_cast< long >(result));
13716 return resultobj;
13717 fail:
13718 return NULL;
13719 }
13720
13721
13722 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj = 0;
13724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13725 long arg2 ;
13726 long arg3 ;
13727 void *argp1 = 0 ;
13728 int res1 = 0 ;
13729 long val2 ;
13730 int ecode2 = 0 ;
13731 long val3 ;
13732 int ecode3 = 0 ;
13733 PyObject * obj0 = 0 ;
13734 PyObject * obj1 = 0 ;
13735 PyObject * obj2 = 0 ;
13736 char * kwnames[] = {
13737 (char *) "self",(char *) "from",(char *) "to", NULL
13738 };
13739
13740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13742 if (!SWIG_IsOK(res1)) {
13743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13744 }
13745 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13746 ecode2 = SWIG_AsVal_long(obj1, &val2);
13747 if (!SWIG_IsOK(ecode2)) {
13748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13749 }
13750 arg2 = static_cast< long >(val2);
13751 ecode3 = SWIG_AsVal_long(obj2, &val3);
13752 if (!SWIG_IsOK(ecode3)) {
13753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13754 }
13755 arg3 = static_cast< long >(val3);
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 (arg1)->SetSelection(arg2,arg3);
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 resultobj = SWIG_Py_Void();
13763 return resultobj;
13764 fail:
13765 return NULL;
13766 }
13767
13768
13769 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13770 PyObject *resultobj = 0;
13771 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13772 void *argp1 = 0 ;
13773 int res1 = 0 ;
13774 PyObject *swig_obj[1] ;
13775
13776 if (!args) SWIG_fail;
13777 swig_obj[0] = args;
13778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13779 if (!SWIG_IsOK(res1)) {
13780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13781 }
13782 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13783 {
13784 PyThreadState* __tstate = wxPyBeginAllowThreads();
13785 (arg1)->SelectAll();
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 resultobj = SWIG_Py_Void();
13790 return resultobj;
13791 fail:
13792 return NULL;
13793 }
13794
13795
13796 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13797 PyObject *resultobj = 0;
13798 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13799 bool arg2 ;
13800 void *argp1 = 0 ;
13801 int res1 = 0 ;
13802 bool val2 ;
13803 int ecode2 = 0 ;
13804 PyObject * obj0 = 0 ;
13805 PyObject * obj1 = 0 ;
13806 char * kwnames[] = {
13807 (char *) "self",(char *) "editable", NULL
13808 };
13809
13810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13812 if (!SWIG_IsOK(res1)) {
13813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13814 }
13815 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13816 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13817 if (!SWIG_IsOK(ecode2)) {
13818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13819 }
13820 arg2 = static_cast< bool >(val2);
13821 {
13822 PyThreadState* __tstate = wxPyBeginAllowThreads();
13823 (arg1)->SetEditable(arg2);
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 resultobj = SWIG_Py_Void();
13828 return resultobj;
13829 fail:
13830 return NULL;
13831 }
13832
13833
13834 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13835 PyObject *resultobj = 0;
13836 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13837 void *argp1 = 0 ;
13838 int res1 = 0 ;
13839 PyObject *swig_obj[1] ;
13840
13841 if (!args) SWIG_fail;
13842 swig_obj[0] = args;
13843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13844 if (!SWIG_IsOK(res1)) {
13845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13846 }
13847 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 (arg1)->SendTextUpdatedEvent();
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_Py_Void();
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj = 0;
13863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13864 wxString *arg2 = 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 bool temp2 = false ;
13868 PyObject * obj0 = 0 ;
13869 PyObject * obj1 = 0 ;
13870 char * kwnames[] = {
13871 (char *) "self",(char *) "text", NULL
13872 };
13873
13874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13876 if (!SWIG_IsOK(res1)) {
13877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13878 }
13879 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13880 {
13881 arg2 = wxString_in_helper(obj1);
13882 if (arg2 == NULL) SWIG_fail;
13883 temp2 = true;
13884 }
13885 {
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13888 wxPyEndAllowThreads(__tstate);
13889 if (PyErr_Occurred()) SWIG_fail;
13890 }
13891 resultobj = SWIG_Py_Void();
13892 {
13893 if (temp2)
13894 delete arg2;
13895 }
13896 return resultobj;
13897 fail:
13898 {
13899 if (temp2)
13900 delete arg2;
13901 }
13902 return NULL;
13903 }
13904
13905
13906 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13907 PyObject *resultobj = 0;
13908 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13909 long arg2 ;
13910 long arg3 ;
13911 wxString result;
13912 void *argp1 = 0 ;
13913 int res1 = 0 ;
13914 long val2 ;
13915 int ecode2 = 0 ;
13916 long val3 ;
13917 int ecode3 = 0 ;
13918 PyObject * obj0 = 0 ;
13919 PyObject * obj1 = 0 ;
13920 PyObject * obj2 = 0 ;
13921 char * kwnames[] = {
13922 (char *) "self",(char *) "from",(char *) "to", NULL
13923 };
13924
13925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13927 if (!SWIG_IsOK(res1)) {
13928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13929 }
13930 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13931 ecode2 = SWIG_AsVal_long(obj1, &val2);
13932 if (!SWIG_IsOK(ecode2)) {
13933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13934 }
13935 arg2 = static_cast< long >(val2);
13936 ecode3 = SWIG_AsVal_long(obj2, &val3);
13937 if (!SWIG_IsOK(ecode3)) {
13938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13939 }
13940 arg3 = static_cast< long >(val3);
13941 {
13942 PyThreadState* __tstate = wxPyBeginAllowThreads();
13943 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13944 wxPyEndAllowThreads(__tstate);
13945 if (PyErr_Occurred()) SWIG_fail;
13946 }
13947 {
13948 #if wxUSE_UNICODE
13949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13950 #else
13951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13952 #endif
13953 }
13954 return resultobj;
13955 fail:
13956 return NULL;
13957 }
13958
13959
13960 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13961 PyObject *resultobj = 0;
13962 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13963 SwigValueWrapper<wxVisualAttributes > result;
13964 int val1 ;
13965 int ecode1 = 0 ;
13966 PyObject * obj0 = 0 ;
13967 char * kwnames[] = {
13968 (char *) "variant", NULL
13969 };
13970
13971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13972 if (obj0) {
13973 ecode1 = SWIG_AsVal_int(obj0, &val1);
13974 if (!SWIG_IsOK(ecode1)) {
13975 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13976 }
13977 arg1 = static_cast< wxWindowVariant >(val1);
13978 }
13979 {
13980 if (!wxPyCheckForApp()) SWIG_fail;
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13994 PyObject *obj;
13995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13996 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13997 return SWIG_Py_Void();
13998 }
13999
14000 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14001 return SWIG_Python_InitShadowInstance(args);
14002 }
14003
14004 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj = 0;
14006 int arg1 ;
14007 wxMouseEvent *arg2 = 0 ;
14008 long arg3 ;
14009 long arg4 ;
14010 wxTextUrlEvent *result = 0 ;
14011 int val1 ;
14012 int ecode1 = 0 ;
14013 void *argp2 = 0 ;
14014 int res2 = 0 ;
14015 long val3 ;
14016 int ecode3 = 0 ;
14017 long val4 ;
14018 int ecode4 = 0 ;
14019 PyObject * obj0 = 0 ;
14020 PyObject * obj1 = 0 ;
14021 PyObject * obj2 = 0 ;
14022 PyObject * obj3 = 0 ;
14023 char * kwnames[] = {
14024 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14025 };
14026
14027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14028 ecode1 = SWIG_AsVal_int(obj0, &val1);
14029 if (!SWIG_IsOK(ecode1)) {
14030 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14031 }
14032 arg1 = static_cast< int >(val1);
14033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14034 if (!SWIG_IsOK(res2)) {
14035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14036 }
14037 if (!argp2) {
14038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14039 }
14040 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14041 ecode3 = SWIG_AsVal_long(obj2, &val3);
14042 if (!SWIG_IsOK(ecode3)) {
14043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14044 }
14045 arg3 = static_cast< long >(val3);
14046 ecode4 = SWIG_AsVal_long(obj3, &val4);
14047 if (!SWIG_IsOK(ecode4)) {
14048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14049 }
14050 arg4 = static_cast< long >(val4);
14051 {
14052 PyThreadState* __tstate = wxPyBeginAllowThreads();
14053 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14054 wxPyEndAllowThreads(__tstate);
14055 if (PyErr_Occurred()) SWIG_fail;
14056 }
14057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14058 return resultobj;
14059 fail:
14060 return NULL;
14061 }
14062
14063
14064 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14065 PyObject *resultobj = 0;
14066 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14067 wxMouseEvent *result = 0 ;
14068 void *argp1 = 0 ;
14069 int res1 = 0 ;
14070 PyObject *swig_obj[1] ;
14071
14072 if (!args) SWIG_fail;
14073 swig_obj[0] = args;
14074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14075 if (!SWIG_IsOK(res1)) {
14076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14077 }
14078 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 {
14082 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14083 result = (wxMouseEvent *) &_result_ref;
14084 }
14085 wxPyEndAllowThreads(__tstate);
14086 if (PyErr_Occurred()) SWIG_fail;
14087 }
14088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14089 return resultobj;
14090 fail:
14091 return NULL;
14092 }
14093
14094
14095 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14096 PyObject *resultobj = 0;
14097 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14098 long result;
14099 void *argp1 = 0 ;
14100 int res1 = 0 ;
14101 PyObject *swig_obj[1] ;
14102
14103 if (!args) SWIG_fail;
14104 swig_obj[0] = args;
14105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14106 if (!SWIG_IsOK(res1)) {
14107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14108 }
14109 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14110 {
14111 PyThreadState* __tstate = wxPyBeginAllowThreads();
14112 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
14116 resultobj = SWIG_From_long(static_cast< long >(result));
14117 return resultobj;
14118 fail:
14119 return NULL;
14120 }
14121
14122
14123 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14124 PyObject *resultobj = 0;
14125 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14126 long result;
14127 void *argp1 = 0 ;
14128 int res1 = 0 ;
14129 PyObject *swig_obj[1] ;
14130
14131 if (!args) SWIG_fail;
14132 swig_obj[0] = args;
14133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14134 if (!SWIG_IsOK(res1)) {
14135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14136 }
14137 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14138 {
14139 PyThreadState* __tstate = wxPyBeginAllowThreads();
14140 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14141 wxPyEndAllowThreads(__tstate);
14142 if (PyErr_Occurred()) SWIG_fail;
14143 }
14144 resultobj = SWIG_From_long(static_cast< long >(result));
14145 return resultobj;
14146 fail:
14147 return NULL;
14148 }
14149
14150
14151 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14152 PyObject *obj;
14153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14154 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14155 return SWIG_Py_Void();
14156 }
14157
14158 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14159 return SWIG_Python_InitShadowInstance(args);
14160 }
14161
14162 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14163 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14164 return 1;
14165 }
14166
14167
14168 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14169 PyObject *pyobj = 0;
14170
14171 {
14172 #if wxUSE_UNICODE
14173 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14174 #else
14175 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14176 #endif
14177 }
14178 return pyobj;
14179 }
14180
14181
14182 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14183 PyObject *resultobj = 0;
14184 wxWindow *arg1 = (wxWindow *) 0 ;
14185 int arg2 = (int) -1 ;
14186 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14187 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14188 wxSize const &arg4_defvalue = wxDefaultSize ;
14189 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14190 long arg5 = (long) wxSB_HORIZONTAL ;
14191 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14192 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14193 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14194 wxString *arg7 = (wxString *) &arg7_defvalue ;
14195 wxScrollBar *result = 0 ;
14196 void *argp1 = 0 ;
14197 int res1 = 0 ;
14198 int val2 ;
14199 int ecode2 = 0 ;
14200 wxPoint temp3 ;
14201 wxSize temp4 ;
14202 long val5 ;
14203 int ecode5 = 0 ;
14204 void *argp6 = 0 ;
14205 int res6 = 0 ;
14206 bool temp7 = false ;
14207 PyObject * obj0 = 0 ;
14208 PyObject * obj1 = 0 ;
14209 PyObject * obj2 = 0 ;
14210 PyObject * obj3 = 0 ;
14211 PyObject * obj4 = 0 ;
14212 PyObject * obj5 = 0 ;
14213 PyObject * obj6 = 0 ;
14214 char * kwnames[] = {
14215 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14216 };
14217
14218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14220 if (!SWIG_IsOK(res1)) {
14221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14222 }
14223 arg1 = reinterpret_cast< wxWindow * >(argp1);
14224 if (obj1) {
14225 ecode2 = SWIG_AsVal_int(obj1, &val2);
14226 if (!SWIG_IsOK(ecode2)) {
14227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14228 }
14229 arg2 = static_cast< int >(val2);
14230 }
14231 if (obj2) {
14232 {
14233 arg3 = &temp3;
14234 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14235 }
14236 }
14237 if (obj3) {
14238 {
14239 arg4 = &temp4;
14240 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14241 }
14242 }
14243 if (obj4) {
14244 ecode5 = SWIG_AsVal_long(obj4, &val5);
14245 if (!SWIG_IsOK(ecode5)) {
14246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14247 }
14248 arg5 = static_cast< long >(val5);
14249 }
14250 if (obj5) {
14251 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14252 if (!SWIG_IsOK(res6)) {
14253 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14254 }
14255 if (!argp6) {
14256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14257 }
14258 arg6 = reinterpret_cast< wxValidator * >(argp6);
14259 }
14260 if (obj6) {
14261 {
14262 arg7 = wxString_in_helper(obj6);
14263 if (arg7 == NULL) SWIG_fail;
14264 temp7 = true;
14265 }
14266 }
14267 {
14268 if (!wxPyCheckForApp()) SWIG_fail;
14269 PyThreadState* __tstate = wxPyBeginAllowThreads();
14270 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14271 wxPyEndAllowThreads(__tstate);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 }
14274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14275 {
14276 if (temp7)
14277 delete arg7;
14278 }
14279 return resultobj;
14280 fail:
14281 {
14282 if (temp7)
14283 delete arg7;
14284 }
14285 return NULL;
14286 }
14287
14288
14289 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14290 PyObject *resultobj = 0;
14291 wxScrollBar *result = 0 ;
14292
14293 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14294 {
14295 if (!wxPyCheckForApp()) SWIG_fail;
14296 PyThreadState* __tstate = wxPyBeginAllowThreads();
14297 result = (wxScrollBar *)new wxScrollBar();
14298 wxPyEndAllowThreads(__tstate);
14299 if (PyErr_Occurred()) SWIG_fail;
14300 }
14301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14302 return resultobj;
14303 fail:
14304 return NULL;
14305 }
14306
14307
14308 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14309 PyObject *resultobj = 0;
14310 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14311 wxWindow *arg2 = (wxWindow *) 0 ;
14312 int arg3 = (int) -1 ;
14313 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14314 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14315 wxSize const &arg5_defvalue = wxDefaultSize ;
14316 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14317 long arg6 = (long) wxSB_HORIZONTAL ;
14318 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14319 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14320 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14321 wxString *arg8 = (wxString *) &arg8_defvalue ;
14322 bool result;
14323 void *argp1 = 0 ;
14324 int res1 = 0 ;
14325 void *argp2 = 0 ;
14326 int res2 = 0 ;
14327 int val3 ;
14328 int ecode3 = 0 ;
14329 wxPoint temp4 ;
14330 wxSize temp5 ;
14331 long val6 ;
14332 int ecode6 = 0 ;
14333 void *argp7 = 0 ;
14334 int res7 = 0 ;
14335 bool temp8 = false ;
14336 PyObject * obj0 = 0 ;
14337 PyObject * obj1 = 0 ;
14338 PyObject * obj2 = 0 ;
14339 PyObject * obj3 = 0 ;
14340 PyObject * obj4 = 0 ;
14341 PyObject * obj5 = 0 ;
14342 PyObject * obj6 = 0 ;
14343 PyObject * obj7 = 0 ;
14344 char * kwnames[] = {
14345 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14346 };
14347
14348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14350 if (!SWIG_IsOK(res1)) {
14351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14352 }
14353 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14354 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14355 if (!SWIG_IsOK(res2)) {
14356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14357 }
14358 arg2 = reinterpret_cast< wxWindow * >(argp2);
14359 if (obj2) {
14360 ecode3 = SWIG_AsVal_int(obj2, &val3);
14361 if (!SWIG_IsOK(ecode3)) {
14362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14363 }
14364 arg3 = static_cast< int >(val3);
14365 }
14366 if (obj3) {
14367 {
14368 arg4 = &temp4;
14369 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14370 }
14371 }
14372 if (obj4) {
14373 {
14374 arg5 = &temp5;
14375 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14376 }
14377 }
14378 if (obj5) {
14379 ecode6 = SWIG_AsVal_long(obj5, &val6);
14380 if (!SWIG_IsOK(ecode6)) {
14381 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14382 }
14383 arg6 = static_cast< long >(val6);
14384 }
14385 if (obj6) {
14386 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14387 if (!SWIG_IsOK(res7)) {
14388 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14389 }
14390 if (!argp7) {
14391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14392 }
14393 arg7 = reinterpret_cast< wxValidator * >(argp7);
14394 }
14395 if (obj7) {
14396 {
14397 arg8 = wxString_in_helper(obj7);
14398 if (arg8 == NULL) SWIG_fail;
14399 temp8 = true;
14400 }
14401 }
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 {
14409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14410 }
14411 {
14412 if (temp8)
14413 delete arg8;
14414 }
14415 return resultobj;
14416 fail:
14417 {
14418 if (temp8)
14419 delete arg8;
14420 }
14421 return NULL;
14422 }
14423
14424
14425 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14426 PyObject *resultobj = 0;
14427 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14428 int result;
14429 void *argp1 = 0 ;
14430 int res1 = 0 ;
14431 PyObject *swig_obj[1] ;
14432
14433 if (!args) SWIG_fail;
14434 swig_obj[0] = args;
14435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14436 if (!SWIG_IsOK(res1)) {
14437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14438 }
14439 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 resultobj = SWIG_From_int(static_cast< int >(result));
14447 return resultobj;
14448 fail:
14449 return NULL;
14450 }
14451
14452
14453 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14454 PyObject *resultobj = 0;
14455 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14456 int result;
14457 void *argp1 = 0 ;
14458 int res1 = 0 ;
14459 PyObject *swig_obj[1] ;
14460
14461 if (!args) SWIG_fail;
14462 swig_obj[0] = args;
14463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14464 if (!SWIG_IsOK(res1)) {
14465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14466 }
14467 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14468 {
14469 PyThreadState* __tstate = wxPyBeginAllowThreads();
14470 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14471 wxPyEndAllowThreads(__tstate);
14472 if (PyErr_Occurred()) SWIG_fail;
14473 }
14474 resultobj = SWIG_From_int(static_cast< int >(result));
14475 return resultobj;
14476 fail:
14477 return NULL;
14478 }
14479
14480
14481 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14482 PyObject *resultobj = 0;
14483 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14484 int result;
14485 void *argp1 = 0 ;
14486 int res1 = 0 ;
14487 PyObject *swig_obj[1] ;
14488
14489 if (!args) SWIG_fail;
14490 swig_obj[0] = args;
14491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14492 if (!SWIG_IsOK(res1)) {
14493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14494 }
14495 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14496 {
14497 PyThreadState* __tstate = wxPyBeginAllowThreads();
14498 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 resultobj = SWIG_From_int(static_cast< int >(result));
14503 return resultobj;
14504 fail:
14505 return NULL;
14506 }
14507
14508
14509 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14510 PyObject *resultobj = 0;
14511 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14512 int result;
14513 void *argp1 = 0 ;
14514 int res1 = 0 ;
14515 PyObject *swig_obj[1] ;
14516
14517 if (!args) SWIG_fail;
14518 swig_obj[0] = args;
14519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14520 if (!SWIG_IsOK(res1)) {
14521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14522 }
14523 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14524 {
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 result = (int)((wxScrollBar const *)arg1)->GetRange();
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 resultobj = SWIG_From_int(static_cast< int >(result));
14531 return resultobj;
14532 fail:
14533 return NULL;
14534 }
14535
14536
14537 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14538 PyObject *resultobj = 0;
14539 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14540 bool result;
14541 void *argp1 = 0 ;
14542 int res1 = 0 ;
14543 PyObject *swig_obj[1] ;
14544
14545 if (!args) SWIG_fail;
14546 swig_obj[0] = args;
14547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14548 if (!SWIG_IsOK(res1)) {
14549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14550 }
14551 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14552 {
14553 PyThreadState* __tstate = wxPyBeginAllowThreads();
14554 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14555 wxPyEndAllowThreads(__tstate);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 }
14558 {
14559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14560 }
14561 return resultobj;
14562 fail:
14563 return NULL;
14564 }
14565
14566
14567 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14568 PyObject *resultobj = 0;
14569 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14570 int arg2 ;
14571 void *argp1 = 0 ;
14572 int res1 = 0 ;
14573 int val2 ;
14574 int ecode2 = 0 ;
14575 PyObject * obj0 = 0 ;
14576 PyObject * obj1 = 0 ;
14577 char * kwnames[] = {
14578 (char *) "self",(char *) "viewStart", NULL
14579 };
14580
14581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14583 if (!SWIG_IsOK(res1)) {
14584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14585 }
14586 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14587 ecode2 = SWIG_AsVal_int(obj1, &val2);
14588 if (!SWIG_IsOK(ecode2)) {
14589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14590 }
14591 arg2 = static_cast< int >(val2);
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 (arg1)->SetThumbPosition(arg2);
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 resultobj = SWIG_Py_Void();
14599 return resultobj;
14600 fail:
14601 return NULL;
14602 }
14603
14604
14605 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj = 0;
14607 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14608 SwigValueWrapper<wxVisualAttributes > result;
14609 int val1 ;
14610 int ecode1 = 0 ;
14611 PyObject * obj0 = 0 ;
14612 char * kwnames[] = {
14613 (char *) "variant", NULL
14614 };
14615
14616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14617 if (obj0) {
14618 ecode1 = SWIG_AsVal_int(obj0, &val1);
14619 if (!SWIG_IsOK(ecode1)) {
14620 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14621 }
14622 arg1 = static_cast< wxWindowVariant >(val1);
14623 }
14624 {
14625 if (!wxPyCheckForApp()) SWIG_fail;
14626 PyThreadState* __tstate = wxPyBeginAllowThreads();
14627 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14632 return resultobj;
14633 fail:
14634 return NULL;
14635 }
14636
14637
14638 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14639 PyObject *obj;
14640 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14641 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14642 return SWIG_Py_Void();
14643 }
14644
14645 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14646 return SWIG_Python_InitShadowInstance(args);
14647 }
14648
14649 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14650 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14651 return 1;
14652 }
14653
14654
14655 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14656 PyObject *pyobj = 0;
14657
14658 {
14659 #if wxUSE_UNICODE
14660 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14661 #else
14662 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14663 #endif
14664 }
14665 return pyobj;
14666 }
14667
14668
14669 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14670 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14671 return 1;
14672 }
14673
14674
14675 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14676 PyObject *pyobj = 0;
14677
14678 {
14679 #if wxUSE_UNICODE
14680 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14681 #else
14682 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14683 #endif
14684 }
14685 return pyobj;
14686 }
14687
14688
14689 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14690 PyObject *resultobj = 0;
14691 wxWindow *arg1 = (wxWindow *) 0 ;
14692 int arg2 = (int) -1 ;
14693 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14694 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14695 wxSize const &arg4_defvalue = wxDefaultSize ;
14696 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14697 long arg5 = (long) wxSP_HORIZONTAL ;
14698 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14699 wxString *arg6 = (wxString *) &arg6_defvalue ;
14700 wxSpinButton *result = 0 ;
14701 void *argp1 = 0 ;
14702 int res1 = 0 ;
14703 int val2 ;
14704 int ecode2 = 0 ;
14705 wxPoint temp3 ;
14706 wxSize temp4 ;
14707 long val5 ;
14708 int ecode5 = 0 ;
14709 bool temp6 = false ;
14710 PyObject * obj0 = 0 ;
14711 PyObject * obj1 = 0 ;
14712 PyObject * obj2 = 0 ;
14713 PyObject * obj3 = 0 ;
14714 PyObject * obj4 = 0 ;
14715 PyObject * obj5 = 0 ;
14716 char * kwnames[] = {
14717 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14718 };
14719
14720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14722 if (!SWIG_IsOK(res1)) {
14723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14724 }
14725 arg1 = reinterpret_cast< wxWindow * >(argp1);
14726 if (obj1) {
14727 ecode2 = SWIG_AsVal_int(obj1, &val2);
14728 if (!SWIG_IsOK(ecode2)) {
14729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14730 }
14731 arg2 = static_cast< int >(val2);
14732 }
14733 if (obj2) {
14734 {
14735 arg3 = &temp3;
14736 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14737 }
14738 }
14739 if (obj3) {
14740 {
14741 arg4 = &temp4;
14742 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14743 }
14744 }
14745 if (obj4) {
14746 ecode5 = SWIG_AsVal_long(obj4, &val5);
14747 if (!SWIG_IsOK(ecode5)) {
14748 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14749 }
14750 arg5 = static_cast< long >(val5);
14751 }
14752 if (obj5) {
14753 {
14754 arg6 = wxString_in_helper(obj5);
14755 if (arg6 == NULL) SWIG_fail;
14756 temp6 = true;
14757 }
14758 }
14759 {
14760 if (!wxPyCheckForApp()) SWIG_fail;
14761 PyThreadState* __tstate = wxPyBeginAllowThreads();
14762 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
14766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14767 {
14768 if (temp6)
14769 delete arg6;
14770 }
14771 return resultobj;
14772 fail:
14773 {
14774 if (temp6)
14775 delete arg6;
14776 }
14777 return NULL;
14778 }
14779
14780
14781 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14782 PyObject *resultobj = 0;
14783 wxSpinButton *result = 0 ;
14784
14785 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14786 {
14787 if (!wxPyCheckForApp()) SWIG_fail;
14788 PyThreadState* __tstate = wxPyBeginAllowThreads();
14789 result = (wxSpinButton *)new wxSpinButton();
14790 wxPyEndAllowThreads(__tstate);
14791 if (PyErr_Occurred()) SWIG_fail;
14792 }
14793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14794 return resultobj;
14795 fail:
14796 return NULL;
14797 }
14798
14799
14800 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14801 PyObject *resultobj = 0;
14802 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14803 wxWindow *arg2 = (wxWindow *) 0 ;
14804 int arg3 = (int) -1 ;
14805 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14806 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14807 wxSize const &arg5_defvalue = wxDefaultSize ;
14808 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14809 long arg6 = (long) wxSP_HORIZONTAL ;
14810 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14811 wxString *arg7 = (wxString *) &arg7_defvalue ;
14812 bool result;
14813 void *argp1 = 0 ;
14814 int res1 = 0 ;
14815 void *argp2 = 0 ;
14816 int res2 = 0 ;
14817 int val3 ;
14818 int ecode3 = 0 ;
14819 wxPoint temp4 ;
14820 wxSize temp5 ;
14821 long val6 ;
14822 int ecode6 = 0 ;
14823 bool temp7 = false ;
14824 PyObject * obj0 = 0 ;
14825 PyObject * obj1 = 0 ;
14826 PyObject * obj2 = 0 ;
14827 PyObject * obj3 = 0 ;
14828 PyObject * obj4 = 0 ;
14829 PyObject * obj5 = 0 ;
14830 PyObject * obj6 = 0 ;
14831 char * kwnames[] = {
14832 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14833 };
14834
14835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14837 if (!SWIG_IsOK(res1)) {
14838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14839 }
14840 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14842 if (!SWIG_IsOK(res2)) {
14843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14844 }
14845 arg2 = reinterpret_cast< wxWindow * >(argp2);
14846 if (obj2) {
14847 ecode3 = SWIG_AsVal_int(obj2, &val3);
14848 if (!SWIG_IsOK(ecode3)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14850 }
14851 arg3 = static_cast< int >(val3);
14852 }
14853 if (obj3) {
14854 {
14855 arg4 = &temp4;
14856 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14857 }
14858 }
14859 if (obj4) {
14860 {
14861 arg5 = &temp5;
14862 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14863 }
14864 }
14865 if (obj5) {
14866 ecode6 = SWIG_AsVal_long(obj5, &val6);
14867 if (!SWIG_IsOK(ecode6)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14869 }
14870 arg6 = static_cast< long >(val6);
14871 }
14872 if (obj6) {
14873 {
14874 arg7 = wxString_in_helper(obj6);
14875 if (arg7 == NULL) SWIG_fail;
14876 temp7 = true;
14877 }
14878 }
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14882 wxPyEndAllowThreads(__tstate);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 {
14886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14887 }
14888 {
14889 if (temp7)
14890 delete arg7;
14891 }
14892 return resultobj;
14893 fail:
14894 {
14895 if (temp7)
14896 delete arg7;
14897 }
14898 return NULL;
14899 }
14900
14901
14902 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14903 PyObject *resultobj = 0;
14904 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14905 int result;
14906 void *argp1 = 0 ;
14907 int res1 = 0 ;
14908 PyObject *swig_obj[1] ;
14909
14910 if (!args) SWIG_fail;
14911 swig_obj[0] = args;
14912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14913 if (!SWIG_IsOK(res1)) {
14914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14915 }
14916 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14917 {
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 result = (int)((wxSpinButton const *)arg1)->GetValue();
14920 wxPyEndAllowThreads(__tstate);
14921 if (PyErr_Occurred()) SWIG_fail;
14922 }
14923 resultobj = SWIG_From_int(static_cast< int >(result));
14924 return resultobj;
14925 fail:
14926 return NULL;
14927 }
14928
14929
14930 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14931 PyObject *resultobj = 0;
14932 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14933 int result;
14934 void *argp1 = 0 ;
14935 int res1 = 0 ;
14936 PyObject *swig_obj[1] ;
14937
14938 if (!args) SWIG_fail;
14939 swig_obj[0] = args;
14940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14941 if (!SWIG_IsOK(res1)) {
14942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14943 }
14944 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14945 {
14946 PyThreadState* __tstate = wxPyBeginAllowThreads();
14947 result = (int)((wxSpinButton const *)arg1)->GetMin();
14948 wxPyEndAllowThreads(__tstate);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
14951 resultobj = SWIG_From_int(static_cast< int >(result));
14952 return resultobj;
14953 fail:
14954 return NULL;
14955 }
14956
14957
14958 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14959 PyObject *resultobj = 0;
14960 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14961 int result;
14962 void *argp1 = 0 ;
14963 int res1 = 0 ;
14964 PyObject *swig_obj[1] ;
14965
14966 if (!args) SWIG_fail;
14967 swig_obj[0] = args;
14968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14969 if (!SWIG_IsOK(res1)) {
14970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14971 }
14972 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14973 {
14974 PyThreadState* __tstate = wxPyBeginAllowThreads();
14975 result = (int)((wxSpinButton const *)arg1)->GetMax();
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
14979 resultobj = SWIG_From_int(static_cast< int >(result));
14980 return resultobj;
14981 fail:
14982 return NULL;
14983 }
14984
14985
14986 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14987 PyObject *resultobj = 0;
14988 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14989 int arg2 ;
14990 void *argp1 = 0 ;
14991 int res1 = 0 ;
14992 int val2 ;
14993 int ecode2 = 0 ;
14994 PyObject * obj0 = 0 ;
14995 PyObject * obj1 = 0 ;
14996 char * kwnames[] = {
14997 (char *) "self",(char *) "val", NULL
14998 };
14999
15000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15002 if (!SWIG_IsOK(res1)) {
15003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15004 }
15005 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15006 ecode2 = SWIG_AsVal_int(obj1, &val2);
15007 if (!SWIG_IsOK(ecode2)) {
15008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15009 }
15010 arg2 = static_cast< int >(val2);
15011 {
15012 PyThreadState* __tstate = wxPyBeginAllowThreads();
15013 (arg1)->SetValue(arg2);
15014 wxPyEndAllowThreads(__tstate);
15015 if (PyErr_Occurred()) SWIG_fail;
15016 }
15017 resultobj = SWIG_Py_Void();
15018 return resultobj;
15019 fail:
15020 return NULL;
15021 }
15022
15023
15024 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15025 PyObject *resultobj = 0;
15026 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15027 int arg2 ;
15028 void *argp1 = 0 ;
15029 int res1 = 0 ;
15030 int val2 ;
15031 int ecode2 = 0 ;
15032 PyObject * obj0 = 0 ;
15033 PyObject * obj1 = 0 ;
15034 char * kwnames[] = {
15035 (char *) "self",(char *) "minVal", NULL
15036 };
15037
15038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15040 if (!SWIG_IsOK(res1)) {
15041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15042 }
15043 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15044 ecode2 = SWIG_AsVal_int(obj1, &val2);
15045 if (!SWIG_IsOK(ecode2)) {
15046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15047 }
15048 arg2 = static_cast< int >(val2);
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 (arg1)->SetMin(arg2);
15052 wxPyEndAllowThreads(__tstate);
15053 if (PyErr_Occurred()) SWIG_fail;
15054 }
15055 resultobj = SWIG_Py_Void();
15056 return resultobj;
15057 fail:
15058 return NULL;
15059 }
15060
15061
15062 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15063 PyObject *resultobj = 0;
15064 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15065 int arg2 ;
15066 void *argp1 = 0 ;
15067 int res1 = 0 ;
15068 int val2 ;
15069 int ecode2 = 0 ;
15070 PyObject * obj0 = 0 ;
15071 PyObject * obj1 = 0 ;
15072 char * kwnames[] = {
15073 (char *) "self",(char *) "maxVal", NULL
15074 };
15075
15076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15078 if (!SWIG_IsOK(res1)) {
15079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15080 }
15081 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15082 ecode2 = SWIG_AsVal_int(obj1, &val2);
15083 if (!SWIG_IsOK(ecode2)) {
15084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15085 }
15086 arg2 = static_cast< int >(val2);
15087 {
15088 PyThreadState* __tstate = wxPyBeginAllowThreads();
15089 (arg1)->SetMax(arg2);
15090 wxPyEndAllowThreads(__tstate);
15091 if (PyErr_Occurred()) SWIG_fail;
15092 }
15093 resultobj = SWIG_Py_Void();
15094 return resultobj;
15095 fail:
15096 return NULL;
15097 }
15098
15099
15100 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15101 PyObject *resultobj = 0;
15102 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15103 int arg2 ;
15104 int arg3 ;
15105 void *argp1 = 0 ;
15106 int res1 = 0 ;
15107 int val2 ;
15108 int ecode2 = 0 ;
15109 int val3 ;
15110 int ecode3 = 0 ;
15111 PyObject * obj0 = 0 ;
15112 PyObject * obj1 = 0 ;
15113 PyObject * obj2 = 0 ;
15114 char * kwnames[] = {
15115 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15116 };
15117
15118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15120 if (!SWIG_IsOK(res1)) {
15121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15122 }
15123 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15124 ecode2 = SWIG_AsVal_int(obj1, &val2);
15125 if (!SWIG_IsOK(ecode2)) {
15126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15127 }
15128 arg2 = static_cast< int >(val2);
15129 ecode3 = SWIG_AsVal_int(obj2, &val3);
15130 if (!SWIG_IsOK(ecode3)) {
15131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15132 }
15133 arg3 = static_cast< int >(val3);
15134 {
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 (arg1)->SetRange(arg2,arg3);
15137 wxPyEndAllowThreads(__tstate);
15138 if (PyErr_Occurred()) SWIG_fail;
15139 }
15140 resultobj = SWIG_Py_Void();
15141 return resultobj;
15142 fail:
15143 return NULL;
15144 }
15145
15146
15147 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15148 PyObject *resultobj = 0;
15149 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15150 bool result;
15151 void *argp1 = 0 ;
15152 int res1 = 0 ;
15153 PyObject *swig_obj[1] ;
15154
15155 if (!args) SWIG_fail;
15156 swig_obj[0] = args;
15157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15158 if (!SWIG_IsOK(res1)) {
15159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15160 }
15161 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15162 {
15163 PyThreadState* __tstate = wxPyBeginAllowThreads();
15164 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15165 wxPyEndAllowThreads(__tstate);
15166 if (PyErr_Occurred()) SWIG_fail;
15167 }
15168 {
15169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15170 }
15171 return resultobj;
15172 fail:
15173 return NULL;
15174 }
15175
15176
15177 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15178 PyObject *resultobj = 0;
15179 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15180 SwigValueWrapper<wxVisualAttributes > result;
15181 int val1 ;
15182 int ecode1 = 0 ;
15183 PyObject * obj0 = 0 ;
15184 char * kwnames[] = {
15185 (char *) "variant", NULL
15186 };
15187
15188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15189 if (obj0) {
15190 ecode1 = SWIG_AsVal_int(obj0, &val1);
15191 if (!SWIG_IsOK(ecode1)) {
15192 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15193 }
15194 arg1 = static_cast< wxWindowVariant >(val1);
15195 }
15196 {
15197 if (!wxPyCheckForApp()) SWIG_fail;
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15204 return resultobj;
15205 fail:
15206 return NULL;
15207 }
15208
15209
15210 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15211 PyObject *obj;
15212 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15213 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15214 return SWIG_Py_Void();
15215 }
15216
15217 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15218 return SWIG_Python_InitShadowInstance(args);
15219 }
15220
15221 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15222 PyObject *resultobj = 0;
15223 wxWindow *arg1 = (wxWindow *) 0 ;
15224 int arg2 = (int) -1 ;
15225 wxString const &arg3_defvalue = wxPyEmptyString ;
15226 wxString *arg3 = (wxString *) &arg3_defvalue ;
15227 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15228 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15229 wxSize const &arg5_defvalue = wxDefaultSize ;
15230 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15231 long arg6 = (long) wxSP_ARROW_KEYS ;
15232 int arg7 = (int) 0 ;
15233 int arg8 = (int) 100 ;
15234 int arg9 = (int) 0 ;
15235 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15236 wxString *arg10 = (wxString *) &arg10_defvalue ;
15237 wxSpinCtrl *result = 0 ;
15238 void *argp1 = 0 ;
15239 int res1 = 0 ;
15240 int val2 ;
15241 int ecode2 = 0 ;
15242 bool temp3 = false ;
15243 wxPoint temp4 ;
15244 wxSize temp5 ;
15245 long val6 ;
15246 int ecode6 = 0 ;
15247 int val7 ;
15248 int ecode7 = 0 ;
15249 int val8 ;
15250 int ecode8 = 0 ;
15251 int val9 ;
15252 int ecode9 = 0 ;
15253 bool temp10 = false ;
15254 PyObject * obj0 = 0 ;
15255 PyObject * obj1 = 0 ;
15256 PyObject * obj2 = 0 ;
15257 PyObject * obj3 = 0 ;
15258 PyObject * obj4 = 0 ;
15259 PyObject * obj5 = 0 ;
15260 PyObject * obj6 = 0 ;
15261 PyObject * obj7 = 0 ;
15262 PyObject * obj8 = 0 ;
15263 PyObject * obj9 = 0 ;
15264 char * kwnames[] = {
15265 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15266 };
15267
15268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15270 if (!SWIG_IsOK(res1)) {
15271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15272 }
15273 arg1 = reinterpret_cast< wxWindow * >(argp1);
15274 if (obj1) {
15275 ecode2 = SWIG_AsVal_int(obj1, &val2);
15276 if (!SWIG_IsOK(ecode2)) {
15277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15278 }
15279 arg2 = static_cast< int >(val2);
15280 }
15281 if (obj2) {
15282 {
15283 arg3 = wxString_in_helper(obj2);
15284 if (arg3 == NULL) SWIG_fail;
15285 temp3 = true;
15286 }
15287 }
15288 if (obj3) {
15289 {
15290 arg4 = &temp4;
15291 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15292 }
15293 }
15294 if (obj4) {
15295 {
15296 arg5 = &temp5;
15297 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15298 }
15299 }
15300 if (obj5) {
15301 ecode6 = SWIG_AsVal_long(obj5, &val6);
15302 if (!SWIG_IsOK(ecode6)) {
15303 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15304 }
15305 arg6 = static_cast< long >(val6);
15306 }
15307 if (obj6) {
15308 ecode7 = SWIG_AsVal_int(obj6, &val7);
15309 if (!SWIG_IsOK(ecode7)) {
15310 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15311 }
15312 arg7 = static_cast< int >(val7);
15313 }
15314 if (obj7) {
15315 ecode8 = SWIG_AsVal_int(obj7, &val8);
15316 if (!SWIG_IsOK(ecode8)) {
15317 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15318 }
15319 arg8 = static_cast< int >(val8);
15320 }
15321 if (obj8) {
15322 ecode9 = SWIG_AsVal_int(obj8, &val9);
15323 if (!SWIG_IsOK(ecode9)) {
15324 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15325 }
15326 arg9 = static_cast< int >(val9);
15327 }
15328 if (obj9) {
15329 {
15330 arg10 = wxString_in_helper(obj9);
15331 if (arg10 == NULL) SWIG_fail;
15332 temp10 = true;
15333 }
15334 }
15335 {
15336 if (!wxPyCheckForApp()) SWIG_fail;
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15343 {
15344 if (temp3)
15345 delete arg3;
15346 }
15347 {
15348 if (temp10)
15349 delete arg10;
15350 }
15351 return resultobj;
15352 fail:
15353 {
15354 if (temp3)
15355 delete arg3;
15356 }
15357 {
15358 if (temp10)
15359 delete arg10;
15360 }
15361 return NULL;
15362 }
15363
15364
15365 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15366 PyObject *resultobj = 0;
15367 wxSpinCtrl *result = 0 ;
15368
15369 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15370 {
15371 if (!wxPyCheckForApp()) SWIG_fail;
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = (wxSpinCtrl *)new wxSpinCtrl();
15374 wxPyEndAllowThreads(__tstate);
15375 if (PyErr_Occurred()) SWIG_fail;
15376 }
15377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15378 return resultobj;
15379 fail:
15380 return NULL;
15381 }
15382
15383
15384 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj = 0;
15386 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15387 wxWindow *arg2 = (wxWindow *) 0 ;
15388 int arg3 = (int) -1 ;
15389 wxString const &arg4_defvalue = wxPyEmptyString ;
15390 wxString *arg4 = (wxString *) &arg4_defvalue ;
15391 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15392 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15393 wxSize const &arg6_defvalue = wxDefaultSize ;
15394 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15395 long arg7 = (long) wxSP_ARROW_KEYS ;
15396 int arg8 = (int) 0 ;
15397 int arg9 = (int) 100 ;
15398 int arg10 = (int) 0 ;
15399 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15400 wxString *arg11 = (wxString *) &arg11_defvalue ;
15401 bool result;
15402 void *argp1 = 0 ;
15403 int res1 = 0 ;
15404 void *argp2 = 0 ;
15405 int res2 = 0 ;
15406 int val3 ;
15407 int ecode3 = 0 ;
15408 bool temp4 = false ;
15409 wxPoint temp5 ;
15410 wxSize temp6 ;
15411 long val7 ;
15412 int ecode7 = 0 ;
15413 int val8 ;
15414 int ecode8 = 0 ;
15415 int val9 ;
15416 int ecode9 = 0 ;
15417 int val10 ;
15418 int ecode10 = 0 ;
15419 bool temp11 = false ;
15420 PyObject * obj0 = 0 ;
15421 PyObject * obj1 = 0 ;
15422 PyObject * obj2 = 0 ;
15423 PyObject * obj3 = 0 ;
15424 PyObject * obj4 = 0 ;
15425 PyObject * obj5 = 0 ;
15426 PyObject * obj6 = 0 ;
15427 PyObject * obj7 = 0 ;
15428 PyObject * obj8 = 0 ;
15429 PyObject * obj9 = 0 ;
15430 PyObject * obj10 = 0 ;
15431 char * kwnames[] = {
15432 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15433 };
15434
15435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15437 if (!SWIG_IsOK(res1)) {
15438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15439 }
15440 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15441 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15442 if (!SWIG_IsOK(res2)) {
15443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15444 }
15445 arg2 = reinterpret_cast< wxWindow * >(argp2);
15446 if (obj2) {
15447 ecode3 = SWIG_AsVal_int(obj2, &val3);
15448 if (!SWIG_IsOK(ecode3)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15450 }
15451 arg3 = static_cast< int >(val3);
15452 }
15453 if (obj3) {
15454 {
15455 arg4 = wxString_in_helper(obj3);
15456 if (arg4 == NULL) SWIG_fail;
15457 temp4 = true;
15458 }
15459 }
15460 if (obj4) {
15461 {
15462 arg5 = &temp5;
15463 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15464 }
15465 }
15466 if (obj5) {
15467 {
15468 arg6 = &temp6;
15469 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15470 }
15471 }
15472 if (obj6) {
15473 ecode7 = SWIG_AsVal_long(obj6, &val7);
15474 if (!SWIG_IsOK(ecode7)) {
15475 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15476 }
15477 arg7 = static_cast< long >(val7);
15478 }
15479 if (obj7) {
15480 ecode8 = SWIG_AsVal_int(obj7, &val8);
15481 if (!SWIG_IsOK(ecode8)) {
15482 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15483 }
15484 arg8 = static_cast< int >(val8);
15485 }
15486 if (obj8) {
15487 ecode9 = SWIG_AsVal_int(obj8, &val9);
15488 if (!SWIG_IsOK(ecode9)) {
15489 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15490 }
15491 arg9 = static_cast< int >(val9);
15492 }
15493 if (obj9) {
15494 ecode10 = SWIG_AsVal_int(obj9, &val10);
15495 if (!SWIG_IsOK(ecode10)) {
15496 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15497 }
15498 arg10 = static_cast< int >(val10);
15499 }
15500 if (obj10) {
15501 {
15502 arg11 = wxString_in_helper(obj10);
15503 if (arg11 == NULL) SWIG_fail;
15504 temp11 = true;
15505 }
15506 }
15507 {
15508 PyThreadState* __tstate = wxPyBeginAllowThreads();
15509 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15510 wxPyEndAllowThreads(__tstate);
15511 if (PyErr_Occurred()) SWIG_fail;
15512 }
15513 {
15514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15515 }
15516 {
15517 if (temp4)
15518 delete arg4;
15519 }
15520 {
15521 if (temp11)
15522 delete arg11;
15523 }
15524 return resultobj;
15525 fail:
15526 {
15527 if (temp4)
15528 delete arg4;
15529 }
15530 {
15531 if (temp11)
15532 delete arg11;
15533 }
15534 return NULL;
15535 }
15536
15537
15538 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15539 PyObject *resultobj = 0;
15540 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15541 int result;
15542 void *argp1 = 0 ;
15543 int res1 = 0 ;
15544 PyObject *swig_obj[1] ;
15545
15546 if (!args) SWIG_fail;
15547 swig_obj[0] = args;
15548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15549 if (!SWIG_IsOK(res1)) {
15550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15551 }
15552 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15553 {
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15556 wxPyEndAllowThreads(__tstate);
15557 if (PyErr_Occurred()) SWIG_fail;
15558 }
15559 resultobj = SWIG_From_int(static_cast< int >(result));
15560 return resultobj;
15561 fail:
15562 return NULL;
15563 }
15564
15565
15566 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj = 0;
15568 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15569 int arg2 ;
15570 void *argp1 = 0 ;
15571 int res1 = 0 ;
15572 int val2 ;
15573 int ecode2 = 0 ;
15574 PyObject * obj0 = 0 ;
15575 PyObject * obj1 = 0 ;
15576 char * kwnames[] = {
15577 (char *) "self",(char *) "value", NULL
15578 };
15579
15580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15582 if (!SWIG_IsOK(res1)) {
15583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15584 }
15585 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15586 ecode2 = SWIG_AsVal_int(obj1, &val2);
15587 if (!SWIG_IsOK(ecode2)) {
15588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15589 }
15590 arg2 = static_cast< int >(val2);
15591 {
15592 PyThreadState* __tstate = wxPyBeginAllowThreads();
15593 (arg1)->SetValue(arg2);
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 resultobj = SWIG_Py_Void();
15598 return resultobj;
15599 fail:
15600 return NULL;
15601 }
15602
15603
15604 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj = 0;
15606 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15607 wxString *arg2 = 0 ;
15608 void *argp1 = 0 ;
15609 int res1 = 0 ;
15610 bool temp2 = false ;
15611 PyObject * obj0 = 0 ;
15612 PyObject * obj1 = 0 ;
15613 char * kwnames[] = {
15614 (char *) "self",(char *) "text", NULL
15615 };
15616
15617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15619 if (!SWIG_IsOK(res1)) {
15620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15621 }
15622 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15623 {
15624 arg2 = wxString_in_helper(obj1);
15625 if (arg2 == NULL) SWIG_fail;
15626 temp2 = true;
15627 }
15628 {
15629 PyThreadState* __tstate = wxPyBeginAllowThreads();
15630 (arg1)->SetValue((wxString const &)*arg2);
15631 wxPyEndAllowThreads(__tstate);
15632 if (PyErr_Occurred()) SWIG_fail;
15633 }
15634 resultobj = SWIG_Py_Void();
15635 {
15636 if (temp2)
15637 delete arg2;
15638 }
15639 return resultobj;
15640 fail:
15641 {
15642 if (temp2)
15643 delete arg2;
15644 }
15645 return NULL;
15646 }
15647
15648
15649 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15650 PyObject *resultobj = 0;
15651 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15652 int arg2 ;
15653 int arg3 ;
15654 void *argp1 = 0 ;
15655 int res1 = 0 ;
15656 int val2 ;
15657 int ecode2 = 0 ;
15658 int val3 ;
15659 int ecode3 = 0 ;
15660 PyObject * obj0 = 0 ;
15661 PyObject * obj1 = 0 ;
15662 PyObject * obj2 = 0 ;
15663 char * kwnames[] = {
15664 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15665 };
15666
15667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15669 if (!SWIG_IsOK(res1)) {
15670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15671 }
15672 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15673 ecode2 = SWIG_AsVal_int(obj1, &val2);
15674 if (!SWIG_IsOK(ecode2)) {
15675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15676 }
15677 arg2 = static_cast< int >(val2);
15678 ecode3 = SWIG_AsVal_int(obj2, &val3);
15679 if (!SWIG_IsOK(ecode3)) {
15680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15681 }
15682 arg3 = static_cast< int >(val3);
15683 {
15684 PyThreadState* __tstate = wxPyBeginAllowThreads();
15685 (arg1)->SetRange(arg2,arg3);
15686 wxPyEndAllowThreads(__tstate);
15687 if (PyErr_Occurred()) SWIG_fail;
15688 }
15689 resultobj = SWIG_Py_Void();
15690 return resultobj;
15691 fail:
15692 return NULL;
15693 }
15694
15695
15696 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15697 PyObject *resultobj = 0;
15698 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15699 int result;
15700 void *argp1 = 0 ;
15701 int res1 = 0 ;
15702 PyObject *swig_obj[1] ;
15703
15704 if (!args) SWIG_fail;
15705 swig_obj[0] = args;
15706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15707 if (!SWIG_IsOK(res1)) {
15708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15709 }
15710 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15711 {
15712 PyThreadState* __tstate = wxPyBeginAllowThreads();
15713 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_From_int(static_cast< int >(result));
15718 return resultobj;
15719 fail:
15720 return NULL;
15721 }
15722
15723
15724 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15725 PyObject *resultobj = 0;
15726 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15727 int result;
15728 void *argp1 = 0 ;
15729 int res1 = 0 ;
15730 PyObject *swig_obj[1] ;
15731
15732 if (!args) SWIG_fail;
15733 swig_obj[0] = args;
15734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15735 if (!SWIG_IsOK(res1)) {
15736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15737 }
15738 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15739 {
15740 PyThreadState* __tstate = wxPyBeginAllowThreads();
15741 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15742 wxPyEndAllowThreads(__tstate);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 resultobj = SWIG_From_int(static_cast< int >(result));
15746 return resultobj;
15747 fail:
15748 return NULL;
15749 }
15750
15751
15752 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15753 PyObject *resultobj = 0;
15754 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15755 long arg2 ;
15756 long arg3 ;
15757 void *argp1 = 0 ;
15758 int res1 = 0 ;
15759 long val2 ;
15760 int ecode2 = 0 ;
15761 long val3 ;
15762 int ecode3 = 0 ;
15763 PyObject * obj0 = 0 ;
15764 PyObject * obj1 = 0 ;
15765 PyObject * obj2 = 0 ;
15766 char * kwnames[] = {
15767 (char *) "self",(char *) "from",(char *) "to", NULL
15768 };
15769
15770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15772 if (!SWIG_IsOK(res1)) {
15773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15774 }
15775 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15776 ecode2 = SWIG_AsVal_long(obj1, &val2);
15777 if (!SWIG_IsOK(ecode2)) {
15778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15779 }
15780 arg2 = static_cast< long >(val2);
15781 ecode3 = SWIG_AsVal_long(obj2, &val3);
15782 if (!SWIG_IsOK(ecode3)) {
15783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15784 }
15785 arg3 = static_cast< long >(val3);
15786 {
15787 PyThreadState* __tstate = wxPyBeginAllowThreads();
15788 (arg1)->SetSelection(arg2,arg3);
15789 wxPyEndAllowThreads(__tstate);
15790 if (PyErr_Occurred()) SWIG_fail;
15791 }
15792 resultobj = SWIG_Py_Void();
15793 return resultobj;
15794 fail:
15795 return NULL;
15796 }
15797
15798
15799 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15800 PyObject *resultobj = 0;
15801 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15802 SwigValueWrapper<wxVisualAttributes > result;
15803 int val1 ;
15804 int ecode1 = 0 ;
15805 PyObject * obj0 = 0 ;
15806 char * kwnames[] = {
15807 (char *) "variant", NULL
15808 };
15809
15810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15811 if (obj0) {
15812 ecode1 = SWIG_AsVal_int(obj0, &val1);
15813 if (!SWIG_IsOK(ecode1)) {
15814 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15815 }
15816 arg1 = static_cast< wxWindowVariant >(val1);
15817 }
15818 {
15819 if (!wxPyCheckForApp()) SWIG_fail;
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15826 return resultobj;
15827 fail:
15828 return NULL;
15829 }
15830
15831
15832 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15833 PyObject *obj;
15834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15835 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15836 return SWIG_Py_Void();
15837 }
15838
15839 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15840 return SWIG_Python_InitShadowInstance(args);
15841 }
15842
15843 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15844 PyObject *resultobj = 0;
15845 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15846 int arg2 = (int) 0 ;
15847 wxSpinEvent *result = 0 ;
15848 int val1 ;
15849 int ecode1 = 0 ;
15850 int val2 ;
15851 int ecode2 = 0 ;
15852 PyObject * obj0 = 0 ;
15853 PyObject * obj1 = 0 ;
15854 char * kwnames[] = {
15855 (char *) "commandType",(char *) "winid", NULL
15856 };
15857
15858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15859 if (obj0) {
15860 ecode1 = SWIG_AsVal_int(obj0, &val1);
15861 if (!SWIG_IsOK(ecode1)) {
15862 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15863 }
15864 arg1 = static_cast< wxEventType >(val1);
15865 }
15866 if (obj1) {
15867 ecode2 = SWIG_AsVal_int(obj1, &val2);
15868 if (!SWIG_IsOK(ecode2)) {
15869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15870 }
15871 arg2 = static_cast< int >(val2);
15872 }
15873 {
15874 PyThreadState* __tstate = wxPyBeginAllowThreads();
15875 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15876 wxPyEndAllowThreads(__tstate);
15877 if (PyErr_Occurred()) SWIG_fail;
15878 }
15879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15880 return resultobj;
15881 fail:
15882 return NULL;
15883 }
15884
15885
15886 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15887 PyObject *resultobj = 0;
15888 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15889 int result;
15890 void *argp1 = 0 ;
15891 int res1 = 0 ;
15892 PyObject *swig_obj[1] ;
15893
15894 if (!args) SWIG_fail;
15895 swig_obj[0] = args;
15896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15897 if (!SWIG_IsOK(res1)) {
15898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15899 }
15900 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15901 {
15902 PyThreadState* __tstate = wxPyBeginAllowThreads();
15903 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15904 wxPyEndAllowThreads(__tstate);
15905 if (PyErr_Occurred()) SWIG_fail;
15906 }
15907 resultobj = SWIG_From_int(static_cast< int >(result));
15908 return resultobj;
15909 fail:
15910 return NULL;
15911 }
15912
15913
15914 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj = 0;
15916 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15917 int arg2 ;
15918 void *argp1 = 0 ;
15919 int res1 = 0 ;
15920 int val2 ;
15921 int ecode2 = 0 ;
15922 PyObject * obj0 = 0 ;
15923 PyObject * obj1 = 0 ;
15924 char * kwnames[] = {
15925 (char *) "self",(char *) "pos", NULL
15926 };
15927
15928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15930 if (!SWIG_IsOK(res1)) {
15931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15932 }
15933 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15934 ecode2 = SWIG_AsVal_int(obj1, &val2);
15935 if (!SWIG_IsOK(ecode2)) {
15936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15937 }
15938 arg2 = static_cast< int >(val2);
15939 {
15940 PyThreadState* __tstate = wxPyBeginAllowThreads();
15941 (arg1)->SetPosition(arg2);
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 resultobj = SWIG_Py_Void();
15946 return resultobj;
15947 fail:
15948 return NULL;
15949 }
15950
15951
15952 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15953 PyObject *obj;
15954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15955 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15956 return SWIG_Py_Void();
15957 }
15958
15959 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15960 return SWIG_Python_InitShadowInstance(args);
15961 }
15962
15963 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15964 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15965 return 1;
15966 }
15967
15968
15969 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15970 PyObject *pyobj = 0;
15971
15972 {
15973 #if wxUSE_UNICODE
15974 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15975 #else
15976 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15977 #endif
15978 }
15979 return pyobj;
15980 }
15981
15982
15983 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15984 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15985 return 1;
15986 }
15987
15988
15989 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15990 PyObject *pyobj = 0;
15991
15992 {
15993 #if wxUSE_UNICODE
15994 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15995 #else
15996 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15997 #endif
15998 }
15999 return pyobj;
16000 }
16001
16002
16003 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj = 0;
16005 wxWindow *arg1 = (wxWindow *) 0 ;
16006 int arg2 = (int) -1 ;
16007 wxString const &arg3_defvalue = wxPyEmptyString ;
16008 wxString *arg3 = (wxString *) &arg3_defvalue ;
16009 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16010 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16011 wxSize const &arg5_defvalue = wxDefaultSize ;
16012 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16013 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16014 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16015 int arg7 = (int) 0 ;
16016 long arg8 = (long) wxRA_HORIZONTAL ;
16017 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16018 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16019 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16020 wxString *arg10 = (wxString *) &arg10_defvalue ;
16021 wxRadioBox *result = 0 ;
16022 void *argp1 = 0 ;
16023 int res1 = 0 ;
16024 int val2 ;
16025 int ecode2 = 0 ;
16026 bool temp3 = false ;
16027 wxPoint temp4 ;
16028 wxSize temp5 ;
16029 bool temp6 = false ;
16030 int val7 ;
16031 int ecode7 = 0 ;
16032 long val8 ;
16033 int ecode8 = 0 ;
16034 void *argp9 = 0 ;
16035 int res9 = 0 ;
16036 bool temp10 = false ;
16037 PyObject * obj0 = 0 ;
16038 PyObject * obj1 = 0 ;
16039 PyObject * obj2 = 0 ;
16040 PyObject * obj3 = 0 ;
16041 PyObject * obj4 = 0 ;
16042 PyObject * obj5 = 0 ;
16043 PyObject * obj6 = 0 ;
16044 PyObject * obj7 = 0 ;
16045 PyObject * obj8 = 0 ;
16046 PyObject * obj9 = 0 ;
16047 char * kwnames[] = {
16048 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16049 };
16050
16051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16053 if (!SWIG_IsOK(res1)) {
16054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16055 }
16056 arg1 = reinterpret_cast< wxWindow * >(argp1);
16057 if (obj1) {
16058 ecode2 = SWIG_AsVal_int(obj1, &val2);
16059 if (!SWIG_IsOK(ecode2)) {
16060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16061 }
16062 arg2 = static_cast< int >(val2);
16063 }
16064 if (obj2) {
16065 {
16066 arg3 = wxString_in_helper(obj2);
16067 if (arg3 == NULL) SWIG_fail;
16068 temp3 = true;
16069 }
16070 }
16071 if (obj3) {
16072 {
16073 arg4 = &temp4;
16074 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16075 }
16076 }
16077 if (obj4) {
16078 {
16079 arg5 = &temp5;
16080 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16081 }
16082 }
16083 if (obj5) {
16084 {
16085 if (! PySequence_Check(obj5)) {
16086 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16087 SWIG_fail;
16088 }
16089 arg6 = new wxArrayString;
16090 temp6 = true;
16091 int i, len=PySequence_Length(obj5);
16092 for (i=0; i<len; i++) {
16093 PyObject* item = PySequence_GetItem(obj5, i);
16094 wxString* s = wxString_in_helper(item);
16095 if (PyErr_Occurred()) SWIG_fail;
16096 arg6->Add(*s);
16097 delete s;
16098 Py_DECREF(item);
16099 }
16100 }
16101 }
16102 if (obj6) {
16103 ecode7 = SWIG_AsVal_int(obj6, &val7);
16104 if (!SWIG_IsOK(ecode7)) {
16105 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16106 }
16107 arg7 = static_cast< int >(val7);
16108 }
16109 if (obj7) {
16110 ecode8 = SWIG_AsVal_long(obj7, &val8);
16111 if (!SWIG_IsOK(ecode8)) {
16112 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16113 }
16114 arg8 = static_cast< long >(val8);
16115 }
16116 if (obj8) {
16117 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16118 if (!SWIG_IsOK(res9)) {
16119 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16120 }
16121 if (!argp9) {
16122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16123 }
16124 arg9 = reinterpret_cast< wxValidator * >(argp9);
16125 }
16126 if (obj9) {
16127 {
16128 arg10 = wxString_in_helper(obj9);
16129 if (arg10 == NULL) SWIG_fail;
16130 temp10 = true;
16131 }
16132 }
16133 {
16134 if (!wxPyCheckForApp()) SWIG_fail;
16135 PyThreadState* __tstate = wxPyBeginAllowThreads();
16136 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);
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16141 {
16142 if (temp3)
16143 delete arg3;
16144 }
16145 {
16146 if (temp6) delete arg6;
16147 }
16148 {
16149 if (temp10)
16150 delete arg10;
16151 }
16152 return resultobj;
16153 fail:
16154 {
16155 if (temp3)
16156 delete arg3;
16157 }
16158 {
16159 if (temp6) delete arg6;
16160 }
16161 {
16162 if (temp10)
16163 delete arg10;
16164 }
16165 return NULL;
16166 }
16167
16168
16169 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16170 PyObject *resultobj = 0;
16171 wxRadioBox *result = 0 ;
16172
16173 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16174 {
16175 if (!wxPyCheckForApp()) SWIG_fail;
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (wxRadioBox *)new wxRadioBox();
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16182 return resultobj;
16183 fail:
16184 return NULL;
16185 }
16186
16187
16188 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16189 PyObject *resultobj = 0;
16190 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16191 wxWindow *arg2 = (wxWindow *) 0 ;
16192 int arg3 = (int) -1 ;
16193 wxString const &arg4_defvalue = wxPyEmptyString ;
16194 wxString *arg4 = (wxString *) &arg4_defvalue ;
16195 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16196 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16197 wxSize const &arg6_defvalue = wxDefaultSize ;
16198 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16199 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16200 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16201 int arg8 = (int) 0 ;
16202 long arg9 = (long) wxRA_HORIZONTAL ;
16203 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16204 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16205 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16206 wxString *arg11 = (wxString *) &arg11_defvalue ;
16207 bool result;
16208 void *argp1 = 0 ;
16209 int res1 = 0 ;
16210 void *argp2 = 0 ;
16211 int res2 = 0 ;
16212 int val3 ;
16213 int ecode3 = 0 ;
16214 bool temp4 = false ;
16215 wxPoint temp5 ;
16216 wxSize temp6 ;
16217 bool temp7 = false ;
16218 int val8 ;
16219 int ecode8 = 0 ;
16220 long val9 ;
16221 int ecode9 = 0 ;
16222 void *argp10 = 0 ;
16223 int res10 = 0 ;
16224 bool temp11 = false ;
16225 PyObject * obj0 = 0 ;
16226 PyObject * obj1 = 0 ;
16227 PyObject * obj2 = 0 ;
16228 PyObject * obj3 = 0 ;
16229 PyObject * obj4 = 0 ;
16230 PyObject * obj5 = 0 ;
16231 PyObject * obj6 = 0 ;
16232 PyObject * obj7 = 0 ;
16233 PyObject * obj8 = 0 ;
16234 PyObject * obj9 = 0 ;
16235 PyObject * obj10 = 0 ;
16236 char * kwnames[] = {
16237 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16238 };
16239
16240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16242 if (!SWIG_IsOK(res1)) {
16243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16244 }
16245 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16247 if (!SWIG_IsOK(res2)) {
16248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16249 }
16250 arg2 = reinterpret_cast< wxWindow * >(argp2);
16251 if (obj2) {
16252 ecode3 = SWIG_AsVal_int(obj2, &val3);
16253 if (!SWIG_IsOK(ecode3)) {
16254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16255 }
16256 arg3 = static_cast< int >(val3);
16257 }
16258 if (obj3) {
16259 {
16260 arg4 = wxString_in_helper(obj3);
16261 if (arg4 == NULL) SWIG_fail;
16262 temp4 = true;
16263 }
16264 }
16265 if (obj4) {
16266 {
16267 arg5 = &temp5;
16268 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16269 }
16270 }
16271 if (obj5) {
16272 {
16273 arg6 = &temp6;
16274 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16275 }
16276 }
16277 if (obj6) {
16278 {
16279 if (! PySequence_Check(obj6)) {
16280 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16281 SWIG_fail;
16282 }
16283 arg7 = new wxArrayString;
16284 temp7 = true;
16285 int i, len=PySequence_Length(obj6);
16286 for (i=0; i<len; i++) {
16287 PyObject* item = PySequence_GetItem(obj6, i);
16288 wxString* s = wxString_in_helper(item);
16289 if (PyErr_Occurred()) SWIG_fail;
16290 arg7->Add(*s);
16291 delete s;
16292 Py_DECREF(item);
16293 }
16294 }
16295 }
16296 if (obj7) {
16297 ecode8 = SWIG_AsVal_int(obj7, &val8);
16298 if (!SWIG_IsOK(ecode8)) {
16299 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16300 }
16301 arg8 = static_cast< int >(val8);
16302 }
16303 if (obj8) {
16304 ecode9 = SWIG_AsVal_long(obj8, &val9);
16305 if (!SWIG_IsOK(ecode9)) {
16306 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16307 }
16308 arg9 = static_cast< long >(val9);
16309 }
16310 if (obj9) {
16311 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16312 if (!SWIG_IsOK(res10)) {
16313 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16314 }
16315 if (!argp10) {
16316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16317 }
16318 arg10 = reinterpret_cast< wxValidator * >(argp10);
16319 }
16320 if (obj10) {
16321 {
16322 arg11 = wxString_in_helper(obj10);
16323 if (arg11 == NULL) SWIG_fail;
16324 temp11 = true;
16325 }
16326 }
16327 {
16328 PyThreadState* __tstate = wxPyBeginAllowThreads();
16329 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);
16330 wxPyEndAllowThreads(__tstate);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 {
16334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16335 }
16336 {
16337 if (temp4)
16338 delete arg4;
16339 }
16340 {
16341 if (temp7) delete arg7;
16342 }
16343 {
16344 if (temp11)
16345 delete arg11;
16346 }
16347 return resultobj;
16348 fail:
16349 {
16350 if (temp4)
16351 delete arg4;
16352 }
16353 {
16354 if (temp7) delete arg7;
16355 }
16356 {
16357 if (temp11)
16358 delete arg11;
16359 }
16360 return NULL;
16361 }
16362
16363
16364 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16365 PyObject *resultobj = 0;
16366 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16367 int arg2 ;
16368 void *argp1 = 0 ;
16369 int res1 = 0 ;
16370 int val2 ;
16371 int ecode2 = 0 ;
16372 PyObject * obj0 = 0 ;
16373 PyObject * obj1 = 0 ;
16374 char * kwnames[] = {
16375 (char *) "self",(char *) "n", NULL
16376 };
16377
16378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16380 if (!SWIG_IsOK(res1)) {
16381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16382 }
16383 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16384 ecode2 = SWIG_AsVal_int(obj1, &val2);
16385 if (!SWIG_IsOK(ecode2)) {
16386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16387 }
16388 arg2 = static_cast< int >(val2);
16389 {
16390 PyThreadState* __tstate = wxPyBeginAllowThreads();
16391 (arg1)->SetSelection(arg2);
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 resultobj = SWIG_Py_Void();
16396 return resultobj;
16397 fail:
16398 return NULL;
16399 }
16400
16401
16402 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16403 PyObject *resultobj = 0;
16404 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16405 int result;
16406 void *argp1 = 0 ;
16407 int res1 = 0 ;
16408 PyObject *swig_obj[1] ;
16409
16410 if (!args) SWIG_fail;
16411 swig_obj[0] = args;
16412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16413 if (!SWIG_IsOK(res1)) {
16414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16415 }
16416 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16417 {
16418 PyThreadState* __tstate = wxPyBeginAllowThreads();
16419 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16420 wxPyEndAllowThreads(__tstate);
16421 if (PyErr_Occurred()) SWIG_fail;
16422 }
16423 resultobj = SWIG_From_int(static_cast< int >(result));
16424 return resultobj;
16425 fail:
16426 return NULL;
16427 }
16428
16429
16430 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16431 PyObject *resultobj = 0;
16432 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16433 wxString result;
16434 void *argp1 = 0 ;
16435 int res1 = 0 ;
16436 PyObject *swig_obj[1] ;
16437
16438 if (!args) SWIG_fail;
16439 swig_obj[0] = args;
16440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16441 if (!SWIG_IsOK(res1)) {
16442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16443 }
16444 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16445 {
16446 PyThreadState* __tstate = wxPyBeginAllowThreads();
16447 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16448 wxPyEndAllowThreads(__tstate);
16449 if (PyErr_Occurred()) SWIG_fail;
16450 }
16451 {
16452 #if wxUSE_UNICODE
16453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16454 #else
16455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16456 #endif
16457 }
16458 return resultobj;
16459 fail:
16460 return NULL;
16461 }
16462
16463
16464 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16465 PyObject *resultobj = 0;
16466 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16467 wxString *arg2 = 0 ;
16468 bool result;
16469 void *argp1 = 0 ;
16470 int res1 = 0 ;
16471 bool temp2 = false ;
16472 PyObject * obj0 = 0 ;
16473 PyObject * obj1 = 0 ;
16474 char * kwnames[] = {
16475 (char *) "self",(char *) "s", NULL
16476 };
16477
16478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16480 if (!SWIG_IsOK(res1)) {
16481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16482 }
16483 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16484 {
16485 arg2 = wxString_in_helper(obj1);
16486 if (arg2 == NULL) SWIG_fail;
16487 temp2 = true;
16488 }
16489 {
16490 PyThreadState* __tstate = wxPyBeginAllowThreads();
16491 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16492 wxPyEndAllowThreads(__tstate);
16493 if (PyErr_Occurred()) SWIG_fail;
16494 }
16495 {
16496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16497 }
16498 {
16499 if (temp2)
16500 delete arg2;
16501 }
16502 return resultobj;
16503 fail:
16504 {
16505 if (temp2)
16506 delete arg2;
16507 }
16508 return NULL;
16509 }
16510
16511
16512 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16513 PyObject *resultobj = 0;
16514 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16515 size_t result;
16516 void *argp1 = 0 ;
16517 int res1 = 0 ;
16518 PyObject *swig_obj[1] ;
16519
16520 if (!args) SWIG_fail;
16521 swig_obj[0] = args;
16522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16523 if (!SWIG_IsOK(res1)) {
16524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16525 }
16526 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16527 {
16528 PyThreadState* __tstate = wxPyBeginAllowThreads();
16529 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16534 return resultobj;
16535 fail:
16536 return NULL;
16537 }
16538
16539
16540 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16541 PyObject *resultobj = 0;
16542 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16543 wxString *arg2 = 0 ;
16544 int result;
16545 void *argp1 = 0 ;
16546 int res1 = 0 ;
16547 bool temp2 = false ;
16548 PyObject * obj0 = 0 ;
16549 PyObject * obj1 = 0 ;
16550 char * kwnames[] = {
16551 (char *) "self",(char *) "s", NULL
16552 };
16553
16554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16556 if (!SWIG_IsOK(res1)) {
16557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16558 }
16559 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16560 {
16561 arg2 = wxString_in_helper(obj1);
16562 if (arg2 == NULL) SWIG_fail;
16563 temp2 = true;
16564 }
16565 {
16566 PyThreadState* __tstate = wxPyBeginAllowThreads();
16567 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16568 wxPyEndAllowThreads(__tstate);
16569 if (PyErr_Occurred()) SWIG_fail;
16570 }
16571 resultobj = SWIG_From_int(static_cast< int >(result));
16572 {
16573 if (temp2)
16574 delete arg2;
16575 }
16576 return resultobj;
16577 fail:
16578 {
16579 if (temp2)
16580 delete arg2;
16581 }
16582 return NULL;
16583 }
16584
16585
16586 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16587 PyObject *resultobj = 0;
16588 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16589 int arg2 ;
16590 wxString result;
16591 void *argp1 = 0 ;
16592 int res1 = 0 ;
16593 int val2 ;
16594 int ecode2 = 0 ;
16595 PyObject * obj0 = 0 ;
16596 PyObject * obj1 = 0 ;
16597 char * kwnames[] = {
16598 (char *) "self",(char *) "n", NULL
16599 };
16600
16601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16603 if (!SWIG_IsOK(res1)) {
16604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16605 }
16606 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16607 ecode2 = SWIG_AsVal_int(obj1, &val2);
16608 if (!SWIG_IsOK(ecode2)) {
16609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16610 }
16611 arg2 = static_cast< int >(val2);
16612 {
16613 PyThreadState* __tstate = wxPyBeginAllowThreads();
16614 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16615 wxPyEndAllowThreads(__tstate);
16616 if (PyErr_Occurred()) SWIG_fail;
16617 }
16618 {
16619 #if wxUSE_UNICODE
16620 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16621 #else
16622 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16623 #endif
16624 }
16625 return resultobj;
16626 fail:
16627 return NULL;
16628 }
16629
16630
16631 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16632 PyObject *resultobj = 0;
16633 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16634 int arg2 ;
16635 wxString *arg3 = 0 ;
16636 void *argp1 = 0 ;
16637 int res1 = 0 ;
16638 int val2 ;
16639 int ecode2 = 0 ;
16640 bool temp3 = false ;
16641 PyObject * obj0 = 0 ;
16642 PyObject * obj1 = 0 ;
16643 PyObject * obj2 = 0 ;
16644 char * kwnames[] = {
16645 (char *) "self",(char *) "n",(char *) "label", NULL
16646 };
16647
16648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16650 if (!SWIG_IsOK(res1)) {
16651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16652 }
16653 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16654 ecode2 = SWIG_AsVal_int(obj1, &val2);
16655 if (!SWIG_IsOK(ecode2)) {
16656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16657 }
16658 arg2 = static_cast< int >(val2);
16659 {
16660 arg3 = wxString_in_helper(obj2);
16661 if (arg3 == NULL) SWIG_fail;
16662 temp3 = true;
16663 }
16664 {
16665 PyThreadState* __tstate = wxPyBeginAllowThreads();
16666 (arg1)->SetString(arg2,(wxString const &)*arg3);
16667 wxPyEndAllowThreads(__tstate);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 resultobj = SWIG_Py_Void();
16671 {
16672 if (temp3)
16673 delete arg3;
16674 }
16675 return resultobj;
16676 fail:
16677 {
16678 if (temp3)
16679 delete arg3;
16680 }
16681 return NULL;
16682 }
16683
16684
16685 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj = 0;
16687 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16688 unsigned int arg2 ;
16689 bool arg3 = (bool) true ;
16690 void *argp1 = 0 ;
16691 int res1 = 0 ;
16692 unsigned int val2 ;
16693 int ecode2 = 0 ;
16694 bool val3 ;
16695 int ecode3 = 0 ;
16696 PyObject * obj0 = 0 ;
16697 PyObject * obj1 = 0 ;
16698 PyObject * obj2 = 0 ;
16699 char * kwnames[] = {
16700 (char *) "self",(char *) "n",(char *) "enable", NULL
16701 };
16702
16703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16705 if (!SWIG_IsOK(res1)) {
16706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16707 }
16708 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16709 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16710 if (!SWIG_IsOK(ecode2)) {
16711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16712 }
16713 arg2 = static_cast< unsigned int >(val2);
16714 if (obj2) {
16715 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16716 if (!SWIG_IsOK(ecode3)) {
16717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16718 }
16719 arg3 = static_cast< bool >(val3);
16720 }
16721 {
16722 PyThreadState* __tstate = wxPyBeginAllowThreads();
16723 (arg1)->Enable(arg2,arg3);
16724 wxPyEndAllowThreads(__tstate);
16725 if (PyErr_Occurred()) SWIG_fail;
16726 }
16727 resultobj = SWIG_Py_Void();
16728 return resultobj;
16729 fail:
16730 return NULL;
16731 }
16732
16733
16734 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16735 PyObject *resultobj = 0;
16736 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16737 unsigned int arg2 ;
16738 bool arg3 = (bool) true ;
16739 void *argp1 = 0 ;
16740 int res1 = 0 ;
16741 unsigned int val2 ;
16742 int ecode2 = 0 ;
16743 bool val3 ;
16744 int ecode3 = 0 ;
16745 PyObject * obj0 = 0 ;
16746 PyObject * obj1 = 0 ;
16747 PyObject * obj2 = 0 ;
16748 char * kwnames[] = {
16749 (char *) "self",(char *) "n",(char *) "show", NULL
16750 };
16751
16752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16754 if (!SWIG_IsOK(res1)) {
16755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16756 }
16757 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16758 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16759 if (!SWIG_IsOK(ecode2)) {
16760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16761 }
16762 arg2 = static_cast< unsigned int >(val2);
16763 if (obj2) {
16764 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16765 if (!SWIG_IsOK(ecode3)) {
16766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16767 }
16768 arg3 = static_cast< bool >(val3);
16769 }
16770 {
16771 PyThreadState* __tstate = wxPyBeginAllowThreads();
16772 (arg1)->Show(arg2,arg3);
16773 wxPyEndAllowThreads(__tstate);
16774 if (PyErr_Occurred()) SWIG_fail;
16775 }
16776 resultobj = SWIG_Py_Void();
16777 return resultobj;
16778 fail:
16779 return NULL;
16780 }
16781
16782
16783 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16784 PyObject *resultobj = 0;
16785 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16786 unsigned int arg2 ;
16787 bool result;
16788 void *argp1 = 0 ;
16789 int res1 = 0 ;
16790 unsigned int val2 ;
16791 int ecode2 = 0 ;
16792 PyObject * obj0 = 0 ;
16793 PyObject * obj1 = 0 ;
16794 char * kwnames[] = {
16795 (char *) "self",(char *) "n", NULL
16796 };
16797
16798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16800 if (!SWIG_IsOK(res1)) {
16801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16802 }
16803 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16804 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16805 if (!SWIG_IsOK(ecode2)) {
16806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16807 }
16808 arg2 = static_cast< unsigned int >(val2);
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 {
16816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16817 }
16818 return resultobj;
16819 fail:
16820 return NULL;
16821 }
16822
16823
16824 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16825 PyObject *resultobj = 0;
16826 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16827 unsigned int arg2 ;
16828 bool result;
16829 void *argp1 = 0 ;
16830 int res1 = 0 ;
16831 unsigned int val2 ;
16832 int ecode2 = 0 ;
16833 PyObject * obj0 = 0 ;
16834 PyObject * obj1 = 0 ;
16835 char * kwnames[] = {
16836 (char *) "self",(char *) "n", NULL
16837 };
16838
16839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16841 if (!SWIG_IsOK(res1)) {
16842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16843 }
16844 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16845 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16846 if (!SWIG_IsOK(ecode2)) {
16847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16848 }
16849 arg2 = static_cast< unsigned int >(val2);
16850 {
16851 PyThreadState* __tstate = wxPyBeginAllowThreads();
16852 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16853 wxPyEndAllowThreads(__tstate);
16854 if (PyErr_Occurred()) SWIG_fail;
16855 }
16856 {
16857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16858 }
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16866 PyObject *resultobj = 0;
16867 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16868 unsigned int result;
16869 void *argp1 = 0 ;
16870 int res1 = 0 ;
16871 PyObject *swig_obj[1] ;
16872
16873 if (!args) SWIG_fail;
16874 swig_obj[0] = args;
16875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16876 if (!SWIG_IsOK(res1)) {
16877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16878 }
16879 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16880 {
16881 PyThreadState* __tstate = wxPyBeginAllowThreads();
16882 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16883 wxPyEndAllowThreads(__tstate);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
16886 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16887 return resultobj;
16888 fail:
16889 return NULL;
16890 }
16891
16892
16893 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16894 PyObject *resultobj = 0;
16895 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16896 unsigned int result;
16897 void *argp1 = 0 ;
16898 int res1 = 0 ;
16899 PyObject *swig_obj[1] ;
16900
16901 if (!args) SWIG_fail;
16902 swig_obj[0] = args;
16903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16904 if (!SWIG_IsOK(res1)) {
16905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16906 }
16907 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16908 {
16909 PyThreadState* __tstate = wxPyBeginAllowThreads();
16910 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16911 wxPyEndAllowThreads(__tstate);
16912 if (PyErr_Occurred()) SWIG_fail;
16913 }
16914 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16915 return resultobj;
16916 fail:
16917 return NULL;
16918 }
16919
16920
16921 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16922 PyObject *resultobj = 0;
16923 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16924 int arg2 ;
16925 wxDirection arg3 ;
16926 long arg4 ;
16927 int result;
16928 void *argp1 = 0 ;
16929 int res1 = 0 ;
16930 int val2 ;
16931 int ecode2 = 0 ;
16932 int val3 ;
16933 int ecode3 = 0 ;
16934 long val4 ;
16935 int ecode4 = 0 ;
16936 PyObject * obj0 = 0 ;
16937 PyObject * obj1 = 0 ;
16938 PyObject * obj2 = 0 ;
16939 PyObject * obj3 = 0 ;
16940 char * kwnames[] = {
16941 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16942 };
16943
16944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16946 if (!SWIG_IsOK(res1)) {
16947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16948 }
16949 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16950 ecode2 = SWIG_AsVal_int(obj1, &val2);
16951 if (!SWIG_IsOK(ecode2)) {
16952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16953 }
16954 arg2 = static_cast< int >(val2);
16955 ecode3 = SWIG_AsVal_int(obj2, &val3);
16956 if (!SWIG_IsOK(ecode3)) {
16957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16958 }
16959 arg3 = static_cast< wxDirection >(val3);
16960 ecode4 = SWIG_AsVal_long(obj3, &val4);
16961 if (!SWIG_IsOK(ecode4)) {
16962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16963 }
16964 arg4 = static_cast< long >(val4);
16965 {
16966 PyThreadState* __tstate = wxPyBeginAllowThreads();
16967 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 resultobj = SWIG_From_int(static_cast< int >(result));
16972 return resultobj;
16973 fail:
16974 return NULL;
16975 }
16976
16977
16978 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16979 PyObject *resultobj = 0;
16980 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16981 unsigned int arg2 ;
16982 wxString *arg3 = 0 ;
16983 void *argp1 = 0 ;
16984 int res1 = 0 ;
16985 unsigned int val2 ;
16986 int ecode2 = 0 ;
16987 bool temp3 = false ;
16988 PyObject * obj0 = 0 ;
16989 PyObject * obj1 = 0 ;
16990 PyObject * obj2 = 0 ;
16991 char * kwnames[] = {
16992 (char *) "self",(char *) "item",(char *) "text", NULL
16993 };
16994
16995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16997 if (!SWIG_IsOK(res1)) {
16998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16999 }
17000 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17001 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17002 if (!SWIG_IsOK(ecode2)) {
17003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17004 }
17005 arg2 = static_cast< unsigned int >(val2);
17006 {
17007 arg3 = wxString_in_helper(obj2);
17008 if (arg3 == NULL) SWIG_fail;
17009 temp3 = true;
17010 }
17011 {
17012 PyThreadState* __tstate = wxPyBeginAllowThreads();
17013 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17014 wxPyEndAllowThreads(__tstate);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 resultobj = SWIG_Py_Void();
17018 {
17019 if (temp3)
17020 delete arg3;
17021 }
17022 return resultobj;
17023 fail:
17024 {
17025 if (temp3)
17026 delete arg3;
17027 }
17028 return NULL;
17029 }
17030
17031
17032 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17033 PyObject *resultobj = 0;
17034 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17035 unsigned int arg2 ;
17036 wxToolTip *result = 0 ;
17037 void *argp1 = 0 ;
17038 int res1 = 0 ;
17039 unsigned int val2 ;
17040 int ecode2 = 0 ;
17041 PyObject * obj0 = 0 ;
17042 PyObject * obj1 = 0 ;
17043 char * kwnames[] = {
17044 (char *) "self",(char *) "item", NULL
17045 };
17046
17047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17049 if (!SWIG_IsOK(res1)) {
17050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17051 }
17052 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17053 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17054 if (!SWIG_IsOK(ecode2)) {
17055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17056 }
17057 arg2 = static_cast< unsigned int >(val2);
17058 {
17059 PyThreadState* __tstate = wxPyBeginAllowThreads();
17060 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 {
17065 resultobj = wxPyMake_wxObject(result, (bool)0);
17066 }
17067 return resultobj;
17068 fail:
17069 return NULL;
17070 }
17071
17072
17073 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17074 PyObject *resultobj = 0;
17075 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17076 unsigned int arg2 ;
17077 wxString *arg3 = 0 ;
17078 void *argp1 = 0 ;
17079 int res1 = 0 ;
17080 unsigned int val2 ;
17081 int ecode2 = 0 ;
17082 bool temp3 = false ;
17083 PyObject * obj0 = 0 ;
17084 PyObject * obj1 = 0 ;
17085 PyObject * obj2 = 0 ;
17086 char * kwnames[] = {
17087 (char *) "self",(char *) "n",(char *) "helpText", NULL
17088 };
17089
17090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17092 if (!SWIG_IsOK(res1)) {
17093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17094 }
17095 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17096 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17097 if (!SWIG_IsOK(ecode2)) {
17098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17099 }
17100 arg2 = static_cast< unsigned int >(val2);
17101 {
17102 arg3 = wxString_in_helper(obj2);
17103 if (arg3 == NULL) SWIG_fail;
17104 temp3 = true;
17105 }
17106 {
17107 PyThreadState* __tstate = wxPyBeginAllowThreads();
17108 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 resultobj = SWIG_Py_Void();
17113 {
17114 if (temp3)
17115 delete arg3;
17116 }
17117 return resultobj;
17118 fail:
17119 {
17120 if (temp3)
17121 delete arg3;
17122 }
17123 return NULL;
17124 }
17125
17126
17127 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17128 PyObject *resultobj = 0;
17129 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17130 unsigned int arg2 ;
17131 wxString result;
17132 void *argp1 = 0 ;
17133 int res1 = 0 ;
17134 unsigned int val2 ;
17135 int ecode2 = 0 ;
17136 PyObject * obj0 = 0 ;
17137 PyObject * obj1 = 0 ;
17138 char * kwnames[] = {
17139 (char *) "self",(char *) "n", NULL
17140 };
17141
17142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17144 if (!SWIG_IsOK(res1)) {
17145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17146 }
17147 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17148 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17149 if (!SWIG_IsOK(ecode2)) {
17150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17151 }
17152 arg2 = static_cast< unsigned int >(val2);
17153 {
17154 PyThreadState* __tstate = wxPyBeginAllowThreads();
17155 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 #if wxUSE_UNICODE
17161 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17162 #else
17163 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17164 #endif
17165 }
17166 return resultobj;
17167 fail:
17168 return NULL;
17169 }
17170
17171
17172 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17173 PyObject *resultobj = 0;
17174 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17175 SwigValueWrapper<wxVisualAttributes > result;
17176 int val1 ;
17177 int ecode1 = 0 ;
17178 PyObject * obj0 = 0 ;
17179 char * kwnames[] = {
17180 (char *) "variant", NULL
17181 };
17182
17183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17184 if (obj0) {
17185 ecode1 = SWIG_AsVal_int(obj0, &val1);
17186 if (!SWIG_IsOK(ecode1)) {
17187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17188 }
17189 arg1 = static_cast< wxWindowVariant >(val1);
17190 }
17191 {
17192 if (!wxPyCheckForApp()) SWIG_fail;
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
17198 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17199 return resultobj;
17200 fail:
17201 return NULL;
17202 }
17203
17204
17205 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17206 PyObject *obj;
17207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17208 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17209 return SWIG_Py_Void();
17210 }
17211
17212 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17213 return SWIG_Python_InitShadowInstance(args);
17214 }
17215
17216 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17217 PyObject *resultobj = 0;
17218 wxWindow *arg1 = (wxWindow *) 0 ;
17219 int arg2 = (int) -1 ;
17220 wxString const &arg3_defvalue = wxPyEmptyString ;
17221 wxString *arg3 = (wxString *) &arg3_defvalue ;
17222 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17223 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17224 wxSize const &arg5_defvalue = wxDefaultSize ;
17225 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17226 long arg6 = (long) 0 ;
17227 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17228 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17229 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17230 wxString *arg8 = (wxString *) &arg8_defvalue ;
17231 wxRadioButton *result = 0 ;
17232 void *argp1 = 0 ;
17233 int res1 = 0 ;
17234 int val2 ;
17235 int ecode2 = 0 ;
17236 bool temp3 = false ;
17237 wxPoint temp4 ;
17238 wxSize temp5 ;
17239 long val6 ;
17240 int ecode6 = 0 ;
17241 void *argp7 = 0 ;
17242 int res7 = 0 ;
17243 bool temp8 = false ;
17244 PyObject * obj0 = 0 ;
17245 PyObject * obj1 = 0 ;
17246 PyObject * obj2 = 0 ;
17247 PyObject * obj3 = 0 ;
17248 PyObject * obj4 = 0 ;
17249 PyObject * obj5 = 0 ;
17250 PyObject * obj6 = 0 ;
17251 PyObject * obj7 = 0 ;
17252 char * kwnames[] = {
17253 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17254 };
17255
17256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17258 if (!SWIG_IsOK(res1)) {
17259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17260 }
17261 arg1 = reinterpret_cast< wxWindow * >(argp1);
17262 if (obj1) {
17263 ecode2 = SWIG_AsVal_int(obj1, &val2);
17264 if (!SWIG_IsOK(ecode2)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17266 }
17267 arg2 = static_cast< int >(val2);
17268 }
17269 if (obj2) {
17270 {
17271 arg3 = wxString_in_helper(obj2);
17272 if (arg3 == NULL) SWIG_fail;
17273 temp3 = true;
17274 }
17275 }
17276 if (obj3) {
17277 {
17278 arg4 = &temp4;
17279 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17280 }
17281 }
17282 if (obj4) {
17283 {
17284 arg5 = &temp5;
17285 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17286 }
17287 }
17288 if (obj5) {
17289 ecode6 = SWIG_AsVal_long(obj5, &val6);
17290 if (!SWIG_IsOK(ecode6)) {
17291 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17292 }
17293 arg6 = static_cast< long >(val6);
17294 }
17295 if (obj6) {
17296 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17297 if (!SWIG_IsOK(res7)) {
17298 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17299 }
17300 if (!argp7) {
17301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17302 }
17303 arg7 = reinterpret_cast< wxValidator * >(argp7);
17304 }
17305 if (obj7) {
17306 {
17307 arg8 = wxString_in_helper(obj7);
17308 if (arg8 == NULL) SWIG_fail;
17309 temp8 = true;
17310 }
17311 }
17312 {
17313 if (!wxPyCheckForApp()) SWIG_fail;
17314 PyThreadState* __tstate = wxPyBeginAllowThreads();
17315 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17316 wxPyEndAllowThreads(__tstate);
17317 if (PyErr_Occurred()) SWIG_fail;
17318 }
17319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17320 {
17321 if (temp3)
17322 delete arg3;
17323 }
17324 {
17325 if (temp8)
17326 delete arg8;
17327 }
17328 return resultobj;
17329 fail:
17330 {
17331 if (temp3)
17332 delete arg3;
17333 }
17334 {
17335 if (temp8)
17336 delete arg8;
17337 }
17338 return NULL;
17339 }
17340
17341
17342 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17343 PyObject *resultobj = 0;
17344 wxRadioButton *result = 0 ;
17345
17346 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17347 {
17348 if (!wxPyCheckForApp()) SWIG_fail;
17349 PyThreadState* __tstate = wxPyBeginAllowThreads();
17350 result = (wxRadioButton *)new wxRadioButton();
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17355 return resultobj;
17356 fail:
17357 return NULL;
17358 }
17359
17360
17361 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17362 PyObject *resultobj = 0;
17363 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17364 wxWindow *arg2 = (wxWindow *) 0 ;
17365 int arg3 = (int) -1 ;
17366 wxString const &arg4_defvalue = wxPyEmptyString ;
17367 wxString *arg4 = (wxString *) &arg4_defvalue ;
17368 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17369 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17370 wxSize const &arg6_defvalue = wxDefaultSize ;
17371 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17372 long arg7 = (long) 0 ;
17373 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17374 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17375 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17376 wxString *arg9 = (wxString *) &arg9_defvalue ;
17377 bool result;
17378 void *argp1 = 0 ;
17379 int res1 = 0 ;
17380 void *argp2 = 0 ;
17381 int res2 = 0 ;
17382 int val3 ;
17383 int ecode3 = 0 ;
17384 bool temp4 = false ;
17385 wxPoint temp5 ;
17386 wxSize temp6 ;
17387 long val7 ;
17388 int ecode7 = 0 ;
17389 void *argp8 = 0 ;
17390 int res8 = 0 ;
17391 bool temp9 = false ;
17392 PyObject * obj0 = 0 ;
17393 PyObject * obj1 = 0 ;
17394 PyObject * obj2 = 0 ;
17395 PyObject * obj3 = 0 ;
17396 PyObject * obj4 = 0 ;
17397 PyObject * obj5 = 0 ;
17398 PyObject * obj6 = 0 ;
17399 PyObject * obj7 = 0 ;
17400 PyObject * obj8 = 0 ;
17401 char * kwnames[] = {
17402 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17403 };
17404
17405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17407 if (!SWIG_IsOK(res1)) {
17408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17409 }
17410 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17412 if (!SWIG_IsOK(res2)) {
17413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17414 }
17415 arg2 = reinterpret_cast< wxWindow * >(argp2);
17416 if (obj2) {
17417 ecode3 = SWIG_AsVal_int(obj2, &val3);
17418 if (!SWIG_IsOK(ecode3)) {
17419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17420 }
17421 arg3 = static_cast< int >(val3);
17422 }
17423 if (obj3) {
17424 {
17425 arg4 = wxString_in_helper(obj3);
17426 if (arg4 == NULL) SWIG_fail;
17427 temp4 = true;
17428 }
17429 }
17430 if (obj4) {
17431 {
17432 arg5 = &temp5;
17433 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17434 }
17435 }
17436 if (obj5) {
17437 {
17438 arg6 = &temp6;
17439 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17440 }
17441 }
17442 if (obj6) {
17443 ecode7 = SWIG_AsVal_long(obj6, &val7);
17444 if (!SWIG_IsOK(ecode7)) {
17445 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17446 }
17447 arg7 = static_cast< long >(val7);
17448 }
17449 if (obj7) {
17450 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17451 if (!SWIG_IsOK(res8)) {
17452 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17453 }
17454 if (!argp8) {
17455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17456 }
17457 arg8 = reinterpret_cast< wxValidator * >(argp8);
17458 }
17459 if (obj8) {
17460 {
17461 arg9 = wxString_in_helper(obj8);
17462 if (arg9 == NULL) SWIG_fail;
17463 temp9 = true;
17464 }
17465 }
17466 {
17467 PyThreadState* __tstate = wxPyBeginAllowThreads();
17468 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17469 wxPyEndAllowThreads(__tstate);
17470 if (PyErr_Occurred()) SWIG_fail;
17471 }
17472 {
17473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17474 }
17475 {
17476 if (temp4)
17477 delete arg4;
17478 }
17479 {
17480 if (temp9)
17481 delete arg9;
17482 }
17483 return resultobj;
17484 fail:
17485 {
17486 if (temp4)
17487 delete arg4;
17488 }
17489 {
17490 if (temp9)
17491 delete arg9;
17492 }
17493 return NULL;
17494 }
17495
17496
17497 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17498 PyObject *resultobj = 0;
17499 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17500 bool result;
17501 void *argp1 = 0 ;
17502 int res1 = 0 ;
17503 PyObject *swig_obj[1] ;
17504
17505 if (!args) SWIG_fail;
17506 swig_obj[0] = args;
17507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17508 if (!SWIG_IsOK(res1)) {
17509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17510 }
17511 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17512 {
17513 PyThreadState* __tstate = wxPyBeginAllowThreads();
17514 result = (bool)(arg1)->GetValue();
17515 wxPyEndAllowThreads(__tstate);
17516 if (PyErr_Occurred()) SWIG_fail;
17517 }
17518 {
17519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17520 }
17521 return resultobj;
17522 fail:
17523 return NULL;
17524 }
17525
17526
17527 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj = 0;
17529 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17530 bool arg2 ;
17531 void *argp1 = 0 ;
17532 int res1 = 0 ;
17533 bool val2 ;
17534 int ecode2 = 0 ;
17535 PyObject * obj0 = 0 ;
17536 PyObject * obj1 = 0 ;
17537 char * kwnames[] = {
17538 (char *) "self",(char *) "value", NULL
17539 };
17540
17541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17543 if (!SWIG_IsOK(res1)) {
17544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17545 }
17546 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17547 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17548 if (!SWIG_IsOK(ecode2)) {
17549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17550 }
17551 arg2 = static_cast< bool >(val2);
17552 {
17553 PyThreadState* __tstate = wxPyBeginAllowThreads();
17554 (arg1)->SetValue(arg2);
17555 wxPyEndAllowThreads(__tstate);
17556 if (PyErr_Occurred()) SWIG_fail;
17557 }
17558 resultobj = SWIG_Py_Void();
17559 return resultobj;
17560 fail:
17561 return NULL;
17562 }
17563
17564
17565 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17566 PyObject *resultobj = 0;
17567 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17568 SwigValueWrapper<wxVisualAttributes > result;
17569 int val1 ;
17570 int ecode1 = 0 ;
17571 PyObject * obj0 = 0 ;
17572 char * kwnames[] = {
17573 (char *) "variant", NULL
17574 };
17575
17576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17577 if (obj0) {
17578 ecode1 = SWIG_AsVal_int(obj0, &val1);
17579 if (!SWIG_IsOK(ecode1)) {
17580 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17581 }
17582 arg1 = static_cast< wxWindowVariant >(val1);
17583 }
17584 {
17585 if (!wxPyCheckForApp()) SWIG_fail;
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17592 return resultobj;
17593 fail:
17594 return NULL;
17595 }
17596
17597
17598 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17599 PyObject *obj;
17600 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17601 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17602 return SWIG_Py_Void();
17603 }
17604
17605 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17606 return SWIG_Python_InitShadowInstance(args);
17607 }
17608
17609 SWIGINTERN int SliderNameStr_set(PyObject *) {
17610 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17611 return 1;
17612 }
17613
17614
17615 SWIGINTERN PyObject *SliderNameStr_get(void) {
17616 PyObject *pyobj = 0;
17617
17618 {
17619 #if wxUSE_UNICODE
17620 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17621 #else
17622 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17623 #endif
17624 }
17625 return pyobj;
17626 }
17627
17628
17629 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17630 PyObject *resultobj = 0;
17631 wxWindow *arg1 = (wxWindow *) 0 ;
17632 int arg2 = (int) -1 ;
17633 int arg3 = (int) 0 ;
17634 int arg4 = (int) 0 ;
17635 int arg5 = (int) 100 ;
17636 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17637 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17638 wxSize const &arg7_defvalue = wxDefaultSize ;
17639 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17640 long arg8 = (long) wxSL_HORIZONTAL ;
17641 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17642 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17643 wxString const &arg10_defvalue = wxPySliderNameStr ;
17644 wxString *arg10 = (wxString *) &arg10_defvalue ;
17645 wxSlider *result = 0 ;
17646 void *argp1 = 0 ;
17647 int res1 = 0 ;
17648 int val2 ;
17649 int ecode2 = 0 ;
17650 int val3 ;
17651 int ecode3 = 0 ;
17652 int val4 ;
17653 int ecode4 = 0 ;
17654 int val5 ;
17655 int ecode5 = 0 ;
17656 wxPoint temp6 ;
17657 wxSize temp7 ;
17658 long val8 ;
17659 int ecode8 = 0 ;
17660 void *argp9 = 0 ;
17661 int res9 = 0 ;
17662 bool temp10 = false ;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 PyObject * obj2 = 0 ;
17666 PyObject * obj3 = 0 ;
17667 PyObject * obj4 = 0 ;
17668 PyObject * obj5 = 0 ;
17669 PyObject * obj6 = 0 ;
17670 PyObject * obj7 = 0 ;
17671 PyObject * obj8 = 0 ;
17672 PyObject * obj9 = 0 ;
17673 char * kwnames[] = {
17674 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17675 };
17676
17677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17679 if (!SWIG_IsOK(res1)) {
17680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17681 }
17682 arg1 = reinterpret_cast< wxWindow * >(argp1);
17683 if (obj1) {
17684 ecode2 = SWIG_AsVal_int(obj1, &val2);
17685 if (!SWIG_IsOK(ecode2)) {
17686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17687 }
17688 arg2 = static_cast< int >(val2);
17689 }
17690 if (obj2) {
17691 ecode3 = SWIG_AsVal_int(obj2, &val3);
17692 if (!SWIG_IsOK(ecode3)) {
17693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17694 }
17695 arg3 = static_cast< int >(val3);
17696 }
17697 if (obj3) {
17698 ecode4 = SWIG_AsVal_int(obj3, &val4);
17699 if (!SWIG_IsOK(ecode4)) {
17700 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17701 }
17702 arg4 = static_cast< int >(val4);
17703 }
17704 if (obj4) {
17705 ecode5 = SWIG_AsVal_int(obj4, &val5);
17706 if (!SWIG_IsOK(ecode5)) {
17707 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17708 }
17709 arg5 = static_cast< int >(val5);
17710 }
17711 if (obj5) {
17712 {
17713 arg6 = &temp6;
17714 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17715 }
17716 }
17717 if (obj6) {
17718 {
17719 arg7 = &temp7;
17720 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17721 }
17722 }
17723 if (obj7) {
17724 ecode8 = SWIG_AsVal_long(obj7, &val8);
17725 if (!SWIG_IsOK(ecode8)) {
17726 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17727 }
17728 arg8 = static_cast< long >(val8);
17729 }
17730 if (obj8) {
17731 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17732 if (!SWIG_IsOK(res9)) {
17733 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17734 }
17735 if (!argp9) {
17736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17737 }
17738 arg9 = reinterpret_cast< wxValidator * >(argp9);
17739 }
17740 if (obj9) {
17741 {
17742 arg10 = wxString_in_helper(obj9);
17743 if (arg10 == NULL) SWIG_fail;
17744 temp10 = true;
17745 }
17746 }
17747 {
17748 if (!wxPyCheckForApp()) SWIG_fail;
17749 PyThreadState* __tstate = wxPyBeginAllowThreads();
17750 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17751 wxPyEndAllowThreads(__tstate);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 }
17754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17755 {
17756 if (temp10)
17757 delete arg10;
17758 }
17759 return resultobj;
17760 fail:
17761 {
17762 if (temp10)
17763 delete arg10;
17764 }
17765 return NULL;
17766 }
17767
17768
17769 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17770 PyObject *resultobj = 0;
17771 wxSlider *result = 0 ;
17772
17773 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17774 {
17775 if (!wxPyCheckForApp()) SWIG_fail;
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
17777 result = (wxSlider *)new wxSlider();
17778 wxPyEndAllowThreads(__tstate);
17779 if (PyErr_Occurred()) SWIG_fail;
17780 }
17781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17782 return resultobj;
17783 fail:
17784 return NULL;
17785 }
17786
17787
17788 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17789 PyObject *resultobj = 0;
17790 wxSlider *arg1 = (wxSlider *) 0 ;
17791 wxWindow *arg2 = (wxWindow *) 0 ;
17792 int arg3 = (int) -1 ;
17793 int arg4 = (int) 0 ;
17794 int arg5 = (int) 0 ;
17795 int arg6 = (int) 100 ;
17796 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17797 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17798 wxSize const &arg8_defvalue = wxDefaultSize ;
17799 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17800 long arg9 = (long) wxSL_HORIZONTAL ;
17801 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17802 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17803 wxString const &arg11_defvalue = wxPySliderNameStr ;
17804 wxString *arg11 = (wxString *) &arg11_defvalue ;
17805 bool result;
17806 void *argp1 = 0 ;
17807 int res1 = 0 ;
17808 void *argp2 = 0 ;
17809 int res2 = 0 ;
17810 int val3 ;
17811 int ecode3 = 0 ;
17812 int val4 ;
17813 int ecode4 = 0 ;
17814 int val5 ;
17815 int ecode5 = 0 ;
17816 int val6 ;
17817 int ecode6 = 0 ;
17818 wxPoint temp7 ;
17819 wxSize temp8 ;
17820 long val9 ;
17821 int ecode9 = 0 ;
17822 void *argp10 = 0 ;
17823 int res10 = 0 ;
17824 bool temp11 = false ;
17825 PyObject * obj0 = 0 ;
17826 PyObject * obj1 = 0 ;
17827 PyObject * obj2 = 0 ;
17828 PyObject * obj3 = 0 ;
17829 PyObject * obj4 = 0 ;
17830 PyObject * obj5 = 0 ;
17831 PyObject * obj6 = 0 ;
17832 PyObject * obj7 = 0 ;
17833 PyObject * obj8 = 0 ;
17834 PyObject * obj9 = 0 ;
17835 PyObject * obj10 = 0 ;
17836 char * kwnames[] = {
17837 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17838 };
17839
17840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17842 if (!SWIG_IsOK(res1)) {
17843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17844 }
17845 arg1 = reinterpret_cast< wxSlider * >(argp1);
17846 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17847 if (!SWIG_IsOK(res2)) {
17848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17849 }
17850 arg2 = reinterpret_cast< wxWindow * >(argp2);
17851 if (obj2) {
17852 ecode3 = SWIG_AsVal_int(obj2, &val3);
17853 if (!SWIG_IsOK(ecode3)) {
17854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17855 }
17856 arg3 = static_cast< int >(val3);
17857 }
17858 if (obj3) {
17859 ecode4 = SWIG_AsVal_int(obj3, &val4);
17860 if (!SWIG_IsOK(ecode4)) {
17861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17862 }
17863 arg4 = static_cast< int >(val4);
17864 }
17865 if (obj4) {
17866 ecode5 = SWIG_AsVal_int(obj4, &val5);
17867 if (!SWIG_IsOK(ecode5)) {
17868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17869 }
17870 arg5 = static_cast< int >(val5);
17871 }
17872 if (obj5) {
17873 ecode6 = SWIG_AsVal_int(obj5, &val6);
17874 if (!SWIG_IsOK(ecode6)) {
17875 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17876 }
17877 arg6 = static_cast< int >(val6);
17878 }
17879 if (obj6) {
17880 {
17881 arg7 = &temp7;
17882 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17883 }
17884 }
17885 if (obj7) {
17886 {
17887 arg8 = &temp8;
17888 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17889 }
17890 }
17891 if (obj8) {
17892 ecode9 = SWIG_AsVal_long(obj8, &val9);
17893 if (!SWIG_IsOK(ecode9)) {
17894 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17895 }
17896 arg9 = static_cast< long >(val9);
17897 }
17898 if (obj9) {
17899 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17900 if (!SWIG_IsOK(res10)) {
17901 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17902 }
17903 if (!argp10) {
17904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17905 }
17906 arg10 = reinterpret_cast< wxValidator * >(argp10);
17907 }
17908 if (obj10) {
17909 {
17910 arg11 = wxString_in_helper(obj10);
17911 if (arg11 == NULL) SWIG_fail;
17912 temp11 = true;
17913 }
17914 }
17915 {
17916 PyThreadState* __tstate = wxPyBeginAllowThreads();
17917 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17918 wxPyEndAllowThreads(__tstate);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 {
17922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17923 }
17924 {
17925 if (temp11)
17926 delete arg11;
17927 }
17928 return resultobj;
17929 fail:
17930 {
17931 if (temp11)
17932 delete arg11;
17933 }
17934 return NULL;
17935 }
17936
17937
17938 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17939 PyObject *resultobj = 0;
17940 wxSlider *arg1 = (wxSlider *) 0 ;
17941 int result;
17942 void *argp1 = 0 ;
17943 int res1 = 0 ;
17944 PyObject *swig_obj[1] ;
17945
17946 if (!args) SWIG_fail;
17947 swig_obj[0] = args;
17948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17951 }
17952 arg1 = reinterpret_cast< wxSlider * >(argp1);
17953 {
17954 PyThreadState* __tstate = wxPyBeginAllowThreads();
17955 result = (int)((wxSlider const *)arg1)->GetValue();
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 resultobj = SWIG_From_int(static_cast< int >(result));
17960 return resultobj;
17961 fail:
17962 return NULL;
17963 }
17964
17965
17966 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17967 PyObject *resultobj = 0;
17968 wxSlider *arg1 = (wxSlider *) 0 ;
17969 int arg2 ;
17970 void *argp1 = 0 ;
17971 int res1 = 0 ;
17972 int val2 ;
17973 int ecode2 = 0 ;
17974 PyObject * obj0 = 0 ;
17975 PyObject * obj1 = 0 ;
17976 char * kwnames[] = {
17977 (char *) "self",(char *) "value", NULL
17978 };
17979
17980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17982 if (!SWIG_IsOK(res1)) {
17983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17984 }
17985 arg1 = reinterpret_cast< wxSlider * >(argp1);
17986 ecode2 = SWIG_AsVal_int(obj1, &val2);
17987 if (!SWIG_IsOK(ecode2)) {
17988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17989 }
17990 arg2 = static_cast< int >(val2);
17991 {
17992 PyThreadState* __tstate = wxPyBeginAllowThreads();
17993 (arg1)->SetValue(arg2);
17994 wxPyEndAllowThreads(__tstate);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 resultobj = SWIG_Py_Void();
17998 return resultobj;
17999 fail:
18000 return NULL;
18001 }
18002
18003
18004 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18005 PyObject *resultobj = 0;
18006 wxSlider *arg1 = (wxSlider *) 0 ;
18007 int arg2 ;
18008 int arg3 ;
18009 void *argp1 = 0 ;
18010 int res1 = 0 ;
18011 int val2 ;
18012 int ecode2 = 0 ;
18013 int val3 ;
18014 int ecode3 = 0 ;
18015 PyObject * obj0 = 0 ;
18016 PyObject * obj1 = 0 ;
18017 PyObject * obj2 = 0 ;
18018 char * kwnames[] = {
18019 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18020 };
18021
18022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18024 if (!SWIG_IsOK(res1)) {
18025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18026 }
18027 arg1 = reinterpret_cast< wxSlider * >(argp1);
18028 ecode2 = SWIG_AsVal_int(obj1, &val2);
18029 if (!SWIG_IsOK(ecode2)) {
18030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18031 }
18032 arg2 = static_cast< int >(val2);
18033 ecode3 = SWIG_AsVal_int(obj2, &val3);
18034 if (!SWIG_IsOK(ecode3)) {
18035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18036 }
18037 arg3 = static_cast< int >(val3);
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 (arg1)->SetRange(arg2,arg3);
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 resultobj = SWIG_Py_Void();
18045 return resultobj;
18046 fail:
18047 return NULL;
18048 }
18049
18050
18051 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18052 PyObject *resultobj = 0;
18053 wxSlider *arg1 = (wxSlider *) 0 ;
18054 int result;
18055 void *argp1 = 0 ;
18056 int res1 = 0 ;
18057 PyObject *swig_obj[1] ;
18058
18059 if (!args) SWIG_fail;
18060 swig_obj[0] = args;
18061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18062 if (!SWIG_IsOK(res1)) {
18063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18064 }
18065 arg1 = reinterpret_cast< wxSlider * >(argp1);
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 result = (int)((wxSlider const *)arg1)->GetMin();
18069 wxPyEndAllowThreads(__tstate);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 resultobj = SWIG_From_int(static_cast< int >(result));
18073 return resultobj;
18074 fail:
18075 return NULL;
18076 }
18077
18078
18079 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18080 PyObject *resultobj = 0;
18081 wxSlider *arg1 = (wxSlider *) 0 ;
18082 int result;
18083 void *argp1 = 0 ;
18084 int res1 = 0 ;
18085 PyObject *swig_obj[1] ;
18086
18087 if (!args) SWIG_fail;
18088 swig_obj[0] = args;
18089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18090 if (!SWIG_IsOK(res1)) {
18091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18092 }
18093 arg1 = reinterpret_cast< wxSlider * >(argp1);
18094 {
18095 PyThreadState* __tstate = wxPyBeginAllowThreads();
18096 result = (int)((wxSlider const *)arg1)->GetMax();
18097 wxPyEndAllowThreads(__tstate);
18098 if (PyErr_Occurred()) SWIG_fail;
18099 }
18100 resultobj = SWIG_From_int(static_cast< int >(result));
18101 return resultobj;
18102 fail:
18103 return NULL;
18104 }
18105
18106
18107 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18108 PyObject *resultobj = 0;
18109 wxSlider *arg1 = (wxSlider *) 0 ;
18110 int arg2 ;
18111 void *argp1 = 0 ;
18112 int res1 = 0 ;
18113 int val2 ;
18114 int ecode2 = 0 ;
18115 PyObject * obj0 = 0 ;
18116 PyObject * obj1 = 0 ;
18117 char * kwnames[] = {
18118 (char *) "self",(char *) "minValue", NULL
18119 };
18120
18121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18123 if (!SWIG_IsOK(res1)) {
18124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18125 }
18126 arg1 = reinterpret_cast< wxSlider * >(argp1);
18127 ecode2 = SWIG_AsVal_int(obj1, &val2);
18128 if (!SWIG_IsOK(ecode2)) {
18129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18130 }
18131 arg2 = static_cast< int >(val2);
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 (arg1)->SetMin(arg2);
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 resultobj = SWIG_Py_Void();
18139 return resultobj;
18140 fail:
18141 return NULL;
18142 }
18143
18144
18145 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18146 PyObject *resultobj = 0;
18147 wxSlider *arg1 = (wxSlider *) 0 ;
18148 int arg2 ;
18149 void *argp1 = 0 ;
18150 int res1 = 0 ;
18151 int val2 ;
18152 int ecode2 = 0 ;
18153 PyObject * obj0 = 0 ;
18154 PyObject * obj1 = 0 ;
18155 char * kwnames[] = {
18156 (char *) "self",(char *) "maxValue", NULL
18157 };
18158
18159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18161 if (!SWIG_IsOK(res1)) {
18162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18163 }
18164 arg1 = reinterpret_cast< wxSlider * >(argp1);
18165 ecode2 = SWIG_AsVal_int(obj1, &val2);
18166 if (!SWIG_IsOK(ecode2)) {
18167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18168 }
18169 arg2 = static_cast< int >(val2);
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 (arg1)->SetMax(arg2);
18173 wxPyEndAllowThreads(__tstate);
18174 if (PyErr_Occurred()) SWIG_fail;
18175 }
18176 resultobj = SWIG_Py_Void();
18177 return resultobj;
18178 fail:
18179 return NULL;
18180 }
18181
18182
18183 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18184 PyObject *resultobj = 0;
18185 wxSlider *arg1 = (wxSlider *) 0 ;
18186 int arg2 ;
18187 void *argp1 = 0 ;
18188 int res1 = 0 ;
18189 int val2 ;
18190 int ecode2 = 0 ;
18191 PyObject * obj0 = 0 ;
18192 PyObject * obj1 = 0 ;
18193 char * kwnames[] = {
18194 (char *) "self",(char *) "lineSize", NULL
18195 };
18196
18197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18199 if (!SWIG_IsOK(res1)) {
18200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18201 }
18202 arg1 = reinterpret_cast< wxSlider * >(argp1);
18203 ecode2 = SWIG_AsVal_int(obj1, &val2);
18204 if (!SWIG_IsOK(ecode2)) {
18205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18206 }
18207 arg2 = static_cast< int >(val2);
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 (arg1)->SetLineSize(arg2);
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 resultobj = SWIG_Py_Void();
18215 return resultobj;
18216 fail:
18217 return NULL;
18218 }
18219
18220
18221 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18222 PyObject *resultobj = 0;
18223 wxSlider *arg1 = (wxSlider *) 0 ;
18224 int arg2 ;
18225 void *argp1 = 0 ;
18226 int res1 = 0 ;
18227 int val2 ;
18228 int ecode2 = 0 ;
18229 PyObject * obj0 = 0 ;
18230 PyObject * obj1 = 0 ;
18231 char * kwnames[] = {
18232 (char *) "self",(char *) "pageSize", NULL
18233 };
18234
18235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18237 if (!SWIG_IsOK(res1)) {
18238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18239 }
18240 arg1 = reinterpret_cast< wxSlider * >(argp1);
18241 ecode2 = SWIG_AsVal_int(obj1, &val2);
18242 if (!SWIG_IsOK(ecode2)) {
18243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18244 }
18245 arg2 = static_cast< int >(val2);
18246 {
18247 PyThreadState* __tstate = wxPyBeginAllowThreads();
18248 (arg1)->SetPageSize(arg2);
18249 wxPyEndAllowThreads(__tstate);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 resultobj = SWIG_Py_Void();
18253 return resultobj;
18254 fail:
18255 return NULL;
18256 }
18257
18258
18259 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18260 PyObject *resultobj = 0;
18261 wxSlider *arg1 = (wxSlider *) 0 ;
18262 int result;
18263 void *argp1 = 0 ;
18264 int res1 = 0 ;
18265 PyObject *swig_obj[1] ;
18266
18267 if (!args) SWIG_fail;
18268 swig_obj[0] = args;
18269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18272 }
18273 arg1 = reinterpret_cast< wxSlider * >(argp1);
18274 {
18275 PyThreadState* __tstate = wxPyBeginAllowThreads();
18276 result = (int)((wxSlider const *)arg1)->GetLineSize();
18277 wxPyEndAllowThreads(__tstate);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 }
18280 resultobj = SWIG_From_int(static_cast< int >(result));
18281 return resultobj;
18282 fail:
18283 return NULL;
18284 }
18285
18286
18287 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18288 PyObject *resultobj = 0;
18289 wxSlider *arg1 = (wxSlider *) 0 ;
18290 int result;
18291 void *argp1 = 0 ;
18292 int res1 = 0 ;
18293 PyObject *swig_obj[1] ;
18294
18295 if (!args) SWIG_fail;
18296 swig_obj[0] = args;
18297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18298 if (!SWIG_IsOK(res1)) {
18299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18300 }
18301 arg1 = reinterpret_cast< wxSlider * >(argp1);
18302 {
18303 PyThreadState* __tstate = wxPyBeginAllowThreads();
18304 result = (int)((wxSlider const *)arg1)->GetPageSize();
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 resultobj = SWIG_From_int(static_cast< int >(result));
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18316 PyObject *resultobj = 0;
18317 wxSlider *arg1 = (wxSlider *) 0 ;
18318 int arg2 ;
18319 void *argp1 = 0 ;
18320 int res1 = 0 ;
18321 int val2 ;
18322 int ecode2 = 0 ;
18323 PyObject * obj0 = 0 ;
18324 PyObject * obj1 = 0 ;
18325 char * kwnames[] = {
18326 (char *) "self",(char *) "lenPixels", NULL
18327 };
18328
18329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18331 if (!SWIG_IsOK(res1)) {
18332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18333 }
18334 arg1 = reinterpret_cast< wxSlider * >(argp1);
18335 ecode2 = SWIG_AsVal_int(obj1, &val2);
18336 if (!SWIG_IsOK(ecode2)) {
18337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18338 }
18339 arg2 = static_cast< int >(val2);
18340 {
18341 PyThreadState* __tstate = wxPyBeginAllowThreads();
18342 (arg1)->SetThumbLength(arg2);
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 resultobj = SWIG_Py_Void();
18347 return resultobj;
18348 fail:
18349 return NULL;
18350 }
18351
18352
18353 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18354 PyObject *resultobj = 0;
18355 wxSlider *arg1 = (wxSlider *) 0 ;
18356 int result;
18357 void *argp1 = 0 ;
18358 int res1 = 0 ;
18359 PyObject *swig_obj[1] ;
18360
18361 if (!args) SWIG_fail;
18362 swig_obj[0] = args;
18363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18364 if (!SWIG_IsOK(res1)) {
18365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18366 }
18367 arg1 = reinterpret_cast< wxSlider * >(argp1);
18368 {
18369 PyThreadState* __tstate = wxPyBeginAllowThreads();
18370 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18371 wxPyEndAllowThreads(__tstate);
18372 if (PyErr_Occurred()) SWIG_fail;
18373 }
18374 resultobj = SWIG_From_int(static_cast< int >(result));
18375 return resultobj;
18376 fail:
18377 return NULL;
18378 }
18379
18380
18381 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18382 PyObject *resultobj = 0;
18383 wxSlider *arg1 = (wxSlider *) 0 ;
18384 int arg2 ;
18385 int arg3 = (int) 1 ;
18386 void *argp1 = 0 ;
18387 int res1 = 0 ;
18388 int val2 ;
18389 int ecode2 = 0 ;
18390 int val3 ;
18391 int ecode3 = 0 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 PyObject * obj2 = 0 ;
18395 char * kwnames[] = {
18396 (char *) "self",(char *) "n",(char *) "pos", NULL
18397 };
18398
18399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18401 if (!SWIG_IsOK(res1)) {
18402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18403 }
18404 arg1 = reinterpret_cast< wxSlider * >(argp1);
18405 ecode2 = SWIG_AsVal_int(obj1, &val2);
18406 if (!SWIG_IsOK(ecode2)) {
18407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18408 }
18409 arg2 = static_cast< int >(val2);
18410 if (obj2) {
18411 ecode3 = SWIG_AsVal_int(obj2, &val3);
18412 if (!SWIG_IsOK(ecode3)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18414 }
18415 arg3 = static_cast< int >(val3);
18416 }
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 (arg1)->SetTickFreq(arg2,arg3);
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 resultobj = SWIG_Py_Void();
18424 return resultobj;
18425 fail:
18426 return NULL;
18427 }
18428
18429
18430 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18431 PyObject *resultobj = 0;
18432 wxSlider *arg1 = (wxSlider *) 0 ;
18433 int result;
18434 void *argp1 = 0 ;
18435 int res1 = 0 ;
18436 PyObject *swig_obj[1] ;
18437
18438 if (!args) SWIG_fail;
18439 swig_obj[0] = args;
18440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18441 if (!SWIG_IsOK(res1)) {
18442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18443 }
18444 arg1 = reinterpret_cast< wxSlider * >(argp1);
18445 {
18446 PyThreadState* __tstate = wxPyBeginAllowThreads();
18447 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18448 wxPyEndAllowThreads(__tstate);
18449 if (PyErr_Occurred()) SWIG_fail;
18450 }
18451 resultobj = SWIG_From_int(static_cast< int >(result));
18452 return resultobj;
18453 fail:
18454 return NULL;
18455 }
18456
18457
18458 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18459 PyObject *resultobj = 0;
18460 wxSlider *arg1 = (wxSlider *) 0 ;
18461 void *argp1 = 0 ;
18462 int res1 = 0 ;
18463 PyObject *swig_obj[1] ;
18464
18465 if (!args) SWIG_fail;
18466 swig_obj[0] = args;
18467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18468 if (!SWIG_IsOK(res1)) {
18469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18470 }
18471 arg1 = reinterpret_cast< wxSlider * >(argp1);
18472 {
18473 PyThreadState* __tstate = wxPyBeginAllowThreads();
18474 (arg1)->ClearTicks();
18475 wxPyEndAllowThreads(__tstate);
18476 if (PyErr_Occurred()) SWIG_fail;
18477 }
18478 resultobj = SWIG_Py_Void();
18479 return resultobj;
18480 fail:
18481 return NULL;
18482 }
18483
18484
18485 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18486 PyObject *resultobj = 0;
18487 wxSlider *arg1 = (wxSlider *) 0 ;
18488 int arg2 ;
18489 void *argp1 = 0 ;
18490 int res1 = 0 ;
18491 int val2 ;
18492 int ecode2 = 0 ;
18493 PyObject * obj0 = 0 ;
18494 PyObject * obj1 = 0 ;
18495 char * kwnames[] = {
18496 (char *) "self",(char *) "tickPos", NULL
18497 };
18498
18499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18501 if (!SWIG_IsOK(res1)) {
18502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18503 }
18504 arg1 = reinterpret_cast< wxSlider * >(argp1);
18505 ecode2 = SWIG_AsVal_int(obj1, &val2);
18506 if (!SWIG_IsOK(ecode2)) {
18507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18508 }
18509 arg2 = static_cast< int >(val2);
18510 {
18511 PyThreadState* __tstate = wxPyBeginAllowThreads();
18512 (arg1)->SetTick(arg2);
18513 wxPyEndAllowThreads(__tstate);
18514 if (PyErr_Occurred()) SWIG_fail;
18515 }
18516 resultobj = SWIG_Py_Void();
18517 return resultobj;
18518 fail:
18519 return NULL;
18520 }
18521
18522
18523 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18524 PyObject *resultobj = 0;
18525 wxSlider *arg1 = (wxSlider *) 0 ;
18526 void *argp1 = 0 ;
18527 int res1 = 0 ;
18528 PyObject *swig_obj[1] ;
18529
18530 if (!args) SWIG_fail;
18531 swig_obj[0] = args;
18532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18533 if (!SWIG_IsOK(res1)) {
18534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18535 }
18536 arg1 = reinterpret_cast< wxSlider * >(argp1);
18537 {
18538 PyThreadState* __tstate = wxPyBeginAllowThreads();
18539 (arg1)->ClearSel();
18540 wxPyEndAllowThreads(__tstate);
18541 if (PyErr_Occurred()) SWIG_fail;
18542 }
18543 resultobj = SWIG_Py_Void();
18544 return resultobj;
18545 fail:
18546 return NULL;
18547 }
18548
18549
18550 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18551 PyObject *resultobj = 0;
18552 wxSlider *arg1 = (wxSlider *) 0 ;
18553 int result;
18554 void *argp1 = 0 ;
18555 int res1 = 0 ;
18556 PyObject *swig_obj[1] ;
18557
18558 if (!args) SWIG_fail;
18559 swig_obj[0] = args;
18560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18561 if (!SWIG_IsOK(res1)) {
18562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18563 }
18564 arg1 = reinterpret_cast< wxSlider * >(argp1);
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
18567 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 resultobj = SWIG_From_int(static_cast< int >(result));
18572 return resultobj;
18573 fail:
18574 return NULL;
18575 }
18576
18577
18578 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18579 PyObject *resultobj = 0;
18580 wxSlider *arg1 = (wxSlider *) 0 ;
18581 int result;
18582 void *argp1 = 0 ;
18583 int res1 = 0 ;
18584 PyObject *swig_obj[1] ;
18585
18586 if (!args) SWIG_fail;
18587 swig_obj[0] = args;
18588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18589 if (!SWIG_IsOK(res1)) {
18590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18591 }
18592 arg1 = reinterpret_cast< wxSlider * >(argp1);
18593 {
18594 PyThreadState* __tstate = wxPyBeginAllowThreads();
18595 result = (int)((wxSlider const *)arg1)->GetSelStart();
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 resultobj = SWIG_From_int(static_cast< int >(result));
18600 return resultobj;
18601 fail:
18602 return NULL;
18603 }
18604
18605
18606 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18607 PyObject *resultobj = 0;
18608 wxSlider *arg1 = (wxSlider *) 0 ;
18609 int arg2 ;
18610 int arg3 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 int val2 ;
18614 int ecode2 = 0 ;
18615 int val3 ;
18616 int ecode3 = 0 ;
18617 PyObject * obj0 = 0 ;
18618 PyObject * obj1 = 0 ;
18619 PyObject * obj2 = 0 ;
18620 char * kwnames[] = {
18621 (char *) "self",(char *) "min",(char *) "max", NULL
18622 };
18623
18624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18626 if (!SWIG_IsOK(res1)) {
18627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18628 }
18629 arg1 = reinterpret_cast< wxSlider * >(argp1);
18630 ecode2 = SWIG_AsVal_int(obj1, &val2);
18631 if (!SWIG_IsOK(ecode2)) {
18632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18633 }
18634 arg2 = static_cast< int >(val2);
18635 ecode3 = SWIG_AsVal_int(obj2, &val3);
18636 if (!SWIG_IsOK(ecode3)) {
18637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18638 }
18639 arg3 = static_cast< int >(val3);
18640 {
18641 PyThreadState* __tstate = wxPyBeginAllowThreads();
18642 (arg1)->SetSelection(arg2,arg3);
18643 wxPyEndAllowThreads(__tstate);
18644 if (PyErr_Occurred()) SWIG_fail;
18645 }
18646 resultobj = SWIG_Py_Void();
18647 return resultobj;
18648 fail:
18649 return NULL;
18650 }
18651
18652
18653 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18654 PyObject *resultobj = 0;
18655 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18656 SwigValueWrapper<wxVisualAttributes > result;
18657 int val1 ;
18658 int ecode1 = 0 ;
18659 PyObject * obj0 = 0 ;
18660 char * kwnames[] = {
18661 (char *) "variant", NULL
18662 };
18663
18664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18665 if (obj0) {
18666 ecode1 = SWIG_AsVal_int(obj0, &val1);
18667 if (!SWIG_IsOK(ecode1)) {
18668 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18669 }
18670 arg1 = static_cast< wxWindowVariant >(val1);
18671 }
18672 {
18673 if (!wxPyCheckForApp()) SWIG_fail;
18674 PyThreadState* __tstate = wxPyBeginAllowThreads();
18675 result = wxSlider::GetClassDefaultAttributes(arg1);
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18680 return resultobj;
18681 fail:
18682 return NULL;
18683 }
18684
18685
18686 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18687 PyObject *obj;
18688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18689 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18690 return SWIG_Py_Void();
18691 }
18692
18693 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18694 return SWIG_Python_InitShadowInstance(args);
18695 }
18696
18697 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18698 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18699 return 1;
18700 }
18701
18702
18703 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18704 PyObject *pyobj = 0;
18705
18706 {
18707 #if wxUSE_UNICODE
18708 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18709 #else
18710 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18711 #endif
18712 }
18713 return pyobj;
18714 }
18715
18716
18717 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18718 PyObject *resultobj = 0;
18719 wxWindow *arg1 = (wxWindow *) 0 ;
18720 int arg2 = (int) -1 ;
18721 wxString const &arg3_defvalue = wxPyEmptyString ;
18722 wxString *arg3 = (wxString *) &arg3_defvalue ;
18723 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18724 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18725 wxSize const &arg5_defvalue = wxDefaultSize ;
18726 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18727 long arg6 = (long) 0 ;
18728 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18729 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18730 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18731 wxString *arg8 = (wxString *) &arg8_defvalue ;
18732 wxToggleButton *result = 0 ;
18733 void *argp1 = 0 ;
18734 int res1 = 0 ;
18735 int val2 ;
18736 int ecode2 = 0 ;
18737 bool temp3 = false ;
18738 wxPoint temp4 ;
18739 wxSize temp5 ;
18740 long val6 ;
18741 int ecode6 = 0 ;
18742 void *argp7 = 0 ;
18743 int res7 = 0 ;
18744 bool temp8 = false ;
18745 PyObject * obj0 = 0 ;
18746 PyObject * obj1 = 0 ;
18747 PyObject * obj2 = 0 ;
18748 PyObject * obj3 = 0 ;
18749 PyObject * obj4 = 0 ;
18750 PyObject * obj5 = 0 ;
18751 PyObject * obj6 = 0 ;
18752 PyObject * obj7 = 0 ;
18753 char * kwnames[] = {
18754 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18755 };
18756
18757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18759 if (!SWIG_IsOK(res1)) {
18760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18761 }
18762 arg1 = reinterpret_cast< wxWindow * >(argp1);
18763 if (obj1) {
18764 ecode2 = SWIG_AsVal_int(obj1, &val2);
18765 if (!SWIG_IsOK(ecode2)) {
18766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18767 }
18768 arg2 = static_cast< int >(val2);
18769 }
18770 if (obj2) {
18771 {
18772 arg3 = wxString_in_helper(obj2);
18773 if (arg3 == NULL) SWIG_fail;
18774 temp3 = true;
18775 }
18776 }
18777 if (obj3) {
18778 {
18779 arg4 = &temp4;
18780 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18781 }
18782 }
18783 if (obj4) {
18784 {
18785 arg5 = &temp5;
18786 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18787 }
18788 }
18789 if (obj5) {
18790 ecode6 = SWIG_AsVal_long(obj5, &val6);
18791 if (!SWIG_IsOK(ecode6)) {
18792 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18793 }
18794 arg6 = static_cast< long >(val6);
18795 }
18796 if (obj6) {
18797 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18798 if (!SWIG_IsOK(res7)) {
18799 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18800 }
18801 if (!argp7) {
18802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18803 }
18804 arg7 = reinterpret_cast< wxValidator * >(argp7);
18805 }
18806 if (obj7) {
18807 {
18808 arg8 = wxString_in_helper(obj7);
18809 if (arg8 == NULL) SWIG_fail;
18810 temp8 = true;
18811 }
18812 }
18813 {
18814 if (!wxPyCheckForApp()) SWIG_fail;
18815 PyThreadState* __tstate = wxPyBeginAllowThreads();
18816 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18817 wxPyEndAllowThreads(__tstate);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 }
18820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18821 {
18822 if (temp3)
18823 delete arg3;
18824 }
18825 {
18826 if (temp8)
18827 delete arg8;
18828 }
18829 return resultobj;
18830 fail:
18831 {
18832 if (temp3)
18833 delete arg3;
18834 }
18835 {
18836 if (temp8)
18837 delete arg8;
18838 }
18839 return NULL;
18840 }
18841
18842
18843 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18844 PyObject *resultobj = 0;
18845 wxToggleButton *result = 0 ;
18846
18847 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18848 {
18849 if (!wxPyCheckForApp()) SWIG_fail;
18850 PyThreadState* __tstate = wxPyBeginAllowThreads();
18851 result = (wxToggleButton *)new wxToggleButton();
18852 wxPyEndAllowThreads(__tstate);
18853 if (PyErr_Occurred()) SWIG_fail;
18854 }
18855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18856 return resultobj;
18857 fail:
18858 return NULL;
18859 }
18860
18861
18862 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18863 PyObject *resultobj = 0;
18864 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18865 wxWindow *arg2 = (wxWindow *) 0 ;
18866 int arg3 = (int) -1 ;
18867 wxString const &arg4_defvalue = wxPyEmptyString ;
18868 wxString *arg4 = (wxString *) &arg4_defvalue ;
18869 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18870 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18871 wxSize const &arg6_defvalue = wxDefaultSize ;
18872 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18873 long arg7 = (long) 0 ;
18874 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18875 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18876 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18877 wxString *arg9 = (wxString *) &arg9_defvalue ;
18878 bool result;
18879 void *argp1 = 0 ;
18880 int res1 = 0 ;
18881 void *argp2 = 0 ;
18882 int res2 = 0 ;
18883 int val3 ;
18884 int ecode3 = 0 ;
18885 bool temp4 = false ;
18886 wxPoint temp5 ;
18887 wxSize temp6 ;
18888 long val7 ;
18889 int ecode7 = 0 ;
18890 void *argp8 = 0 ;
18891 int res8 = 0 ;
18892 bool temp9 = false ;
18893 PyObject * obj0 = 0 ;
18894 PyObject * obj1 = 0 ;
18895 PyObject * obj2 = 0 ;
18896 PyObject * obj3 = 0 ;
18897 PyObject * obj4 = 0 ;
18898 PyObject * obj5 = 0 ;
18899 PyObject * obj6 = 0 ;
18900 PyObject * obj7 = 0 ;
18901 PyObject * obj8 = 0 ;
18902 char * kwnames[] = {
18903 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18904 };
18905
18906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18908 if (!SWIG_IsOK(res1)) {
18909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18910 }
18911 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18913 if (!SWIG_IsOK(res2)) {
18914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18915 }
18916 arg2 = reinterpret_cast< wxWindow * >(argp2);
18917 if (obj2) {
18918 ecode3 = SWIG_AsVal_int(obj2, &val3);
18919 if (!SWIG_IsOK(ecode3)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18921 }
18922 arg3 = static_cast< int >(val3);
18923 }
18924 if (obj3) {
18925 {
18926 arg4 = wxString_in_helper(obj3);
18927 if (arg4 == NULL) SWIG_fail;
18928 temp4 = true;
18929 }
18930 }
18931 if (obj4) {
18932 {
18933 arg5 = &temp5;
18934 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18935 }
18936 }
18937 if (obj5) {
18938 {
18939 arg6 = &temp6;
18940 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18941 }
18942 }
18943 if (obj6) {
18944 ecode7 = SWIG_AsVal_long(obj6, &val7);
18945 if (!SWIG_IsOK(ecode7)) {
18946 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18947 }
18948 arg7 = static_cast< long >(val7);
18949 }
18950 if (obj7) {
18951 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18952 if (!SWIG_IsOK(res8)) {
18953 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18954 }
18955 if (!argp8) {
18956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18957 }
18958 arg8 = reinterpret_cast< wxValidator * >(argp8);
18959 }
18960 if (obj8) {
18961 {
18962 arg9 = wxString_in_helper(obj8);
18963 if (arg9 == NULL) SWIG_fail;
18964 temp9 = true;
18965 }
18966 }
18967 {
18968 PyThreadState* __tstate = wxPyBeginAllowThreads();
18969 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18970 wxPyEndAllowThreads(__tstate);
18971 if (PyErr_Occurred()) SWIG_fail;
18972 }
18973 {
18974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18975 }
18976 {
18977 if (temp4)
18978 delete arg4;
18979 }
18980 {
18981 if (temp9)
18982 delete arg9;
18983 }
18984 return resultobj;
18985 fail:
18986 {
18987 if (temp4)
18988 delete arg4;
18989 }
18990 {
18991 if (temp9)
18992 delete arg9;
18993 }
18994 return NULL;
18995 }
18996
18997
18998 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18999 PyObject *resultobj = 0;
19000 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19001 bool arg2 ;
19002 void *argp1 = 0 ;
19003 int res1 = 0 ;
19004 bool val2 ;
19005 int ecode2 = 0 ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 char * kwnames[] = {
19009 (char *) "self",(char *) "value", NULL
19010 };
19011
19012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19014 if (!SWIG_IsOK(res1)) {
19015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19016 }
19017 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19018 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19019 if (!SWIG_IsOK(ecode2)) {
19020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19021 }
19022 arg2 = static_cast< bool >(val2);
19023 {
19024 PyThreadState* __tstate = wxPyBeginAllowThreads();
19025 (arg1)->SetValue(arg2);
19026 wxPyEndAllowThreads(__tstate);
19027 if (PyErr_Occurred()) SWIG_fail;
19028 }
19029 resultobj = SWIG_Py_Void();
19030 return resultobj;
19031 fail:
19032 return NULL;
19033 }
19034
19035
19036 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19037 PyObject *resultobj = 0;
19038 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19039 bool result;
19040 void *argp1 = 0 ;
19041 int res1 = 0 ;
19042 PyObject *swig_obj[1] ;
19043
19044 if (!args) SWIG_fail;
19045 swig_obj[0] = args;
19046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19047 if (!SWIG_IsOK(res1)) {
19048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19049 }
19050 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19051 {
19052 PyThreadState* __tstate = wxPyBeginAllowThreads();
19053 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 {
19058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19059 }
19060 return resultobj;
19061 fail:
19062 return NULL;
19063 }
19064
19065
19066 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19067 PyObject *resultobj = 0;
19068 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19069 SwigValueWrapper<wxVisualAttributes > result;
19070 int val1 ;
19071 int ecode1 = 0 ;
19072 PyObject * obj0 = 0 ;
19073 char * kwnames[] = {
19074 (char *) "variant", NULL
19075 };
19076
19077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19078 if (obj0) {
19079 ecode1 = SWIG_AsVal_int(obj0, &val1);
19080 if (!SWIG_IsOK(ecode1)) {
19081 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19082 }
19083 arg1 = static_cast< wxWindowVariant >(val1);
19084 }
19085 {
19086 if (!wxPyCheckForApp()) SWIG_fail;
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19093 return resultobj;
19094 fail:
19095 return NULL;
19096 }
19097
19098
19099 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19100 PyObject *obj;
19101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19102 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19103 return SWIG_Py_Void();
19104 }
19105
19106 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19107 return SWIG_Python_InitShadowInstance(args);
19108 }
19109
19110 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19111 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19112 return 1;
19113 }
19114
19115
19116 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19117 PyObject *pyobj = 0;
19118
19119 {
19120 #if wxUSE_UNICODE
19121 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19122 #else
19123 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19124 #endif
19125 }
19126 return pyobj;
19127 }
19128
19129
19130 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19131 PyObject *resultobj = 0;
19132 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19133 size_t result;
19134 void *argp1 = 0 ;
19135 int res1 = 0 ;
19136 PyObject *swig_obj[1] ;
19137
19138 if (!args) SWIG_fail;
19139 swig_obj[0] = args;
19140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19141 if (!SWIG_IsOK(res1)) {
19142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19143 }
19144 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19145 {
19146 PyThreadState* __tstate = wxPyBeginAllowThreads();
19147 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19148 wxPyEndAllowThreads(__tstate);
19149 if (PyErr_Occurred()) SWIG_fail;
19150 }
19151 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19152 return resultobj;
19153 fail:
19154 return NULL;
19155 }
19156
19157
19158 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19159 PyObject *resultobj = 0;
19160 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19161 size_t arg2 ;
19162 wxWindow *result = 0 ;
19163 void *argp1 = 0 ;
19164 int res1 = 0 ;
19165 size_t val2 ;
19166 int ecode2 = 0 ;
19167 PyObject * obj0 = 0 ;
19168 PyObject * obj1 = 0 ;
19169 char * kwnames[] = {
19170 (char *) "self",(char *) "n", NULL
19171 };
19172
19173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19175 if (!SWIG_IsOK(res1)) {
19176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19177 }
19178 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19179 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19180 if (!SWIG_IsOK(ecode2)) {
19181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19182 }
19183 arg2 = static_cast< size_t >(val2);
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 result = (wxWindow *)(arg1)->GetPage(arg2);
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 {
19191 resultobj = wxPyMake_wxObject(result, 0);
19192 }
19193 return resultobj;
19194 fail:
19195 return NULL;
19196 }
19197
19198
19199 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19200 PyObject *resultobj = 0;
19201 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19202 wxWindow *result = 0 ;
19203 void *argp1 = 0 ;
19204 int res1 = 0 ;
19205 PyObject *swig_obj[1] ;
19206
19207 if (!args) SWIG_fail;
19208 swig_obj[0] = args;
19209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19210 if (!SWIG_IsOK(res1)) {
19211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19212 }
19213 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19214 {
19215 PyThreadState* __tstate = wxPyBeginAllowThreads();
19216 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19217 wxPyEndAllowThreads(__tstate);
19218 if (PyErr_Occurred()) SWIG_fail;
19219 }
19220 {
19221 resultobj = wxPyMake_wxObject(result, 0);
19222 }
19223 return resultobj;
19224 fail:
19225 return NULL;
19226 }
19227
19228
19229 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19230 PyObject *resultobj = 0;
19231 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19232 int result;
19233 void *argp1 = 0 ;
19234 int res1 = 0 ;
19235 PyObject *swig_obj[1] ;
19236
19237 if (!args) SWIG_fail;
19238 swig_obj[0] = args;
19239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19240 if (!SWIG_IsOK(res1)) {
19241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19242 }
19243 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19244 {
19245 PyThreadState* __tstate = wxPyBeginAllowThreads();
19246 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19247 wxPyEndAllowThreads(__tstate);
19248 if (PyErr_Occurred()) SWIG_fail;
19249 }
19250 resultobj = SWIG_From_int(static_cast< int >(result));
19251 return resultobj;
19252 fail:
19253 return NULL;
19254 }
19255
19256
19257 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj = 0;
19259 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19260 size_t arg2 ;
19261 wxString *arg3 = 0 ;
19262 bool result;
19263 void *argp1 = 0 ;
19264 int res1 = 0 ;
19265 size_t val2 ;
19266 int ecode2 = 0 ;
19267 bool temp3 = false ;
19268 PyObject * obj0 = 0 ;
19269 PyObject * obj1 = 0 ;
19270 PyObject * obj2 = 0 ;
19271 char * kwnames[] = {
19272 (char *) "self",(char *) "n",(char *) "strText", NULL
19273 };
19274
19275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19277 if (!SWIG_IsOK(res1)) {
19278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19279 }
19280 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19281 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19282 if (!SWIG_IsOK(ecode2)) {
19283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19284 }
19285 arg2 = static_cast< size_t >(val2);
19286 {
19287 arg3 = wxString_in_helper(obj2);
19288 if (arg3 == NULL) SWIG_fail;
19289 temp3 = true;
19290 }
19291 {
19292 PyThreadState* __tstate = wxPyBeginAllowThreads();
19293 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19294 wxPyEndAllowThreads(__tstate);
19295 if (PyErr_Occurred()) SWIG_fail;
19296 }
19297 {
19298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19299 }
19300 {
19301 if (temp3)
19302 delete arg3;
19303 }
19304 return resultobj;
19305 fail:
19306 {
19307 if (temp3)
19308 delete arg3;
19309 }
19310 return NULL;
19311 }
19312
19313
19314 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19315 PyObject *resultobj = 0;
19316 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19317 size_t arg2 ;
19318 wxString result;
19319 void *argp1 = 0 ;
19320 int res1 = 0 ;
19321 size_t val2 ;
19322 int ecode2 = 0 ;
19323 PyObject * obj0 = 0 ;
19324 PyObject * obj1 = 0 ;
19325 char * kwnames[] = {
19326 (char *) "self",(char *) "n", NULL
19327 };
19328
19329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19331 if (!SWIG_IsOK(res1)) {
19332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19333 }
19334 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19335 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19336 if (!SWIG_IsOK(ecode2)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19338 }
19339 arg2 = static_cast< size_t >(val2);
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19343 wxPyEndAllowThreads(__tstate);
19344 if (PyErr_Occurred()) SWIG_fail;
19345 }
19346 {
19347 #if wxUSE_UNICODE
19348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19349 #else
19350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19351 #endif
19352 }
19353 return resultobj;
19354 fail:
19355 return NULL;
19356 }
19357
19358
19359 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19360 PyObject *resultobj = 0;
19361 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19362 wxImageList *arg2 = (wxImageList *) 0 ;
19363 void *argp1 = 0 ;
19364 int res1 = 0 ;
19365 void *argp2 = 0 ;
19366 int res2 = 0 ;
19367 PyObject * obj0 = 0 ;
19368 PyObject * obj1 = 0 ;
19369 char * kwnames[] = {
19370 (char *) "self",(char *) "imageList", NULL
19371 };
19372
19373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19375 if (!SWIG_IsOK(res1)) {
19376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19377 }
19378 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19380 if (!SWIG_IsOK(res2)) {
19381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19382 }
19383 arg2 = reinterpret_cast< wxImageList * >(argp2);
19384 {
19385 PyThreadState* __tstate = wxPyBeginAllowThreads();
19386 (arg1)->SetImageList(arg2);
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 resultobj = SWIG_Py_Void();
19391 return resultobj;
19392 fail:
19393 return NULL;
19394 }
19395
19396
19397 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19398 PyObject *resultobj = 0;
19399 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19400 wxImageList *arg2 = (wxImageList *) 0 ;
19401 void *argp1 = 0 ;
19402 int res1 = 0 ;
19403 int res2 = 0 ;
19404 PyObject * obj0 = 0 ;
19405 PyObject * obj1 = 0 ;
19406 char * kwnames[] = {
19407 (char *) "self",(char *) "imageList", NULL
19408 };
19409
19410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19412 if (!SWIG_IsOK(res1)) {
19413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19414 }
19415 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19416 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19417 if (!SWIG_IsOK(res2)) {
19418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19419 }
19420 {
19421 PyThreadState* __tstate = wxPyBeginAllowThreads();
19422 (arg1)->AssignImageList(arg2);
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
19426 resultobj = SWIG_Py_Void();
19427 return resultobj;
19428 fail:
19429 return NULL;
19430 }
19431
19432
19433 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19434 PyObject *resultobj = 0;
19435 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19436 wxImageList *result = 0 ;
19437 void *argp1 = 0 ;
19438 int res1 = 0 ;
19439 PyObject *swig_obj[1] ;
19440
19441 if (!args) SWIG_fail;
19442 swig_obj[0] = args;
19443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19444 if (!SWIG_IsOK(res1)) {
19445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19446 }
19447 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19448 {
19449 PyThreadState* __tstate = wxPyBeginAllowThreads();
19450 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19451 wxPyEndAllowThreads(__tstate);
19452 if (PyErr_Occurred()) SWIG_fail;
19453 }
19454 {
19455 resultobj = wxPyMake_wxObject(result, (bool)0);
19456 }
19457 return resultobj;
19458 fail:
19459 return NULL;
19460 }
19461
19462
19463 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19464 PyObject *resultobj = 0;
19465 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19466 size_t arg2 ;
19467 int result;
19468 void *argp1 = 0 ;
19469 int res1 = 0 ;
19470 size_t val2 ;
19471 int ecode2 = 0 ;
19472 PyObject * obj0 = 0 ;
19473 PyObject * obj1 = 0 ;
19474 char * kwnames[] = {
19475 (char *) "self",(char *) "n", NULL
19476 };
19477
19478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19480 if (!SWIG_IsOK(res1)) {
19481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19482 }
19483 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19484 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19485 if (!SWIG_IsOK(ecode2)) {
19486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19487 }
19488 arg2 = static_cast< size_t >(val2);
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19492 wxPyEndAllowThreads(__tstate);
19493 if (PyErr_Occurred()) SWIG_fail;
19494 }
19495 resultobj = SWIG_From_int(static_cast< int >(result));
19496 return resultobj;
19497 fail:
19498 return NULL;
19499 }
19500
19501
19502 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19503 PyObject *resultobj = 0;
19504 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19505 size_t arg2 ;
19506 int arg3 ;
19507 bool result;
19508 void *argp1 = 0 ;
19509 int res1 = 0 ;
19510 size_t val2 ;
19511 int ecode2 = 0 ;
19512 int val3 ;
19513 int ecode3 = 0 ;
19514 PyObject * obj0 = 0 ;
19515 PyObject * obj1 = 0 ;
19516 PyObject * obj2 = 0 ;
19517 char * kwnames[] = {
19518 (char *) "self",(char *) "n",(char *) "imageId", NULL
19519 };
19520
19521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19523 if (!SWIG_IsOK(res1)) {
19524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19525 }
19526 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19527 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19528 if (!SWIG_IsOK(ecode2)) {
19529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19530 }
19531 arg2 = static_cast< size_t >(val2);
19532 ecode3 = SWIG_AsVal_int(obj2, &val3);
19533 if (!SWIG_IsOK(ecode3)) {
19534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19535 }
19536 arg3 = static_cast< int >(val3);
19537 {
19538 PyThreadState* __tstate = wxPyBeginAllowThreads();
19539 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19540 wxPyEndAllowThreads(__tstate);
19541 if (PyErr_Occurred()) SWIG_fail;
19542 }
19543 {
19544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19545 }
19546 return resultobj;
19547 fail:
19548 return NULL;
19549 }
19550
19551
19552 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19553 PyObject *resultobj = 0;
19554 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19555 wxSize *arg2 = 0 ;
19556 void *argp1 = 0 ;
19557 int res1 = 0 ;
19558 wxSize temp2 ;
19559 PyObject * obj0 = 0 ;
19560 PyObject * obj1 = 0 ;
19561 char * kwnames[] = {
19562 (char *) "self",(char *) "size", NULL
19563 };
19564
19565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19567 if (!SWIG_IsOK(res1)) {
19568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19569 }
19570 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19571 {
19572 arg2 = &temp2;
19573 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19574 }
19575 {
19576 PyThreadState* __tstate = wxPyBeginAllowThreads();
19577 (arg1)->SetPageSize((wxSize const &)*arg2);
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
19581 resultobj = SWIG_Py_Void();
19582 return resultobj;
19583 fail:
19584 return NULL;
19585 }
19586
19587
19588 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19589 PyObject *resultobj = 0;
19590 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19591 wxSize *arg2 = 0 ;
19592 wxSize result;
19593 void *argp1 = 0 ;
19594 int res1 = 0 ;
19595 wxSize temp2 ;
19596 PyObject * obj0 = 0 ;
19597 PyObject * obj1 = 0 ;
19598 char * kwnames[] = {
19599 (char *) "self",(char *) "sizePage", NULL
19600 };
19601
19602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19604 if (!SWIG_IsOK(res1)) {
19605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19606 }
19607 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19608 {
19609 arg2 = &temp2;
19610 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19611 }
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
19614 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19615 wxPyEndAllowThreads(__tstate);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 }
19618 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19619 return resultobj;
19620 fail:
19621 return NULL;
19622 }
19623
19624
19625 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19626 PyObject *resultobj = 0;
19627 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19628 unsigned int result;
19629 void *argp1 = 0 ;
19630 int res1 = 0 ;
19631 PyObject *swig_obj[1] ;
19632
19633 if (!args) SWIG_fail;
19634 swig_obj[0] = args;
19635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19636 if (!SWIG_IsOK(res1)) {
19637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19638 }
19639 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19640 {
19641 PyThreadState* __tstate = wxPyBeginAllowThreads();
19642 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19643 wxPyEndAllowThreads(__tstate);
19644 if (PyErr_Occurred()) SWIG_fail;
19645 }
19646 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19647 return resultobj;
19648 fail:
19649 return NULL;
19650 }
19651
19652
19653 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19654 PyObject *resultobj = 0;
19655 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19656 unsigned int arg2 ;
19657 void *argp1 = 0 ;
19658 int res1 = 0 ;
19659 unsigned int val2 ;
19660 int ecode2 = 0 ;
19661 PyObject * obj0 = 0 ;
19662 PyObject * obj1 = 0 ;
19663 char * kwnames[] = {
19664 (char *) "self",(char *) "internalBorder", NULL
19665 };
19666
19667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19669 if (!SWIG_IsOK(res1)) {
19670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19671 }
19672 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19673 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19674 if (!SWIG_IsOK(ecode2)) {
19675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19676 }
19677 arg2 = static_cast< unsigned int >(val2);
19678 {
19679 PyThreadState* __tstate = wxPyBeginAllowThreads();
19680 (arg1)->SetInternalBorder(arg2);
19681 wxPyEndAllowThreads(__tstate);
19682 if (PyErr_Occurred()) SWIG_fail;
19683 }
19684 resultobj = SWIG_Py_Void();
19685 return resultobj;
19686 fail:
19687 return NULL;
19688 }
19689
19690
19691 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19692 PyObject *resultobj = 0;
19693 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19694 bool result;
19695 void *argp1 = 0 ;
19696 int res1 = 0 ;
19697 PyObject *swig_obj[1] ;
19698
19699 if (!args) SWIG_fail;
19700 swig_obj[0] = args;
19701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19702 if (!SWIG_IsOK(res1)) {
19703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19704 }
19705 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19706 {
19707 PyThreadState* __tstate = wxPyBeginAllowThreads();
19708 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19709 wxPyEndAllowThreads(__tstate);
19710 if (PyErr_Occurred()) SWIG_fail;
19711 }
19712 {
19713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19714 }
19715 return resultobj;
19716 fail:
19717 return NULL;
19718 }
19719
19720
19721 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19722 PyObject *resultobj = 0;
19723 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19724 int arg2 ;
19725 void *argp1 = 0 ;
19726 int res1 = 0 ;
19727 int val2 ;
19728 int ecode2 = 0 ;
19729 PyObject * obj0 = 0 ;
19730 PyObject * obj1 = 0 ;
19731 char * kwnames[] = {
19732 (char *) "self",(char *) "margin", NULL
19733 };
19734
19735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19737 if (!SWIG_IsOK(res1)) {
19738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19739 }
19740 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19741 ecode2 = SWIG_AsVal_int(obj1, &val2);
19742 if (!SWIG_IsOK(ecode2)) {
19743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19744 }
19745 arg2 = static_cast< int >(val2);
19746 {
19747 PyThreadState* __tstate = wxPyBeginAllowThreads();
19748 (arg1)->SetControlMargin(arg2);
19749 wxPyEndAllowThreads(__tstate);
19750 if (PyErr_Occurred()) SWIG_fail;
19751 }
19752 resultobj = SWIG_Py_Void();
19753 return resultobj;
19754 fail:
19755 return NULL;
19756 }
19757
19758
19759 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19760 PyObject *resultobj = 0;
19761 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19762 int result;
19763 void *argp1 = 0 ;
19764 int res1 = 0 ;
19765 PyObject *swig_obj[1] ;
19766
19767 if (!args) SWIG_fail;
19768 swig_obj[0] = args;
19769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19770 if (!SWIG_IsOK(res1)) {
19771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19772 }
19773 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19774 {
19775 PyThreadState* __tstate = wxPyBeginAllowThreads();
19776 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19777 wxPyEndAllowThreads(__tstate);
19778 if (PyErr_Occurred()) SWIG_fail;
19779 }
19780 resultobj = SWIG_From_int(static_cast< int >(result));
19781 return resultobj;
19782 fail:
19783 return NULL;
19784 }
19785
19786
19787 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj = 0;
19789 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19790 bool arg2 ;
19791 void *argp1 = 0 ;
19792 int res1 = 0 ;
19793 bool val2 ;
19794 int ecode2 = 0 ;
19795 PyObject * obj0 = 0 ;
19796 PyObject * obj1 = 0 ;
19797 char * kwnames[] = {
19798 (char *) "self",(char *) "fit", NULL
19799 };
19800
19801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19803 if (!SWIG_IsOK(res1)) {
19804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19805 }
19806 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19807 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19808 if (!SWIG_IsOK(ecode2)) {
19809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19810 }
19811 arg2 = static_cast< bool >(val2);
19812 {
19813 PyThreadState* __tstate = wxPyBeginAllowThreads();
19814 (arg1)->SetFitToCurrentPage(arg2);
19815 wxPyEndAllowThreads(__tstate);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 }
19818 resultobj = SWIG_Py_Void();
19819 return resultobj;
19820 fail:
19821 return NULL;
19822 }
19823
19824
19825 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19826 PyObject *resultobj = 0;
19827 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19828 bool result;
19829 void *argp1 = 0 ;
19830 int res1 = 0 ;
19831 PyObject *swig_obj[1] ;
19832
19833 if (!args) SWIG_fail;
19834 swig_obj[0] = args;
19835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19836 if (!SWIG_IsOK(res1)) {
19837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19838 }
19839 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19843 wxPyEndAllowThreads(__tstate);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 {
19847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19848 }
19849 return resultobj;
19850 fail:
19851 return NULL;
19852 }
19853
19854
19855 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19856 PyObject *resultobj = 0;
19857 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19858 wxSizer *result = 0 ;
19859 void *argp1 = 0 ;
19860 int res1 = 0 ;
19861 PyObject *swig_obj[1] ;
19862
19863 if (!args) SWIG_fail;
19864 swig_obj[0] = args;
19865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19866 if (!SWIG_IsOK(res1)) {
19867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19868 }
19869 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19870 {
19871 PyThreadState* __tstate = wxPyBeginAllowThreads();
19872 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19873 wxPyEndAllowThreads(__tstate);
19874 if (PyErr_Occurred()) SWIG_fail;
19875 }
19876 {
19877 resultobj = wxPyMake_wxObject(result, (bool)0);
19878 }
19879 return resultobj;
19880 fail:
19881 return NULL;
19882 }
19883
19884
19885 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19886 PyObject *resultobj = 0;
19887 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19888 size_t arg2 ;
19889 bool result;
19890 void *argp1 = 0 ;
19891 int res1 = 0 ;
19892 size_t val2 ;
19893 int ecode2 = 0 ;
19894 PyObject * obj0 = 0 ;
19895 PyObject * obj1 = 0 ;
19896 char * kwnames[] = {
19897 (char *) "self",(char *) "n", NULL
19898 };
19899
19900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19902 if (!SWIG_IsOK(res1)) {
19903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19904 }
19905 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19906 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19907 if (!SWIG_IsOK(ecode2)) {
19908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19909 }
19910 arg2 = static_cast< size_t >(val2);
19911 {
19912 PyThreadState* __tstate = wxPyBeginAllowThreads();
19913 result = (bool)(arg1)->DeletePage(arg2);
19914 wxPyEndAllowThreads(__tstate);
19915 if (PyErr_Occurred()) SWIG_fail;
19916 }
19917 {
19918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19919 }
19920 return resultobj;
19921 fail:
19922 return NULL;
19923 }
19924
19925
19926 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19927 PyObject *resultobj = 0;
19928 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19929 size_t arg2 ;
19930 bool result;
19931 void *argp1 = 0 ;
19932 int res1 = 0 ;
19933 size_t val2 ;
19934 int ecode2 = 0 ;
19935 PyObject * obj0 = 0 ;
19936 PyObject * obj1 = 0 ;
19937 char * kwnames[] = {
19938 (char *) "self",(char *) "n", NULL
19939 };
19940
19941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19943 if (!SWIG_IsOK(res1)) {
19944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19945 }
19946 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19947 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19948 if (!SWIG_IsOK(ecode2)) {
19949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19950 }
19951 arg2 = static_cast< size_t >(val2);
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = (bool)(arg1)->RemovePage(arg2);
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 {
19959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19960 }
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19968 PyObject *resultobj = 0;
19969 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19970 bool result;
19971 void *argp1 = 0 ;
19972 int res1 = 0 ;
19973 PyObject *swig_obj[1] ;
19974
19975 if (!args) SWIG_fail;
19976 swig_obj[0] = args;
19977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19978 if (!SWIG_IsOK(res1)) {
19979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19980 }
19981 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19982 {
19983 PyThreadState* __tstate = wxPyBeginAllowThreads();
19984 result = (bool)(arg1)->DeleteAllPages();
19985 wxPyEndAllowThreads(__tstate);
19986 if (PyErr_Occurred()) SWIG_fail;
19987 }
19988 {
19989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19990 }
19991 return resultobj;
19992 fail:
19993 return NULL;
19994 }
19995
19996
19997 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19998 PyObject *resultobj = 0;
19999 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20000 wxWindow *arg2 = (wxWindow *) 0 ;
20001 wxString *arg3 = 0 ;
20002 bool arg4 = (bool) false ;
20003 int arg5 = (int) -1 ;
20004 bool result;
20005 void *argp1 = 0 ;
20006 int res1 = 0 ;
20007 void *argp2 = 0 ;
20008 int res2 = 0 ;
20009 bool temp3 = false ;
20010 bool val4 ;
20011 int ecode4 = 0 ;
20012 int val5 ;
20013 int ecode5 = 0 ;
20014 PyObject * obj0 = 0 ;
20015 PyObject * obj1 = 0 ;
20016 PyObject * obj2 = 0 ;
20017 PyObject * obj3 = 0 ;
20018 PyObject * obj4 = 0 ;
20019 char * kwnames[] = {
20020 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20021 };
20022
20023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20025 if (!SWIG_IsOK(res1)) {
20026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20027 }
20028 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20029 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20030 if (!SWIG_IsOK(res2)) {
20031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20032 }
20033 arg2 = reinterpret_cast< wxWindow * >(argp2);
20034 {
20035 arg3 = wxString_in_helper(obj2);
20036 if (arg3 == NULL) SWIG_fail;
20037 temp3 = true;
20038 }
20039 if (obj3) {
20040 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20041 if (!SWIG_IsOK(ecode4)) {
20042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20043 }
20044 arg4 = static_cast< bool >(val4);
20045 }
20046 if (obj4) {
20047 ecode5 = SWIG_AsVal_int(obj4, &val5);
20048 if (!SWIG_IsOK(ecode5)) {
20049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20050 }
20051 arg5 = static_cast< int >(val5);
20052 }
20053 {
20054 PyThreadState* __tstate = wxPyBeginAllowThreads();
20055 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20056 wxPyEndAllowThreads(__tstate);
20057 if (PyErr_Occurred()) SWIG_fail;
20058 }
20059 {
20060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20061 }
20062 {
20063 if (temp3)
20064 delete arg3;
20065 }
20066 return resultobj;
20067 fail:
20068 {
20069 if (temp3)
20070 delete arg3;
20071 }
20072 return NULL;
20073 }
20074
20075
20076 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20077 PyObject *resultobj = 0;
20078 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20079 size_t arg2 ;
20080 wxWindow *arg3 = (wxWindow *) 0 ;
20081 wxString *arg4 = 0 ;
20082 bool arg5 = (bool) false ;
20083 int arg6 = (int) -1 ;
20084 bool result;
20085 void *argp1 = 0 ;
20086 int res1 = 0 ;
20087 size_t val2 ;
20088 int ecode2 = 0 ;
20089 void *argp3 = 0 ;
20090 int res3 = 0 ;
20091 bool temp4 = false ;
20092 bool val5 ;
20093 int ecode5 = 0 ;
20094 int val6 ;
20095 int ecode6 = 0 ;
20096 PyObject * obj0 = 0 ;
20097 PyObject * obj1 = 0 ;
20098 PyObject * obj2 = 0 ;
20099 PyObject * obj3 = 0 ;
20100 PyObject * obj4 = 0 ;
20101 PyObject * obj5 = 0 ;
20102 char * kwnames[] = {
20103 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20104 };
20105
20106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20108 if (!SWIG_IsOK(res1)) {
20109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20110 }
20111 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20112 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20113 if (!SWIG_IsOK(ecode2)) {
20114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20115 }
20116 arg2 = static_cast< size_t >(val2);
20117 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20118 if (!SWIG_IsOK(res3)) {
20119 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20120 }
20121 arg3 = reinterpret_cast< wxWindow * >(argp3);
20122 {
20123 arg4 = wxString_in_helper(obj3);
20124 if (arg4 == NULL) SWIG_fail;
20125 temp4 = true;
20126 }
20127 if (obj4) {
20128 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20129 if (!SWIG_IsOK(ecode5)) {
20130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20131 }
20132 arg5 = static_cast< bool >(val5);
20133 }
20134 if (obj5) {
20135 ecode6 = SWIG_AsVal_int(obj5, &val6);
20136 if (!SWIG_IsOK(ecode6)) {
20137 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20138 }
20139 arg6 = static_cast< int >(val6);
20140 }
20141 {
20142 PyThreadState* __tstate = wxPyBeginAllowThreads();
20143 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20144 wxPyEndAllowThreads(__tstate);
20145 if (PyErr_Occurred()) SWIG_fail;
20146 }
20147 {
20148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20149 }
20150 {
20151 if (temp4)
20152 delete arg4;
20153 }
20154 return resultobj;
20155 fail:
20156 {
20157 if (temp4)
20158 delete arg4;
20159 }
20160 return NULL;
20161 }
20162
20163
20164 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20165 PyObject *resultobj = 0;
20166 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20167 size_t arg2 ;
20168 int result;
20169 void *argp1 = 0 ;
20170 int res1 = 0 ;
20171 size_t val2 ;
20172 int ecode2 = 0 ;
20173 PyObject * obj0 = 0 ;
20174 PyObject * obj1 = 0 ;
20175 char * kwnames[] = {
20176 (char *) "self",(char *) "n", NULL
20177 };
20178
20179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20181 if (!SWIG_IsOK(res1)) {
20182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20183 }
20184 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20185 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20186 if (!SWIG_IsOK(ecode2)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20188 }
20189 arg2 = static_cast< size_t >(val2);
20190 {
20191 PyThreadState* __tstate = wxPyBeginAllowThreads();
20192 result = (int)(arg1)->SetSelection(arg2);
20193 wxPyEndAllowThreads(__tstate);
20194 if (PyErr_Occurred()) SWIG_fail;
20195 }
20196 resultobj = SWIG_From_int(static_cast< int >(result));
20197 return resultobj;
20198 fail:
20199 return NULL;
20200 }
20201
20202
20203 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(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_ChangeSelection",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_ChangeSelection" "', 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_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20227 }
20228 arg2 = static_cast< size_t >(val2);
20229 {
20230 PyThreadState* __tstate = wxPyBeginAllowThreads();
20231 result = (int)(arg1)->ChangeSelection(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_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20243 PyObject *resultobj = 0;
20244 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20245 bool arg2 = (bool) true ;
20246 void *argp1 = 0 ;
20247 int res1 = 0 ;
20248 bool val2 ;
20249 int ecode2 = 0 ;
20250 PyObject * obj0 = 0 ;
20251 PyObject * obj1 = 0 ;
20252 char * kwnames[] = {
20253 (char *) "self",(char *) "forward", NULL
20254 };
20255
20256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20258 if (!SWIG_IsOK(res1)) {
20259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20260 }
20261 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20262 if (obj1) {
20263 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20264 if (!SWIG_IsOK(ecode2)) {
20265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20266 }
20267 arg2 = static_cast< bool >(val2);
20268 }
20269 {
20270 PyThreadState* __tstate = wxPyBeginAllowThreads();
20271 (arg1)->AdvanceSelection(arg2);
20272 wxPyEndAllowThreads(__tstate);
20273 if (PyErr_Occurred()) SWIG_fail;
20274 }
20275 resultobj = SWIG_Py_Void();
20276 return resultobj;
20277 fail:
20278 return NULL;
20279 }
20280
20281
20282 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20283 PyObject *resultobj = 0;
20284 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20285 wxPoint *arg2 = 0 ;
20286 long *arg3 = (long *) 0 ;
20287 int result;
20288 void *argp1 = 0 ;
20289 int res1 = 0 ;
20290 wxPoint temp2 ;
20291 long temp3 ;
20292 int res3 = SWIG_TMPOBJ ;
20293 PyObject * obj0 = 0 ;
20294 PyObject * obj1 = 0 ;
20295 char * kwnames[] = {
20296 (char *) "self",(char *) "pt", NULL
20297 };
20298
20299 arg3 = &temp3;
20300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20302 if (!SWIG_IsOK(res1)) {
20303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20304 }
20305 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20306 {
20307 arg2 = &temp2;
20308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20309 }
20310 {
20311 PyThreadState* __tstate = wxPyBeginAllowThreads();
20312 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20313 wxPyEndAllowThreads(__tstate);
20314 if (PyErr_Occurred()) SWIG_fail;
20315 }
20316 resultobj = SWIG_From_int(static_cast< int >(result));
20317 if (SWIG_IsTmpObj(res3)) {
20318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20319 } else {
20320 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20322 }
20323 return resultobj;
20324 fail:
20325 return NULL;
20326 }
20327
20328
20329 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20330 PyObject *resultobj = 0;
20331 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20332 SwigValueWrapper<wxVisualAttributes > result;
20333 int val1 ;
20334 int ecode1 = 0 ;
20335 PyObject * obj0 = 0 ;
20336 char * kwnames[] = {
20337 (char *) "variant", NULL
20338 };
20339
20340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20341 if (obj0) {
20342 ecode1 = SWIG_AsVal_int(obj0, &val1);
20343 if (!SWIG_IsOK(ecode1)) {
20344 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20345 }
20346 arg1 = static_cast< wxWindowVariant >(val1);
20347 }
20348 {
20349 if (!wxPyCheckForApp()) SWIG_fail;
20350 PyThreadState* __tstate = wxPyBeginAllowThreads();
20351 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20352 wxPyEndAllowThreads(__tstate);
20353 if (PyErr_Occurred()) SWIG_fail;
20354 }
20355 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20356 return resultobj;
20357 fail:
20358 return NULL;
20359 }
20360
20361
20362 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20363 PyObject *obj;
20364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20365 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20366 return SWIG_Py_Void();
20367 }
20368
20369 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20370 PyObject *resultobj = 0;
20371 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20372 int arg2 = (int) 0 ;
20373 int arg3 = (int) -1 ;
20374 int arg4 = (int) -1 ;
20375 wxBookCtrlBaseEvent *result = 0 ;
20376 int val1 ;
20377 int ecode1 = 0 ;
20378 int val2 ;
20379 int ecode2 = 0 ;
20380 int val3 ;
20381 int ecode3 = 0 ;
20382 int val4 ;
20383 int ecode4 = 0 ;
20384 PyObject * obj0 = 0 ;
20385 PyObject * obj1 = 0 ;
20386 PyObject * obj2 = 0 ;
20387 PyObject * obj3 = 0 ;
20388 char * kwnames[] = {
20389 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20390 };
20391
20392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20393 if (obj0) {
20394 ecode1 = SWIG_AsVal_int(obj0, &val1);
20395 if (!SWIG_IsOK(ecode1)) {
20396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20397 }
20398 arg1 = static_cast< wxEventType >(val1);
20399 }
20400 if (obj1) {
20401 ecode2 = SWIG_AsVal_int(obj1, &val2);
20402 if (!SWIG_IsOK(ecode2)) {
20403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20404 }
20405 arg2 = static_cast< int >(val2);
20406 }
20407 if (obj2) {
20408 ecode3 = SWIG_AsVal_int(obj2, &val3);
20409 if (!SWIG_IsOK(ecode3)) {
20410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20411 }
20412 arg3 = static_cast< int >(val3);
20413 }
20414 if (obj3) {
20415 ecode4 = SWIG_AsVal_int(obj3, &val4);
20416 if (!SWIG_IsOK(ecode4)) {
20417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20418 }
20419 arg4 = static_cast< int >(val4);
20420 }
20421 {
20422 PyThreadState* __tstate = wxPyBeginAllowThreads();
20423 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20424 wxPyEndAllowThreads(__tstate);
20425 if (PyErr_Occurred()) SWIG_fail;
20426 }
20427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20428 return resultobj;
20429 fail:
20430 return NULL;
20431 }
20432
20433
20434 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20435 PyObject *resultobj = 0;
20436 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20437 int result;
20438 void *argp1 = 0 ;
20439 int res1 = 0 ;
20440 PyObject *swig_obj[1] ;
20441
20442 if (!args) SWIG_fail;
20443 swig_obj[0] = args;
20444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20445 if (!SWIG_IsOK(res1)) {
20446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20447 }
20448 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20449 {
20450 PyThreadState* __tstate = wxPyBeginAllowThreads();
20451 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20452 wxPyEndAllowThreads(__tstate);
20453 if (PyErr_Occurred()) SWIG_fail;
20454 }
20455 resultobj = SWIG_From_int(static_cast< int >(result));
20456 return resultobj;
20457 fail:
20458 return NULL;
20459 }
20460
20461
20462 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20463 PyObject *resultobj = 0;
20464 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20465 int arg2 ;
20466 void *argp1 = 0 ;
20467 int res1 = 0 ;
20468 int val2 ;
20469 int ecode2 = 0 ;
20470 PyObject * obj0 = 0 ;
20471 PyObject * obj1 = 0 ;
20472 char * kwnames[] = {
20473 (char *) "self",(char *) "nSel", NULL
20474 };
20475
20476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20478 if (!SWIG_IsOK(res1)) {
20479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20480 }
20481 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20482 ecode2 = SWIG_AsVal_int(obj1, &val2);
20483 if (!SWIG_IsOK(ecode2)) {
20484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20485 }
20486 arg2 = static_cast< int >(val2);
20487 {
20488 PyThreadState* __tstate = wxPyBeginAllowThreads();
20489 (arg1)->SetSelection(arg2);
20490 wxPyEndAllowThreads(__tstate);
20491 if (PyErr_Occurred()) SWIG_fail;
20492 }
20493 resultobj = SWIG_Py_Void();
20494 return resultobj;
20495 fail:
20496 return NULL;
20497 }
20498
20499
20500 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20501 PyObject *resultobj = 0;
20502 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20503 int result;
20504 void *argp1 = 0 ;
20505 int res1 = 0 ;
20506 PyObject *swig_obj[1] ;
20507
20508 if (!args) SWIG_fail;
20509 swig_obj[0] = args;
20510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20511 if (!SWIG_IsOK(res1)) {
20512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20513 }
20514 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20515 {
20516 PyThreadState* __tstate = wxPyBeginAllowThreads();
20517 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20518 wxPyEndAllowThreads(__tstate);
20519 if (PyErr_Occurred()) SWIG_fail;
20520 }
20521 resultobj = SWIG_From_int(static_cast< int >(result));
20522 return resultobj;
20523 fail:
20524 return NULL;
20525 }
20526
20527
20528 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20529 PyObject *resultobj = 0;
20530 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20531 int arg2 ;
20532 void *argp1 = 0 ;
20533 int res1 = 0 ;
20534 int val2 ;
20535 int ecode2 = 0 ;
20536 PyObject * obj0 = 0 ;
20537 PyObject * obj1 = 0 ;
20538 char * kwnames[] = {
20539 (char *) "self",(char *) "nOldSel", NULL
20540 };
20541
20542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20544 if (!SWIG_IsOK(res1)) {
20545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20546 }
20547 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20548 ecode2 = SWIG_AsVal_int(obj1, &val2);
20549 if (!SWIG_IsOK(ecode2)) {
20550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20551 }
20552 arg2 = static_cast< int >(val2);
20553 {
20554 PyThreadState* __tstate = wxPyBeginAllowThreads();
20555 (arg1)->SetOldSelection(arg2);
20556 wxPyEndAllowThreads(__tstate);
20557 if (PyErr_Occurred()) SWIG_fail;
20558 }
20559 resultobj = SWIG_Py_Void();
20560 return resultobj;
20561 fail:
20562 return NULL;
20563 }
20564
20565
20566 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20567 PyObject *obj;
20568 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20569 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20570 return SWIG_Py_Void();
20571 }
20572
20573 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20574 return SWIG_Python_InitShadowInstance(args);
20575 }
20576
20577 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20578 PyObject *resultobj = 0;
20579 wxWindow *arg1 = (wxWindow *) 0 ;
20580 int arg2 = (int) -1 ;
20581 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20582 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20583 wxSize const &arg4_defvalue = wxDefaultSize ;
20584 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20585 long arg5 = (long) 0 ;
20586 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20587 wxString *arg6 = (wxString *) &arg6_defvalue ;
20588 wxNotebook *result = 0 ;
20589 void *argp1 = 0 ;
20590 int res1 = 0 ;
20591 int val2 ;
20592 int ecode2 = 0 ;
20593 wxPoint temp3 ;
20594 wxSize temp4 ;
20595 long val5 ;
20596 int ecode5 = 0 ;
20597 bool temp6 = false ;
20598 PyObject * obj0 = 0 ;
20599 PyObject * obj1 = 0 ;
20600 PyObject * obj2 = 0 ;
20601 PyObject * obj3 = 0 ;
20602 PyObject * obj4 = 0 ;
20603 PyObject * obj5 = 0 ;
20604 char * kwnames[] = {
20605 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20606 };
20607
20608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20610 if (!SWIG_IsOK(res1)) {
20611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20612 }
20613 arg1 = reinterpret_cast< wxWindow * >(argp1);
20614 if (obj1) {
20615 ecode2 = SWIG_AsVal_int(obj1, &val2);
20616 if (!SWIG_IsOK(ecode2)) {
20617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20618 }
20619 arg2 = static_cast< int >(val2);
20620 }
20621 if (obj2) {
20622 {
20623 arg3 = &temp3;
20624 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20625 }
20626 }
20627 if (obj3) {
20628 {
20629 arg4 = &temp4;
20630 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20631 }
20632 }
20633 if (obj4) {
20634 ecode5 = SWIG_AsVal_long(obj4, &val5);
20635 if (!SWIG_IsOK(ecode5)) {
20636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20637 }
20638 arg5 = static_cast< long >(val5);
20639 }
20640 if (obj5) {
20641 {
20642 arg6 = wxString_in_helper(obj5);
20643 if (arg6 == NULL) SWIG_fail;
20644 temp6 = true;
20645 }
20646 }
20647 {
20648 if (!wxPyCheckForApp()) SWIG_fail;
20649 PyThreadState* __tstate = wxPyBeginAllowThreads();
20650 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20651 wxPyEndAllowThreads(__tstate);
20652 if (PyErr_Occurred()) SWIG_fail;
20653 }
20654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20655 {
20656 if (temp6)
20657 delete arg6;
20658 }
20659 return resultobj;
20660 fail:
20661 {
20662 if (temp6)
20663 delete arg6;
20664 }
20665 return NULL;
20666 }
20667
20668
20669 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20670 PyObject *resultobj = 0;
20671 wxNotebook *result = 0 ;
20672
20673 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20674 {
20675 if (!wxPyCheckForApp()) SWIG_fail;
20676 PyThreadState* __tstate = wxPyBeginAllowThreads();
20677 result = (wxNotebook *)new wxNotebook();
20678 wxPyEndAllowThreads(__tstate);
20679 if (PyErr_Occurred()) SWIG_fail;
20680 }
20681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20682 return resultobj;
20683 fail:
20684 return NULL;
20685 }
20686
20687
20688 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20689 PyObject *resultobj = 0;
20690 wxNotebook *arg1 = (wxNotebook *) 0 ;
20691 wxWindow *arg2 = (wxWindow *) 0 ;
20692 int arg3 = (int) -1 ;
20693 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20694 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20695 wxSize const &arg5_defvalue = wxDefaultSize ;
20696 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20697 long arg6 = (long) 0 ;
20698 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20699 wxString *arg7 = (wxString *) &arg7_defvalue ;
20700 bool result;
20701 void *argp1 = 0 ;
20702 int res1 = 0 ;
20703 void *argp2 = 0 ;
20704 int res2 = 0 ;
20705 int val3 ;
20706 int ecode3 = 0 ;
20707 wxPoint temp4 ;
20708 wxSize temp5 ;
20709 long val6 ;
20710 int ecode6 = 0 ;
20711 bool temp7 = false ;
20712 PyObject * obj0 = 0 ;
20713 PyObject * obj1 = 0 ;
20714 PyObject * obj2 = 0 ;
20715 PyObject * obj3 = 0 ;
20716 PyObject * obj4 = 0 ;
20717 PyObject * obj5 = 0 ;
20718 PyObject * obj6 = 0 ;
20719 char * kwnames[] = {
20720 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20721 };
20722
20723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20725 if (!SWIG_IsOK(res1)) {
20726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20727 }
20728 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20729 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20730 if (!SWIG_IsOK(res2)) {
20731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20732 }
20733 arg2 = reinterpret_cast< wxWindow * >(argp2);
20734 if (obj2) {
20735 ecode3 = SWIG_AsVal_int(obj2, &val3);
20736 if (!SWIG_IsOK(ecode3)) {
20737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20738 }
20739 arg3 = static_cast< int >(val3);
20740 }
20741 if (obj3) {
20742 {
20743 arg4 = &temp4;
20744 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20745 }
20746 }
20747 if (obj4) {
20748 {
20749 arg5 = &temp5;
20750 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20751 }
20752 }
20753 if (obj5) {
20754 ecode6 = SWIG_AsVal_long(obj5, &val6);
20755 if (!SWIG_IsOK(ecode6)) {
20756 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20757 }
20758 arg6 = static_cast< long >(val6);
20759 }
20760 if (obj6) {
20761 {
20762 arg7 = wxString_in_helper(obj6);
20763 if (arg7 == NULL) SWIG_fail;
20764 temp7 = true;
20765 }
20766 }
20767 {
20768 PyThreadState* __tstate = wxPyBeginAllowThreads();
20769 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20770 wxPyEndAllowThreads(__tstate);
20771 if (PyErr_Occurred()) SWIG_fail;
20772 }
20773 {
20774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20775 }
20776 {
20777 if (temp7)
20778 delete arg7;
20779 }
20780 return resultobj;
20781 fail:
20782 {
20783 if (temp7)
20784 delete arg7;
20785 }
20786 return NULL;
20787 }
20788
20789
20790 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20791 PyObject *resultobj = 0;
20792 wxNotebook *arg1 = (wxNotebook *) 0 ;
20793 int result;
20794 void *argp1 = 0 ;
20795 int res1 = 0 ;
20796 PyObject *swig_obj[1] ;
20797
20798 if (!args) SWIG_fail;
20799 swig_obj[0] = args;
20800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20801 if (!SWIG_IsOK(res1)) {
20802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20803 }
20804 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20805 {
20806 PyThreadState* __tstate = wxPyBeginAllowThreads();
20807 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20808 wxPyEndAllowThreads(__tstate);
20809 if (PyErr_Occurred()) SWIG_fail;
20810 }
20811 resultobj = SWIG_From_int(static_cast< int >(result));
20812 return resultobj;
20813 fail:
20814 return NULL;
20815 }
20816
20817
20818 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20819 PyObject *resultobj = 0;
20820 wxNotebook *arg1 = (wxNotebook *) 0 ;
20821 wxSize *arg2 = 0 ;
20822 void *argp1 = 0 ;
20823 int res1 = 0 ;
20824 wxSize temp2 ;
20825 PyObject * obj0 = 0 ;
20826 PyObject * obj1 = 0 ;
20827 char * kwnames[] = {
20828 (char *) "self",(char *) "padding", NULL
20829 };
20830
20831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20833 if (!SWIG_IsOK(res1)) {
20834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20835 }
20836 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20837 {
20838 arg2 = &temp2;
20839 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20840 }
20841 {
20842 PyThreadState* __tstate = wxPyBeginAllowThreads();
20843 (arg1)->SetPadding((wxSize const &)*arg2);
20844 wxPyEndAllowThreads(__tstate);
20845 if (PyErr_Occurred()) SWIG_fail;
20846 }
20847 resultobj = SWIG_Py_Void();
20848 return resultobj;
20849 fail:
20850 return NULL;
20851 }
20852
20853
20854 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20855 PyObject *resultobj = 0;
20856 wxNotebook *arg1 = (wxNotebook *) 0 ;
20857 wxSize *arg2 = 0 ;
20858 void *argp1 = 0 ;
20859 int res1 = 0 ;
20860 wxSize temp2 ;
20861 PyObject * obj0 = 0 ;
20862 PyObject * obj1 = 0 ;
20863 char * kwnames[] = {
20864 (char *) "self",(char *) "sz", NULL
20865 };
20866
20867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20871 }
20872 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20873 {
20874 arg2 = &temp2;
20875 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20876 }
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 (arg1)->SetTabSize((wxSize const &)*arg2);
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = SWIG_Py_Void();
20884 return resultobj;
20885 fail:
20886 return NULL;
20887 }
20888
20889
20890 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20891 PyObject *resultobj = 0;
20892 wxNotebook *arg1 = (wxNotebook *) 0 ;
20893 wxColour result;
20894 void *argp1 = 0 ;
20895 int res1 = 0 ;
20896 PyObject *swig_obj[1] ;
20897
20898 if (!args) SWIG_fail;
20899 swig_obj[0] = args;
20900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20901 if (!SWIG_IsOK(res1)) {
20902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20903 }
20904 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20905 {
20906 PyThreadState* __tstate = wxPyBeginAllowThreads();
20907 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20908 wxPyEndAllowThreads(__tstate);
20909 if (PyErr_Occurred()) SWIG_fail;
20910 }
20911 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20912 return resultobj;
20913 fail:
20914 return NULL;
20915 }
20916
20917
20918 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20919 PyObject *resultobj = 0;
20920 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20921 SwigValueWrapper<wxVisualAttributes > result;
20922 int val1 ;
20923 int ecode1 = 0 ;
20924 PyObject * obj0 = 0 ;
20925 char * kwnames[] = {
20926 (char *) "variant", NULL
20927 };
20928
20929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20930 if (obj0) {
20931 ecode1 = SWIG_AsVal_int(obj0, &val1);
20932 if (!SWIG_IsOK(ecode1)) {
20933 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20934 }
20935 arg1 = static_cast< wxWindowVariant >(val1);
20936 }
20937 {
20938 if (!wxPyCheckForApp()) SWIG_fail;
20939 PyThreadState* __tstate = wxPyBeginAllowThreads();
20940 result = wxNotebook::GetClassDefaultAttributes(arg1);
20941 wxPyEndAllowThreads(__tstate);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20945 return resultobj;
20946 fail:
20947 return NULL;
20948 }
20949
20950
20951 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20952 PyObject *resultobj = 0;
20953 wxNotebook *arg1 = (wxNotebook *) 0 ;
20954 int arg2 ;
20955 bool result;
20956 void *argp1 = 0 ;
20957 int res1 = 0 ;
20958 int val2 ;
20959 int ecode2 = 0 ;
20960 PyObject * obj0 = 0 ;
20961 PyObject * obj1 = 0 ;
20962 char * kwnames[] = {
20963 (char *) "self",(char *) "nPage", NULL
20964 };
20965
20966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20968 if (!SWIG_IsOK(res1)) {
20969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20970 }
20971 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20972 ecode2 = SWIG_AsVal_int(obj1, &val2);
20973 if (!SWIG_IsOK(ecode2)) {
20974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
20975 }
20976 arg2 = static_cast< int >(val2);
20977 {
20978 PyThreadState* __tstate = wxPyBeginAllowThreads();
20979 result = (bool)(arg1)->SendPageChangingEvent(arg2);
20980 wxPyEndAllowThreads(__tstate);
20981 if (PyErr_Occurred()) SWIG_fail;
20982 }
20983 {
20984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20985 }
20986 return resultobj;
20987 fail:
20988 return NULL;
20989 }
20990
20991
20992 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20993 PyObject *resultobj = 0;
20994 wxNotebook *arg1 = (wxNotebook *) 0 ;
20995 int arg2 ;
20996 int arg3 = (int) -1 ;
20997 void *argp1 = 0 ;
20998 int res1 = 0 ;
20999 int val2 ;
21000 int ecode2 = 0 ;
21001 int val3 ;
21002 int ecode3 = 0 ;
21003 PyObject * obj0 = 0 ;
21004 PyObject * obj1 = 0 ;
21005 PyObject * obj2 = 0 ;
21006 char * kwnames[] = {
21007 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21008 };
21009
21010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21012 if (!SWIG_IsOK(res1)) {
21013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21014 }
21015 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21016 ecode2 = SWIG_AsVal_int(obj1, &val2);
21017 if (!SWIG_IsOK(ecode2)) {
21018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21019 }
21020 arg2 = static_cast< int >(val2);
21021 if (obj2) {
21022 ecode3 = SWIG_AsVal_int(obj2, &val3);
21023 if (!SWIG_IsOK(ecode3)) {
21024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21025 }
21026 arg3 = static_cast< int >(val3);
21027 }
21028 {
21029 PyThreadState* __tstate = wxPyBeginAllowThreads();
21030 (arg1)->SendPageChangedEvent(arg2,arg3);
21031 wxPyEndAllowThreads(__tstate);
21032 if (PyErr_Occurred()) SWIG_fail;
21033 }
21034 resultobj = SWIG_Py_Void();
21035 return resultobj;
21036 fail:
21037 return NULL;
21038 }
21039
21040
21041 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21042 PyObject *obj;
21043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21044 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21045 return SWIG_Py_Void();
21046 }
21047
21048 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21049 return SWIG_Python_InitShadowInstance(args);
21050 }
21051
21052 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21053 PyObject *resultobj = 0;
21054 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21055 int arg2 = (int) 0 ;
21056 int arg3 = (int) -1 ;
21057 int arg4 = (int) -1 ;
21058 wxNotebookEvent *result = 0 ;
21059 int val1 ;
21060 int ecode1 = 0 ;
21061 int val2 ;
21062 int ecode2 = 0 ;
21063 int val3 ;
21064 int ecode3 = 0 ;
21065 int val4 ;
21066 int ecode4 = 0 ;
21067 PyObject * obj0 = 0 ;
21068 PyObject * obj1 = 0 ;
21069 PyObject * obj2 = 0 ;
21070 PyObject * obj3 = 0 ;
21071 char * kwnames[] = {
21072 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21073 };
21074
21075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21076 if (obj0) {
21077 ecode1 = SWIG_AsVal_int(obj0, &val1);
21078 if (!SWIG_IsOK(ecode1)) {
21079 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21080 }
21081 arg1 = static_cast< wxEventType >(val1);
21082 }
21083 if (obj1) {
21084 ecode2 = SWIG_AsVal_int(obj1, &val2);
21085 if (!SWIG_IsOK(ecode2)) {
21086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21087 }
21088 arg2 = static_cast< int >(val2);
21089 }
21090 if (obj2) {
21091 ecode3 = SWIG_AsVal_int(obj2, &val3);
21092 if (!SWIG_IsOK(ecode3)) {
21093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21094 }
21095 arg3 = static_cast< int >(val3);
21096 }
21097 if (obj3) {
21098 ecode4 = SWIG_AsVal_int(obj3, &val4);
21099 if (!SWIG_IsOK(ecode4)) {
21100 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21101 }
21102 arg4 = static_cast< int >(val4);
21103 }
21104 {
21105 PyThreadState* __tstate = wxPyBeginAllowThreads();
21106 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21107 wxPyEndAllowThreads(__tstate);
21108 if (PyErr_Occurred()) SWIG_fail;
21109 }
21110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21111 return resultobj;
21112 fail:
21113 return NULL;
21114 }
21115
21116
21117 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21118 PyObject *obj;
21119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21120 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21121 return SWIG_Py_Void();
21122 }
21123
21124 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21125 return SWIG_Python_InitShadowInstance(args);
21126 }
21127
21128 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21129 PyObject *resultobj = 0;
21130 wxWindow *arg1 = (wxWindow *) 0 ;
21131 int arg2 = (int) -1 ;
21132 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21133 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21134 wxSize const &arg4_defvalue = wxDefaultSize ;
21135 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21136 long arg5 = (long) 0 ;
21137 wxString const &arg6_defvalue = wxPyEmptyString ;
21138 wxString *arg6 = (wxString *) &arg6_defvalue ;
21139 wxListbook *result = 0 ;
21140 void *argp1 = 0 ;
21141 int res1 = 0 ;
21142 int val2 ;
21143 int ecode2 = 0 ;
21144 wxPoint temp3 ;
21145 wxSize temp4 ;
21146 long val5 ;
21147 int ecode5 = 0 ;
21148 bool temp6 = false ;
21149 PyObject * obj0 = 0 ;
21150 PyObject * obj1 = 0 ;
21151 PyObject * obj2 = 0 ;
21152 PyObject * obj3 = 0 ;
21153 PyObject * obj4 = 0 ;
21154 PyObject * obj5 = 0 ;
21155 char * kwnames[] = {
21156 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21157 };
21158
21159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21161 if (!SWIG_IsOK(res1)) {
21162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21163 }
21164 arg1 = reinterpret_cast< wxWindow * >(argp1);
21165 if (obj1) {
21166 ecode2 = SWIG_AsVal_int(obj1, &val2);
21167 if (!SWIG_IsOK(ecode2)) {
21168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21169 }
21170 arg2 = static_cast< int >(val2);
21171 }
21172 if (obj2) {
21173 {
21174 arg3 = &temp3;
21175 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21176 }
21177 }
21178 if (obj3) {
21179 {
21180 arg4 = &temp4;
21181 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21182 }
21183 }
21184 if (obj4) {
21185 ecode5 = SWIG_AsVal_long(obj4, &val5);
21186 if (!SWIG_IsOK(ecode5)) {
21187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21188 }
21189 arg5 = static_cast< long >(val5);
21190 }
21191 if (obj5) {
21192 {
21193 arg6 = wxString_in_helper(obj5);
21194 if (arg6 == NULL) SWIG_fail;
21195 temp6 = true;
21196 }
21197 }
21198 {
21199 if (!wxPyCheckForApp()) SWIG_fail;
21200 PyThreadState* __tstate = wxPyBeginAllowThreads();
21201 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21202 wxPyEndAllowThreads(__tstate);
21203 if (PyErr_Occurred()) SWIG_fail;
21204 }
21205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21206 {
21207 if (temp6)
21208 delete arg6;
21209 }
21210 return resultobj;
21211 fail:
21212 {
21213 if (temp6)
21214 delete arg6;
21215 }
21216 return NULL;
21217 }
21218
21219
21220 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21221 PyObject *resultobj = 0;
21222 wxListbook *result = 0 ;
21223
21224 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21225 {
21226 if (!wxPyCheckForApp()) SWIG_fail;
21227 PyThreadState* __tstate = wxPyBeginAllowThreads();
21228 result = (wxListbook *)new wxListbook();
21229 wxPyEndAllowThreads(__tstate);
21230 if (PyErr_Occurred()) SWIG_fail;
21231 }
21232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21233 return resultobj;
21234 fail:
21235 return NULL;
21236 }
21237
21238
21239 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21240 PyObject *resultobj = 0;
21241 wxListbook *arg1 = (wxListbook *) 0 ;
21242 wxWindow *arg2 = (wxWindow *) 0 ;
21243 int arg3 = (int) -1 ;
21244 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21245 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21246 wxSize const &arg5_defvalue = wxDefaultSize ;
21247 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21248 long arg6 = (long) 0 ;
21249 wxString const &arg7_defvalue = wxPyEmptyString ;
21250 wxString *arg7 = (wxString *) &arg7_defvalue ;
21251 bool result;
21252 void *argp1 = 0 ;
21253 int res1 = 0 ;
21254 void *argp2 = 0 ;
21255 int res2 = 0 ;
21256 int val3 ;
21257 int ecode3 = 0 ;
21258 wxPoint temp4 ;
21259 wxSize temp5 ;
21260 long val6 ;
21261 int ecode6 = 0 ;
21262 bool temp7 = false ;
21263 PyObject * obj0 = 0 ;
21264 PyObject * obj1 = 0 ;
21265 PyObject * obj2 = 0 ;
21266 PyObject * obj3 = 0 ;
21267 PyObject * obj4 = 0 ;
21268 PyObject * obj5 = 0 ;
21269 PyObject * obj6 = 0 ;
21270 char * kwnames[] = {
21271 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21272 };
21273
21274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21276 if (!SWIG_IsOK(res1)) {
21277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21278 }
21279 arg1 = reinterpret_cast< wxListbook * >(argp1);
21280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21281 if (!SWIG_IsOK(res2)) {
21282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21283 }
21284 arg2 = reinterpret_cast< wxWindow * >(argp2);
21285 if (obj2) {
21286 ecode3 = SWIG_AsVal_int(obj2, &val3);
21287 if (!SWIG_IsOK(ecode3)) {
21288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21289 }
21290 arg3 = static_cast< int >(val3);
21291 }
21292 if (obj3) {
21293 {
21294 arg4 = &temp4;
21295 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21296 }
21297 }
21298 if (obj4) {
21299 {
21300 arg5 = &temp5;
21301 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21302 }
21303 }
21304 if (obj5) {
21305 ecode6 = SWIG_AsVal_long(obj5, &val6);
21306 if (!SWIG_IsOK(ecode6)) {
21307 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21308 }
21309 arg6 = static_cast< long >(val6);
21310 }
21311 if (obj6) {
21312 {
21313 arg7 = wxString_in_helper(obj6);
21314 if (arg7 == NULL) SWIG_fail;
21315 temp7 = true;
21316 }
21317 }
21318 {
21319 PyThreadState* __tstate = wxPyBeginAllowThreads();
21320 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21321 wxPyEndAllowThreads(__tstate);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 }
21324 {
21325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21326 }
21327 {
21328 if (temp7)
21329 delete arg7;
21330 }
21331 return resultobj;
21332 fail:
21333 {
21334 if (temp7)
21335 delete arg7;
21336 }
21337 return NULL;
21338 }
21339
21340
21341 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21342 PyObject *resultobj = 0;
21343 wxListbook *arg1 = (wxListbook *) 0 ;
21344 wxListView *result = 0 ;
21345 void *argp1 = 0 ;
21346 int res1 = 0 ;
21347 PyObject *swig_obj[1] ;
21348
21349 if (!args) SWIG_fail;
21350 swig_obj[0] = args;
21351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21352 if (!SWIG_IsOK(res1)) {
21353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21354 }
21355 arg1 = reinterpret_cast< wxListbook * >(argp1);
21356 {
21357 PyThreadState* __tstate = wxPyBeginAllowThreads();
21358 result = (wxListView *)(arg1)->GetListView();
21359 wxPyEndAllowThreads(__tstate);
21360 if (PyErr_Occurred()) SWIG_fail;
21361 }
21362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21363 return resultobj;
21364 fail:
21365 return NULL;
21366 }
21367
21368
21369 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21370 PyObject *obj;
21371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21372 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21373 return SWIG_Py_Void();
21374 }
21375
21376 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21377 return SWIG_Python_InitShadowInstance(args);
21378 }
21379
21380 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21381 PyObject *resultobj = 0;
21382 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21383 int arg2 = (int) 0 ;
21384 int arg3 = (int) -1 ;
21385 int arg4 = (int) -1 ;
21386 wxListbookEvent *result = 0 ;
21387 int val1 ;
21388 int ecode1 = 0 ;
21389 int val2 ;
21390 int ecode2 = 0 ;
21391 int val3 ;
21392 int ecode3 = 0 ;
21393 int val4 ;
21394 int ecode4 = 0 ;
21395 PyObject * obj0 = 0 ;
21396 PyObject * obj1 = 0 ;
21397 PyObject * obj2 = 0 ;
21398 PyObject * obj3 = 0 ;
21399 char * kwnames[] = {
21400 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21401 };
21402
21403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21404 if (obj0) {
21405 ecode1 = SWIG_AsVal_int(obj0, &val1);
21406 if (!SWIG_IsOK(ecode1)) {
21407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21408 }
21409 arg1 = static_cast< wxEventType >(val1);
21410 }
21411 if (obj1) {
21412 ecode2 = SWIG_AsVal_int(obj1, &val2);
21413 if (!SWIG_IsOK(ecode2)) {
21414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21415 }
21416 arg2 = static_cast< int >(val2);
21417 }
21418 if (obj2) {
21419 ecode3 = SWIG_AsVal_int(obj2, &val3);
21420 if (!SWIG_IsOK(ecode3)) {
21421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21422 }
21423 arg3 = static_cast< int >(val3);
21424 }
21425 if (obj3) {
21426 ecode4 = SWIG_AsVal_int(obj3, &val4);
21427 if (!SWIG_IsOK(ecode4)) {
21428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21429 }
21430 arg4 = static_cast< int >(val4);
21431 }
21432 {
21433 PyThreadState* __tstate = wxPyBeginAllowThreads();
21434 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21435 wxPyEndAllowThreads(__tstate);
21436 if (PyErr_Occurred()) SWIG_fail;
21437 }
21438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21439 return resultobj;
21440 fail:
21441 return NULL;
21442 }
21443
21444
21445 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21446 PyObject *obj;
21447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21448 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21449 return SWIG_Py_Void();
21450 }
21451
21452 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21453 return SWIG_Python_InitShadowInstance(args);
21454 }
21455
21456 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21457 PyObject *resultobj = 0;
21458 wxWindow *arg1 = (wxWindow *) 0 ;
21459 int arg2 ;
21460 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21461 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21462 wxSize const &arg4_defvalue = wxDefaultSize ;
21463 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21464 long arg5 = (long) 0 ;
21465 wxString const &arg6_defvalue = wxPyEmptyString ;
21466 wxString *arg6 = (wxString *) &arg6_defvalue ;
21467 wxChoicebook *result = 0 ;
21468 void *argp1 = 0 ;
21469 int res1 = 0 ;
21470 int val2 ;
21471 int ecode2 = 0 ;
21472 wxPoint temp3 ;
21473 wxSize temp4 ;
21474 long val5 ;
21475 int ecode5 = 0 ;
21476 bool temp6 = false ;
21477 PyObject * obj0 = 0 ;
21478 PyObject * obj1 = 0 ;
21479 PyObject * obj2 = 0 ;
21480 PyObject * obj3 = 0 ;
21481 PyObject * obj4 = 0 ;
21482 PyObject * obj5 = 0 ;
21483 char * kwnames[] = {
21484 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21485 };
21486
21487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21489 if (!SWIG_IsOK(res1)) {
21490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21491 }
21492 arg1 = reinterpret_cast< wxWindow * >(argp1);
21493 ecode2 = SWIG_AsVal_int(obj1, &val2);
21494 if (!SWIG_IsOK(ecode2)) {
21495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21496 }
21497 arg2 = static_cast< int >(val2);
21498 if (obj2) {
21499 {
21500 arg3 = &temp3;
21501 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21502 }
21503 }
21504 if (obj3) {
21505 {
21506 arg4 = &temp4;
21507 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21508 }
21509 }
21510 if (obj4) {
21511 ecode5 = SWIG_AsVal_long(obj4, &val5);
21512 if (!SWIG_IsOK(ecode5)) {
21513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21514 }
21515 arg5 = static_cast< long >(val5);
21516 }
21517 if (obj5) {
21518 {
21519 arg6 = wxString_in_helper(obj5);
21520 if (arg6 == NULL) SWIG_fail;
21521 temp6 = true;
21522 }
21523 }
21524 {
21525 if (!wxPyCheckForApp()) SWIG_fail;
21526 PyThreadState* __tstate = wxPyBeginAllowThreads();
21527 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21532 {
21533 if (temp6)
21534 delete arg6;
21535 }
21536 return resultobj;
21537 fail:
21538 {
21539 if (temp6)
21540 delete arg6;
21541 }
21542 return NULL;
21543 }
21544
21545
21546 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21547 PyObject *resultobj = 0;
21548 wxChoicebook *result = 0 ;
21549
21550 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21551 {
21552 if (!wxPyCheckForApp()) SWIG_fail;
21553 PyThreadState* __tstate = wxPyBeginAllowThreads();
21554 result = (wxChoicebook *)new wxChoicebook();
21555 wxPyEndAllowThreads(__tstate);
21556 if (PyErr_Occurred()) SWIG_fail;
21557 }
21558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21559 return resultobj;
21560 fail:
21561 return NULL;
21562 }
21563
21564
21565 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21566 PyObject *resultobj = 0;
21567 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21568 wxWindow *arg2 = (wxWindow *) 0 ;
21569 int arg3 ;
21570 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21571 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21572 wxSize const &arg5_defvalue = wxDefaultSize ;
21573 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21574 long arg6 = (long) 0 ;
21575 wxString const &arg7_defvalue = wxPyEmptyString ;
21576 wxString *arg7 = (wxString *) &arg7_defvalue ;
21577 bool result;
21578 void *argp1 = 0 ;
21579 int res1 = 0 ;
21580 void *argp2 = 0 ;
21581 int res2 = 0 ;
21582 int val3 ;
21583 int ecode3 = 0 ;
21584 wxPoint temp4 ;
21585 wxSize temp5 ;
21586 long val6 ;
21587 int ecode6 = 0 ;
21588 bool temp7 = false ;
21589 PyObject * obj0 = 0 ;
21590 PyObject * obj1 = 0 ;
21591 PyObject * obj2 = 0 ;
21592 PyObject * obj3 = 0 ;
21593 PyObject * obj4 = 0 ;
21594 PyObject * obj5 = 0 ;
21595 PyObject * obj6 = 0 ;
21596 char * kwnames[] = {
21597 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21598 };
21599
21600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21602 if (!SWIG_IsOK(res1)) {
21603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21604 }
21605 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21607 if (!SWIG_IsOK(res2)) {
21608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21609 }
21610 arg2 = reinterpret_cast< wxWindow * >(argp2);
21611 ecode3 = SWIG_AsVal_int(obj2, &val3);
21612 if (!SWIG_IsOK(ecode3)) {
21613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21614 }
21615 arg3 = static_cast< int >(val3);
21616 if (obj3) {
21617 {
21618 arg4 = &temp4;
21619 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21620 }
21621 }
21622 if (obj4) {
21623 {
21624 arg5 = &temp5;
21625 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21626 }
21627 }
21628 if (obj5) {
21629 ecode6 = SWIG_AsVal_long(obj5, &val6);
21630 if (!SWIG_IsOK(ecode6)) {
21631 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21632 }
21633 arg6 = static_cast< long >(val6);
21634 }
21635 if (obj6) {
21636 {
21637 arg7 = wxString_in_helper(obj6);
21638 if (arg7 == NULL) SWIG_fail;
21639 temp7 = true;
21640 }
21641 }
21642 {
21643 PyThreadState* __tstate = wxPyBeginAllowThreads();
21644 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21645 wxPyEndAllowThreads(__tstate);
21646 if (PyErr_Occurred()) SWIG_fail;
21647 }
21648 {
21649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21650 }
21651 {
21652 if (temp7)
21653 delete arg7;
21654 }
21655 return resultobj;
21656 fail:
21657 {
21658 if (temp7)
21659 delete arg7;
21660 }
21661 return NULL;
21662 }
21663
21664
21665 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21666 PyObject *resultobj = 0;
21667 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21668 wxChoice *result = 0 ;
21669 void *argp1 = 0 ;
21670 int res1 = 0 ;
21671 PyObject *swig_obj[1] ;
21672
21673 if (!args) SWIG_fail;
21674 swig_obj[0] = args;
21675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21676 if (!SWIG_IsOK(res1)) {
21677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21678 }
21679 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21680 {
21681 PyThreadState* __tstate = wxPyBeginAllowThreads();
21682 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21683 wxPyEndAllowThreads(__tstate);
21684 if (PyErr_Occurred()) SWIG_fail;
21685 }
21686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21687 return resultobj;
21688 fail:
21689 return NULL;
21690 }
21691
21692
21693 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21694 PyObject *obj;
21695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21696 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21697 return SWIG_Py_Void();
21698 }
21699
21700 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21701 return SWIG_Python_InitShadowInstance(args);
21702 }
21703
21704 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21705 PyObject *resultobj = 0;
21706 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21707 int arg2 = (int) 0 ;
21708 int arg3 = (int) -1 ;
21709 int arg4 = (int) -1 ;
21710 wxChoicebookEvent *result = 0 ;
21711 int val1 ;
21712 int ecode1 = 0 ;
21713 int val2 ;
21714 int ecode2 = 0 ;
21715 int val3 ;
21716 int ecode3 = 0 ;
21717 int val4 ;
21718 int ecode4 = 0 ;
21719 PyObject * obj0 = 0 ;
21720 PyObject * obj1 = 0 ;
21721 PyObject * obj2 = 0 ;
21722 PyObject * obj3 = 0 ;
21723 char * kwnames[] = {
21724 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21725 };
21726
21727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21728 if (obj0) {
21729 ecode1 = SWIG_AsVal_int(obj0, &val1);
21730 if (!SWIG_IsOK(ecode1)) {
21731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21732 }
21733 arg1 = static_cast< wxEventType >(val1);
21734 }
21735 if (obj1) {
21736 ecode2 = SWIG_AsVal_int(obj1, &val2);
21737 if (!SWIG_IsOK(ecode2)) {
21738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21739 }
21740 arg2 = static_cast< int >(val2);
21741 }
21742 if (obj2) {
21743 ecode3 = SWIG_AsVal_int(obj2, &val3);
21744 if (!SWIG_IsOK(ecode3)) {
21745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21746 }
21747 arg3 = static_cast< int >(val3);
21748 }
21749 if (obj3) {
21750 ecode4 = SWIG_AsVal_int(obj3, &val4);
21751 if (!SWIG_IsOK(ecode4)) {
21752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21753 }
21754 arg4 = static_cast< int >(val4);
21755 }
21756 {
21757 PyThreadState* __tstate = wxPyBeginAllowThreads();
21758 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21759 wxPyEndAllowThreads(__tstate);
21760 if (PyErr_Occurred()) SWIG_fail;
21761 }
21762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21763 return resultobj;
21764 fail:
21765 return NULL;
21766 }
21767
21768
21769 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21770 PyObject *obj;
21771 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21772 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21773 return SWIG_Py_Void();
21774 }
21775
21776 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21777 return SWIG_Python_InitShadowInstance(args);
21778 }
21779
21780 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21781 PyObject *resultobj = 0;
21782 wxWindow *arg1 = (wxWindow *) 0 ;
21783 int arg2 ;
21784 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21785 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21786 wxSize const &arg4_defvalue = wxDefaultSize ;
21787 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21788 long arg5 = (long) wxBK_DEFAULT ;
21789 wxString const &arg6_defvalue = wxPyEmptyString ;
21790 wxString *arg6 = (wxString *) &arg6_defvalue ;
21791 wxTreebook *result = 0 ;
21792 void *argp1 = 0 ;
21793 int res1 = 0 ;
21794 int val2 ;
21795 int ecode2 = 0 ;
21796 wxPoint temp3 ;
21797 wxSize temp4 ;
21798 long val5 ;
21799 int ecode5 = 0 ;
21800 bool temp6 = false ;
21801 PyObject * obj0 = 0 ;
21802 PyObject * obj1 = 0 ;
21803 PyObject * obj2 = 0 ;
21804 PyObject * obj3 = 0 ;
21805 PyObject * obj4 = 0 ;
21806 PyObject * obj5 = 0 ;
21807 char * kwnames[] = {
21808 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21809 };
21810
21811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21813 if (!SWIG_IsOK(res1)) {
21814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21815 }
21816 arg1 = reinterpret_cast< wxWindow * >(argp1);
21817 ecode2 = SWIG_AsVal_int(obj1, &val2);
21818 if (!SWIG_IsOK(ecode2)) {
21819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21820 }
21821 arg2 = static_cast< int >(val2);
21822 if (obj2) {
21823 {
21824 arg3 = &temp3;
21825 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21826 }
21827 }
21828 if (obj3) {
21829 {
21830 arg4 = &temp4;
21831 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21832 }
21833 }
21834 if (obj4) {
21835 ecode5 = SWIG_AsVal_long(obj4, &val5);
21836 if (!SWIG_IsOK(ecode5)) {
21837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21838 }
21839 arg5 = static_cast< long >(val5);
21840 }
21841 if (obj5) {
21842 {
21843 arg6 = wxString_in_helper(obj5);
21844 if (arg6 == NULL) SWIG_fail;
21845 temp6 = true;
21846 }
21847 }
21848 {
21849 if (!wxPyCheckForApp()) SWIG_fail;
21850 PyThreadState* __tstate = wxPyBeginAllowThreads();
21851 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21852 wxPyEndAllowThreads(__tstate);
21853 if (PyErr_Occurred()) SWIG_fail;
21854 }
21855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21856 {
21857 if (temp6)
21858 delete arg6;
21859 }
21860 return resultobj;
21861 fail:
21862 {
21863 if (temp6)
21864 delete arg6;
21865 }
21866 return NULL;
21867 }
21868
21869
21870 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21871 PyObject *resultobj = 0;
21872 wxTreebook *result = 0 ;
21873
21874 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21875 {
21876 if (!wxPyCheckForApp()) SWIG_fail;
21877 PyThreadState* __tstate = wxPyBeginAllowThreads();
21878 result = (wxTreebook *)new wxTreebook();
21879 wxPyEndAllowThreads(__tstate);
21880 if (PyErr_Occurred()) SWIG_fail;
21881 }
21882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21883 return resultobj;
21884 fail:
21885 return NULL;
21886 }
21887
21888
21889 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21890 PyObject *resultobj = 0;
21891 wxTreebook *arg1 = (wxTreebook *) 0 ;
21892 wxWindow *arg2 = (wxWindow *) 0 ;
21893 int arg3 ;
21894 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21895 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21896 wxSize const &arg5_defvalue = wxDefaultSize ;
21897 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21898 long arg6 = (long) wxBK_DEFAULT ;
21899 wxString const &arg7_defvalue = wxPyEmptyString ;
21900 wxString *arg7 = (wxString *) &arg7_defvalue ;
21901 bool result;
21902 void *argp1 = 0 ;
21903 int res1 = 0 ;
21904 void *argp2 = 0 ;
21905 int res2 = 0 ;
21906 int val3 ;
21907 int ecode3 = 0 ;
21908 wxPoint temp4 ;
21909 wxSize temp5 ;
21910 long val6 ;
21911 int ecode6 = 0 ;
21912 bool temp7 = false ;
21913 PyObject * obj0 = 0 ;
21914 PyObject * obj1 = 0 ;
21915 PyObject * obj2 = 0 ;
21916 PyObject * obj3 = 0 ;
21917 PyObject * obj4 = 0 ;
21918 PyObject * obj5 = 0 ;
21919 PyObject * obj6 = 0 ;
21920 char * kwnames[] = {
21921 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21922 };
21923
21924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21926 if (!SWIG_IsOK(res1)) {
21927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21928 }
21929 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21930 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21931 if (!SWIG_IsOK(res2)) {
21932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21933 }
21934 arg2 = reinterpret_cast< wxWindow * >(argp2);
21935 ecode3 = SWIG_AsVal_int(obj2, &val3);
21936 if (!SWIG_IsOK(ecode3)) {
21937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21938 }
21939 arg3 = static_cast< int >(val3);
21940 if (obj3) {
21941 {
21942 arg4 = &temp4;
21943 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21944 }
21945 }
21946 if (obj4) {
21947 {
21948 arg5 = &temp5;
21949 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21950 }
21951 }
21952 if (obj5) {
21953 ecode6 = SWIG_AsVal_long(obj5, &val6);
21954 if (!SWIG_IsOK(ecode6)) {
21955 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21956 }
21957 arg6 = static_cast< long >(val6);
21958 }
21959 if (obj6) {
21960 {
21961 arg7 = wxString_in_helper(obj6);
21962 if (arg7 == NULL) SWIG_fail;
21963 temp7 = true;
21964 }
21965 }
21966 {
21967 PyThreadState* __tstate = wxPyBeginAllowThreads();
21968 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21969 wxPyEndAllowThreads(__tstate);
21970 if (PyErr_Occurred()) SWIG_fail;
21971 }
21972 {
21973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21974 }
21975 {
21976 if (temp7)
21977 delete arg7;
21978 }
21979 return resultobj;
21980 fail:
21981 {
21982 if (temp7)
21983 delete arg7;
21984 }
21985 return NULL;
21986 }
21987
21988
21989 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21990 PyObject *resultobj = 0;
21991 wxTreebook *arg1 = (wxTreebook *) 0 ;
21992 size_t arg2 ;
21993 wxWindow *arg3 = (wxWindow *) 0 ;
21994 wxString *arg4 = 0 ;
21995 bool arg5 = (bool) false ;
21996 int arg6 = (int) wxNOT_FOUND ;
21997 bool result;
21998 void *argp1 = 0 ;
21999 int res1 = 0 ;
22000 size_t val2 ;
22001 int ecode2 = 0 ;
22002 void *argp3 = 0 ;
22003 int res3 = 0 ;
22004 bool temp4 = false ;
22005 bool val5 ;
22006 int ecode5 = 0 ;
22007 int val6 ;
22008 int ecode6 = 0 ;
22009 PyObject * obj0 = 0 ;
22010 PyObject * obj1 = 0 ;
22011 PyObject * obj2 = 0 ;
22012 PyObject * obj3 = 0 ;
22013 PyObject * obj4 = 0 ;
22014 PyObject * obj5 = 0 ;
22015 char * kwnames[] = {
22016 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22017 };
22018
22019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22021 if (!SWIG_IsOK(res1)) {
22022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22023 }
22024 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22025 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22026 if (!SWIG_IsOK(ecode2)) {
22027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22028 }
22029 arg2 = static_cast< size_t >(val2);
22030 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22031 if (!SWIG_IsOK(res3)) {
22032 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22033 }
22034 arg3 = reinterpret_cast< wxWindow * >(argp3);
22035 {
22036 arg4 = wxString_in_helper(obj3);
22037 if (arg4 == NULL) SWIG_fail;
22038 temp4 = true;
22039 }
22040 if (obj4) {
22041 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22042 if (!SWIG_IsOK(ecode5)) {
22043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22044 }
22045 arg5 = static_cast< bool >(val5);
22046 }
22047 if (obj5) {
22048 ecode6 = SWIG_AsVal_int(obj5, &val6);
22049 if (!SWIG_IsOK(ecode6)) {
22050 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22051 }
22052 arg6 = static_cast< int >(val6);
22053 }
22054 {
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 {
22061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22062 }
22063 {
22064 if (temp4)
22065 delete arg4;
22066 }
22067 return resultobj;
22068 fail:
22069 {
22070 if (temp4)
22071 delete arg4;
22072 }
22073 return NULL;
22074 }
22075
22076
22077 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22078 PyObject *resultobj = 0;
22079 wxTreebook *arg1 = (wxTreebook *) 0 ;
22080 wxWindow *arg2 = (wxWindow *) 0 ;
22081 wxString *arg3 = 0 ;
22082 bool arg4 = (bool) false ;
22083 int arg5 = (int) wxNOT_FOUND ;
22084 bool result;
22085 void *argp1 = 0 ;
22086 int res1 = 0 ;
22087 void *argp2 = 0 ;
22088 int res2 = 0 ;
22089 bool temp3 = false ;
22090 bool val4 ;
22091 int ecode4 = 0 ;
22092 int val5 ;
22093 int ecode5 = 0 ;
22094 PyObject * obj0 = 0 ;
22095 PyObject * obj1 = 0 ;
22096 PyObject * obj2 = 0 ;
22097 PyObject * obj3 = 0 ;
22098 PyObject * obj4 = 0 ;
22099 char * kwnames[] = {
22100 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22101 };
22102
22103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22105 if (!SWIG_IsOK(res1)) {
22106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22107 }
22108 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22109 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22110 if (!SWIG_IsOK(res2)) {
22111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22112 }
22113 arg2 = reinterpret_cast< wxWindow * >(argp2);
22114 {
22115 arg3 = wxString_in_helper(obj2);
22116 if (arg3 == NULL) SWIG_fail;
22117 temp3 = true;
22118 }
22119 if (obj3) {
22120 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22121 if (!SWIG_IsOK(ecode4)) {
22122 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22123 }
22124 arg4 = static_cast< bool >(val4);
22125 }
22126 if (obj4) {
22127 ecode5 = SWIG_AsVal_int(obj4, &val5);
22128 if (!SWIG_IsOK(ecode5)) {
22129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22130 }
22131 arg5 = static_cast< int >(val5);
22132 }
22133 {
22134 PyThreadState* __tstate = wxPyBeginAllowThreads();
22135 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22136 wxPyEndAllowThreads(__tstate);
22137 if (PyErr_Occurred()) SWIG_fail;
22138 }
22139 {
22140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22141 }
22142 {
22143 if (temp3)
22144 delete arg3;
22145 }
22146 return resultobj;
22147 fail:
22148 {
22149 if (temp3)
22150 delete arg3;
22151 }
22152 return NULL;
22153 }
22154
22155
22156 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22157 PyObject *resultobj = 0;
22158 wxTreebook *arg1 = (wxTreebook *) 0 ;
22159 size_t arg2 ;
22160 bool result;
22161 void *argp1 = 0 ;
22162 int res1 = 0 ;
22163 size_t val2 ;
22164 int ecode2 = 0 ;
22165 PyObject * obj0 = 0 ;
22166 PyObject * obj1 = 0 ;
22167 char * kwnames[] = {
22168 (char *) "self",(char *) "pos", NULL
22169 };
22170
22171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22173 if (!SWIG_IsOK(res1)) {
22174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22175 }
22176 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22177 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22178 if (!SWIG_IsOK(ecode2)) {
22179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22180 }
22181 arg2 = static_cast< size_t >(val2);
22182 {
22183 PyThreadState* __tstate = wxPyBeginAllowThreads();
22184 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22185 wxPyEndAllowThreads(__tstate);
22186 if (PyErr_Occurred()) SWIG_fail;
22187 }
22188 {
22189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22190 }
22191 return resultobj;
22192 fail:
22193 return NULL;
22194 }
22195
22196
22197 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22198 PyObject *resultobj = 0;
22199 wxTreebook *arg1 = (wxTreebook *) 0 ;
22200 size_t arg2 ;
22201 bool arg3 = (bool) true ;
22202 bool result;
22203 void *argp1 = 0 ;
22204 int res1 = 0 ;
22205 size_t val2 ;
22206 int ecode2 = 0 ;
22207 bool val3 ;
22208 int ecode3 = 0 ;
22209 PyObject * obj0 = 0 ;
22210 PyObject * obj1 = 0 ;
22211 PyObject * obj2 = 0 ;
22212 char * kwnames[] = {
22213 (char *) "self",(char *) "pos",(char *) "expand", NULL
22214 };
22215
22216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22218 if (!SWIG_IsOK(res1)) {
22219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22220 }
22221 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22222 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22223 if (!SWIG_IsOK(ecode2)) {
22224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22225 }
22226 arg2 = static_cast< size_t >(val2);
22227 if (obj2) {
22228 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22229 if (!SWIG_IsOK(ecode3)) {
22230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22231 }
22232 arg3 = static_cast< bool >(val3);
22233 }
22234 {
22235 PyThreadState* __tstate = wxPyBeginAllowThreads();
22236 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22237 wxPyEndAllowThreads(__tstate);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 }
22240 {
22241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22242 }
22243 return resultobj;
22244 fail:
22245 return NULL;
22246 }
22247
22248
22249 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22250 PyObject *resultobj = 0;
22251 wxTreebook *arg1 = (wxTreebook *) 0 ;
22252 size_t arg2 ;
22253 bool result;
22254 void *argp1 = 0 ;
22255 int res1 = 0 ;
22256 size_t val2 ;
22257 int ecode2 = 0 ;
22258 PyObject * obj0 = 0 ;
22259 PyObject * obj1 = 0 ;
22260 char * kwnames[] = {
22261 (char *) "self",(char *) "pos", NULL
22262 };
22263
22264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22266 if (!SWIG_IsOK(res1)) {
22267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22268 }
22269 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22270 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22271 if (!SWIG_IsOK(ecode2)) {
22272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22273 }
22274 arg2 = static_cast< size_t >(val2);
22275 {
22276 PyThreadState* __tstate = wxPyBeginAllowThreads();
22277 result = (bool)(arg1)->CollapseNode(arg2);
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 {
22282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22283 }
22284 return resultobj;
22285 fail:
22286 return NULL;
22287 }
22288
22289
22290 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22291 PyObject *resultobj = 0;
22292 wxTreebook *arg1 = (wxTreebook *) 0 ;
22293 size_t arg2 ;
22294 int result;
22295 void *argp1 = 0 ;
22296 int res1 = 0 ;
22297 size_t val2 ;
22298 int ecode2 = 0 ;
22299 PyObject * obj0 = 0 ;
22300 PyObject * obj1 = 0 ;
22301 char * kwnames[] = {
22302 (char *) "self",(char *) "pos", NULL
22303 };
22304
22305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22307 if (!SWIG_IsOK(res1)) {
22308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22309 }
22310 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22311 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22312 if (!SWIG_IsOK(ecode2)) {
22313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22314 }
22315 arg2 = static_cast< size_t >(val2);
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
22318 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22319 wxPyEndAllowThreads(__tstate);
22320 if (PyErr_Occurred()) SWIG_fail;
22321 }
22322 resultobj = SWIG_From_int(static_cast< int >(result));
22323 return resultobj;
22324 fail:
22325 return NULL;
22326 }
22327
22328
22329 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22330 PyObject *resultobj = 0;
22331 wxTreebook *arg1 = (wxTreebook *) 0 ;
22332 wxPyTreeCtrl *result = 0 ;
22333 void *argp1 = 0 ;
22334 int res1 = 0 ;
22335 PyObject *swig_obj[1] ;
22336
22337 if (!args) SWIG_fail;
22338 swig_obj[0] = args;
22339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22340 if (!SWIG_IsOK(res1)) {
22341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22342 }
22343 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
22346 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 {
22351 resultobj = wxPyMake_wxObject(result, (bool)0);
22352 }
22353 return resultobj;
22354 fail:
22355 return NULL;
22356 }
22357
22358
22359 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22360 PyObject *obj;
22361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22362 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22363 return SWIG_Py_Void();
22364 }
22365
22366 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22367 return SWIG_Python_InitShadowInstance(args);
22368 }
22369
22370 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22371 PyObject *resultobj = 0;
22372 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22373 int arg2 = (int) 0 ;
22374 int arg3 = (int) wxNOT_FOUND ;
22375 int arg4 = (int) wxNOT_FOUND ;
22376 wxTreebookEvent *result = 0 ;
22377 int val1 ;
22378 int ecode1 = 0 ;
22379 int val2 ;
22380 int ecode2 = 0 ;
22381 int val3 ;
22382 int ecode3 = 0 ;
22383 int val4 ;
22384 int ecode4 = 0 ;
22385 PyObject * obj0 = 0 ;
22386 PyObject * obj1 = 0 ;
22387 PyObject * obj2 = 0 ;
22388 PyObject * obj3 = 0 ;
22389 char * kwnames[] = {
22390 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22391 };
22392
22393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22394 if (obj0) {
22395 ecode1 = SWIG_AsVal_int(obj0, &val1);
22396 if (!SWIG_IsOK(ecode1)) {
22397 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22398 }
22399 arg1 = static_cast< wxEventType >(val1);
22400 }
22401 if (obj1) {
22402 ecode2 = SWIG_AsVal_int(obj1, &val2);
22403 if (!SWIG_IsOK(ecode2)) {
22404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22405 }
22406 arg2 = static_cast< int >(val2);
22407 }
22408 if (obj2) {
22409 ecode3 = SWIG_AsVal_int(obj2, &val3);
22410 if (!SWIG_IsOK(ecode3)) {
22411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22412 }
22413 arg3 = static_cast< int >(val3);
22414 }
22415 if (obj3) {
22416 ecode4 = SWIG_AsVal_int(obj3, &val4);
22417 if (!SWIG_IsOK(ecode4)) {
22418 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22419 }
22420 arg4 = static_cast< int >(val4);
22421 }
22422 {
22423 PyThreadState* __tstate = wxPyBeginAllowThreads();
22424 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22425 wxPyEndAllowThreads(__tstate);
22426 if (PyErr_Occurred()) SWIG_fail;
22427 }
22428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22429 return resultobj;
22430 fail:
22431 return NULL;
22432 }
22433
22434
22435 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22436 PyObject *obj;
22437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22438 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22439 return SWIG_Py_Void();
22440 }
22441
22442 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22443 return SWIG_Python_InitShadowInstance(args);
22444 }
22445
22446 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22447 PyObject *resultobj = 0;
22448 wxWindow *arg1 = (wxWindow *) 0 ;
22449 int arg2 ;
22450 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22451 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22452 wxSize const &arg4_defvalue = wxDefaultSize ;
22453 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22454 long arg5 = (long) wxBK_DEFAULT ;
22455 wxString const &arg6_defvalue = wxPyEmptyString ;
22456 wxString *arg6 = (wxString *) &arg6_defvalue ;
22457 wxToolbook *result = 0 ;
22458 void *argp1 = 0 ;
22459 int res1 = 0 ;
22460 int val2 ;
22461 int ecode2 = 0 ;
22462 wxPoint temp3 ;
22463 wxSize temp4 ;
22464 long val5 ;
22465 int ecode5 = 0 ;
22466 bool temp6 = false ;
22467 PyObject * obj0 = 0 ;
22468 PyObject * obj1 = 0 ;
22469 PyObject * obj2 = 0 ;
22470 PyObject * obj3 = 0 ;
22471 PyObject * obj4 = 0 ;
22472 PyObject * obj5 = 0 ;
22473 char * kwnames[] = {
22474 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22475 };
22476
22477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22479 if (!SWIG_IsOK(res1)) {
22480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22481 }
22482 arg1 = reinterpret_cast< wxWindow * >(argp1);
22483 ecode2 = SWIG_AsVal_int(obj1, &val2);
22484 if (!SWIG_IsOK(ecode2)) {
22485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22486 }
22487 arg2 = static_cast< int >(val2);
22488 if (obj2) {
22489 {
22490 arg3 = &temp3;
22491 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22492 }
22493 }
22494 if (obj3) {
22495 {
22496 arg4 = &temp4;
22497 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22498 }
22499 }
22500 if (obj4) {
22501 ecode5 = SWIG_AsVal_long(obj4, &val5);
22502 if (!SWIG_IsOK(ecode5)) {
22503 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22504 }
22505 arg5 = static_cast< long >(val5);
22506 }
22507 if (obj5) {
22508 {
22509 arg6 = wxString_in_helper(obj5);
22510 if (arg6 == NULL) SWIG_fail;
22511 temp6 = true;
22512 }
22513 }
22514 {
22515 PyThreadState* __tstate = wxPyBeginAllowThreads();
22516 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22517 wxPyEndAllowThreads(__tstate);
22518 if (PyErr_Occurred()) SWIG_fail;
22519 }
22520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22521 {
22522 if (temp6)
22523 delete arg6;
22524 }
22525 return resultobj;
22526 fail:
22527 {
22528 if (temp6)
22529 delete arg6;
22530 }
22531 return NULL;
22532 }
22533
22534
22535 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22536 PyObject *resultobj = 0;
22537 wxToolbook *result = 0 ;
22538
22539 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 result = (wxToolbook *)new wxToolbook();
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22547 return resultobj;
22548 fail:
22549 return NULL;
22550 }
22551
22552
22553 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22554 PyObject *resultobj = 0;
22555 wxToolbook *arg1 = (wxToolbook *) 0 ;
22556 wxWindow *arg2 = (wxWindow *) 0 ;
22557 int arg3 ;
22558 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22559 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22560 wxSize const &arg5_defvalue = wxDefaultSize ;
22561 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22562 long arg6 = (long) 0 ;
22563 wxString const &arg7_defvalue = wxEmptyString ;
22564 wxString *arg7 = (wxString *) &arg7_defvalue ;
22565 bool result;
22566 void *argp1 = 0 ;
22567 int res1 = 0 ;
22568 void *argp2 = 0 ;
22569 int res2 = 0 ;
22570 int val3 ;
22571 int ecode3 = 0 ;
22572 wxPoint temp4 ;
22573 wxSize temp5 ;
22574 long val6 ;
22575 int ecode6 = 0 ;
22576 bool temp7 = false ;
22577 PyObject * obj0 = 0 ;
22578 PyObject * obj1 = 0 ;
22579 PyObject * obj2 = 0 ;
22580 PyObject * obj3 = 0 ;
22581 PyObject * obj4 = 0 ;
22582 PyObject * obj5 = 0 ;
22583 PyObject * obj6 = 0 ;
22584 char * kwnames[] = {
22585 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22586 };
22587
22588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22590 if (!SWIG_IsOK(res1)) {
22591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22592 }
22593 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22595 if (!SWIG_IsOK(res2)) {
22596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22597 }
22598 arg2 = reinterpret_cast< wxWindow * >(argp2);
22599 ecode3 = SWIG_AsVal_int(obj2, &val3);
22600 if (!SWIG_IsOK(ecode3)) {
22601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22602 }
22603 arg3 = static_cast< int >(val3);
22604 if (obj3) {
22605 {
22606 arg4 = &temp4;
22607 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22608 }
22609 }
22610 if (obj4) {
22611 {
22612 arg5 = &temp5;
22613 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22614 }
22615 }
22616 if (obj5) {
22617 ecode6 = SWIG_AsVal_long(obj5, &val6);
22618 if (!SWIG_IsOK(ecode6)) {
22619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22620 }
22621 arg6 = static_cast< long >(val6);
22622 }
22623 if (obj6) {
22624 {
22625 arg7 = wxString_in_helper(obj6);
22626 if (arg7 == NULL) SWIG_fail;
22627 temp7 = true;
22628 }
22629 }
22630 {
22631 PyThreadState* __tstate = wxPyBeginAllowThreads();
22632 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22633 wxPyEndAllowThreads(__tstate);
22634 if (PyErr_Occurred()) SWIG_fail;
22635 }
22636 {
22637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22638 }
22639 {
22640 if (temp7)
22641 delete arg7;
22642 }
22643 return resultobj;
22644 fail:
22645 {
22646 if (temp7)
22647 delete arg7;
22648 }
22649 return NULL;
22650 }
22651
22652
22653 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22654 PyObject *resultobj = 0;
22655 wxToolbook *arg1 = (wxToolbook *) 0 ;
22656 wxToolBarBase *result = 0 ;
22657 void *argp1 = 0 ;
22658 int res1 = 0 ;
22659 PyObject *swig_obj[1] ;
22660
22661 if (!args) SWIG_fail;
22662 swig_obj[0] = args;
22663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22664 if (!SWIG_IsOK(res1)) {
22665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22666 }
22667 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22668 {
22669 PyThreadState* __tstate = wxPyBeginAllowThreads();
22670 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22671 wxPyEndAllowThreads(__tstate);
22672 if (PyErr_Occurred()) SWIG_fail;
22673 }
22674 {
22675 resultobj = wxPyMake_wxObject(result, (bool)0);
22676 }
22677 return resultobj;
22678 fail:
22679 return NULL;
22680 }
22681
22682
22683 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22684 PyObject *resultobj = 0;
22685 wxToolbook *arg1 = (wxToolbook *) 0 ;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 PyObject *swig_obj[1] ;
22689
22690 if (!args) SWIG_fail;
22691 swig_obj[0] = args;
22692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22695 }
22696 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 (arg1)->Realize();
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_Py_Void();
22704 return resultobj;
22705 fail:
22706 return NULL;
22707 }
22708
22709
22710 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22711 PyObject *obj;
22712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22713 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22714 return SWIG_Py_Void();
22715 }
22716
22717 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22718 return SWIG_Python_InitShadowInstance(args);
22719 }
22720
22721 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22722 PyObject *resultobj = 0;
22723 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22724 int arg2 = (int) 0 ;
22725 int arg3 = (int) wxNOT_FOUND ;
22726 int arg4 = (int) wxNOT_FOUND ;
22727 wxToolbookEvent *result = 0 ;
22728 int val1 ;
22729 int ecode1 = 0 ;
22730 int val2 ;
22731 int ecode2 = 0 ;
22732 int val3 ;
22733 int ecode3 = 0 ;
22734 int val4 ;
22735 int ecode4 = 0 ;
22736 PyObject * obj0 = 0 ;
22737 PyObject * obj1 = 0 ;
22738 PyObject * obj2 = 0 ;
22739 PyObject * obj3 = 0 ;
22740 char * kwnames[] = {
22741 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22742 };
22743
22744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22745 if (obj0) {
22746 ecode1 = SWIG_AsVal_int(obj0, &val1);
22747 if (!SWIG_IsOK(ecode1)) {
22748 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22749 }
22750 arg1 = static_cast< wxEventType >(val1);
22751 }
22752 if (obj1) {
22753 ecode2 = SWIG_AsVal_int(obj1, &val2);
22754 if (!SWIG_IsOK(ecode2)) {
22755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22756 }
22757 arg2 = static_cast< int >(val2);
22758 }
22759 if (obj2) {
22760 ecode3 = SWIG_AsVal_int(obj2, &val3);
22761 if (!SWIG_IsOK(ecode3)) {
22762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22763 }
22764 arg3 = static_cast< int >(val3);
22765 }
22766 if (obj3) {
22767 ecode4 = SWIG_AsVal_int(obj3, &val4);
22768 if (!SWIG_IsOK(ecode4)) {
22769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22770 }
22771 arg4 = static_cast< int >(val4);
22772 }
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22780 return resultobj;
22781 fail:
22782 return NULL;
22783 }
22784
22785
22786 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22787 PyObject *obj;
22788 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22789 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22790 return SWIG_Py_Void();
22791 }
22792
22793 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22794 return SWIG_Python_InitShadowInstance(args);
22795 }
22796
22797 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22798 PyObject *resultobj = 0;
22799 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22800 int result;
22801 void *argp1 = 0 ;
22802 int res1 = 0 ;
22803 PyObject *swig_obj[1] ;
22804
22805 if (!args) SWIG_fail;
22806 swig_obj[0] = args;
22807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22808 if (!SWIG_IsOK(res1)) {
22809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22810 }
22811 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (int)(arg1)->GetId();
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_From_int(static_cast< int >(result));
22819 return resultobj;
22820 fail:
22821 return NULL;
22822 }
22823
22824
22825 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22826 PyObject *resultobj = 0;
22827 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22828 wxControl *result = 0 ;
22829 void *argp1 = 0 ;
22830 int res1 = 0 ;
22831 PyObject *swig_obj[1] ;
22832
22833 if (!args) SWIG_fail;
22834 swig_obj[0] = args;
22835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22836 if (!SWIG_IsOK(res1)) {
22837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22838 }
22839 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22840 {
22841 PyThreadState* __tstate = wxPyBeginAllowThreads();
22842 result = (wxControl *)(arg1)->GetControl();
22843 wxPyEndAllowThreads(__tstate);
22844 if (PyErr_Occurred()) SWIG_fail;
22845 }
22846 {
22847 resultobj = wxPyMake_wxObject(result, 0);
22848 }
22849 return resultobj;
22850 fail:
22851 return NULL;
22852 }
22853
22854
22855 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22856 PyObject *resultobj = 0;
22857 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22858 wxToolBarBase *result = 0 ;
22859 void *argp1 = 0 ;
22860 int res1 = 0 ;
22861 PyObject *swig_obj[1] ;
22862
22863 if (!args) SWIG_fail;
22864 swig_obj[0] = args;
22865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22866 if (!SWIG_IsOK(res1)) {
22867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22868 }
22869 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22870 {
22871 PyThreadState* __tstate = wxPyBeginAllowThreads();
22872 result = (wxToolBarBase *)(arg1)->GetToolBar();
22873 wxPyEndAllowThreads(__tstate);
22874 if (PyErr_Occurred()) SWIG_fail;
22875 }
22876 {
22877 resultobj = wxPyMake_wxObject(result, (bool)0);
22878 }
22879 return resultobj;
22880 fail:
22881 return NULL;
22882 }
22883
22884
22885 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22886 PyObject *resultobj = 0;
22887 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22888 int result;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 PyObject *swig_obj[1] ;
22892
22893 if (!args) SWIG_fail;
22894 swig_obj[0] = args;
22895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22896 if (!SWIG_IsOK(res1)) {
22897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22898 }
22899 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 result = (int)(arg1)->IsButton();
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 resultobj = SWIG_From_int(static_cast< int >(result));
22907 return resultobj;
22908 fail:
22909 return NULL;
22910 }
22911
22912
22913 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22914 PyObject *resultobj = 0;
22915 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22916 int result;
22917 void *argp1 = 0 ;
22918 int res1 = 0 ;
22919 PyObject *swig_obj[1] ;
22920
22921 if (!args) SWIG_fail;
22922 swig_obj[0] = args;
22923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22924 if (!SWIG_IsOK(res1)) {
22925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22926 }
22927 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 result = (int)(arg1)->IsControl();
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = SWIG_From_int(static_cast< int >(result));
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22942 PyObject *resultobj = 0;
22943 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22944 int result;
22945 void *argp1 = 0 ;
22946 int res1 = 0 ;
22947 PyObject *swig_obj[1] ;
22948
22949 if (!args) SWIG_fail;
22950 swig_obj[0] = args;
22951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22952 if (!SWIG_IsOK(res1)) {
22953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22954 }
22955 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22956 {
22957 PyThreadState* __tstate = wxPyBeginAllowThreads();
22958 result = (int)(arg1)->IsSeparator();
22959 wxPyEndAllowThreads(__tstate);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 }
22962 resultobj = SWIG_From_int(static_cast< int >(result));
22963 return resultobj;
22964 fail:
22965 return NULL;
22966 }
22967
22968
22969 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22970 PyObject *resultobj = 0;
22971 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22972 int result;
22973 void *argp1 = 0 ;
22974 int res1 = 0 ;
22975 PyObject *swig_obj[1] ;
22976
22977 if (!args) SWIG_fail;
22978 swig_obj[0] = args;
22979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22980 if (!SWIG_IsOK(res1)) {
22981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22982 }
22983 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22984 {
22985 PyThreadState* __tstate = wxPyBeginAllowThreads();
22986 result = (int)(arg1)->GetStyle();
22987 wxPyEndAllowThreads(__tstate);
22988 if (PyErr_Occurred()) SWIG_fail;
22989 }
22990 resultobj = SWIG_From_int(static_cast< int >(result));
22991 return resultobj;
22992 fail:
22993 return NULL;
22994 }
22995
22996
22997 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22998 PyObject *resultobj = 0;
22999 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23000 wxItemKind result;
23001 void *argp1 = 0 ;
23002 int res1 = 0 ;
23003 PyObject *swig_obj[1] ;
23004
23005 if (!args) SWIG_fail;
23006 swig_obj[0] = args;
23007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23008 if (!SWIG_IsOK(res1)) {
23009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23010 }
23011 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23012 {
23013 PyThreadState* __tstate = wxPyBeginAllowThreads();
23014 result = (wxItemKind)(arg1)->GetKind();
23015 wxPyEndAllowThreads(__tstate);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 }
23018 resultobj = SWIG_From_int(static_cast< int >(result));
23019 return resultobj;
23020 fail:
23021 return NULL;
23022 }
23023
23024
23025 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23026 PyObject *resultobj = 0;
23027 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23028 bool result;
23029 void *argp1 = 0 ;
23030 int res1 = 0 ;
23031 PyObject *swig_obj[1] ;
23032
23033 if (!args) SWIG_fail;
23034 swig_obj[0] = args;
23035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23036 if (!SWIG_IsOK(res1)) {
23037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23038 }
23039 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 result = (bool)(arg1)->IsEnabled();
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 {
23047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23048 }
23049 return resultobj;
23050 fail:
23051 return NULL;
23052 }
23053
23054
23055 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23056 PyObject *resultobj = 0;
23057 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23058 bool result;
23059 void *argp1 = 0 ;
23060 int res1 = 0 ;
23061 PyObject *swig_obj[1] ;
23062
23063 if (!args) SWIG_fail;
23064 swig_obj[0] = args;
23065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23066 if (!SWIG_IsOK(res1)) {
23067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23068 }
23069 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23070 {
23071 PyThreadState* __tstate = wxPyBeginAllowThreads();
23072 result = (bool)(arg1)->IsToggled();
23073 wxPyEndAllowThreads(__tstate);
23074 if (PyErr_Occurred()) SWIG_fail;
23075 }
23076 {
23077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23078 }
23079 return resultobj;
23080 fail:
23081 return NULL;
23082 }
23083
23084
23085 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *resultobj = 0;
23087 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23088 bool result;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 PyObject *swig_obj[1] ;
23092
23093 if (!args) SWIG_fail;
23094 swig_obj[0] = args;
23095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23098 }
23099 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 result = (bool)(arg1)->CanBeToggled();
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 {
23107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23108 }
23109 return resultobj;
23110 fail:
23111 return NULL;
23112 }
23113
23114
23115 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23116 PyObject *resultobj = 0;
23117 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23118 wxBitmap *result = 0 ;
23119 void *argp1 = 0 ;
23120 int res1 = 0 ;
23121 PyObject *swig_obj[1] ;
23122
23123 if (!args) SWIG_fail;
23124 swig_obj[0] = args;
23125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23126 if (!SWIG_IsOK(res1)) {
23127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23128 }
23129 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23130 {
23131 PyThreadState* __tstate = wxPyBeginAllowThreads();
23132 {
23133 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23134 result = (wxBitmap *) &_result_ref;
23135 }
23136 wxPyEndAllowThreads(__tstate);
23137 if (PyErr_Occurred()) SWIG_fail;
23138 }
23139 {
23140 wxBitmap* resultptr = new wxBitmap(*result);
23141 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23142 }
23143 return resultobj;
23144 fail:
23145 return NULL;
23146 }
23147
23148
23149 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23150 PyObject *resultobj = 0;
23151 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23152 wxBitmap *result = 0 ;
23153 void *argp1 = 0 ;
23154 int res1 = 0 ;
23155 PyObject *swig_obj[1] ;
23156
23157 if (!args) SWIG_fail;
23158 swig_obj[0] = args;
23159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23160 if (!SWIG_IsOK(res1)) {
23161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23162 }
23163 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23164 {
23165 PyThreadState* __tstate = wxPyBeginAllowThreads();
23166 {
23167 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23168 result = (wxBitmap *) &_result_ref;
23169 }
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 {
23174 wxBitmap* resultptr = new wxBitmap(*result);
23175 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23176 }
23177 return resultobj;
23178 fail:
23179 return NULL;
23180 }
23181
23182
23183 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23184 PyObject *resultobj = 0;
23185 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23186 wxBitmap result;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 PyObject *swig_obj[1] ;
23190
23191 if (!args) SWIG_fail;
23192 swig_obj[0] = args;
23193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23194 if (!SWIG_IsOK(res1)) {
23195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23196 }
23197 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 result = (arg1)->GetBitmap();
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23212 PyObject *resultobj = 0;
23213 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23214 wxString result;
23215 void *argp1 = 0 ;
23216 int res1 = 0 ;
23217 PyObject *swig_obj[1] ;
23218
23219 if (!args) SWIG_fail;
23220 swig_obj[0] = args;
23221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23222 if (!SWIG_IsOK(res1)) {
23223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23224 }
23225 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23226 {
23227 PyThreadState* __tstate = wxPyBeginAllowThreads();
23228 result = (arg1)->GetLabel();
23229 wxPyEndAllowThreads(__tstate);
23230 if (PyErr_Occurred()) SWIG_fail;
23231 }
23232 {
23233 #if wxUSE_UNICODE
23234 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23235 #else
23236 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23237 #endif
23238 }
23239 return resultobj;
23240 fail:
23241 return NULL;
23242 }
23243
23244
23245 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23246 PyObject *resultobj = 0;
23247 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23248 wxString result;
23249 void *argp1 = 0 ;
23250 int res1 = 0 ;
23251 PyObject *swig_obj[1] ;
23252
23253 if (!args) SWIG_fail;
23254 swig_obj[0] = args;
23255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23256 if (!SWIG_IsOK(res1)) {
23257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23258 }
23259 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23260 {
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 result = (arg1)->GetShortHelp();
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 {
23267 #if wxUSE_UNICODE
23268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23269 #else
23270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23271 #endif
23272 }
23273 return resultobj;
23274 fail:
23275 return NULL;
23276 }
23277
23278
23279 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23280 PyObject *resultobj = 0;
23281 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23282 wxString result;
23283 void *argp1 = 0 ;
23284 int res1 = 0 ;
23285 PyObject *swig_obj[1] ;
23286
23287 if (!args) SWIG_fail;
23288 swig_obj[0] = args;
23289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23290 if (!SWIG_IsOK(res1)) {
23291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23292 }
23293 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23294 {
23295 PyThreadState* __tstate = wxPyBeginAllowThreads();
23296 result = (arg1)->GetLongHelp();
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 {
23301 #if wxUSE_UNICODE
23302 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23303 #else
23304 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23305 #endif
23306 }
23307 return resultobj;
23308 fail:
23309 return NULL;
23310 }
23311
23312
23313 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23314 PyObject *resultobj = 0;
23315 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23316 bool arg2 ;
23317 bool result;
23318 void *argp1 = 0 ;
23319 int res1 = 0 ;
23320 bool val2 ;
23321 int ecode2 = 0 ;
23322 PyObject * obj0 = 0 ;
23323 PyObject * obj1 = 0 ;
23324 char * kwnames[] = {
23325 (char *) "self",(char *) "enable", NULL
23326 };
23327
23328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23330 if (!SWIG_IsOK(res1)) {
23331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23332 }
23333 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23334 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23335 if (!SWIG_IsOK(ecode2)) {
23336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23337 }
23338 arg2 = static_cast< bool >(val2);
23339 {
23340 PyThreadState* __tstate = wxPyBeginAllowThreads();
23341 result = (bool)(arg1)->Enable(arg2);
23342 wxPyEndAllowThreads(__tstate);
23343 if (PyErr_Occurred()) SWIG_fail;
23344 }
23345 {
23346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23347 }
23348 return resultobj;
23349 fail:
23350 return NULL;
23351 }
23352
23353
23354 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23355 PyObject *resultobj = 0;
23356 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23357 void *argp1 = 0 ;
23358 int res1 = 0 ;
23359 PyObject *swig_obj[1] ;
23360
23361 if (!args) SWIG_fail;
23362 swig_obj[0] = args;
23363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23364 if (!SWIG_IsOK(res1)) {
23365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23366 }
23367 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 (arg1)->Toggle();
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 resultobj = SWIG_Py_Void();
23375 return resultobj;
23376 fail:
23377 return NULL;
23378 }
23379
23380
23381 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23382 PyObject *resultobj = 0;
23383 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23384 bool arg2 ;
23385 bool result;
23386 void *argp1 = 0 ;
23387 int res1 = 0 ;
23388 bool val2 ;
23389 int ecode2 = 0 ;
23390 PyObject * obj0 = 0 ;
23391 PyObject * obj1 = 0 ;
23392 char * kwnames[] = {
23393 (char *) "self",(char *) "toggle", NULL
23394 };
23395
23396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23398 if (!SWIG_IsOK(res1)) {
23399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23400 }
23401 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23402 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23403 if (!SWIG_IsOK(ecode2)) {
23404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23405 }
23406 arg2 = static_cast< bool >(val2);
23407 {
23408 PyThreadState* __tstate = wxPyBeginAllowThreads();
23409 result = (bool)(arg1)->SetToggle(arg2);
23410 wxPyEndAllowThreads(__tstate);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 }
23413 {
23414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23415 }
23416 return resultobj;
23417 fail:
23418 return NULL;
23419 }
23420
23421
23422 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23423 PyObject *resultobj = 0;
23424 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23425 wxString *arg2 = 0 ;
23426 bool result;
23427 void *argp1 = 0 ;
23428 int res1 = 0 ;
23429 bool temp2 = false ;
23430 PyObject * obj0 = 0 ;
23431 PyObject * obj1 = 0 ;
23432 char * kwnames[] = {
23433 (char *) "self",(char *) "help", NULL
23434 };
23435
23436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23438 if (!SWIG_IsOK(res1)) {
23439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23440 }
23441 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23442 {
23443 arg2 = wxString_in_helper(obj1);
23444 if (arg2 == NULL) SWIG_fail;
23445 temp2 = true;
23446 }
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23450 wxPyEndAllowThreads(__tstate);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 }
23453 {
23454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23455 }
23456 {
23457 if (temp2)
23458 delete arg2;
23459 }
23460 return resultobj;
23461 fail:
23462 {
23463 if (temp2)
23464 delete arg2;
23465 }
23466 return NULL;
23467 }
23468
23469
23470 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23471 PyObject *resultobj = 0;
23472 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23473 wxString *arg2 = 0 ;
23474 bool result;
23475 void *argp1 = 0 ;
23476 int res1 = 0 ;
23477 bool temp2 = false ;
23478 PyObject * obj0 = 0 ;
23479 PyObject * obj1 = 0 ;
23480 char * kwnames[] = {
23481 (char *) "self",(char *) "help", NULL
23482 };
23483
23484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23486 if (!SWIG_IsOK(res1)) {
23487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23488 }
23489 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23490 {
23491 arg2 = wxString_in_helper(obj1);
23492 if (arg2 == NULL) SWIG_fail;
23493 temp2 = true;
23494 }
23495 {
23496 PyThreadState* __tstate = wxPyBeginAllowThreads();
23497 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23498 wxPyEndAllowThreads(__tstate);
23499 if (PyErr_Occurred()) SWIG_fail;
23500 }
23501 {
23502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23503 }
23504 {
23505 if (temp2)
23506 delete arg2;
23507 }
23508 return resultobj;
23509 fail:
23510 {
23511 if (temp2)
23512 delete arg2;
23513 }
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23519 PyObject *resultobj = 0;
23520 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23521 wxBitmap *arg2 = 0 ;
23522 void *argp1 = 0 ;
23523 int res1 = 0 ;
23524 void *argp2 = 0 ;
23525 int res2 = 0 ;
23526 PyObject * obj0 = 0 ;
23527 PyObject * obj1 = 0 ;
23528 char * kwnames[] = {
23529 (char *) "self",(char *) "bmp", NULL
23530 };
23531
23532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23534 if (!SWIG_IsOK(res1)) {
23535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23536 }
23537 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23539 if (!SWIG_IsOK(res2)) {
23540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23541 }
23542 if (!argp2) {
23543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23544 }
23545 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 resultobj = SWIG_Py_Void();
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj = 0;
23561 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23562 wxBitmap *arg2 = 0 ;
23563 void *argp1 = 0 ;
23564 int res1 = 0 ;
23565 void *argp2 = 0 ;
23566 int res2 = 0 ;
23567 PyObject * obj0 = 0 ;
23568 PyObject * obj1 = 0 ;
23569 char * kwnames[] = {
23570 (char *) "self",(char *) "bmp", NULL
23571 };
23572
23573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23575 if (!SWIG_IsOK(res1)) {
23576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23577 }
23578 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23580 if (!SWIG_IsOK(res2)) {
23581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23582 }
23583 if (!argp2) {
23584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23585 }
23586 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23587 {
23588 PyThreadState* __tstate = wxPyBeginAllowThreads();
23589 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23590 wxPyEndAllowThreads(__tstate);
23591 if (PyErr_Occurred()) SWIG_fail;
23592 }
23593 resultobj = SWIG_Py_Void();
23594 return resultobj;
23595 fail:
23596 return NULL;
23597 }
23598
23599
23600 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23601 PyObject *resultobj = 0;
23602 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23603 wxString *arg2 = 0 ;
23604 void *argp1 = 0 ;
23605 int res1 = 0 ;
23606 bool temp2 = false ;
23607 PyObject * obj0 = 0 ;
23608 PyObject * obj1 = 0 ;
23609 char * kwnames[] = {
23610 (char *) "self",(char *) "label", NULL
23611 };
23612
23613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23615 if (!SWIG_IsOK(res1)) {
23616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23617 }
23618 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23619 {
23620 arg2 = wxString_in_helper(obj1);
23621 if (arg2 == NULL) SWIG_fail;
23622 temp2 = true;
23623 }
23624 {
23625 PyThreadState* __tstate = wxPyBeginAllowThreads();
23626 (arg1)->SetLabel((wxString const &)*arg2);
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 resultobj = SWIG_Py_Void();
23631 {
23632 if (temp2)
23633 delete arg2;
23634 }
23635 return resultobj;
23636 fail:
23637 {
23638 if (temp2)
23639 delete arg2;
23640 }
23641 return NULL;
23642 }
23643
23644
23645 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23646 PyObject *resultobj = 0;
23647 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23648 void *argp1 = 0 ;
23649 int res1 = 0 ;
23650 PyObject *swig_obj[1] ;
23651
23652 if (!args) SWIG_fail;
23653 swig_obj[0] = args;
23654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23655 if (!SWIG_IsOK(res1)) {
23656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23657 }
23658 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23659 {
23660 PyThreadState* __tstate = wxPyBeginAllowThreads();
23661 (arg1)->Detach();
23662 wxPyEndAllowThreads(__tstate);
23663 if (PyErr_Occurred()) SWIG_fail;
23664 }
23665 resultobj = SWIG_Py_Void();
23666 return resultobj;
23667 fail:
23668 return NULL;
23669 }
23670
23671
23672 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23673 PyObject *resultobj = 0;
23674 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23675 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23676 void *argp1 = 0 ;
23677 int res1 = 0 ;
23678 void *argp2 = 0 ;
23679 int res2 = 0 ;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682 char * kwnames[] = {
23683 (char *) "self",(char *) "tbar", NULL
23684 };
23685
23686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23688 if (!SWIG_IsOK(res1)) {
23689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23690 }
23691 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23692 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23693 if (!SWIG_IsOK(res2)) {
23694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23695 }
23696 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23697 {
23698 PyThreadState* __tstate = wxPyBeginAllowThreads();
23699 (arg1)->Attach(arg2);
23700 wxPyEndAllowThreads(__tstate);
23701 if (PyErr_Occurred()) SWIG_fail;
23702 }
23703 resultobj = SWIG_Py_Void();
23704 return resultobj;
23705 fail:
23706 return NULL;
23707 }
23708
23709
23710 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23711 PyObject *resultobj = 0;
23712 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23713 PyObject *result = 0 ;
23714 void *argp1 = 0 ;
23715 int res1 = 0 ;
23716 PyObject *swig_obj[1] ;
23717
23718 if (!args) SWIG_fail;
23719 swig_obj[0] = args;
23720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23721 if (!SWIG_IsOK(res1)) {
23722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23723 }
23724 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
23731 resultobj = result;
23732 return resultobj;
23733 fail:
23734 return NULL;
23735 }
23736
23737
23738 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23739 PyObject *resultobj = 0;
23740 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23741 PyObject *arg2 = (PyObject *) 0 ;
23742 void *argp1 = 0 ;
23743 int res1 = 0 ;
23744 PyObject * obj0 = 0 ;
23745 PyObject * obj1 = 0 ;
23746 char * kwnames[] = {
23747 (char *) "self",(char *) "clientData", NULL
23748 };
23749
23750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23752 if (!SWIG_IsOK(res1)) {
23753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23754 }
23755 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23756 arg2 = obj1;
23757 {
23758 PyThreadState* __tstate = wxPyBeginAllowThreads();
23759 wxToolBarToolBase_SetClientData(arg1,arg2);
23760 wxPyEndAllowThreads(__tstate);
23761 if (PyErr_Occurred()) SWIG_fail;
23762 }
23763 resultobj = SWIG_Py_Void();
23764 return resultobj;
23765 fail:
23766 return NULL;
23767 }
23768
23769
23770 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23771 PyObject *obj;
23772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23773 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23774 return SWIG_Py_Void();
23775 }
23776
23777 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj = 0;
23779 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23780 int arg2 ;
23781 wxString *arg3 = 0 ;
23782 wxBitmap *arg4 = 0 ;
23783 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23784 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23785 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23786 wxString const &arg7_defvalue = wxPyEmptyString ;
23787 wxString *arg7 = (wxString *) &arg7_defvalue ;
23788 wxString const &arg8_defvalue = wxPyEmptyString ;
23789 wxString *arg8 = (wxString *) &arg8_defvalue ;
23790 PyObject *arg9 = (PyObject *) NULL ;
23791 wxToolBarToolBase *result = 0 ;
23792 void *argp1 = 0 ;
23793 int res1 = 0 ;
23794 int val2 ;
23795 int ecode2 = 0 ;
23796 bool temp3 = false ;
23797 void *argp4 = 0 ;
23798 int res4 = 0 ;
23799 void *argp5 = 0 ;
23800 int res5 = 0 ;
23801 int val6 ;
23802 int ecode6 = 0 ;
23803 bool temp7 = false ;
23804 bool temp8 = false ;
23805 PyObject * obj0 = 0 ;
23806 PyObject * obj1 = 0 ;
23807 PyObject * obj2 = 0 ;
23808 PyObject * obj3 = 0 ;
23809 PyObject * obj4 = 0 ;
23810 PyObject * obj5 = 0 ;
23811 PyObject * obj6 = 0 ;
23812 PyObject * obj7 = 0 ;
23813 PyObject * obj8 = 0 ;
23814 char * kwnames[] = {
23815 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23816 };
23817
23818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23820 if (!SWIG_IsOK(res1)) {
23821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23822 }
23823 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23824 ecode2 = SWIG_AsVal_int(obj1, &val2);
23825 if (!SWIG_IsOK(ecode2)) {
23826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23827 }
23828 arg2 = static_cast< int >(val2);
23829 {
23830 arg3 = wxString_in_helper(obj2);
23831 if (arg3 == NULL) SWIG_fail;
23832 temp3 = true;
23833 }
23834 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23835 if (!SWIG_IsOK(res4)) {
23836 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23837 }
23838 if (!argp4) {
23839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23840 }
23841 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23842 if (obj4) {
23843 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23844 if (!SWIG_IsOK(res5)) {
23845 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23846 }
23847 if (!argp5) {
23848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23849 }
23850 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23851 }
23852 if (obj5) {
23853 ecode6 = SWIG_AsVal_int(obj5, &val6);
23854 if (!SWIG_IsOK(ecode6)) {
23855 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23856 }
23857 arg6 = static_cast< wxItemKind >(val6);
23858 }
23859 if (obj6) {
23860 {
23861 arg7 = wxString_in_helper(obj6);
23862 if (arg7 == NULL) SWIG_fail;
23863 temp7 = true;
23864 }
23865 }
23866 if (obj7) {
23867 {
23868 arg8 = wxString_in_helper(obj7);
23869 if (arg8 == NULL) SWIG_fail;
23870 temp8 = true;
23871 }
23872 }
23873 if (obj8) {
23874 arg9 = obj8;
23875 }
23876 {
23877 PyThreadState* __tstate = wxPyBeginAllowThreads();
23878 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23879 wxPyEndAllowThreads(__tstate);
23880 if (PyErr_Occurred()) SWIG_fail;
23881 }
23882 {
23883 resultobj = wxPyMake_wxObject(result, (bool)0);
23884 }
23885 {
23886 if (temp3)
23887 delete arg3;
23888 }
23889 {
23890 if (temp7)
23891 delete arg7;
23892 }
23893 {
23894 if (temp8)
23895 delete arg8;
23896 }
23897 return resultobj;
23898 fail:
23899 {
23900 if (temp3)
23901 delete arg3;
23902 }
23903 {
23904 if (temp7)
23905 delete arg7;
23906 }
23907 {
23908 if (temp8)
23909 delete arg8;
23910 }
23911 return NULL;
23912 }
23913
23914
23915 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23916 PyObject *resultobj = 0;
23917 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23918 size_t arg2 ;
23919 int arg3 ;
23920 wxString *arg4 = 0 ;
23921 wxBitmap *arg5 = 0 ;
23922 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23923 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23924 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23925 wxString const &arg8_defvalue = wxPyEmptyString ;
23926 wxString *arg8 = (wxString *) &arg8_defvalue ;
23927 wxString const &arg9_defvalue = wxPyEmptyString ;
23928 wxString *arg9 = (wxString *) &arg9_defvalue ;
23929 PyObject *arg10 = (PyObject *) NULL ;
23930 wxToolBarToolBase *result = 0 ;
23931 void *argp1 = 0 ;
23932 int res1 = 0 ;
23933 size_t val2 ;
23934 int ecode2 = 0 ;
23935 int val3 ;
23936 int ecode3 = 0 ;
23937 bool temp4 = false ;
23938 void *argp5 = 0 ;
23939 int res5 = 0 ;
23940 void *argp6 = 0 ;
23941 int res6 = 0 ;
23942 int val7 ;
23943 int ecode7 = 0 ;
23944 bool temp8 = false ;
23945 bool temp9 = false ;
23946 PyObject * obj0 = 0 ;
23947 PyObject * obj1 = 0 ;
23948 PyObject * obj2 = 0 ;
23949 PyObject * obj3 = 0 ;
23950 PyObject * obj4 = 0 ;
23951 PyObject * obj5 = 0 ;
23952 PyObject * obj6 = 0 ;
23953 PyObject * obj7 = 0 ;
23954 PyObject * obj8 = 0 ;
23955 PyObject * obj9 = 0 ;
23956 char * kwnames[] = {
23957 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23958 };
23959
23960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23962 if (!SWIG_IsOK(res1)) {
23963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23964 }
23965 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23966 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23967 if (!SWIG_IsOK(ecode2)) {
23968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23969 }
23970 arg2 = static_cast< size_t >(val2);
23971 ecode3 = SWIG_AsVal_int(obj2, &val3);
23972 if (!SWIG_IsOK(ecode3)) {
23973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23974 }
23975 arg3 = static_cast< int >(val3);
23976 {
23977 arg4 = wxString_in_helper(obj3);
23978 if (arg4 == NULL) SWIG_fail;
23979 temp4 = true;
23980 }
23981 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23982 if (!SWIG_IsOK(res5)) {
23983 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23984 }
23985 if (!argp5) {
23986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23987 }
23988 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23989 if (obj5) {
23990 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23991 if (!SWIG_IsOK(res6)) {
23992 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23993 }
23994 if (!argp6) {
23995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23996 }
23997 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23998 }
23999 if (obj6) {
24000 ecode7 = SWIG_AsVal_int(obj6, &val7);
24001 if (!SWIG_IsOK(ecode7)) {
24002 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24003 }
24004 arg7 = static_cast< wxItemKind >(val7);
24005 }
24006 if (obj7) {
24007 {
24008 arg8 = wxString_in_helper(obj7);
24009 if (arg8 == NULL) SWIG_fail;
24010 temp8 = true;
24011 }
24012 }
24013 if (obj8) {
24014 {
24015 arg9 = wxString_in_helper(obj8);
24016 if (arg9 == NULL) SWIG_fail;
24017 temp9 = true;
24018 }
24019 }
24020 if (obj9) {
24021 arg10 = obj9;
24022 }
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 {
24030 resultobj = wxPyMake_wxObject(result, (bool)0);
24031 }
24032 {
24033 if (temp4)
24034 delete arg4;
24035 }
24036 {
24037 if (temp8)
24038 delete arg8;
24039 }
24040 {
24041 if (temp9)
24042 delete arg9;
24043 }
24044 return resultobj;
24045 fail:
24046 {
24047 if (temp4)
24048 delete arg4;
24049 }
24050 {
24051 if (temp8)
24052 delete arg8;
24053 }
24054 {
24055 if (temp9)
24056 delete arg9;
24057 }
24058 return NULL;
24059 }
24060
24061
24062 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24063 PyObject *resultobj = 0;
24064 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24065 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24066 wxToolBarToolBase *result = 0 ;
24067 void *argp1 = 0 ;
24068 int res1 = 0 ;
24069 void *argp2 = 0 ;
24070 int res2 = 0 ;
24071 PyObject * obj0 = 0 ;
24072 PyObject * obj1 = 0 ;
24073 char * kwnames[] = {
24074 (char *) "self",(char *) "tool", NULL
24075 };
24076
24077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24079 if (!SWIG_IsOK(res1)) {
24080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24081 }
24082 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24084 if (!SWIG_IsOK(res2)) {
24085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24086 }
24087 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24088 {
24089 PyThreadState* __tstate = wxPyBeginAllowThreads();
24090 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24091 wxPyEndAllowThreads(__tstate);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 {
24095 resultobj = wxPyMake_wxObject(result, (bool)0);
24096 }
24097 return resultobj;
24098 fail:
24099 return NULL;
24100 }
24101
24102
24103 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24104 PyObject *resultobj = 0;
24105 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24106 size_t arg2 ;
24107 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24108 wxToolBarToolBase *result = 0 ;
24109 void *argp1 = 0 ;
24110 int res1 = 0 ;
24111 size_t val2 ;
24112 int ecode2 = 0 ;
24113 void *argp3 = 0 ;
24114 int res3 = 0 ;
24115 PyObject * obj0 = 0 ;
24116 PyObject * obj1 = 0 ;
24117 PyObject * obj2 = 0 ;
24118 char * kwnames[] = {
24119 (char *) "self",(char *) "pos",(char *) "tool", NULL
24120 };
24121
24122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24124 if (!SWIG_IsOK(res1)) {
24125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24126 }
24127 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24128 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24129 if (!SWIG_IsOK(ecode2)) {
24130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24131 }
24132 arg2 = static_cast< size_t >(val2);
24133 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24134 if (!SWIG_IsOK(res3)) {
24135 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24136 }
24137 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24138 {
24139 PyThreadState* __tstate = wxPyBeginAllowThreads();
24140 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24141 wxPyEndAllowThreads(__tstate);
24142 if (PyErr_Occurred()) SWIG_fail;
24143 }
24144 {
24145 resultobj = wxPyMake_wxObject(result, (bool)0);
24146 }
24147 return resultobj;
24148 fail:
24149 return NULL;
24150 }
24151
24152
24153 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24154 PyObject *resultobj = 0;
24155 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24156 wxControl *arg2 = (wxControl *) 0 ;
24157 wxToolBarToolBase *result = 0 ;
24158 void *argp1 = 0 ;
24159 int res1 = 0 ;
24160 void *argp2 = 0 ;
24161 int res2 = 0 ;
24162 PyObject * obj0 = 0 ;
24163 PyObject * obj1 = 0 ;
24164 char * kwnames[] = {
24165 (char *) "self",(char *) "control", NULL
24166 };
24167
24168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24170 if (!SWIG_IsOK(res1)) {
24171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24172 }
24173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24174 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24175 if (!SWIG_IsOK(res2)) {
24176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24177 }
24178 arg2 = reinterpret_cast< wxControl * >(argp2);
24179 {
24180 PyThreadState* __tstate = wxPyBeginAllowThreads();
24181 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24182 wxPyEndAllowThreads(__tstate);
24183 if (PyErr_Occurred()) SWIG_fail;
24184 }
24185 {
24186 resultobj = wxPyMake_wxObject(result, (bool)0);
24187 }
24188 return resultobj;
24189 fail:
24190 return NULL;
24191 }
24192
24193
24194 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24195 PyObject *resultobj = 0;
24196 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24197 size_t arg2 ;
24198 wxControl *arg3 = (wxControl *) 0 ;
24199 wxToolBarToolBase *result = 0 ;
24200 void *argp1 = 0 ;
24201 int res1 = 0 ;
24202 size_t val2 ;
24203 int ecode2 = 0 ;
24204 void *argp3 = 0 ;
24205 int res3 = 0 ;
24206 PyObject * obj0 = 0 ;
24207 PyObject * obj1 = 0 ;
24208 PyObject * obj2 = 0 ;
24209 char * kwnames[] = {
24210 (char *) "self",(char *) "pos",(char *) "control", NULL
24211 };
24212
24213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24215 if (!SWIG_IsOK(res1)) {
24216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24217 }
24218 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24219 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24220 if (!SWIG_IsOK(ecode2)) {
24221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24222 }
24223 arg2 = static_cast< size_t >(val2);
24224 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24225 if (!SWIG_IsOK(res3)) {
24226 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24227 }
24228 arg3 = reinterpret_cast< wxControl * >(argp3);
24229 {
24230 PyThreadState* __tstate = wxPyBeginAllowThreads();
24231 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24232 wxPyEndAllowThreads(__tstate);
24233 if (PyErr_Occurred()) SWIG_fail;
24234 }
24235 {
24236 resultobj = wxPyMake_wxObject(result, (bool)0);
24237 }
24238 return resultobj;
24239 fail:
24240 return NULL;
24241 }
24242
24243
24244 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24245 PyObject *resultobj = 0;
24246 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24247 int arg2 ;
24248 wxControl *result = 0 ;
24249 void *argp1 = 0 ;
24250 int res1 = 0 ;
24251 int val2 ;
24252 int ecode2 = 0 ;
24253 PyObject * obj0 = 0 ;
24254 PyObject * obj1 = 0 ;
24255 char * kwnames[] = {
24256 (char *) "self",(char *) "id", NULL
24257 };
24258
24259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24263 }
24264 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24265 ecode2 = SWIG_AsVal_int(obj1, &val2);
24266 if (!SWIG_IsOK(ecode2)) {
24267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24268 }
24269 arg2 = static_cast< int >(val2);
24270 {
24271 PyThreadState* __tstate = wxPyBeginAllowThreads();
24272 result = (wxControl *)(arg1)->FindControl(arg2);
24273 wxPyEndAllowThreads(__tstate);
24274 if (PyErr_Occurred()) SWIG_fail;
24275 }
24276 {
24277 resultobj = wxPyMake_wxObject(result, 0);
24278 }
24279 return resultobj;
24280 fail:
24281 return NULL;
24282 }
24283
24284
24285 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24286 PyObject *resultobj = 0;
24287 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24288 wxToolBarToolBase *result = 0 ;
24289 void *argp1 = 0 ;
24290 int res1 = 0 ;
24291 PyObject *swig_obj[1] ;
24292
24293 if (!args) SWIG_fail;
24294 swig_obj[0] = args;
24295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24296 if (!SWIG_IsOK(res1)) {
24297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24298 }
24299 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24300 {
24301 PyThreadState* __tstate = wxPyBeginAllowThreads();
24302 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24303 wxPyEndAllowThreads(__tstate);
24304 if (PyErr_Occurred()) SWIG_fail;
24305 }
24306 {
24307 resultobj = wxPyMake_wxObject(result, (bool)0);
24308 }
24309 return resultobj;
24310 fail:
24311 return NULL;
24312 }
24313
24314
24315 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24316 PyObject *resultobj = 0;
24317 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24318 size_t arg2 ;
24319 wxToolBarToolBase *result = 0 ;
24320 void *argp1 = 0 ;
24321 int res1 = 0 ;
24322 size_t val2 ;
24323 int ecode2 = 0 ;
24324 PyObject * obj0 = 0 ;
24325 PyObject * obj1 = 0 ;
24326 char * kwnames[] = {
24327 (char *) "self",(char *) "pos", NULL
24328 };
24329
24330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24332 if (!SWIG_IsOK(res1)) {
24333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24334 }
24335 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24336 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24337 if (!SWIG_IsOK(ecode2)) {
24338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24339 }
24340 arg2 = static_cast< size_t >(val2);
24341 {
24342 PyThreadState* __tstate = wxPyBeginAllowThreads();
24343 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24344 wxPyEndAllowThreads(__tstate);
24345 if (PyErr_Occurred()) SWIG_fail;
24346 }
24347 {
24348 resultobj = wxPyMake_wxObject(result, (bool)0);
24349 }
24350 return resultobj;
24351 fail:
24352 return NULL;
24353 }
24354
24355
24356 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24357 PyObject *resultobj = 0;
24358 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24359 int arg2 ;
24360 wxToolBarToolBase *result = 0 ;
24361 void *argp1 = 0 ;
24362 int res1 = 0 ;
24363 int val2 ;
24364 int ecode2 = 0 ;
24365 PyObject * obj0 = 0 ;
24366 PyObject * obj1 = 0 ;
24367 char * kwnames[] = {
24368 (char *) "self",(char *) "id", NULL
24369 };
24370
24371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24373 if (!SWIG_IsOK(res1)) {
24374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24375 }
24376 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24377 ecode2 = SWIG_AsVal_int(obj1, &val2);
24378 if (!SWIG_IsOK(ecode2)) {
24379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24380 }
24381 arg2 = static_cast< int >(val2);
24382 {
24383 PyThreadState* __tstate = wxPyBeginAllowThreads();
24384 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24385 wxPyEndAllowThreads(__tstate);
24386 if (PyErr_Occurred()) SWIG_fail;
24387 }
24388 {
24389 resultobj = wxPyMake_wxObject(result, (bool)0);
24390 }
24391 return resultobj;
24392 fail:
24393 return NULL;
24394 }
24395
24396
24397 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24398 PyObject *resultobj = 0;
24399 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24400 size_t arg2 ;
24401 bool result;
24402 void *argp1 = 0 ;
24403 int res1 = 0 ;
24404 size_t val2 ;
24405 int ecode2 = 0 ;
24406 PyObject * obj0 = 0 ;
24407 PyObject * obj1 = 0 ;
24408 char * kwnames[] = {
24409 (char *) "self",(char *) "pos", NULL
24410 };
24411
24412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24414 if (!SWIG_IsOK(res1)) {
24415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24416 }
24417 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24418 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24419 if (!SWIG_IsOK(ecode2)) {
24420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24421 }
24422 arg2 = static_cast< size_t >(val2);
24423 {
24424 PyThreadState* __tstate = wxPyBeginAllowThreads();
24425 result = (bool)(arg1)->DeleteToolByPos(arg2);
24426 wxPyEndAllowThreads(__tstate);
24427 if (PyErr_Occurred()) SWIG_fail;
24428 }
24429 {
24430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24431 }
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj = 0;
24440 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24441 int arg2 ;
24442 bool result;
24443 void *argp1 = 0 ;
24444 int res1 = 0 ;
24445 int val2 ;
24446 int ecode2 = 0 ;
24447 PyObject * obj0 = 0 ;
24448 PyObject * obj1 = 0 ;
24449 char * kwnames[] = {
24450 (char *) "self",(char *) "id", NULL
24451 };
24452
24453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24455 if (!SWIG_IsOK(res1)) {
24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24457 }
24458 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24459 ecode2 = SWIG_AsVal_int(obj1, &val2);
24460 if (!SWIG_IsOK(ecode2)) {
24461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24462 }
24463 arg2 = static_cast< int >(val2);
24464 {
24465 PyThreadState* __tstate = wxPyBeginAllowThreads();
24466 result = (bool)(arg1)->DeleteTool(arg2);
24467 wxPyEndAllowThreads(__tstate);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 }
24470 {
24471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24472 }
24473 return resultobj;
24474 fail:
24475 return NULL;
24476 }
24477
24478
24479 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24480 PyObject *resultobj = 0;
24481 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24482 void *argp1 = 0 ;
24483 int res1 = 0 ;
24484 PyObject *swig_obj[1] ;
24485
24486 if (!args) SWIG_fail;
24487 swig_obj[0] = args;
24488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24489 if (!SWIG_IsOK(res1)) {
24490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24491 }
24492 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24493 {
24494 PyThreadState* __tstate = wxPyBeginAllowThreads();
24495 (arg1)->ClearTools();
24496 wxPyEndAllowThreads(__tstate);
24497 if (PyErr_Occurred()) SWIG_fail;
24498 }
24499 resultobj = SWIG_Py_Void();
24500 return resultobj;
24501 fail:
24502 return NULL;
24503 }
24504
24505
24506 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24507 PyObject *resultobj = 0;
24508 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24509 bool result;
24510 void *argp1 = 0 ;
24511 int res1 = 0 ;
24512 PyObject *swig_obj[1] ;
24513
24514 if (!args) SWIG_fail;
24515 swig_obj[0] = args;
24516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24517 if (!SWIG_IsOK(res1)) {
24518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24519 }
24520 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24521 {
24522 PyThreadState* __tstate = wxPyBeginAllowThreads();
24523 result = (bool)(arg1)->Realize();
24524 wxPyEndAllowThreads(__tstate);
24525 if (PyErr_Occurred()) SWIG_fail;
24526 }
24527 {
24528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24529 }
24530 return resultobj;
24531 fail:
24532 return NULL;
24533 }
24534
24535
24536 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24537 PyObject *resultobj = 0;
24538 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24539 int arg2 ;
24540 bool arg3 ;
24541 void *argp1 = 0 ;
24542 int res1 = 0 ;
24543 int val2 ;
24544 int ecode2 = 0 ;
24545 bool val3 ;
24546 int ecode3 = 0 ;
24547 PyObject * obj0 = 0 ;
24548 PyObject * obj1 = 0 ;
24549 PyObject * obj2 = 0 ;
24550 char * kwnames[] = {
24551 (char *) "self",(char *) "id",(char *) "enable", NULL
24552 };
24553
24554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24556 if (!SWIG_IsOK(res1)) {
24557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24558 }
24559 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24560 ecode2 = SWIG_AsVal_int(obj1, &val2);
24561 if (!SWIG_IsOK(ecode2)) {
24562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24563 }
24564 arg2 = static_cast< int >(val2);
24565 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24566 if (!SWIG_IsOK(ecode3)) {
24567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24568 }
24569 arg3 = static_cast< bool >(val3);
24570 {
24571 PyThreadState* __tstate = wxPyBeginAllowThreads();
24572 (arg1)->EnableTool(arg2,arg3);
24573 wxPyEndAllowThreads(__tstate);
24574 if (PyErr_Occurred()) SWIG_fail;
24575 }
24576 resultobj = SWIG_Py_Void();
24577 return resultobj;
24578 fail:
24579 return NULL;
24580 }
24581
24582
24583 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24584 PyObject *resultobj = 0;
24585 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24586 int arg2 ;
24587 bool arg3 ;
24588 void *argp1 = 0 ;
24589 int res1 = 0 ;
24590 int val2 ;
24591 int ecode2 = 0 ;
24592 bool val3 ;
24593 int ecode3 = 0 ;
24594 PyObject * obj0 = 0 ;
24595 PyObject * obj1 = 0 ;
24596 PyObject * obj2 = 0 ;
24597 char * kwnames[] = {
24598 (char *) "self",(char *) "id",(char *) "toggle", NULL
24599 };
24600
24601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24603 if (!SWIG_IsOK(res1)) {
24604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24605 }
24606 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24607 ecode2 = SWIG_AsVal_int(obj1, &val2);
24608 if (!SWIG_IsOK(ecode2)) {
24609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24610 }
24611 arg2 = static_cast< int >(val2);
24612 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24613 if (!SWIG_IsOK(ecode3)) {
24614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24615 }
24616 arg3 = static_cast< bool >(val3);
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 (arg1)->ToggleTool(arg2,arg3);
24620 wxPyEndAllowThreads(__tstate);
24621 if (PyErr_Occurred()) SWIG_fail;
24622 }
24623 resultobj = SWIG_Py_Void();
24624 return resultobj;
24625 fail:
24626 return NULL;
24627 }
24628
24629
24630 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj = 0;
24632 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24633 int arg2 ;
24634 bool arg3 ;
24635 void *argp1 = 0 ;
24636 int res1 = 0 ;
24637 int val2 ;
24638 int ecode2 = 0 ;
24639 bool val3 ;
24640 int ecode3 = 0 ;
24641 PyObject * obj0 = 0 ;
24642 PyObject * obj1 = 0 ;
24643 PyObject * obj2 = 0 ;
24644 char * kwnames[] = {
24645 (char *) "self",(char *) "id",(char *) "toggle", NULL
24646 };
24647
24648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24650 if (!SWIG_IsOK(res1)) {
24651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24652 }
24653 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24654 ecode2 = SWIG_AsVal_int(obj1, &val2);
24655 if (!SWIG_IsOK(ecode2)) {
24656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24657 }
24658 arg2 = static_cast< int >(val2);
24659 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24660 if (!SWIG_IsOK(ecode3)) {
24661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24662 }
24663 arg3 = static_cast< bool >(val3);
24664 {
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
24666 (arg1)->SetToggle(arg2,arg3);
24667 wxPyEndAllowThreads(__tstate);
24668 if (PyErr_Occurred()) SWIG_fail;
24669 }
24670 resultobj = SWIG_Py_Void();
24671 return resultobj;
24672 fail:
24673 return NULL;
24674 }
24675
24676
24677 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24678 PyObject *resultobj = 0;
24679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24680 int arg2 ;
24681 PyObject *result = 0 ;
24682 void *argp1 = 0 ;
24683 int res1 = 0 ;
24684 int val2 ;
24685 int ecode2 = 0 ;
24686 PyObject * obj0 = 0 ;
24687 PyObject * obj1 = 0 ;
24688 char * kwnames[] = {
24689 (char *) "self",(char *) "id", NULL
24690 };
24691
24692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24694 if (!SWIG_IsOK(res1)) {
24695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24696 }
24697 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24698 ecode2 = SWIG_AsVal_int(obj1, &val2);
24699 if (!SWIG_IsOK(ecode2)) {
24700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24701 }
24702 arg2 = static_cast< int >(val2);
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 resultobj = result;
24710 return resultobj;
24711 fail:
24712 return NULL;
24713 }
24714
24715
24716 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24717 PyObject *resultobj = 0;
24718 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24719 int arg2 ;
24720 PyObject *arg3 = (PyObject *) 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 PyObject * obj2 = 0 ;
24728 char * kwnames[] = {
24729 (char *) "self",(char *) "id",(char *) "clientData", NULL
24730 };
24731
24732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24734 if (!SWIG_IsOK(res1)) {
24735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24736 }
24737 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24738 ecode2 = SWIG_AsVal_int(obj1, &val2);
24739 if (!SWIG_IsOK(ecode2)) {
24740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24741 }
24742 arg2 = static_cast< int >(val2);
24743 arg3 = obj2;
24744 {
24745 PyThreadState* __tstate = wxPyBeginAllowThreads();
24746 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24747 wxPyEndAllowThreads(__tstate);
24748 if (PyErr_Occurred()) SWIG_fail;
24749 }
24750 resultobj = SWIG_Py_Void();
24751 return resultobj;
24752 fail:
24753 return NULL;
24754 }
24755
24756
24757 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24758 PyObject *resultobj = 0;
24759 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24760 int arg2 ;
24761 int result;
24762 void *argp1 = 0 ;
24763 int res1 = 0 ;
24764 int val2 ;
24765 int ecode2 = 0 ;
24766 PyObject * obj0 = 0 ;
24767 PyObject * obj1 = 0 ;
24768 char * kwnames[] = {
24769 (char *) "self",(char *) "id", NULL
24770 };
24771
24772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24774 if (!SWIG_IsOK(res1)) {
24775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24776 }
24777 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24778 ecode2 = SWIG_AsVal_int(obj1, &val2);
24779 if (!SWIG_IsOK(ecode2)) {
24780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24781 }
24782 arg2 = static_cast< int >(val2);
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24786 wxPyEndAllowThreads(__tstate);
24787 if (PyErr_Occurred()) SWIG_fail;
24788 }
24789 resultobj = SWIG_From_int(static_cast< int >(result));
24790 return resultobj;
24791 fail:
24792 return NULL;
24793 }
24794
24795
24796 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24797 PyObject *resultobj = 0;
24798 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24799 int arg2 ;
24800 bool 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_GetToolState",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_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
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_GetToolState" "', expected argument " "2"" of type '" "int""'");
24820 }
24821 arg2 = static_cast< int >(val2);
24822 {
24823 PyThreadState* __tstate = wxPyBeginAllowThreads();
24824 result = (bool)(arg1)->GetToolState(arg2);
24825 wxPyEndAllowThreads(__tstate);
24826 if (PyErr_Occurred()) SWIG_fail;
24827 }
24828 {
24829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24830 }
24831 return resultobj;
24832 fail:
24833 return NULL;
24834 }
24835
24836
24837 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24838 PyObject *resultobj = 0;
24839 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24840 int arg2 ;
24841 bool result;
24842 void *argp1 = 0 ;
24843 int res1 = 0 ;
24844 int val2 ;
24845 int ecode2 = 0 ;
24846 PyObject * obj0 = 0 ;
24847 PyObject * obj1 = 0 ;
24848 char * kwnames[] = {
24849 (char *) "self",(char *) "id", NULL
24850 };
24851
24852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24854 if (!SWIG_IsOK(res1)) {
24855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24856 }
24857 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24858 ecode2 = SWIG_AsVal_int(obj1, &val2);
24859 if (!SWIG_IsOK(ecode2)) {
24860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24861 }
24862 arg2 = static_cast< int >(val2);
24863 {
24864 PyThreadState* __tstate = wxPyBeginAllowThreads();
24865 result = (bool)(arg1)->GetToolEnabled(arg2);
24866 wxPyEndAllowThreads(__tstate);
24867 if (PyErr_Occurred()) SWIG_fail;
24868 }
24869 {
24870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24871 }
24872 return resultobj;
24873 fail:
24874 return NULL;
24875 }
24876
24877
24878 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24879 PyObject *resultobj = 0;
24880 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24881 int arg2 ;
24882 wxString *arg3 = 0 ;
24883 void *argp1 = 0 ;
24884 int res1 = 0 ;
24885 int val2 ;
24886 int ecode2 = 0 ;
24887 bool temp3 = false ;
24888 PyObject * obj0 = 0 ;
24889 PyObject * obj1 = 0 ;
24890 PyObject * obj2 = 0 ;
24891 char * kwnames[] = {
24892 (char *) "self",(char *) "id",(char *) "helpString", NULL
24893 };
24894
24895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24897 if (!SWIG_IsOK(res1)) {
24898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24899 }
24900 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24901 ecode2 = SWIG_AsVal_int(obj1, &val2);
24902 if (!SWIG_IsOK(ecode2)) {
24903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24904 }
24905 arg2 = static_cast< int >(val2);
24906 {
24907 arg3 = wxString_in_helper(obj2);
24908 if (arg3 == NULL) SWIG_fail;
24909 temp3 = true;
24910 }
24911 {
24912 PyThreadState* __tstate = wxPyBeginAllowThreads();
24913 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24914 wxPyEndAllowThreads(__tstate);
24915 if (PyErr_Occurred()) SWIG_fail;
24916 }
24917 resultobj = SWIG_Py_Void();
24918 {
24919 if (temp3)
24920 delete arg3;
24921 }
24922 return resultobj;
24923 fail:
24924 {
24925 if (temp3)
24926 delete arg3;
24927 }
24928 return NULL;
24929 }
24930
24931
24932 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24933 PyObject *resultobj = 0;
24934 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24935 int arg2 ;
24936 wxString result;
24937 void *argp1 = 0 ;
24938 int res1 = 0 ;
24939 int val2 ;
24940 int ecode2 = 0 ;
24941 PyObject * obj0 = 0 ;
24942 PyObject * obj1 = 0 ;
24943 char * kwnames[] = {
24944 (char *) "self",(char *) "id", NULL
24945 };
24946
24947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24949 if (!SWIG_IsOK(res1)) {
24950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24951 }
24952 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24953 ecode2 = SWIG_AsVal_int(obj1, &val2);
24954 if (!SWIG_IsOK(ecode2)) {
24955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24956 }
24957 arg2 = static_cast< int >(val2);
24958 {
24959 PyThreadState* __tstate = wxPyBeginAllowThreads();
24960 result = (arg1)->GetToolShortHelp(arg2);
24961 wxPyEndAllowThreads(__tstate);
24962 if (PyErr_Occurred()) SWIG_fail;
24963 }
24964 {
24965 #if wxUSE_UNICODE
24966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24967 #else
24968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24969 #endif
24970 }
24971 return resultobj;
24972 fail:
24973 return NULL;
24974 }
24975
24976
24977 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24978 PyObject *resultobj = 0;
24979 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24980 int arg2 ;
24981 wxString *arg3 = 0 ;
24982 void *argp1 = 0 ;
24983 int res1 = 0 ;
24984 int val2 ;
24985 int ecode2 = 0 ;
24986 bool temp3 = false ;
24987 PyObject * obj0 = 0 ;
24988 PyObject * obj1 = 0 ;
24989 PyObject * obj2 = 0 ;
24990 char * kwnames[] = {
24991 (char *) "self",(char *) "id",(char *) "helpString", NULL
24992 };
24993
24994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24996 if (!SWIG_IsOK(res1)) {
24997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24998 }
24999 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25000 ecode2 = SWIG_AsVal_int(obj1, &val2);
25001 if (!SWIG_IsOK(ecode2)) {
25002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25003 }
25004 arg2 = static_cast< int >(val2);
25005 {
25006 arg3 = wxString_in_helper(obj2);
25007 if (arg3 == NULL) SWIG_fail;
25008 temp3 = true;
25009 }
25010 {
25011 PyThreadState* __tstate = wxPyBeginAllowThreads();
25012 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25013 wxPyEndAllowThreads(__tstate);
25014 if (PyErr_Occurred()) SWIG_fail;
25015 }
25016 resultobj = SWIG_Py_Void();
25017 {
25018 if (temp3)
25019 delete arg3;
25020 }
25021 return resultobj;
25022 fail:
25023 {
25024 if (temp3)
25025 delete arg3;
25026 }
25027 return NULL;
25028 }
25029
25030
25031 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25032 PyObject *resultobj = 0;
25033 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25034 int arg2 ;
25035 wxString result;
25036 void *argp1 = 0 ;
25037 int res1 = 0 ;
25038 int val2 ;
25039 int ecode2 = 0 ;
25040 PyObject * obj0 = 0 ;
25041 PyObject * obj1 = 0 ;
25042 char * kwnames[] = {
25043 (char *) "self",(char *) "id", NULL
25044 };
25045
25046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25048 if (!SWIG_IsOK(res1)) {
25049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25050 }
25051 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25052 ecode2 = SWIG_AsVal_int(obj1, &val2);
25053 if (!SWIG_IsOK(ecode2)) {
25054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25055 }
25056 arg2 = static_cast< int >(val2);
25057 {
25058 PyThreadState* __tstate = wxPyBeginAllowThreads();
25059 result = (arg1)->GetToolLongHelp(arg2);
25060 wxPyEndAllowThreads(__tstate);
25061 if (PyErr_Occurred()) SWIG_fail;
25062 }
25063 {
25064 #if wxUSE_UNICODE
25065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25066 #else
25067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25068 #endif
25069 }
25070 return resultobj;
25071 fail:
25072 return NULL;
25073 }
25074
25075
25076 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25077 PyObject *resultobj = 0;
25078 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25079 int arg2 ;
25080 int arg3 ;
25081 void *argp1 = 0 ;
25082 int res1 = 0 ;
25083 int val2 ;
25084 int ecode2 = 0 ;
25085 int val3 ;
25086 int ecode3 = 0 ;
25087 PyObject * obj0 = 0 ;
25088 PyObject * obj1 = 0 ;
25089 PyObject * obj2 = 0 ;
25090 char * kwnames[] = {
25091 (char *) "self",(char *) "x",(char *) "y", NULL
25092 };
25093
25094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25098 }
25099 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25100 ecode2 = SWIG_AsVal_int(obj1, &val2);
25101 if (!SWIG_IsOK(ecode2)) {
25102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25103 }
25104 arg2 = static_cast< int >(val2);
25105 ecode3 = SWIG_AsVal_int(obj2, &val3);
25106 if (!SWIG_IsOK(ecode3)) {
25107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25108 }
25109 arg3 = static_cast< int >(val3);
25110 {
25111 PyThreadState* __tstate = wxPyBeginAllowThreads();
25112 (arg1)->SetMargins(arg2,arg3);
25113 wxPyEndAllowThreads(__tstate);
25114 if (PyErr_Occurred()) SWIG_fail;
25115 }
25116 resultobj = SWIG_Py_Void();
25117 return resultobj;
25118 fail:
25119 return NULL;
25120 }
25121
25122
25123 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25124 PyObject *resultobj = 0;
25125 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25126 wxSize *arg2 = 0 ;
25127 void *argp1 = 0 ;
25128 int res1 = 0 ;
25129 wxSize temp2 ;
25130 PyObject * obj0 = 0 ;
25131 PyObject * obj1 = 0 ;
25132 char * kwnames[] = {
25133 (char *) "self",(char *) "size", NULL
25134 };
25135
25136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25138 if (!SWIG_IsOK(res1)) {
25139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25140 }
25141 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25142 {
25143 arg2 = &temp2;
25144 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25145 }
25146 {
25147 PyThreadState* __tstate = wxPyBeginAllowThreads();
25148 (arg1)->SetMargins((wxSize const &)*arg2);
25149 wxPyEndAllowThreads(__tstate);
25150 if (PyErr_Occurred()) SWIG_fail;
25151 }
25152 resultobj = SWIG_Py_Void();
25153 return resultobj;
25154 fail:
25155 return NULL;
25156 }
25157
25158
25159 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25160 PyObject *resultobj = 0;
25161 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25162 int arg2 ;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 int val2 ;
25166 int ecode2 = 0 ;
25167 PyObject * obj0 = 0 ;
25168 PyObject * obj1 = 0 ;
25169 char * kwnames[] = {
25170 (char *) "self",(char *) "packing", NULL
25171 };
25172
25173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25175 if (!SWIG_IsOK(res1)) {
25176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25177 }
25178 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25179 ecode2 = SWIG_AsVal_int(obj1, &val2);
25180 if (!SWIG_IsOK(ecode2)) {
25181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25182 }
25183 arg2 = static_cast< int >(val2);
25184 {
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 (arg1)->SetToolPacking(arg2);
25187 wxPyEndAllowThreads(__tstate);
25188 if (PyErr_Occurred()) SWIG_fail;
25189 }
25190 resultobj = SWIG_Py_Void();
25191 return resultobj;
25192 fail:
25193 return NULL;
25194 }
25195
25196
25197 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25198 PyObject *resultobj = 0;
25199 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25200 int arg2 ;
25201 void *argp1 = 0 ;
25202 int res1 = 0 ;
25203 int val2 ;
25204 int ecode2 = 0 ;
25205 PyObject * obj0 = 0 ;
25206 PyObject * obj1 = 0 ;
25207 char * kwnames[] = {
25208 (char *) "self",(char *) "separation", NULL
25209 };
25210
25211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25213 if (!SWIG_IsOK(res1)) {
25214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25215 }
25216 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25217 ecode2 = SWIG_AsVal_int(obj1, &val2);
25218 if (!SWIG_IsOK(ecode2)) {
25219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25220 }
25221 arg2 = static_cast< int >(val2);
25222 {
25223 PyThreadState* __tstate = wxPyBeginAllowThreads();
25224 (arg1)->SetToolSeparation(arg2);
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 resultobj = SWIG_Py_Void();
25229 return resultobj;
25230 fail:
25231 return NULL;
25232 }
25233
25234
25235 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25236 PyObject *resultobj = 0;
25237 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25238 wxSize result;
25239 void *argp1 = 0 ;
25240 int res1 = 0 ;
25241 PyObject *swig_obj[1] ;
25242
25243 if (!args) SWIG_fail;
25244 swig_obj[0] = args;
25245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25246 if (!SWIG_IsOK(res1)) {
25247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25248 }
25249 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25250 {
25251 PyThreadState* __tstate = wxPyBeginAllowThreads();
25252 result = (arg1)->GetToolMargins();
25253 wxPyEndAllowThreads(__tstate);
25254 if (PyErr_Occurred()) SWIG_fail;
25255 }
25256 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25257 return resultobj;
25258 fail:
25259 return NULL;
25260 }
25261
25262
25263 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25264 PyObject *resultobj = 0;
25265 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25266 wxSize result;
25267 void *argp1 = 0 ;
25268 int res1 = 0 ;
25269 PyObject *swig_obj[1] ;
25270
25271 if (!args) SWIG_fail;
25272 swig_obj[0] = args;
25273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25274 if (!SWIG_IsOK(res1)) {
25275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25276 }
25277 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25278 {
25279 PyThreadState* __tstate = wxPyBeginAllowThreads();
25280 result = (arg1)->GetMargins();
25281 wxPyEndAllowThreads(__tstate);
25282 if (PyErr_Occurred()) SWIG_fail;
25283 }
25284 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25285 return resultobj;
25286 fail:
25287 return NULL;
25288 }
25289
25290
25291 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25292 PyObject *resultobj = 0;
25293 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25294 int result;
25295 void *argp1 = 0 ;
25296 int res1 = 0 ;
25297 PyObject *swig_obj[1] ;
25298
25299 if (!args) SWIG_fail;
25300 swig_obj[0] = args;
25301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25302 if (!SWIG_IsOK(res1)) {
25303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25304 }
25305 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25306 {
25307 PyThreadState* __tstate = wxPyBeginAllowThreads();
25308 result = (int)(arg1)->GetToolPacking();
25309 wxPyEndAllowThreads(__tstate);
25310 if (PyErr_Occurred()) SWIG_fail;
25311 }
25312 resultobj = SWIG_From_int(static_cast< int >(result));
25313 return resultobj;
25314 fail:
25315 return NULL;
25316 }
25317
25318
25319 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25320 PyObject *resultobj = 0;
25321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25322 int result;
25323 void *argp1 = 0 ;
25324 int res1 = 0 ;
25325 PyObject *swig_obj[1] ;
25326
25327 if (!args) SWIG_fail;
25328 swig_obj[0] = args;
25329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25330 if (!SWIG_IsOK(res1)) {
25331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25332 }
25333 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25334 {
25335 PyThreadState* __tstate = wxPyBeginAllowThreads();
25336 result = (int)(arg1)->GetToolSeparation();
25337 wxPyEndAllowThreads(__tstate);
25338 if (PyErr_Occurred()) SWIG_fail;
25339 }
25340 resultobj = SWIG_From_int(static_cast< int >(result));
25341 return resultobj;
25342 fail:
25343 return NULL;
25344 }
25345
25346
25347 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj = 0;
25349 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25350 int arg2 ;
25351 void *argp1 = 0 ;
25352 int res1 = 0 ;
25353 int val2 ;
25354 int ecode2 = 0 ;
25355 PyObject * obj0 = 0 ;
25356 PyObject * obj1 = 0 ;
25357 char * kwnames[] = {
25358 (char *) "self",(char *) "nRows", NULL
25359 };
25360
25361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25363 if (!SWIG_IsOK(res1)) {
25364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25365 }
25366 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25367 ecode2 = SWIG_AsVal_int(obj1, &val2);
25368 if (!SWIG_IsOK(ecode2)) {
25369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25370 }
25371 arg2 = static_cast< int >(val2);
25372 {
25373 PyThreadState* __tstate = wxPyBeginAllowThreads();
25374 (arg1)->SetRows(arg2);
25375 wxPyEndAllowThreads(__tstate);
25376 if (PyErr_Occurred()) SWIG_fail;
25377 }
25378 resultobj = SWIG_Py_Void();
25379 return resultobj;
25380 fail:
25381 return NULL;
25382 }
25383
25384
25385 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25386 PyObject *resultobj = 0;
25387 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25388 int arg2 ;
25389 int arg3 ;
25390 void *argp1 = 0 ;
25391 int res1 = 0 ;
25392 int val2 ;
25393 int ecode2 = 0 ;
25394 int val3 ;
25395 int ecode3 = 0 ;
25396 PyObject * obj0 = 0 ;
25397 PyObject * obj1 = 0 ;
25398 PyObject * obj2 = 0 ;
25399 char * kwnames[] = {
25400 (char *) "self",(char *) "rows",(char *) "cols", NULL
25401 };
25402
25403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25405 if (!SWIG_IsOK(res1)) {
25406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25407 }
25408 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25409 ecode2 = SWIG_AsVal_int(obj1, &val2);
25410 if (!SWIG_IsOK(ecode2)) {
25411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25412 }
25413 arg2 = static_cast< int >(val2);
25414 ecode3 = SWIG_AsVal_int(obj2, &val3);
25415 if (!SWIG_IsOK(ecode3)) {
25416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25417 }
25418 arg3 = static_cast< int >(val3);
25419 {
25420 PyThreadState* __tstate = wxPyBeginAllowThreads();
25421 (arg1)->SetMaxRowsCols(arg2,arg3);
25422 wxPyEndAllowThreads(__tstate);
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_Py_Void();
25426 return resultobj;
25427 fail:
25428 return NULL;
25429 }
25430
25431
25432 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25433 PyObject *resultobj = 0;
25434 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25435 int result;
25436 void *argp1 = 0 ;
25437 int res1 = 0 ;
25438 PyObject *swig_obj[1] ;
25439
25440 if (!args) SWIG_fail;
25441 swig_obj[0] = args;
25442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25443 if (!SWIG_IsOK(res1)) {
25444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25445 }
25446 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25447 {
25448 PyThreadState* __tstate = wxPyBeginAllowThreads();
25449 result = (int)(arg1)->GetMaxRows();
25450 wxPyEndAllowThreads(__tstate);
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 resultobj = SWIG_From_int(static_cast< int >(result));
25454 return resultobj;
25455 fail:
25456 return NULL;
25457 }
25458
25459
25460 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25461 PyObject *resultobj = 0;
25462 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25463 int result;
25464 void *argp1 = 0 ;
25465 int res1 = 0 ;
25466 PyObject *swig_obj[1] ;
25467
25468 if (!args) SWIG_fail;
25469 swig_obj[0] = args;
25470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25471 if (!SWIG_IsOK(res1)) {
25472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25473 }
25474 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25475 {
25476 PyThreadState* __tstate = wxPyBeginAllowThreads();
25477 result = (int)(arg1)->GetMaxCols();
25478 wxPyEndAllowThreads(__tstate);
25479 if (PyErr_Occurred()) SWIG_fail;
25480 }
25481 resultobj = SWIG_From_int(static_cast< int >(result));
25482 return resultobj;
25483 fail:
25484 return NULL;
25485 }
25486
25487
25488 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25489 PyObject *resultobj = 0;
25490 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25491 wxSize *arg2 = 0 ;
25492 void *argp1 = 0 ;
25493 int res1 = 0 ;
25494 wxSize temp2 ;
25495 PyObject * obj0 = 0 ;
25496 PyObject * obj1 = 0 ;
25497 char * kwnames[] = {
25498 (char *) "self",(char *) "size", NULL
25499 };
25500
25501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25503 if (!SWIG_IsOK(res1)) {
25504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25505 }
25506 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25507 {
25508 arg2 = &temp2;
25509 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25510 }
25511 {
25512 PyThreadState* __tstate = wxPyBeginAllowThreads();
25513 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25514 wxPyEndAllowThreads(__tstate);
25515 if (PyErr_Occurred()) SWIG_fail;
25516 }
25517 resultobj = SWIG_Py_Void();
25518 return resultobj;
25519 fail:
25520 return NULL;
25521 }
25522
25523
25524 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 PyObject *resultobj = 0;
25526 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25527 wxSize result;
25528 void *argp1 = 0 ;
25529 int res1 = 0 ;
25530 PyObject *swig_obj[1] ;
25531
25532 if (!args) SWIG_fail;
25533 swig_obj[0] = args;
25534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25537 }
25538 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25539 {
25540 PyThreadState* __tstate = wxPyBeginAllowThreads();
25541 result = (arg1)->GetToolBitmapSize();
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25546 return resultobj;
25547 fail:
25548 return NULL;
25549 }
25550
25551
25552 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25553 PyObject *resultobj = 0;
25554 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25555 wxSize result;
25556 void *argp1 = 0 ;
25557 int res1 = 0 ;
25558 PyObject *swig_obj[1] ;
25559
25560 if (!args) SWIG_fail;
25561 swig_obj[0] = args;
25562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25563 if (!SWIG_IsOK(res1)) {
25564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25565 }
25566 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25567 {
25568 PyThreadState* __tstate = wxPyBeginAllowThreads();
25569 result = (arg1)->GetToolSize();
25570 wxPyEndAllowThreads(__tstate);
25571 if (PyErr_Occurred()) SWIG_fail;
25572 }
25573 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25574 return resultobj;
25575 fail:
25576 return NULL;
25577 }
25578
25579
25580 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25581 PyObject *resultobj = 0;
25582 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25583 int arg2 ;
25584 int arg3 ;
25585 wxToolBarToolBase *result = 0 ;
25586 void *argp1 = 0 ;
25587 int res1 = 0 ;
25588 int val2 ;
25589 int ecode2 = 0 ;
25590 int val3 ;
25591 int ecode3 = 0 ;
25592 PyObject * obj0 = 0 ;
25593 PyObject * obj1 = 0 ;
25594 PyObject * obj2 = 0 ;
25595 char * kwnames[] = {
25596 (char *) "self",(char *) "x",(char *) "y", NULL
25597 };
25598
25599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25601 if (!SWIG_IsOK(res1)) {
25602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25603 }
25604 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25605 ecode2 = SWIG_AsVal_int(obj1, &val2);
25606 if (!SWIG_IsOK(ecode2)) {
25607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25608 }
25609 arg2 = static_cast< int >(val2);
25610 ecode3 = SWIG_AsVal_int(obj2, &val3);
25611 if (!SWIG_IsOK(ecode3)) {
25612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25613 }
25614 arg3 = static_cast< int >(val3);
25615 {
25616 PyThreadState* __tstate = wxPyBeginAllowThreads();
25617 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25618 wxPyEndAllowThreads(__tstate);
25619 if (PyErr_Occurred()) SWIG_fail;
25620 }
25621 {
25622 resultobj = wxPyMake_wxObject(result, (bool)0);
25623 }
25624 return resultobj;
25625 fail:
25626 return NULL;
25627 }
25628
25629
25630 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25631 PyObject *resultobj = 0;
25632 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25633 int arg2 ;
25634 wxToolBarToolBase *result = 0 ;
25635 void *argp1 = 0 ;
25636 int res1 = 0 ;
25637 int val2 ;
25638 int ecode2 = 0 ;
25639 PyObject * obj0 = 0 ;
25640 PyObject * obj1 = 0 ;
25641 char * kwnames[] = {
25642 (char *) "self",(char *) "toolid", NULL
25643 };
25644
25645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25647 if (!SWIG_IsOK(res1)) {
25648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25649 }
25650 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25651 ecode2 = SWIG_AsVal_int(obj1, &val2);
25652 if (!SWIG_IsOK(ecode2)) {
25653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25654 }
25655 arg2 = static_cast< int >(val2);
25656 {
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
25658 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25659 wxPyEndAllowThreads(__tstate);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
25662 {
25663 resultobj = wxPyMake_wxObject(result, (bool)0);
25664 }
25665 return resultobj;
25666 fail:
25667 return NULL;
25668 }
25669
25670
25671 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25672 PyObject *resultobj = 0;
25673 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25674 bool result;
25675 void *argp1 = 0 ;
25676 int res1 = 0 ;
25677 PyObject *swig_obj[1] ;
25678
25679 if (!args) SWIG_fail;
25680 swig_obj[0] = args;
25681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25682 if (!SWIG_IsOK(res1)) {
25683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25684 }
25685 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25686 {
25687 PyThreadState* __tstate = wxPyBeginAllowThreads();
25688 result = (bool)(arg1)->IsVertical();
25689 wxPyEndAllowThreads(__tstate);
25690 if (PyErr_Occurred()) SWIG_fail;
25691 }
25692 {
25693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25694 }
25695 return resultobj;
25696 fail:
25697 return NULL;
25698 }
25699
25700
25701 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25702 PyObject *resultobj = 0;
25703 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25704 size_t result;
25705 void *argp1 = 0 ;
25706 int res1 = 0 ;
25707 PyObject *swig_obj[1] ;
25708
25709 if (!args) SWIG_fail;
25710 swig_obj[0] = args;
25711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25712 if (!SWIG_IsOK(res1)) {
25713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25714 }
25715 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25716 {
25717 PyThreadState* __tstate = wxPyBeginAllowThreads();
25718 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25719 wxPyEndAllowThreads(__tstate);
25720 if (PyErr_Occurred()) SWIG_fail;
25721 }
25722 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25723 return resultobj;
25724 fail:
25725 return NULL;
25726 }
25727
25728
25729 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25730 PyObject *obj;
25731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25732 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25733 return SWIG_Py_Void();
25734 }
25735
25736 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25737 PyObject *resultobj = 0;
25738 wxWindow *arg1 = (wxWindow *) 0 ;
25739 int arg2 = (int) -1 ;
25740 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25741 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25742 wxSize const &arg4_defvalue = wxDefaultSize ;
25743 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25744 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25745 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25746 wxString *arg6 = (wxString *) &arg6_defvalue ;
25747 wxToolBar *result = 0 ;
25748 void *argp1 = 0 ;
25749 int res1 = 0 ;
25750 int val2 ;
25751 int ecode2 = 0 ;
25752 wxPoint temp3 ;
25753 wxSize temp4 ;
25754 long val5 ;
25755 int ecode5 = 0 ;
25756 bool temp6 = false ;
25757 PyObject * obj0 = 0 ;
25758 PyObject * obj1 = 0 ;
25759 PyObject * obj2 = 0 ;
25760 PyObject * obj3 = 0 ;
25761 PyObject * obj4 = 0 ;
25762 PyObject * obj5 = 0 ;
25763 char * kwnames[] = {
25764 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25765 };
25766
25767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25769 if (!SWIG_IsOK(res1)) {
25770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25771 }
25772 arg1 = reinterpret_cast< wxWindow * >(argp1);
25773 if (obj1) {
25774 ecode2 = SWIG_AsVal_int(obj1, &val2);
25775 if (!SWIG_IsOK(ecode2)) {
25776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25777 }
25778 arg2 = static_cast< int >(val2);
25779 }
25780 if (obj2) {
25781 {
25782 arg3 = &temp3;
25783 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25784 }
25785 }
25786 if (obj3) {
25787 {
25788 arg4 = &temp4;
25789 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25790 }
25791 }
25792 if (obj4) {
25793 ecode5 = SWIG_AsVal_long(obj4, &val5);
25794 if (!SWIG_IsOK(ecode5)) {
25795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25796 }
25797 arg5 = static_cast< long >(val5);
25798 }
25799 if (obj5) {
25800 {
25801 arg6 = wxString_in_helper(obj5);
25802 if (arg6 == NULL) SWIG_fail;
25803 temp6 = true;
25804 }
25805 }
25806 {
25807 if (!wxPyCheckForApp()) SWIG_fail;
25808 PyThreadState* __tstate = wxPyBeginAllowThreads();
25809 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25810 wxPyEndAllowThreads(__tstate);
25811 if (PyErr_Occurred()) SWIG_fail;
25812 }
25813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25814 {
25815 if (temp6)
25816 delete arg6;
25817 }
25818 return resultobj;
25819 fail:
25820 {
25821 if (temp6)
25822 delete arg6;
25823 }
25824 return NULL;
25825 }
25826
25827
25828 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25829 PyObject *resultobj = 0;
25830 wxToolBar *result = 0 ;
25831
25832 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25833 {
25834 if (!wxPyCheckForApp()) SWIG_fail;
25835 PyThreadState* __tstate = wxPyBeginAllowThreads();
25836 result = (wxToolBar *)new wxToolBar();
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25841 return resultobj;
25842 fail:
25843 return NULL;
25844 }
25845
25846
25847 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25848 PyObject *resultobj = 0;
25849 wxToolBar *arg1 = (wxToolBar *) 0 ;
25850 wxWindow *arg2 = (wxWindow *) 0 ;
25851 int arg3 = (int) -1 ;
25852 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25853 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25854 wxSize const &arg5_defvalue = wxDefaultSize ;
25855 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25856 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25857 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25858 wxString *arg7 = (wxString *) &arg7_defvalue ;
25859 bool result;
25860 void *argp1 = 0 ;
25861 int res1 = 0 ;
25862 void *argp2 = 0 ;
25863 int res2 = 0 ;
25864 int val3 ;
25865 int ecode3 = 0 ;
25866 wxPoint temp4 ;
25867 wxSize temp5 ;
25868 long val6 ;
25869 int ecode6 = 0 ;
25870 bool temp7 = false ;
25871 PyObject * obj0 = 0 ;
25872 PyObject * obj1 = 0 ;
25873 PyObject * obj2 = 0 ;
25874 PyObject * obj3 = 0 ;
25875 PyObject * obj4 = 0 ;
25876 PyObject * obj5 = 0 ;
25877 PyObject * obj6 = 0 ;
25878 char * kwnames[] = {
25879 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25880 };
25881
25882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25884 if (!SWIG_IsOK(res1)) {
25885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25886 }
25887 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25889 if (!SWIG_IsOK(res2)) {
25890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25891 }
25892 arg2 = reinterpret_cast< wxWindow * >(argp2);
25893 if (obj2) {
25894 ecode3 = SWIG_AsVal_int(obj2, &val3);
25895 if (!SWIG_IsOK(ecode3)) {
25896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25897 }
25898 arg3 = static_cast< int >(val3);
25899 }
25900 if (obj3) {
25901 {
25902 arg4 = &temp4;
25903 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25904 }
25905 }
25906 if (obj4) {
25907 {
25908 arg5 = &temp5;
25909 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25910 }
25911 }
25912 if (obj5) {
25913 ecode6 = SWIG_AsVal_long(obj5, &val6);
25914 if (!SWIG_IsOK(ecode6)) {
25915 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25916 }
25917 arg6 = static_cast< long >(val6);
25918 }
25919 if (obj6) {
25920 {
25921 arg7 = wxString_in_helper(obj6);
25922 if (arg7 == NULL) SWIG_fail;
25923 temp7 = true;
25924 }
25925 }
25926 {
25927 PyThreadState* __tstate = wxPyBeginAllowThreads();
25928 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25929 wxPyEndAllowThreads(__tstate);
25930 if (PyErr_Occurred()) SWIG_fail;
25931 }
25932 {
25933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25934 }
25935 {
25936 if (temp7)
25937 delete arg7;
25938 }
25939 return resultobj;
25940 fail:
25941 {
25942 if (temp7)
25943 delete arg7;
25944 }
25945 return NULL;
25946 }
25947
25948
25949 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25950 PyObject *resultobj = 0;
25951 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25952 SwigValueWrapper<wxVisualAttributes > result;
25953 int val1 ;
25954 int ecode1 = 0 ;
25955 PyObject * obj0 = 0 ;
25956 char * kwnames[] = {
25957 (char *) "variant", NULL
25958 };
25959
25960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25961 if (obj0) {
25962 ecode1 = SWIG_AsVal_int(obj0, &val1);
25963 if (!SWIG_IsOK(ecode1)) {
25964 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25965 }
25966 arg1 = static_cast< wxWindowVariant >(val1);
25967 }
25968 {
25969 if (!wxPyCheckForApp()) SWIG_fail;
25970 PyThreadState* __tstate = wxPyBeginAllowThreads();
25971 result = wxToolBar::GetClassDefaultAttributes(arg1);
25972 wxPyEndAllowThreads(__tstate);
25973 if (PyErr_Occurred()) SWIG_fail;
25974 }
25975 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25976 return resultobj;
25977 fail:
25978 return NULL;
25979 }
25980
25981
25982 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25983 PyObject *obj;
25984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25985 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25986 return SWIG_Py_Void();
25987 }
25988
25989 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25990 return SWIG_Python_InitShadowInstance(args);
25991 }
25992
25993 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25994 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25995 return 1;
25996 }
25997
25998
25999 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26000 PyObject *pyobj = 0;
26001
26002 {
26003 #if wxUSE_UNICODE
26004 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26005 #else
26006 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26007 #endif
26008 }
26009 return pyobj;
26010 }
26011
26012
26013 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26014 PyObject *resultobj = 0;
26015 wxColour const &arg1_defvalue = wxNullColour ;
26016 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26017 wxColour const &arg2_defvalue = wxNullColour ;
26018 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26019 wxFont const &arg3_defvalue = wxNullFont ;
26020 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26021 wxListItemAttr *result = 0 ;
26022 wxColour temp1 ;
26023 wxColour temp2 ;
26024 void *argp3 = 0 ;
26025 int res3 = 0 ;
26026 PyObject * obj0 = 0 ;
26027 PyObject * obj1 = 0 ;
26028 PyObject * obj2 = 0 ;
26029 char * kwnames[] = {
26030 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26031 };
26032
26033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26034 if (obj0) {
26035 {
26036 arg1 = &temp1;
26037 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26038 }
26039 }
26040 if (obj1) {
26041 {
26042 arg2 = &temp2;
26043 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26044 }
26045 }
26046 if (obj2) {
26047 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26048 if (!SWIG_IsOK(res3)) {
26049 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26050 }
26051 if (!argp3) {
26052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26053 }
26054 arg3 = reinterpret_cast< wxFont * >(argp3);
26055 }
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26059 wxPyEndAllowThreads(__tstate);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 }
26062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26063 return resultobj;
26064 fail:
26065 return NULL;
26066 }
26067
26068
26069 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26070 PyObject *resultobj = 0;
26071 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26072 void *argp1 = 0 ;
26073 int res1 = 0 ;
26074 PyObject *swig_obj[1] ;
26075
26076 if (!args) SWIG_fail;
26077 swig_obj[0] = args;
26078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26079 if (!SWIG_IsOK(res1)) {
26080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26081 }
26082 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26083 {
26084 PyThreadState* __tstate = wxPyBeginAllowThreads();
26085 delete arg1;
26086
26087 wxPyEndAllowThreads(__tstate);
26088 if (PyErr_Occurred()) SWIG_fail;
26089 }
26090 resultobj = SWIG_Py_Void();
26091 return resultobj;
26092 fail:
26093 return NULL;
26094 }
26095
26096
26097 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26098 PyObject *resultobj = 0;
26099 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26100 wxColour *arg2 = 0 ;
26101 void *argp1 = 0 ;
26102 int res1 = 0 ;
26103 wxColour temp2 ;
26104 PyObject * obj0 = 0 ;
26105 PyObject * obj1 = 0 ;
26106 char * kwnames[] = {
26107 (char *) "self",(char *) "colText", NULL
26108 };
26109
26110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26112 if (!SWIG_IsOK(res1)) {
26113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26114 }
26115 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26116 {
26117 arg2 = &temp2;
26118 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26119 }
26120 {
26121 PyThreadState* __tstate = wxPyBeginAllowThreads();
26122 (arg1)->SetTextColour((wxColour const &)*arg2);
26123 wxPyEndAllowThreads(__tstate);
26124 if (PyErr_Occurred()) SWIG_fail;
26125 }
26126 resultobj = SWIG_Py_Void();
26127 return resultobj;
26128 fail:
26129 return NULL;
26130 }
26131
26132
26133 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26134 PyObject *resultobj = 0;
26135 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26136 wxColour *arg2 = 0 ;
26137 void *argp1 = 0 ;
26138 int res1 = 0 ;
26139 wxColour temp2 ;
26140 PyObject * obj0 = 0 ;
26141 PyObject * obj1 = 0 ;
26142 char * kwnames[] = {
26143 (char *) "self",(char *) "colBack", NULL
26144 };
26145
26146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26148 if (!SWIG_IsOK(res1)) {
26149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26150 }
26151 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26152 {
26153 arg2 = &temp2;
26154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26155 }
26156 {
26157 PyThreadState* __tstate = wxPyBeginAllowThreads();
26158 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26159 wxPyEndAllowThreads(__tstate);
26160 if (PyErr_Occurred()) SWIG_fail;
26161 }
26162 resultobj = SWIG_Py_Void();
26163 return resultobj;
26164 fail:
26165 return NULL;
26166 }
26167
26168
26169 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26170 PyObject *resultobj = 0;
26171 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26172 wxFont *arg2 = 0 ;
26173 void *argp1 = 0 ;
26174 int res1 = 0 ;
26175 void *argp2 = 0 ;
26176 int res2 = 0 ;
26177 PyObject * obj0 = 0 ;
26178 PyObject * obj1 = 0 ;
26179 char * kwnames[] = {
26180 (char *) "self",(char *) "font", NULL
26181 };
26182
26183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26187 }
26188 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26190 if (!SWIG_IsOK(res2)) {
26191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26192 }
26193 if (!argp2) {
26194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26195 }
26196 arg2 = reinterpret_cast< wxFont * >(argp2);
26197 {
26198 PyThreadState* __tstate = wxPyBeginAllowThreads();
26199 (arg1)->SetFont((wxFont const &)*arg2);
26200 wxPyEndAllowThreads(__tstate);
26201 if (PyErr_Occurred()) SWIG_fail;
26202 }
26203 resultobj = SWIG_Py_Void();
26204 return resultobj;
26205 fail:
26206 return NULL;
26207 }
26208
26209
26210 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26211 PyObject *resultobj = 0;
26212 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26213 bool result;
26214 void *argp1 = 0 ;
26215 int res1 = 0 ;
26216 PyObject *swig_obj[1] ;
26217
26218 if (!args) SWIG_fail;
26219 swig_obj[0] = args;
26220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26221 if (!SWIG_IsOK(res1)) {
26222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26223 }
26224 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26225 {
26226 PyThreadState* __tstate = wxPyBeginAllowThreads();
26227 result = (bool)(arg1)->HasTextColour();
26228 wxPyEndAllowThreads(__tstate);
26229 if (PyErr_Occurred()) SWIG_fail;
26230 }
26231 {
26232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26233 }
26234 return resultobj;
26235 fail:
26236 return NULL;
26237 }
26238
26239
26240 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26241 PyObject *resultobj = 0;
26242 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26243 bool result;
26244 void *argp1 = 0 ;
26245 int res1 = 0 ;
26246 PyObject *swig_obj[1] ;
26247
26248 if (!args) SWIG_fail;
26249 swig_obj[0] = args;
26250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26251 if (!SWIG_IsOK(res1)) {
26252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26253 }
26254 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 result = (bool)(arg1)->HasBackgroundColour();
26258 wxPyEndAllowThreads(__tstate);
26259 if (PyErr_Occurred()) SWIG_fail;
26260 }
26261 {
26262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26263 }
26264 return resultobj;
26265 fail:
26266 return NULL;
26267 }
26268
26269
26270 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26271 PyObject *resultobj = 0;
26272 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26273 bool result;
26274 void *argp1 = 0 ;
26275 int res1 = 0 ;
26276 PyObject *swig_obj[1] ;
26277
26278 if (!args) SWIG_fail;
26279 swig_obj[0] = args;
26280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26281 if (!SWIG_IsOK(res1)) {
26282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26283 }
26284 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26285 {
26286 PyThreadState* __tstate = wxPyBeginAllowThreads();
26287 result = (bool)(arg1)->HasFont();
26288 wxPyEndAllowThreads(__tstate);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 }
26291 {
26292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26293 }
26294 return resultobj;
26295 fail:
26296 return NULL;
26297 }
26298
26299
26300 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26301 PyObject *resultobj = 0;
26302 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26303 wxColour result;
26304 void *argp1 = 0 ;
26305 int res1 = 0 ;
26306 PyObject *swig_obj[1] ;
26307
26308 if (!args) SWIG_fail;
26309 swig_obj[0] = args;
26310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26311 if (!SWIG_IsOK(res1)) {
26312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26313 }
26314 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 result = (arg1)->GetTextColour();
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26329 PyObject *resultobj = 0;
26330 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26331 wxColour result;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 PyObject *swig_obj[1] ;
26335
26336 if (!args) SWIG_fail;
26337 swig_obj[0] = args;
26338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26339 if (!SWIG_IsOK(res1)) {
26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26341 }
26342 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26343 {
26344 PyThreadState* __tstate = wxPyBeginAllowThreads();
26345 result = (arg1)->GetBackgroundColour();
26346 wxPyEndAllowThreads(__tstate);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 }
26349 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26350 return resultobj;
26351 fail:
26352 return NULL;
26353 }
26354
26355
26356 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26357 PyObject *resultobj = 0;
26358 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26359 wxFont result;
26360 void *argp1 = 0 ;
26361 int res1 = 0 ;
26362 PyObject *swig_obj[1] ;
26363
26364 if (!args) SWIG_fail;
26365 swig_obj[0] = args;
26366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26367 if (!SWIG_IsOK(res1)) {
26368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26369 }
26370 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26371 {
26372 PyThreadState* __tstate = wxPyBeginAllowThreads();
26373 result = (arg1)->GetFont();
26374 wxPyEndAllowThreads(__tstate);
26375 if (PyErr_Occurred()) SWIG_fail;
26376 }
26377 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26378 return resultobj;
26379 fail:
26380 return NULL;
26381 }
26382
26383
26384 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26385 PyObject *resultobj = 0;
26386 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26387 wxListItemAttr *arg2 = 0 ;
26388 void *argp1 = 0 ;
26389 int res1 = 0 ;
26390 void *argp2 = 0 ;
26391 int res2 = 0 ;
26392 PyObject * obj0 = 0 ;
26393 PyObject * obj1 = 0 ;
26394 char * kwnames[] = {
26395 (char *) "self",(char *) "source", NULL
26396 };
26397
26398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26400 if (!SWIG_IsOK(res1)) {
26401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26402 }
26403 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26405 if (!SWIG_IsOK(res2)) {
26406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26407 }
26408 if (!argp2) {
26409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26410 }
26411 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26412 {
26413 PyThreadState* __tstate = wxPyBeginAllowThreads();
26414 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26415 wxPyEndAllowThreads(__tstate);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 }
26418 resultobj = SWIG_Py_Void();
26419 return resultobj;
26420 fail:
26421 return NULL;
26422 }
26423
26424
26425 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26426 PyObject *resultobj = 0;
26427 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26428 void *argp1 = 0 ;
26429 int res1 = 0 ;
26430 PyObject *swig_obj[1] ;
26431
26432 if (!args) SWIG_fail;
26433 swig_obj[0] = args;
26434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26435 if (!SWIG_IsOK(res1)) {
26436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26437 }
26438 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26439 {
26440 PyThreadState* __tstate = wxPyBeginAllowThreads();
26441 wxListItemAttr_Destroy(arg1);
26442 wxPyEndAllowThreads(__tstate);
26443 if (PyErr_Occurred()) SWIG_fail;
26444 }
26445 resultobj = SWIG_Py_Void();
26446 return resultobj;
26447 fail:
26448 return NULL;
26449 }
26450
26451
26452 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26453 PyObject *obj;
26454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26455 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26456 return SWIG_Py_Void();
26457 }
26458
26459 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26460 return SWIG_Python_InitShadowInstance(args);
26461 }
26462
26463 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26464 PyObject *resultobj = 0;
26465 wxListItem *result = 0 ;
26466
26467 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26468 {
26469 PyThreadState* __tstate = wxPyBeginAllowThreads();
26470 result = (wxListItem *)new wxListItem();
26471 wxPyEndAllowThreads(__tstate);
26472 if (PyErr_Occurred()) SWIG_fail;
26473 }
26474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26475 return resultobj;
26476 fail:
26477 return NULL;
26478 }
26479
26480
26481 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26482 PyObject *resultobj = 0;
26483 wxListItem *arg1 = (wxListItem *) 0 ;
26484 void *argp1 = 0 ;
26485 int res1 = 0 ;
26486 PyObject *swig_obj[1] ;
26487
26488 if (!args) SWIG_fail;
26489 swig_obj[0] = args;
26490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26491 if (!SWIG_IsOK(res1)) {
26492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26493 }
26494 arg1 = reinterpret_cast< wxListItem * >(argp1);
26495 {
26496 PyThreadState* __tstate = wxPyBeginAllowThreads();
26497 delete arg1;
26498
26499 wxPyEndAllowThreads(__tstate);
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 resultobj = SWIG_Py_Void();
26503 return resultobj;
26504 fail:
26505 return NULL;
26506 }
26507
26508
26509 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26510 PyObject *resultobj = 0;
26511 wxListItem *arg1 = (wxListItem *) 0 ;
26512 void *argp1 = 0 ;
26513 int res1 = 0 ;
26514 PyObject *swig_obj[1] ;
26515
26516 if (!args) SWIG_fail;
26517 swig_obj[0] = args;
26518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26519 if (!SWIG_IsOK(res1)) {
26520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26521 }
26522 arg1 = reinterpret_cast< wxListItem * >(argp1);
26523 {
26524 PyThreadState* __tstate = wxPyBeginAllowThreads();
26525 (arg1)->Clear();
26526 wxPyEndAllowThreads(__tstate);
26527 if (PyErr_Occurred()) SWIG_fail;
26528 }
26529 resultobj = SWIG_Py_Void();
26530 return resultobj;
26531 fail:
26532 return NULL;
26533 }
26534
26535
26536 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26537 PyObject *resultobj = 0;
26538 wxListItem *arg1 = (wxListItem *) 0 ;
26539 void *argp1 = 0 ;
26540 int res1 = 0 ;
26541 PyObject *swig_obj[1] ;
26542
26543 if (!args) SWIG_fail;
26544 swig_obj[0] = args;
26545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26546 if (!SWIG_IsOK(res1)) {
26547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26548 }
26549 arg1 = reinterpret_cast< wxListItem * >(argp1);
26550 {
26551 PyThreadState* __tstate = wxPyBeginAllowThreads();
26552 (arg1)->ClearAttributes();
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 return resultobj;
26558 fail:
26559 return NULL;
26560 }
26561
26562
26563 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj = 0;
26565 wxListItem *arg1 = (wxListItem *) 0 ;
26566 long arg2 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 long val2 ;
26570 int ecode2 = 0 ;
26571 PyObject * obj0 = 0 ;
26572 PyObject * obj1 = 0 ;
26573 char * kwnames[] = {
26574 (char *) "self",(char *) "mask", NULL
26575 };
26576
26577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26581 }
26582 arg1 = reinterpret_cast< wxListItem * >(argp1);
26583 ecode2 = SWIG_AsVal_long(obj1, &val2);
26584 if (!SWIG_IsOK(ecode2)) {
26585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26586 }
26587 arg2 = static_cast< long >(val2);
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 (arg1)->SetMask(arg2);
26591 wxPyEndAllowThreads(__tstate);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26602 PyObject *resultobj = 0;
26603 wxListItem *arg1 = (wxListItem *) 0 ;
26604 long arg2 ;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 long val2 ;
26608 int ecode2 = 0 ;
26609 PyObject * obj0 = 0 ;
26610 PyObject * obj1 = 0 ;
26611 char * kwnames[] = {
26612 (char *) "self",(char *) "id", NULL
26613 };
26614
26615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26619 }
26620 arg1 = reinterpret_cast< wxListItem * >(argp1);
26621 ecode2 = SWIG_AsVal_long(obj1, &val2);
26622 if (!SWIG_IsOK(ecode2)) {
26623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26624 }
26625 arg2 = static_cast< long >(val2);
26626 {
26627 PyThreadState* __tstate = wxPyBeginAllowThreads();
26628 (arg1)->SetId(arg2);
26629 wxPyEndAllowThreads(__tstate);
26630 if (PyErr_Occurred()) SWIG_fail;
26631 }
26632 resultobj = SWIG_Py_Void();
26633 return resultobj;
26634 fail:
26635 return NULL;
26636 }
26637
26638
26639 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26640 PyObject *resultobj = 0;
26641 wxListItem *arg1 = (wxListItem *) 0 ;
26642 int arg2 ;
26643 void *argp1 = 0 ;
26644 int res1 = 0 ;
26645 int val2 ;
26646 int ecode2 = 0 ;
26647 PyObject * obj0 = 0 ;
26648 PyObject * obj1 = 0 ;
26649 char * kwnames[] = {
26650 (char *) "self",(char *) "col", NULL
26651 };
26652
26653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26655 if (!SWIG_IsOK(res1)) {
26656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26657 }
26658 arg1 = reinterpret_cast< wxListItem * >(argp1);
26659 ecode2 = SWIG_AsVal_int(obj1, &val2);
26660 if (!SWIG_IsOK(ecode2)) {
26661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26662 }
26663 arg2 = static_cast< int >(val2);
26664 {
26665 PyThreadState* __tstate = wxPyBeginAllowThreads();
26666 (arg1)->SetColumn(arg2);
26667 wxPyEndAllowThreads(__tstate);
26668 if (PyErr_Occurred()) SWIG_fail;
26669 }
26670 resultobj = SWIG_Py_Void();
26671 return resultobj;
26672 fail:
26673 return NULL;
26674 }
26675
26676
26677 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26678 PyObject *resultobj = 0;
26679 wxListItem *arg1 = (wxListItem *) 0 ;
26680 long arg2 ;
26681 void *argp1 = 0 ;
26682 int res1 = 0 ;
26683 long val2 ;
26684 int ecode2 = 0 ;
26685 PyObject * obj0 = 0 ;
26686 PyObject * obj1 = 0 ;
26687 char * kwnames[] = {
26688 (char *) "self",(char *) "state", NULL
26689 };
26690
26691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26693 if (!SWIG_IsOK(res1)) {
26694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26695 }
26696 arg1 = reinterpret_cast< wxListItem * >(argp1);
26697 ecode2 = SWIG_AsVal_long(obj1, &val2);
26698 if (!SWIG_IsOK(ecode2)) {
26699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26700 }
26701 arg2 = static_cast< long >(val2);
26702 {
26703 PyThreadState* __tstate = wxPyBeginAllowThreads();
26704 (arg1)->SetState(arg2);
26705 wxPyEndAllowThreads(__tstate);
26706 if (PyErr_Occurred()) SWIG_fail;
26707 }
26708 resultobj = SWIG_Py_Void();
26709 return resultobj;
26710 fail:
26711 return NULL;
26712 }
26713
26714
26715 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26716 PyObject *resultobj = 0;
26717 wxListItem *arg1 = (wxListItem *) 0 ;
26718 long arg2 ;
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 long val2 ;
26722 int ecode2 = 0 ;
26723 PyObject * obj0 = 0 ;
26724 PyObject * obj1 = 0 ;
26725 char * kwnames[] = {
26726 (char *) "self",(char *) "stateMask", NULL
26727 };
26728
26729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26731 if (!SWIG_IsOK(res1)) {
26732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26733 }
26734 arg1 = reinterpret_cast< wxListItem * >(argp1);
26735 ecode2 = SWIG_AsVal_long(obj1, &val2);
26736 if (!SWIG_IsOK(ecode2)) {
26737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26738 }
26739 arg2 = static_cast< long >(val2);
26740 {
26741 PyThreadState* __tstate = wxPyBeginAllowThreads();
26742 (arg1)->SetStateMask(arg2);
26743 wxPyEndAllowThreads(__tstate);
26744 if (PyErr_Occurred()) SWIG_fail;
26745 }
26746 resultobj = SWIG_Py_Void();
26747 return resultobj;
26748 fail:
26749 return NULL;
26750 }
26751
26752
26753 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26754 PyObject *resultobj = 0;
26755 wxListItem *arg1 = (wxListItem *) 0 ;
26756 wxString *arg2 = 0 ;
26757 void *argp1 = 0 ;
26758 int res1 = 0 ;
26759 bool temp2 = false ;
26760 PyObject * obj0 = 0 ;
26761 PyObject * obj1 = 0 ;
26762 char * kwnames[] = {
26763 (char *) "self",(char *) "text", NULL
26764 };
26765
26766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26768 if (!SWIG_IsOK(res1)) {
26769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26770 }
26771 arg1 = reinterpret_cast< wxListItem * >(argp1);
26772 {
26773 arg2 = wxString_in_helper(obj1);
26774 if (arg2 == NULL) SWIG_fail;
26775 temp2 = true;
26776 }
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 (arg1)->SetText((wxString const &)*arg2);
26780 wxPyEndAllowThreads(__tstate);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 resultobj = SWIG_Py_Void();
26784 {
26785 if (temp2)
26786 delete arg2;
26787 }
26788 return resultobj;
26789 fail:
26790 {
26791 if (temp2)
26792 delete arg2;
26793 }
26794 return NULL;
26795 }
26796
26797
26798 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26799 PyObject *resultobj = 0;
26800 wxListItem *arg1 = (wxListItem *) 0 ;
26801 int arg2 ;
26802 void *argp1 = 0 ;
26803 int res1 = 0 ;
26804 int val2 ;
26805 int ecode2 = 0 ;
26806 PyObject * obj0 = 0 ;
26807 PyObject * obj1 = 0 ;
26808 char * kwnames[] = {
26809 (char *) "self",(char *) "image", NULL
26810 };
26811
26812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26814 if (!SWIG_IsOK(res1)) {
26815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26816 }
26817 arg1 = reinterpret_cast< wxListItem * >(argp1);
26818 ecode2 = SWIG_AsVal_int(obj1, &val2);
26819 if (!SWIG_IsOK(ecode2)) {
26820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26821 }
26822 arg2 = static_cast< int >(val2);
26823 {
26824 PyThreadState* __tstate = wxPyBeginAllowThreads();
26825 (arg1)->SetImage(arg2);
26826 wxPyEndAllowThreads(__tstate);
26827 if (PyErr_Occurred()) SWIG_fail;
26828 }
26829 resultobj = SWIG_Py_Void();
26830 return resultobj;
26831 fail:
26832 return NULL;
26833 }
26834
26835
26836 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26837 PyObject *resultobj = 0;
26838 wxListItem *arg1 = (wxListItem *) 0 ;
26839 long arg2 ;
26840 void *argp1 = 0 ;
26841 int res1 = 0 ;
26842 long val2 ;
26843 int ecode2 = 0 ;
26844 PyObject * obj0 = 0 ;
26845 PyObject * obj1 = 0 ;
26846 char * kwnames[] = {
26847 (char *) "self",(char *) "data", NULL
26848 };
26849
26850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26852 if (!SWIG_IsOK(res1)) {
26853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26854 }
26855 arg1 = reinterpret_cast< wxListItem * >(argp1);
26856 ecode2 = SWIG_AsVal_long(obj1, &val2);
26857 if (!SWIG_IsOK(ecode2)) {
26858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26859 }
26860 arg2 = static_cast< long >(val2);
26861 {
26862 PyThreadState* __tstate = wxPyBeginAllowThreads();
26863 (arg1)->SetData(arg2);
26864 wxPyEndAllowThreads(__tstate);
26865 if (PyErr_Occurred()) SWIG_fail;
26866 }
26867 resultobj = SWIG_Py_Void();
26868 return resultobj;
26869 fail:
26870 return NULL;
26871 }
26872
26873
26874 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26875 PyObject *resultobj = 0;
26876 wxListItem *arg1 = (wxListItem *) 0 ;
26877 int arg2 ;
26878 void *argp1 = 0 ;
26879 int res1 = 0 ;
26880 int val2 ;
26881 int ecode2 = 0 ;
26882 PyObject * obj0 = 0 ;
26883 PyObject * obj1 = 0 ;
26884 char * kwnames[] = {
26885 (char *) "self",(char *) "width", NULL
26886 };
26887
26888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26890 if (!SWIG_IsOK(res1)) {
26891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26892 }
26893 arg1 = reinterpret_cast< wxListItem * >(argp1);
26894 ecode2 = SWIG_AsVal_int(obj1, &val2);
26895 if (!SWIG_IsOK(ecode2)) {
26896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26897 }
26898 arg2 = static_cast< int >(val2);
26899 {
26900 PyThreadState* __tstate = wxPyBeginAllowThreads();
26901 (arg1)->SetWidth(arg2);
26902 wxPyEndAllowThreads(__tstate);
26903 if (PyErr_Occurred()) SWIG_fail;
26904 }
26905 resultobj = SWIG_Py_Void();
26906 return resultobj;
26907 fail:
26908 return NULL;
26909 }
26910
26911
26912 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26913 PyObject *resultobj = 0;
26914 wxListItem *arg1 = (wxListItem *) 0 ;
26915 wxListColumnFormat arg2 ;
26916 void *argp1 = 0 ;
26917 int res1 = 0 ;
26918 int val2 ;
26919 int ecode2 = 0 ;
26920 PyObject * obj0 = 0 ;
26921 PyObject * obj1 = 0 ;
26922 char * kwnames[] = {
26923 (char *) "self",(char *) "align", NULL
26924 };
26925
26926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26928 if (!SWIG_IsOK(res1)) {
26929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26930 }
26931 arg1 = reinterpret_cast< wxListItem * >(argp1);
26932 ecode2 = SWIG_AsVal_int(obj1, &val2);
26933 if (!SWIG_IsOK(ecode2)) {
26934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26935 }
26936 arg2 = static_cast< wxListColumnFormat >(val2);
26937 {
26938 PyThreadState* __tstate = wxPyBeginAllowThreads();
26939 (arg1)->SetAlign(arg2);
26940 wxPyEndAllowThreads(__tstate);
26941 if (PyErr_Occurred()) SWIG_fail;
26942 }
26943 resultobj = SWIG_Py_Void();
26944 return resultobj;
26945 fail:
26946 return NULL;
26947 }
26948
26949
26950 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26951 PyObject *resultobj = 0;
26952 wxListItem *arg1 = (wxListItem *) 0 ;
26953 wxColour *arg2 = 0 ;
26954 void *argp1 = 0 ;
26955 int res1 = 0 ;
26956 wxColour temp2 ;
26957 PyObject * obj0 = 0 ;
26958 PyObject * obj1 = 0 ;
26959 char * kwnames[] = {
26960 (char *) "self",(char *) "colText", NULL
26961 };
26962
26963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26965 if (!SWIG_IsOK(res1)) {
26966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26967 }
26968 arg1 = reinterpret_cast< wxListItem * >(argp1);
26969 {
26970 arg2 = &temp2;
26971 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26972 }
26973 {
26974 PyThreadState* __tstate = wxPyBeginAllowThreads();
26975 (arg1)->SetTextColour((wxColour const &)*arg2);
26976 wxPyEndAllowThreads(__tstate);
26977 if (PyErr_Occurred()) SWIG_fail;
26978 }
26979 resultobj = SWIG_Py_Void();
26980 return resultobj;
26981 fail:
26982 return NULL;
26983 }
26984
26985
26986 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26987 PyObject *resultobj = 0;
26988 wxListItem *arg1 = (wxListItem *) 0 ;
26989 wxColour *arg2 = 0 ;
26990 void *argp1 = 0 ;
26991 int res1 = 0 ;
26992 wxColour temp2 ;
26993 PyObject * obj0 = 0 ;
26994 PyObject * obj1 = 0 ;
26995 char * kwnames[] = {
26996 (char *) "self",(char *) "colBack", NULL
26997 };
26998
26999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27001 if (!SWIG_IsOK(res1)) {
27002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27003 }
27004 arg1 = reinterpret_cast< wxListItem * >(argp1);
27005 {
27006 arg2 = &temp2;
27007 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27008 }
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27012 wxPyEndAllowThreads(__tstate);
27013 if (PyErr_Occurred()) SWIG_fail;
27014 }
27015 resultobj = SWIG_Py_Void();
27016 return resultobj;
27017 fail:
27018 return NULL;
27019 }
27020
27021
27022 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27023 PyObject *resultobj = 0;
27024 wxListItem *arg1 = (wxListItem *) 0 ;
27025 wxFont *arg2 = 0 ;
27026 void *argp1 = 0 ;
27027 int res1 = 0 ;
27028 void *argp2 = 0 ;
27029 int res2 = 0 ;
27030 PyObject * obj0 = 0 ;
27031 PyObject * obj1 = 0 ;
27032 char * kwnames[] = {
27033 (char *) "self",(char *) "font", NULL
27034 };
27035
27036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27038 if (!SWIG_IsOK(res1)) {
27039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27040 }
27041 arg1 = reinterpret_cast< wxListItem * >(argp1);
27042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27043 if (!SWIG_IsOK(res2)) {
27044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27045 }
27046 if (!argp2) {
27047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27048 }
27049 arg2 = reinterpret_cast< wxFont * >(argp2);
27050 {
27051 PyThreadState* __tstate = wxPyBeginAllowThreads();
27052 (arg1)->SetFont((wxFont const &)*arg2);
27053 wxPyEndAllowThreads(__tstate);
27054 if (PyErr_Occurred()) SWIG_fail;
27055 }
27056 resultobj = SWIG_Py_Void();
27057 return resultobj;
27058 fail:
27059 return NULL;
27060 }
27061
27062
27063 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27064 PyObject *resultobj = 0;
27065 wxListItem *arg1 = (wxListItem *) 0 ;
27066 long result;
27067 void *argp1 = 0 ;
27068 int res1 = 0 ;
27069 PyObject *swig_obj[1] ;
27070
27071 if (!args) SWIG_fail;
27072 swig_obj[0] = args;
27073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27074 if (!SWIG_IsOK(res1)) {
27075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27076 }
27077 arg1 = reinterpret_cast< wxListItem * >(argp1);
27078 {
27079 PyThreadState* __tstate = wxPyBeginAllowThreads();
27080 result = (long)(arg1)->GetMask();
27081 wxPyEndAllowThreads(__tstate);
27082 if (PyErr_Occurred()) SWIG_fail;
27083 }
27084 resultobj = SWIG_From_long(static_cast< long >(result));
27085 return resultobj;
27086 fail:
27087 return NULL;
27088 }
27089
27090
27091 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27092 PyObject *resultobj = 0;
27093 wxListItem *arg1 = (wxListItem *) 0 ;
27094 long result;
27095 void *argp1 = 0 ;
27096 int res1 = 0 ;
27097 PyObject *swig_obj[1] ;
27098
27099 if (!args) SWIG_fail;
27100 swig_obj[0] = args;
27101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27102 if (!SWIG_IsOK(res1)) {
27103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27104 }
27105 arg1 = reinterpret_cast< wxListItem * >(argp1);
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 result = (long)(arg1)->GetId();
27109 wxPyEndAllowThreads(__tstate);
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 resultobj = SWIG_From_long(static_cast< long >(result));
27113 return resultobj;
27114 fail:
27115 return NULL;
27116 }
27117
27118
27119 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27120 PyObject *resultobj = 0;
27121 wxListItem *arg1 = (wxListItem *) 0 ;
27122 int result;
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 PyObject *swig_obj[1] ;
27126
27127 if (!args) SWIG_fail;
27128 swig_obj[0] = args;
27129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27130 if (!SWIG_IsOK(res1)) {
27131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27132 }
27133 arg1 = reinterpret_cast< wxListItem * >(argp1);
27134 {
27135 PyThreadState* __tstate = wxPyBeginAllowThreads();
27136 result = (int)(arg1)->GetColumn();
27137 wxPyEndAllowThreads(__tstate);
27138 if (PyErr_Occurred()) SWIG_fail;
27139 }
27140 resultobj = SWIG_From_int(static_cast< int >(result));
27141 return resultobj;
27142 fail:
27143 return NULL;
27144 }
27145
27146
27147 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27148 PyObject *resultobj = 0;
27149 wxListItem *arg1 = (wxListItem *) 0 ;
27150 long result;
27151 void *argp1 = 0 ;
27152 int res1 = 0 ;
27153 PyObject *swig_obj[1] ;
27154
27155 if (!args) SWIG_fail;
27156 swig_obj[0] = args;
27157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27158 if (!SWIG_IsOK(res1)) {
27159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27160 }
27161 arg1 = reinterpret_cast< wxListItem * >(argp1);
27162 {
27163 PyThreadState* __tstate = wxPyBeginAllowThreads();
27164 result = (long)(arg1)->GetState();
27165 wxPyEndAllowThreads(__tstate);
27166 if (PyErr_Occurred()) SWIG_fail;
27167 }
27168 resultobj = SWIG_From_long(static_cast< long >(result));
27169 return resultobj;
27170 fail:
27171 return NULL;
27172 }
27173
27174
27175 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27176 PyObject *resultobj = 0;
27177 wxListItem *arg1 = (wxListItem *) 0 ;
27178 wxString *result = 0 ;
27179 void *argp1 = 0 ;
27180 int res1 = 0 ;
27181 PyObject *swig_obj[1] ;
27182
27183 if (!args) SWIG_fail;
27184 swig_obj[0] = args;
27185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27186 if (!SWIG_IsOK(res1)) {
27187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27188 }
27189 arg1 = reinterpret_cast< wxListItem * >(argp1);
27190 {
27191 PyThreadState* __tstate = wxPyBeginAllowThreads();
27192 {
27193 wxString const &_result_ref = (arg1)->GetText();
27194 result = (wxString *) &_result_ref;
27195 }
27196 wxPyEndAllowThreads(__tstate);
27197 if (PyErr_Occurred()) SWIG_fail;
27198 }
27199 {
27200 #if wxUSE_UNICODE
27201 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27202 #else
27203 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27204 #endif
27205 }
27206 return resultobj;
27207 fail:
27208 return NULL;
27209 }
27210
27211
27212 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27213 PyObject *resultobj = 0;
27214 wxListItem *arg1 = (wxListItem *) 0 ;
27215 int result;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 PyObject *swig_obj[1] ;
27219
27220 if (!args) SWIG_fail;
27221 swig_obj[0] = args;
27222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27223 if (!SWIG_IsOK(res1)) {
27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27225 }
27226 arg1 = reinterpret_cast< wxListItem * >(argp1);
27227 {
27228 PyThreadState* __tstate = wxPyBeginAllowThreads();
27229 result = (int)(arg1)->GetImage();
27230 wxPyEndAllowThreads(__tstate);
27231 if (PyErr_Occurred()) SWIG_fail;
27232 }
27233 resultobj = SWIG_From_int(static_cast< int >(result));
27234 return resultobj;
27235 fail:
27236 return NULL;
27237 }
27238
27239
27240 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27241 PyObject *resultobj = 0;
27242 wxListItem *arg1 = (wxListItem *) 0 ;
27243 long result;
27244 void *argp1 = 0 ;
27245 int res1 = 0 ;
27246 PyObject *swig_obj[1] ;
27247
27248 if (!args) SWIG_fail;
27249 swig_obj[0] = args;
27250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27251 if (!SWIG_IsOK(res1)) {
27252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27253 }
27254 arg1 = reinterpret_cast< wxListItem * >(argp1);
27255 {
27256 PyThreadState* __tstate = wxPyBeginAllowThreads();
27257 result = (long)(arg1)->GetData();
27258 wxPyEndAllowThreads(__tstate);
27259 if (PyErr_Occurred()) SWIG_fail;
27260 }
27261 resultobj = SWIG_From_long(static_cast< long >(result));
27262 return resultobj;
27263 fail:
27264 return NULL;
27265 }
27266
27267
27268 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27269 PyObject *resultobj = 0;
27270 wxListItem *arg1 = (wxListItem *) 0 ;
27271 int result;
27272 void *argp1 = 0 ;
27273 int res1 = 0 ;
27274 PyObject *swig_obj[1] ;
27275
27276 if (!args) SWIG_fail;
27277 swig_obj[0] = args;
27278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27279 if (!SWIG_IsOK(res1)) {
27280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27281 }
27282 arg1 = reinterpret_cast< wxListItem * >(argp1);
27283 {
27284 PyThreadState* __tstate = wxPyBeginAllowThreads();
27285 result = (int)(arg1)->GetWidth();
27286 wxPyEndAllowThreads(__tstate);
27287 if (PyErr_Occurred()) SWIG_fail;
27288 }
27289 resultobj = SWIG_From_int(static_cast< int >(result));
27290 return resultobj;
27291 fail:
27292 return NULL;
27293 }
27294
27295
27296 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27297 PyObject *resultobj = 0;
27298 wxListItem *arg1 = (wxListItem *) 0 ;
27299 wxListColumnFormat result;
27300 void *argp1 = 0 ;
27301 int res1 = 0 ;
27302 PyObject *swig_obj[1] ;
27303
27304 if (!args) SWIG_fail;
27305 swig_obj[0] = args;
27306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27307 if (!SWIG_IsOK(res1)) {
27308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27309 }
27310 arg1 = reinterpret_cast< wxListItem * >(argp1);
27311 {
27312 PyThreadState* __tstate = wxPyBeginAllowThreads();
27313 result = (wxListColumnFormat)(arg1)->GetAlign();
27314 wxPyEndAllowThreads(__tstate);
27315 if (PyErr_Occurred()) SWIG_fail;
27316 }
27317 resultobj = SWIG_From_int(static_cast< int >(result));
27318 return resultobj;
27319 fail:
27320 return NULL;
27321 }
27322
27323
27324 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 PyObject *resultobj = 0;
27326 wxListItem *arg1 = (wxListItem *) 0 ;
27327 wxListItemAttr *result = 0 ;
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
27330 PyObject *swig_obj[1] ;
27331
27332 if (!args) SWIG_fail;
27333 swig_obj[0] = args;
27334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27335 if (!SWIG_IsOK(res1)) {
27336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27337 }
27338 arg1 = reinterpret_cast< wxListItem * >(argp1);
27339 {
27340 PyThreadState* __tstate = wxPyBeginAllowThreads();
27341 result = (wxListItemAttr *)(arg1)->GetAttributes();
27342 wxPyEndAllowThreads(__tstate);
27343 if (PyErr_Occurred()) SWIG_fail;
27344 }
27345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27346 return resultobj;
27347 fail:
27348 return NULL;
27349 }
27350
27351
27352 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27353 PyObject *resultobj = 0;
27354 wxListItem *arg1 = (wxListItem *) 0 ;
27355 bool result;
27356 void *argp1 = 0 ;
27357 int res1 = 0 ;
27358 PyObject *swig_obj[1] ;
27359
27360 if (!args) SWIG_fail;
27361 swig_obj[0] = args;
27362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27363 if (!SWIG_IsOK(res1)) {
27364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27365 }
27366 arg1 = reinterpret_cast< wxListItem * >(argp1);
27367 {
27368 PyThreadState* __tstate = wxPyBeginAllowThreads();
27369 result = (bool)(arg1)->HasAttributes();
27370 wxPyEndAllowThreads(__tstate);
27371 if (PyErr_Occurred()) SWIG_fail;
27372 }
27373 {
27374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27375 }
27376 return resultobj;
27377 fail:
27378 return NULL;
27379 }
27380
27381
27382 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27383 PyObject *resultobj = 0;
27384 wxListItem *arg1 = (wxListItem *) 0 ;
27385 wxColour result;
27386 void *argp1 = 0 ;
27387 int res1 = 0 ;
27388 PyObject *swig_obj[1] ;
27389
27390 if (!args) SWIG_fail;
27391 swig_obj[0] = args;
27392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27393 if (!SWIG_IsOK(res1)) {
27394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27395 }
27396 arg1 = reinterpret_cast< wxListItem * >(argp1);
27397 {
27398 PyThreadState* __tstate = wxPyBeginAllowThreads();
27399 result = ((wxListItem const *)arg1)->GetTextColour();
27400 wxPyEndAllowThreads(__tstate);
27401 if (PyErr_Occurred()) SWIG_fail;
27402 }
27403 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27404 return resultobj;
27405 fail:
27406 return NULL;
27407 }
27408
27409
27410 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27411 PyObject *resultobj = 0;
27412 wxListItem *arg1 = (wxListItem *) 0 ;
27413 wxColour result;
27414 void *argp1 = 0 ;
27415 int res1 = 0 ;
27416 PyObject *swig_obj[1] ;
27417
27418 if (!args) SWIG_fail;
27419 swig_obj[0] = args;
27420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27421 if (!SWIG_IsOK(res1)) {
27422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27423 }
27424 arg1 = reinterpret_cast< wxListItem * >(argp1);
27425 {
27426 PyThreadState* __tstate = wxPyBeginAllowThreads();
27427 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27428 wxPyEndAllowThreads(__tstate);
27429 if (PyErr_Occurred()) SWIG_fail;
27430 }
27431 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27432 return resultobj;
27433 fail:
27434 return NULL;
27435 }
27436
27437
27438 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27439 PyObject *resultobj = 0;
27440 wxListItem *arg1 = (wxListItem *) 0 ;
27441 wxFont result;
27442 void *argp1 = 0 ;
27443 int res1 = 0 ;
27444 PyObject *swig_obj[1] ;
27445
27446 if (!args) SWIG_fail;
27447 swig_obj[0] = args;
27448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27449 if (!SWIG_IsOK(res1)) {
27450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27451 }
27452 arg1 = reinterpret_cast< wxListItem * >(argp1);
27453 {
27454 PyThreadState* __tstate = wxPyBeginAllowThreads();
27455 result = ((wxListItem const *)arg1)->GetFont();
27456 wxPyEndAllowThreads(__tstate);
27457 if (PyErr_Occurred()) SWIG_fail;
27458 }
27459 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27460 return resultobj;
27461 fail:
27462 return NULL;
27463 }
27464
27465
27466 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27467 PyObject *resultobj = 0;
27468 wxListItem *arg1 = (wxListItem *) 0 ;
27469 long arg2 ;
27470 void *argp1 = 0 ;
27471 int res1 = 0 ;
27472 long val2 ;
27473 int ecode2 = 0 ;
27474 PyObject *swig_obj[2] ;
27475
27476 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27478 if (!SWIG_IsOK(res1)) {
27479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27480 }
27481 arg1 = reinterpret_cast< wxListItem * >(argp1);
27482 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27483 if (!SWIG_IsOK(ecode2)) {
27484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27485 }
27486 arg2 = static_cast< long >(val2);
27487 if (arg1) (arg1)->m_mask = arg2;
27488
27489 resultobj = SWIG_Py_Void();
27490 return resultobj;
27491 fail:
27492 return NULL;
27493 }
27494
27495
27496 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27497 PyObject *resultobj = 0;
27498 wxListItem *arg1 = (wxListItem *) 0 ;
27499 long result;
27500 void *argp1 = 0 ;
27501 int res1 = 0 ;
27502 PyObject *swig_obj[1] ;
27503
27504 if (!args) SWIG_fail;
27505 swig_obj[0] = args;
27506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27507 if (!SWIG_IsOK(res1)) {
27508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27509 }
27510 arg1 = reinterpret_cast< wxListItem * >(argp1);
27511 result = (long) ((arg1)->m_mask);
27512 resultobj = SWIG_From_long(static_cast< long >(result));
27513 return resultobj;
27514 fail:
27515 return NULL;
27516 }
27517
27518
27519 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27520 PyObject *resultobj = 0;
27521 wxListItem *arg1 = (wxListItem *) 0 ;
27522 long arg2 ;
27523 void *argp1 = 0 ;
27524 int res1 = 0 ;
27525 long val2 ;
27526 int ecode2 = 0 ;
27527 PyObject *swig_obj[2] ;
27528
27529 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27531 if (!SWIG_IsOK(res1)) {
27532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27533 }
27534 arg1 = reinterpret_cast< wxListItem * >(argp1);
27535 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27536 if (!SWIG_IsOK(ecode2)) {
27537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27538 }
27539 arg2 = static_cast< long >(val2);
27540 if (arg1) (arg1)->m_itemId = arg2;
27541
27542 resultobj = SWIG_Py_Void();
27543 return resultobj;
27544 fail:
27545 return NULL;
27546 }
27547
27548
27549 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27550 PyObject *resultobj = 0;
27551 wxListItem *arg1 = (wxListItem *) 0 ;
27552 long result;
27553 void *argp1 = 0 ;
27554 int res1 = 0 ;
27555 PyObject *swig_obj[1] ;
27556
27557 if (!args) SWIG_fail;
27558 swig_obj[0] = args;
27559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27560 if (!SWIG_IsOK(res1)) {
27561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27562 }
27563 arg1 = reinterpret_cast< wxListItem * >(argp1);
27564 result = (long) ((arg1)->m_itemId);
27565 resultobj = SWIG_From_long(static_cast< long >(result));
27566 return resultobj;
27567 fail:
27568 return NULL;
27569 }
27570
27571
27572 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27573 PyObject *resultobj = 0;
27574 wxListItem *arg1 = (wxListItem *) 0 ;
27575 int arg2 ;
27576 void *argp1 = 0 ;
27577 int res1 = 0 ;
27578 int val2 ;
27579 int ecode2 = 0 ;
27580 PyObject *swig_obj[2] ;
27581
27582 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27584 if (!SWIG_IsOK(res1)) {
27585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27586 }
27587 arg1 = reinterpret_cast< wxListItem * >(argp1);
27588 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27589 if (!SWIG_IsOK(ecode2)) {
27590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27591 }
27592 arg2 = static_cast< int >(val2);
27593 if (arg1) (arg1)->m_col = arg2;
27594
27595 resultobj = SWIG_Py_Void();
27596 return resultobj;
27597 fail:
27598 return NULL;
27599 }
27600
27601
27602 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27603 PyObject *resultobj = 0;
27604 wxListItem *arg1 = (wxListItem *) 0 ;
27605 int result;
27606 void *argp1 = 0 ;
27607 int res1 = 0 ;
27608 PyObject *swig_obj[1] ;
27609
27610 if (!args) SWIG_fail;
27611 swig_obj[0] = args;
27612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27613 if (!SWIG_IsOK(res1)) {
27614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27615 }
27616 arg1 = reinterpret_cast< wxListItem * >(argp1);
27617 result = (int) ((arg1)->m_col);
27618 resultobj = SWIG_From_int(static_cast< int >(result));
27619 return resultobj;
27620 fail:
27621 return NULL;
27622 }
27623
27624
27625 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 PyObject *resultobj = 0;
27627 wxListItem *arg1 = (wxListItem *) 0 ;
27628 long arg2 ;
27629 void *argp1 = 0 ;
27630 int res1 = 0 ;
27631 long val2 ;
27632 int ecode2 = 0 ;
27633 PyObject *swig_obj[2] ;
27634
27635 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27637 if (!SWIG_IsOK(res1)) {
27638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27639 }
27640 arg1 = reinterpret_cast< wxListItem * >(argp1);
27641 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27642 if (!SWIG_IsOK(ecode2)) {
27643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27644 }
27645 arg2 = static_cast< long >(val2);
27646 if (arg1) (arg1)->m_state = arg2;
27647
27648 resultobj = SWIG_Py_Void();
27649 return resultobj;
27650 fail:
27651 return NULL;
27652 }
27653
27654
27655 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27656 PyObject *resultobj = 0;
27657 wxListItem *arg1 = (wxListItem *) 0 ;
27658 long result;
27659 void *argp1 = 0 ;
27660 int res1 = 0 ;
27661 PyObject *swig_obj[1] ;
27662
27663 if (!args) SWIG_fail;
27664 swig_obj[0] = args;
27665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27666 if (!SWIG_IsOK(res1)) {
27667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27668 }
27669 arg1 = reinterpret_cast< wxListItem * >(argp1);
27670 result = (long) ((arg1)->m_state);
27671 resultobj = SWIG_From_long(static_cast< long >(result));
27672 return resultobj;
27673 fail:
27674 return NULL;
27675 }
27676
27677
27678 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27679 PyObject *resultobj = 0;
27680 wxListItem *arg1 = (wxListItem *) 0 ;
27681 long arg2 ;
27682 void *argp1 = 0 ;
27683 int res1 = 0 ;
27684 long val2 ;
27685 int ecode2 = 0 ;
27686 PyObject *swig_obj[2] ;
27687
27688 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27690 if (!SWIG_IsOK(res1)) {
27691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27692 }
27693 arg1 = reinterpret_cast< wxListItem * >(argp1);
27694 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27695 if (!SWIG_IsOK(ecode2)) {
27696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27697 }
27698 arg2 = static_cast< long >(val2);
27699 if (arg1) (arg1)->m_stateMask = arg2;
27700
27701 resultobj = SWIG_Py_Void();
27702 return resultobj;
27703 fail:
27704 return NULL;
27705 }
27706
27707
27708 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27709 PyObject *resultobj = 0;
27710 wxListItem *arg1 = (wxListItem *) 0 ;
27711 long result;
27712 void *argp1 = 0 ;
27713 int res1 = 0 ;
27714 PyObject *swig_obj[1] ;
27715
27716 if (!args) SWIG_fail;
27717 swig_obj[0] = args;
27718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27719 if (!SWIG_IsOK(res1)) {
27720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27721 }
27722 arg1 = reinterpret_cast< wxListItem * >(argp1);
27723 result = (long) ((arg1)->m_stateMask);
27724 resultobj = SWIG_From_long(static_cast< long >(result));
27725 return resultobj;
27726 fail:
27727 return NULL;
27728 }
27729
27730
27731 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27732 PyObject *resultobj = 0;
27733 wxListItem *arg1 = (wxListItem *) 0 ;
27734 wxString *arg2 = (wxString *) 0 ;
27735 void *argp1 = 0 ;
27736 int res1 = 0 ;
27737 bool temp2 = false ;
27738 PyObject *swig_obj[2] ;
27739
27740 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27742 if (!SWIG_IsOK(res1)) {
27743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27744 }
27745 arg1 = reinterpret_cast< wxListItem * >(argp1);
27746 {
27747 arg2 = wxString_in_helper(swig_obj[1]);
27748 if (arg2 == NULL) SWIG_fail;
27749 temp2 = true;
27750 }
27751 if (arg1) (arg1)->m_text = *arg2;
27752
27753 resultobj = SWIG_Py_Void();
27754 {
27755 if (temp2)
27756 delete arg2;
27757 }
27758 return resultobj;
27759 fail:
27760 {
27761 if (temp2)
27762 delete arg2;
27763 }
27764 return NULL;
27765 }
27766
27767
27768 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27769 PyObject *resultobj = 0;
27770 wxListItem *arg1 = (wxListItem *) 0 ;
27771 wxString *result = 0 ;
27772 void *argp1 = 0 ;
27773 int res1 = 0 ;
27774 PyObject *swig_obj[1] ;
27775
27776 if (!args) SWIG_fail;
27777 swig_obj[0] = args;
27778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27779 if (!SWIG_IsOK(res1)) {
27780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27781 }
27782 arg1 = reinterpret_cast< wxListItem * >(argp1);
27783 result = (wxString *)& ((arg1)->m_text);
27784 {
27785 #if wxUSE_UNICODE
27786 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27787 #else
27788 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27789 #endif
27790 }
27791 return resultobj;
27792 fail:
27793 return NULL;
27794 }
27795
27796
27797 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27798 PyObject *resultobj = 0;
27799 wxListItem *arg1 = (wxListItem *) 0 ;
27800 int arg2 ;
27801 void *argp1 = 0 ;
27802 int res1 = 0 ;
27803 int val2 ;
27804 int ecode2 = 0 ;
27805 PyObject *swig_obj[2] ;
27806
27807 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27809 if (!SWIG_IsOK(res1)) {
27810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27811 }
27812 arg1 = reinterpret_cast< wxListItem * >(argp1);
27813 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27814 if (!SWIG_IsOK(ecode2)) {
27815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27816 }
27817 arg2 = static_cast< int >(val2);
27818 if (arg1) (arg1)->m_image = arg2;
27819
27820 resultobj = SWIG_Py_Void();
27821 return resultobj;
27822 fail:
27823 return NULL;
27824 }
27825
27826
27827 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27828 PyObject *resultobj = 0;
27829 wxListItem *arg1 = (wxListItem *) 0 ;
27830 int result;
27831 void *argp1 = 0 ;
27832 int res1 = 0 ;
27833 PyObject *swig_obj[1] ;
27834
27835 if (!args) SWIG_fail;
27836 swig_obj[0] = args;
27837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27838 if (!SWIG_IsOK(res1)) {
27839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27840 }
27841 arg1 = reinterpret_cast< wxListItem * >(argp1);
27842 result = (int) ((arg1)->m_image);
27843 resultobj = SWIG_From_int(static_cast< int >(result));
27844 return resultobj;
27845 fail:
27846 return NULL;
27847 }
27848
27849
27850 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27851 PyObject *resultobj = 0;
27852 wxListItem *arg1 = (wxListItem *) 0 ;
27853 long arg2 ;
27854 void *argp1 = 0 ;
27855 int res1 = 0 ;
27856 long val2 ;
27857 int ecode2 = 0 ;
27858 PyObject *swig_obj[2] ;
27859
27860 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27862 if (!SWIG_IsOK(res1)) {
27863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27864 }
27865 arg1 = reinterpret_cast< wxListItem * >(argp1);
27866 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27867 if (!SWIG_IsOK(ecode2)) {
27868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27869 }
27870 arg2 = static_cast< long >(val2);
27871 if (arg1) (arg1)->m_data = arg2;
27872
27873 resultobj = SWIG_Py_Void();
27874 return resultobj;
27875 fail:
27876 return NULL;
27877 }
27878
27879
27880 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27881 PyObject *resultobj = 0;
27882 wxListItem *arg1 = (wxListItem *) 0 ;
27883 long result;
27884 void *argp1 = 0 ;
27885 int res1 = 0 ;
27886 PyObject *swig_obj[1] ;
27887
27888 if (!args) SWIG_fail;
27889 swig_obj[0] = args;
27890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27891 if (!SWIG_IsOK(res1)) {
27892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27893 }
27894 arg1 = reinterpret_cast< wxListItem * >(argp1);
27895 result = (long) ((arg1)->m_data);
27896 resultobj = SWIG_From_long(static_cast< long >(result));
27897 return resultobj;
27898 fail:
27899 return NULL;
27900 }
27901
27902
27903 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27904 PyObject *resultobj = 0;
27905 wxListItem *arg1 = (wxListItem *) 0 ;
27906 int arg2 ;
27907 void *argp1 = 0 ;
27908 int res1 = 0 ;
27909 int val2 ;
27910 int ecode2 = 0 ;
27911 PyObject *swig_obj[2] ;
27912
27913 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27915 if (!SWIG_IsOK(res1)) {
27916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27917 }
27918 arg1 = reinterpret_cast< wxListItem * >(argp1);
27919 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27920 if (!SWIG_IsOK(ecode2)) {
27921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27922 }
27923 arg2 = static_cast< int >(val2);
27924 if (arg1) (arg1)->m_format = arg2;
27925
27926 resultobj = SWIG_Py_Void();
27927 return resultobj;
27928 fail:
27929 return NULL;
27930 }
27931
27932
27933 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27934 PyObject *resultobj = 0;
27935 wxListItem *arg1 = (wxListItem *) 0 ;
27936 int result;
27937 void *argp1 = 0 ;
27938 int res1 = 0 ;
27939 PyObject *swig_obj[1] ;
27940
27941 if (!args) SWIG_fail;
27942 swig_obj[0] = args;
27943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27944 if (!SWIG_IsOK(res1)) {
27945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27946 }
27947 arg1 = reinterpret_cast< wxListItem * >(argp1);
27948 result = (int) ((arg1)->m_format);
27949 resultobj = SWIG_From_int(static_cast< int >(result));
27950 return resultobj;
27951 fail:
27952 return NULL;
27953 }
27954
27955
27956 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27957 PyObject *resultobj = 0;
27958 wxListItem *arg1 = (wxListItem *) 0 ;
27959 int arg2 ;
27960 void *argp1 = 0 ;
27961 int res1 = 0 ;
27962 int val2 ;
27963 int ecode2 = 0 ;
27964 PyObject *swig_obj[2] ;
27965
27966 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27968 if (!SWIG_IsOK(res1)) {
27969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27970 }
27971 arg1 = reinterpret_cast< wxListItem * >(argp1);
27972 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27973 if (!SWIG_IsOK(ecode2)) {
27974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27975 }
27976 arg2 = static_cast< int >(val2);
27977 if (arg1) (arg1)->m_width = arg2;
27978
27979 resultobj = SWIG_Py_Void();
27980 return resultobj;
27981 fail:
27982 return NULL;
27983 }
27984
27985
27986 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27987 PyObject *resultobj = 0;
27988 wxListItem *arg1 = (wxListItem *) 0 ;
27989 int result;
27990 void *argp1 = 0 ;
27991 int res1 = 0 ;
27992 PyObject *swig_obj[1] ;
27993
27994 if (!args) SWIG_fail;
27995 swig_obj[0] = args;
27996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27997 if (!SWIG_IsOK(res1)) {
27998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27999 }
28000 arg1 = reinterpret_cast< wxListItem * >(argp1);
28001 result = (int) ((arg1)->m_width);
28002 resultobj = SWIG_From_int(static_cast< int >(result));
28003 return resultobj;
28004 fail:
28005 return NULL;
28006 }
28007
28008
28009 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28010 PyObject *obj;
28011 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28012 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28013 return SWIG_Py_Void();
28014 }
28015
28016 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28017 return SWIG_Python_InitShadowInstance(args);
28018 }
28019
28020 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28021 PyObject *resultobj = 0;
28022 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28023 int arg2 = (int) 0 ;
28024 wxListEvent *result = 0 ;
28025 int val1 ;
28026 int ecode1 = 0 ;
28027 int val2 ;
28028 int ecode2 = 0 ;
28029 PyObject * obj0 = 0 ;
28030 PyObject * obj1 = 0 ;
28031 char * kwnames[] = {
28032 (char *) "commandType",(char *) "id", NULL
28033 };
28034
28035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28036 if (obj0) {
28037 ecode1 = SWIG_AsVal_int(obj0, &val1);
28038 if (!SWIG_IsOK(ecode1)) {
28039 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28040 }
28041 arg1 = static_cast< wxEventType >(val1);
28042 }
28043 if (obj1) {
28044 ecode2 = SWIG_AsVal_int(obj1, &val2);
28045 if (!SWIG_IsOK(ecode2)) {
28046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28047 }
28048 arg2 = static_cast< int >(val2);
28049 }
28050 {
28051 PyThreadState* __tstate = wxPyBeginAllowThreads();
28052 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28053 wxPyEndAllowThreads(__tstate);
28054 if (PyErr_Occurred()) SWIG_fail;
28055 }
28056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28057 return resultobj;
28058 fail:
28059 return NULL;
28060 }
28061
28062
28063 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28064 PyObject *resultobj = 0;
28065 wxListEvent *arg1 = (wxListEvent *) 0 ;
28066 int arg2 ;
28067 void *argp1 = 0 ;
28068 int res1 = 0 ;
28069 int val2 ;
28070 int ecode2 = 0 ;
28071 PyObject *swig_obj[2] ;
28072
28073 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28075 if (!SWIG_IsOK(res1)) {
28076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28077 }
28078 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28079 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28080 if (!SWIG_IsOK(ecode2)) {
28081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28082 }
28083 arg2 = static_cast< int >(val2);
28084 if (arg1) (arg1)->m_code = arg2;
28085
28086 resultobj = SWIG_Py_Void();
28087 return resultobj;
28088 fail:
28089 return NULL;
28090 }
28091
28092
28093 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28094 PyObject *resultobj = 0;
28095 wxListEvent *arg1 = (wxListEvent *) 0 ;
28096 int result;
28097 void *argp1 = 0 ;
28098 int res1 = 0 ;
28099 PyObject *swig_obj[1] ;
28100
28101 if (!args) SWIG_fail;
28102 swig_obj[0] = args;
28103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28104 if (!SWIG_IsOK(res1)) {
28105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28106 }
28107 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28108 result = (int) ((arg1)->m_code);
28109 resultobj = SWIG_From_int(static_cast< int >(result));
28110 return resultobj;
28111 fail:
28112 return NULL;
28113 }
28114
28115
28116 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28117 PyObject *resultobj = 0;
28118 wxListEvent *arg1 = (wxListEvent *) 0 ;
28119 long arg2 ;
28120 void *argp1 = 0 ;
28121 int res1 = 0 ;
28122 long val2 ;
28123 int ecode2 = 0 ;
28124 PyObject *swig_obj[2] ;
28125
28126 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28128 if (!SWIG_IsOK(res1)) {
28129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28130 }
28131 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28132 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28133 if (!SWIG_IsOK(ecode2)) {
28134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28135 }
28136 arg2 = static_cast< long >(val2);
28137 if (arg1) (arg1)->m_oldItemIndex = arg2;
28138
28139 resultobj = SWIG_Py_Void();
28140 return resultobj;
28141 fail:
28142 return NULL;
28143 }
28144
28145
28146 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28147 PyObject *resultobj = 0;
28148 wxListEvent *arg1 = (wxListEvent *) 0 ;
28149 long result;
28150 void *argp1 = 0 ;
28151 int res1 = 0 ;
28152 PyObject *swig_obj[1] ;
28153
28154 if (!args) SWIG_fail;
28155 swig_obj[0] = args;
28156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28157 if (!SWIG_IsOK(res1)) {
28158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28159 }
28160 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28161 result = (long) ((arg1)->m_oldItemIndex);
28162 resultobj = SWIG_From_long(static_cast< long >(result));
28163 return resultobj;
28164 fail:
28165 return NULL;
28166 }
28167
28168
28169 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28170 PyObject *resultobj = 0;
28171 wxListEvent *arg1 = (wxListEvent *) 0 ;
28172 long arg2 ;
28173 void *argp1 = 0 ;
28174 int res1 = 0 ;
28175 long val2 ;
28176 int ecode2 = 0 ;
28177 PyObject *swig_obj[2] ;
28178
28179 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28181 if (!SWIG_IsOK(res1)) {
28182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28183 }
28184 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28185 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28186 if (!SWIG_IsOK(ecode2)) {
28187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28188 }
28189 arg2 = static_cast< long >(val2);
28190 if (arg1) (arg1)->m_itemIndex = arg2;
28191
28192 resultobj = SWIG_Py_Void();
28193 return resultobj;
28194 fail:
28195 return NULL;
28196 }
28197
28198
28199 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28200 PyObject *resultobj = 0;
28201 wxListEvent *arg1 = (wxListEvent *) 0 ;
28202 long result;
28203 void *argp1 = 0 ;
28204 int res1 = 0 ;
28205 PyObject *swig_obj[1] ;
28206
28207 if (!args) SWIG_fail;
28208 swig_obj[0] = args;
28209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28210 if (!SWIG_IsOK(res1)) {
28211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28212 }
28213 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28214 result = (long) ((arg1)->m_itemIndex);
28215 resultobj = SWIG_From_long(static_cast< long >(result));
28216 return resultobj;
28217 fail:
28218 return NULL;
28219 }
28220
28221
28222 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28223 PyObject *resultobj = 0;
28224 wxListEvent *arg1 = (wxListEvent *) 0 ;
28225 int arg2 ;
28226 void *argp1 = 0 ;
28227 int res1 = 0 ;
28228 int val2 ;
28229 int ecode2 = 0 ;
28230 PyObject *swig_obj[2] ;
28231
28232 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28234 if (!SWIG_IsOK(res1)) {
28235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28236 }
28237 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28238 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28239 if (!SWIG_IsOK(ecode2)) {
28240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28241 }
28242 arg2 = static_cast< int >(val2);
28243 if (arg1) (arg1)->m_col = arg2;
28244
28245 resultobj = SWIG_Py_Void();
28246 return resultobj;
28247 fail:
28248 return NULL;
28249 }
28250
28251
28252 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28253 PyObject *resultobj = 0;
28254 wxListEvent *arg1 = (wxListEvent *) 0 ;
28255 int result;
28256 void *argp1 = 0 ;
28257 int res1 = 0 ;
28258 PyObject *swig_obj[1] ;
28259
28260 if (!args) SWIG_fail;
28261 swig_obj[0] = args;
28262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28263 if (!SWIG_IsOK(res1)) {
28264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28265 }
28266 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28267 result = (int) ((arg1)->m_col);
28268 resultobj = SWIG_From_int(static_cast< int >(result));
28269 return resultobj;
28270 fail:
28271 return NULL;
28272 }
28273
28274
28275 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28276 PyObject *resultobj = 0;
28277 wxListEvent *arg1 = (wxListEvent *) 0 ;
28278 wxPoint *arg2 = (wxPoint *) 0 ;
28279 void *argp1 = 0 ;
28280 int res1 = 0 ;
28281 void *argp2 = 0 ;
28282 int res2 = 0 ;
28283 PyObject *swig_obj[2] ;
28284
28285 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28287 if (!SWIG_IsOK(res1)) {
28288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28289 }
28290 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28291 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28292 if (!SWIG_IsOK(res2)) {
28293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28294 }
28295 arg2 = reinterpret_cast< wxPoint * >(argp2);
28296 if (arg1) (arg1)->m_pointDrag = *arg2;
28297
28298 resultobj = SWIG_Py_Void();
28299 return resultobj;
28300 fail:
28301 return NULL;
28302 }
28303
28304
28305 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28306 PyObject *resultobj = 0;
28307 wxListEvent *arg1 = (wxListEvent *) 0 ;
28308 wxPoint *result = 0 ;
28309 void *argp1 = 0 ;
28310 int res1 = 0 ;
28311 PyObject *swig_obj[1] ;
28312
28313 if (!args) SWIG_fail;
28314 swig_obj[0] = args;
28315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28316 if (!SWIG_IsOK(res1)) {
28317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28318 }
28319 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28320 result = (wxPoint *)& ((arg1)->m_pointDrag);
28321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28322 return resultobj;
28323 fail:
28324 return NULL;
28325 }
28326
28327
28328 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28329 PyObject *resultobj = 0;
28330 wxListEvent *arg1 = (wxListEvent *) 0 ;
28331 wxListItem *result = 0 ;
28332 void *argp1 = 0 ;
28333 int res1 = 0 ;
28334 PyObject *swig_obj[1] ;
28335
28336 if (!args) SWIG_fail;
28337 swig_obj[0] = args;
28338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28341 }
28342 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28343 result = (wxListItem *)& ((arg1)->m_item);
28344 {
28345 resultobj = wxPyMake_wxObject(result, 0);
28346 }
28347 return resultobj;
28348 fail:
28349 return NULL;
28350 }
28351
28352
28353 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28354 PyObject *resultobj = 0;
28355 wxListEvent *arg1 = (wxListEvent *) 0 ;
28356 int result;
28357 void *argp1 = 0 ;
28358 int res1 = 0 ;
28359 PyObject *swig_obj[1] ;
28360
28361 if (!args) SWIG_fail;
28362 swig_obj[0] = args;
28363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28364 if (!SWIG_IsOK(res1)) {
28365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28366 }
28367 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28368 {
28369 PyThreadState* __tstate = wxPyBeginAllowThreads();
28370 result = (int)(arg1)->GetKeyCode();
28371 wxPyEndAllowThreads(__tstate);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 resultobj = SWIG_From_int(static_cast< int >(result));
28375 return resultobj;
28376 fail:
28377 return NULL;
28378 }
28379
28380
28381 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28382 PyObject *resultobj = 0;
28383 wxListEvent *arg1 = (wxListEvent *) 0 ;
28384 long result;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 PyObject *swig_obj[1] ;
28388
28389 if (!args) SWIG_fail;
28390 swig_obj[0] = args;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28394 }
28395 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28396 {
28397 PyThreadState* __tstate = wxPyBeginAllowThreads();
28398 result = (long)(arg1)->GetIndex();
28399 wxPyEndAllowThreads(__tstate);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_From_long(static_cast< long >(result));
28403 return resultobj;
28404 fail:
28405 return NULL;
28406 }
28407
28408
28409 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 PyObject *resultobj = 0;
28411 wxListEvent *arg1 = (wxListEvent *) 0 ;
28412 int result;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28422 }
28423 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (int)(arg1)->GetColumn();
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_From_int(static_cast< int >(result));
28431 return resultobj;
28432 fail:
28433 return NULL;
28434 }
28435
28436
28437 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28438 PyObject *resultobj = 0;
28439 wxListEvent *arg1 = (wxListEvent *) 0 ;
28440 wxPoint result;
28441 void *argp1 = 0 ;
28442 int res1 = 0 ;
28443 PyObject *swig_obj[1] ;
28444
28445 if (!args) SWIG_fail;
28446 swig_obj[0] = args;
28447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28448 if (!SWIG_IsOK(res1)) {
28449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28450 }
28451 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28452 {
28453 PyThreadState* __tstate = wxPyBeginAllowThreads();
28454 result = (arg1)->GetPoint();
28455 wxPyEndAllowThreads(__tstate);
28456 if (PyErr_Occurred()) SWIG_fail;
28457 }
28458 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28459 return resultobj;
28460 fail:
28461 return NULL;
28462 }
28463
28464
28465 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28466 PyObject *resultobj = 0;
28467 wxListEvent *arg1 = (wxListEvent *) 0 ;
28468 wxString *result = 0 ;
28469 void *argp1 = 0 ;
28470 int res1 = 0 ;
28471 PyObject *swig_obj[1] ;
28472
28473 if (!args) SWIG_fail;
28474 swig_obj[0] = args;
28475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28476 if (!SWIG_IsOK(res1)) {
28477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28478 }
28479 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28480 {
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
28482 {
28483 wxString const &_result_ref = (arg1)->GetLabel();
28484 result = (wxString *) &_result_ref;
28485 }
28486 wxPyEndAllowThreads(__tstate);
28487 if (PyErr_Occurred()) SWIG_fail;
28488 }
28489 {
28490 #if wxUSE_UNICODE
28491 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28492 #else
28493 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28494 #endif
28495 }
28496 return resultobj;
28497 fail:
28498 return NULL;
28499 }
28500
28501
28502 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28503 PyObject *resultobj = 0;
28504 wxListEvent *arg1 = (wxListEvent *) 0 ;
28505 wxString *result = 0 ;
28506 void *argp1 = 0 ;
28507 int res1 = 0 ;
28508 PyObject *swig_obj[1] ;
28509
28510 if (!args) SWIG_fail;
28511 swig_obj[0] = args;
28512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28515 }
28516 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28517 {
28518 PyThreadState* __tstate = wxPyBeginAllowThreads();
28519 {
28520 wxString const &_result_ref = (arg1)->GetText();
28521 result = (wxString *) &_result_ref;
28522 }
28523 wxPyEndAllowThreads(__tstate);
28524 if (PyErr_Occurred()) SWIG_fail;
28525 }
28526 {
28527 #if wxUSE_UNICODE
28528 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28529 #else
28530 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28531 #endif
28532 }
28533 return resultobj;
28534 fail:
28535 return NULL;
28536 }
28537
28538
28539 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28540 PyObject *resultobj = 0;
28541 wxListEvent *arg1 = (wxListEvent *) 0 ;
28542 int result;
28543 void *argp1 = 0 ;
28544 int res1 = 0 ;
28545 PyObject *swig_obj[1] ;
28546
28547 if (!args) SWIG_fail;
28548 swig_obj[0] = args;
28549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28550 if (!SWIG_IsOK(res1)) {
28551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28552 }
28553 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28554 {
28555 PyThreadState* __tstate = wxPyBeginAllowThreads();
28556 result = (int)(arg1)->GetImage();
28557 wxPyEndAllowThreads(__tstate);
28558 if (PyErr_Occurred()) SWIG_fail;
28559 }
28560 resultobj = SWIG_From_int(static_cast< int >(result));
28561 return resultobj;
28562 fail:
28563 return NULL;
28564 }
28565
28566
28567 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28568 PyObject *resultobj = 0;
28569 wxListEvent *arg1 = (wxListEvent *) 0 ;
28570 long result;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 PyObject *swig_obj[1] ;
28574
28575 if (!args) SWIG_fail;
28576 swig_obj[0] = args;
28577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28578 if (!SWIG_IsOK(res1)) {
28579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28580 }
28581 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28582 {
28583 PyThreadState* __tstate = wxPyBeginAllowThreads();
28584 result = (long)(arg1)->GetData();
28585 wxPyEndAllowThreads(__tstate);
28586 if (PyErr_Occurred()) SWIG_fail;
28587 }
28588 resultobj = SWIG_From_long(static_cast< long >(result));
28589 return resultobj;
28590 fail:
28591 return NULL;
28592 }
28593
28594
28595 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28596 PyObject *resultobj = 0;
28597 wxListEvent *arg1 = (wxListEvent *) 0 ;
28598 long result;
28599 void *argp1 = 0 ;
28600 int res1 = 0 ;
28601 PyObject *swig_obj[1] ;
28602
28603 if (!args) SWIG_fail;
28604 swig_obj[0] = args;
28605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28606 if (!SWIG_IsOK(res1)) {
28607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28608 }
28609 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28610 {
28611 PyThreadState* __tstate = wxPyBeginAllowThreads();
28612 result = (long)(arg1)->GetMask();
28613 wxPyEndAllowThreads(__tstate);
28614 if (PyErr_Occurred()) SWIG_fail;
28615 }
28616 resultobj = SWIG_From_long(static_cast< long >(result));
28617 return resultobj;
28618 fail:
28619 return NULL;
28620 }
28621
28622
28623 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28624 PyObject *resultobj = 0;
28625 wxListEvent *arg1 = (wxListEvent *) 0 ;
28626 wxListItem *result = 0 ;
28627 void *argp1 = 0 ;
28628 int res1 = 0 ;
28629 PyObject *swig_obj[1] ;
28630
28631 if (!args) SWIG_fail;
28632 swig_obj[0] = args;
28633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28634 if (!SWIG_IsOK(res1)) {
28635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28636 }
28637 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28638 {
28639 PyThreadState* __tstate = wxPyBeginAllowThreads();
28640 {
28641 wxListItem const &_result_ref = (arg1)->GetItem();
28642 result = (wxListItem *) &_result_ref;
28643 }
28644 wxPyEndAllowThreads(__tstate);
28645 if (PyErr_Occurred()) SWIG_fail;
28646 }
28647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28648 return resultobj;
28649 fail:
28650 return NULL;
28651 }
28652
28653
28654 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28655 PyObject *resultobj = 0;
28656 wxListEvent *arg1 = (wxListEvent *) 0 ;
28657 long result;
28658 void *argp1 = 0 ;
28659 int res1 = 0 ;
28660 PyObject *swig_obj[1] ;
28661
28662 if (!args) SWIG_fail;
28663 swig_obj[0] = args;
28664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28665 if (!SWIG_IsOK(res1)) {
28666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28667 }
28668 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28669 {
28670 PyThreadState* __tstate = wxPyBeginAllowThreads();
28671 result = (long)(arg1)->GetCacheFrom();
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 resultobj = SWIG_From_long(static_cast< long >(result));
28676 return resultobj;
28677 fail:
28678 return NULL;
28679 }
28680
28681
28682 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28683 PyObject *resultobj = 0;
28684 wxListEvent *arg1 = (wxListEvent *) 0 ;
28685 long result;
28686 void *argp1 = 0 ;
28687 int res1 = 0 ;
28688 PyObject *swig_obj[1] ;
28689
28690 if (!args) SWIG_fail;
28691 swig_obj[0] = args;
28692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28693 if (!SWIG_IsOK(res1)) {
28694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28695 }
28696 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28697 {
28698 PyThreadState* __tstate = wxPyBeginAllowThreads();
28699 result = (long)(arg1)->GetCacheTo();
28700 wxPyEndAllowThreads(__tstate);
28701 if (PyErr_Occurred()) SWIG_fail;
28702 }
28703 resultobj = SWIG_From_long(static_cast< long >(result));
28704 return resultobj;
28705 fail:
28706 return NULL;
28707 }
28708
28709
28710 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28711 PyObject *resultobj = 0;
28712 wxListEvent *arg1 = (wxListEvent *) 0 ;
28713 bool result;
28714 void *argp1 = 0 ;
28715 int res1 = 0 ;
28716 PyObject *swig_obj[1] ;
28717
28718 if (!args) SWIG_fail;
28719 swig_obj[0] = args;
28720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28721 if (!SWIG_IsOK(res1)) {
28722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28723 }
28724 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28725 {
28726 PyThreadState* __tstate = wxPyBeginAllowThreads();
28727 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28728 wxPyEndAllowThreads(__tstate);
28729 if (PyErr_Occurred()) SWIG_fail;
28730 }
28731 {
28732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28733 }
28734 return resultobj;
28735 fail:
28736 return NULL;
28737 }
28738
28739
28740 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28741 PyObject *resultobj = 0;
28742 wxListEvent *arg1 = (wxListEvent *) 0 ;
28743 bool arg2 ;
28744 void *argp1 = 0 ;
28745 int res1 = 0 ;
28746 bool val2 ;
28747 int ecode2 = 0 ;
28748 PyObject * obj0 = 0 ;
28749 PyObject * obj1 = 0 ;
28750 char * kwnames[] = {
28751 (char *) "self",(char *) "editCancelled", NULL
28752 };
28753
28754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28756 if (!SWIG_IsOK(res1)) {
28757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28758 }
28759 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28760 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28761 if (!SWIG_IsOK(ecode2)) {
28762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28763 }
28764 arg2 = static_cast< bool >(val2);
28765 {
28766 PyThreadState* __tstate = wxPyBeginAllowThreads();
28767 (arg1)->SetEditCanceled(arg2);
28768 wxPyEndAllowThreads(__tstate);
28769 if (PyErr_Occurred()) SWIG_fail;
28770 }
28771 resultobj = SWIG_Py_Void();
28772 return resultobj;
28773 fail:
28774 return NULL;
28775 }
28776
28777
28778 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28779 PyObject *obj;
28780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28781 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28782 return SWIG_Py_Void();
28783 }
28784
28785 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28786 return SWIG_Python_InitShadowInstance(args);
28787 }
28788
28789 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28790 PyObject *resultobj = 0;
28791 wxWindow *arg1 = (wxWindow *) 0 ;
28792 int arg2 = (int) -1 ;
28793 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28794 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28795 wxSize const &arg4_defvalue = wxDefaultSize ;
28796 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28797 long arg5 = (long) wxLC_ICON ;
28798 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28799 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28800 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28801 wxString *arg7 = (wxString *) &arg7_defvalue ;
28802 wxPyListCtrl *result = 0 ;
28803 void *argp1 = 0 ;
28804 int res1 = 0 ;
28805 int val2 ;
28806 int ecode2 = 0 ;
28807 wxPoint temp3 ;
28808 wxSize temp4 ;
28809 long val5 ;
28810 int ecode5 = 0 ;
28811 void *argp6 = 0 ;
28812 int res6 = 0 ;
28813 bool temp7 = false ;
28814 PyObject * obj0 = 0 ;
28815 PyObject * obj1 = 0 ;
28816 PyObject * obj2 = 0 ;
28817 PyObject * obj3 = 0 ;
28818 PyObject * obj4 = 0 ;
28819 PyObject * obj5 = 0 ;
28820 PyObject * obj6 = 0 ;
28821 char * kwnames[] = {
28822 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28823 };
28824
28825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28827 if (!SWIG_IsOK(res1)) {
28828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28829 }
28830 arg1 = reinterpret_cast< wxWindow * >(argp1);
28831 if (obj1) {
28832 ecode2 = SWIG_AsVal_int(obj1, &val2);
28833 if (!SWIG_IsOK(ecode2)) {
28834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28835 }
28836 arg2 = static_cast< int >(val2);
28837 }
28838 if (obj2) {
28839 {
28840 arg3 = &temp3;
28841 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28842 }
28843 }
28844 if (obj3) {
28845 {
28846 arg4 = &temp4;
28847 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28848 }
28849 }
28850 if (obj4) {
28851 ecode5 = SWIG_AsVal_long(obj4, &val5);
28852 if (!SWIG_IsOK(ecode5)) {
28853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28854 }
28855 arg5 = static_cast< long >(val5);
28856 }
28857 if (obj5) {
28858 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28859 if (!SWIG_IsOK(res6)) {
28860 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28861 }
28862 if (!argp6) {
28863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28864 }
28865 arg6 = reinterpret_cast< wxValidator * >(argp6);
28866 }
28867 if (obj6) {
28868 {
28869 arg7 = wxString_in_helper(obj6);
28870 if (arg7 == NULL) SWIG_fail;
28871 temp7 = true;
28872 }
28873 }
28874 {
28875 if (!wxPyCheckForApp()) SWIG_fail;
28876 PyThreadState* __tstate = wxPyBeginAllowThreads();
28877 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28878 wxPyEndAllowThreads(__tstate);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28882 {
28883 if (temp7)
28884 delete arg7;
28885 }
28886 return resultobj;
28887 fail:
28888 {
28889 if (temp7)
28890 delete arg7;
28891 }
28892 return NULL;
28893 }
28894
28895
28896 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28897 PyObject *resultobj = 0;
28898 wxPyListCtrl *result = 0 ;
28899
28900 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28901 {
28902 if (!wxPyCheckForApp()) SWIG_fail;
28903 PyThreadState* __tstate = wxPyBeginAllowThreads();
28904 result = (wxPyListCtrl *)new wxPyListCtrl();
28905 wxPyEndAllowThreads(__tstate);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 }
28908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28909 return resultobj;
28910 fail:
28911 return NULL;
28912 }
28913
28914
28915 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28916 PyObject *resultobj = 0;
28917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28918 wxWindow *arg2 = (wxWindow *) 0 ;
28919 int arg3 = (int) -1 ;
28920 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28921 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28922 wxSize const &arg5_defvalue = wxDefaultSize ;
28923 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28924 long arg6 = (long) wxLC_ICON ;
28925 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28926 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28927 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28928 wxString *arg8 = (wxString *) &arg8_defvalue ;
28929 bool result;
28930 void *argp1 = 0 ;
28931 int res1 = 0 ;
28932 void *argp2 = 0 ;
28933 int res2 = 0 ;
28934 int val3 ;
28935 int ecode3 = 0 ;
28936 wxPoint temp4 ;
28937 wxSize temp5 ;
28938 long val6 ;
28939 int ecode6 = 0 ;
28940 void *argp7 = 0 ;
28941 int res7 = 0 ;
28942 bool temp8 = false ;
28943 PyObject * obj0 = 0 ;
28944 PyObject * obj1 = 0 ;
28945 PyObject * obj2 = 0 ;
28946 PyObject * obj3 = 0 ;
28947 PyObject * obj4 = 0 ;
28948 PyObject * obj5 = 0 ;
28949 PyObject * obj6 = 0 ;
28950 PyObject * obj7 = 0 ;
28951 char * kwnames[] = {
28952 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28953 };
28954
28955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28959 }
28960 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28961 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28962 if (!SWIG_IsOK(res2)) {
28963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28964 }
28965 arg2 = reinterpret_cast< wxWindow * >(argp2);
28966 if (obj2) {
28967 ecode3 = SWIG_AsVal_int(obj2, &val3);
28968 if (!SWIG_IsOK(ecode3)) {
28969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28970 }
28971 arg3 = static_cast< int >(val3);
28972 }
28973 if (obj3) {
28974 {
28975 arg4 = &temp4;
28976 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28977 }
28978 }
28979 if (obj4) {
28980 {
28981 arg5 = &temp5;
28982 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28983 }
28984 }
28985 if (obj5) {
28986 ecode6 = SWIG_AsVal_long(obj5, &val6);
28987 if (!SWIG_IsOK(ecode6)) {
28988 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28989 }
28990 arg6 = static_cast< long >(val6);
28991 }
28992 if (obj6) {
28993 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28994 if (!SWIG_IsOK(res7)) {
28995 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28996 }
28997 if (!argp7) {
28998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28999 }
29000 arg7 = reinterpret_cast< wxValidator * >(argp7);
29001 }
29002 if (obj7) {
29003 {
29004 arg8 = wxString_in_helper(obj7);
29005 if (arg8 == NULL) SWIG_fail;
29006 temp8 = true;
29007 }
29008 }
29009 {
29010 PyThreadState* __tstate = wxPyBeginAllowThreads();
29011 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29012 wxPyEndAllowThreads(__tstate);
29013 if (PyErr_Occurred()) SWIG_fail;
29014 }
29015 {
29016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29017 }
29018 {
29019 if (temp8)
29020 delete arg8;
29021 }
29022 return resultobj;
29023 fail:
29024 {
29025 if (temp8)
29026 delete arg8;
29027 }
29028 return NULL;
29029 }
29030
29031
29032 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29033 PyObject *resultobj = 0;
29034 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29035 PyObject *arg2 = (PyObject *) 0 ;
29036 PyObject *arg3 = (PyObject *) 0 ;
29037 void *argp1 = 0 ;
29038 int res1 = 0 ;
29039 PyObject * obj0 = 0 ;
29040 PyObject * obj1 = 0 ;
29041 PyObject * obj2 = 0 ;
29042 char * kwnames[] = {
29043 (char *) "self",(char *) "self",(char *) "_class", NULL
29044 };
29045
29046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29048 if (!SWIG_IsOK(res1)) {
29049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29050 }
29051 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29052 arg2 = obj1;
29053 arg3 = obj2;
29054 {
29055 PyThreadState* __tstate = wxPyBeginAllowThreads();
29056 (arg1)->_setCallbackInfo(arg2,arg3);
29057 wxPyEndAllowThreads(__tstate);
29058 if (PyErr_Occurred()) SWIG_fail;
29059 }
29060 resultobj = SWIG_Py_Void();
29061 return resultobj;
29062 fail:
29063 return NULL;
29064 }
29065
29066
29067 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29068 PyObject *resultobj = 0;
29069 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29070 int arg2 ;
29071 wxListItem *result = 0 ;
29072 void *argp1 = 0 ;
29073 int res1 = 0 ;
29074 int val2 ;
29075 int ecode2 = 0 ;
29076 PyObject * obj0 = 0 ;
29077 PyObject * obj1 = 0 ;
29078 char * kwnames[] = {
29079 (char *) "self",(char *) "col", NULL
29080 };
29081
29082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29084 if (!SWIG_IsOK(res1)) {
29085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29086 }
29087 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29088 ecode2 = SWIG_AsVal_int(obj1, &val2);
29089 if (!SWIG_IsOK(ecode2)) {
29090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29091 }
29092 arg2 = static_cast< int >(val2);
29093 {
29094 PyThreadState* __tstate = wxPyBeginAllowThreads();
29095 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29096 wxPyEndAllowThreads(__tstate);
29097 if (PyErr_Occurred()) SWIG_fail;
29098 }
29099 {
29100 resultobj = wxPyMake_wxObject(result, 0);
29101 }
29102 return resultobj;
29103 fail:
29104 return NULL;
29105 }
29106
29107
29108 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29109 PyObject *resultobj = 0;
29110 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29111 int arg2 ;
29112 wxListItem *arg3 = 0 ;
29113 bool result;
29114 void *argp1 = 0 ;
29115 int res1 = 0 ;
29116 int val2 ;
29117 int ecode2 = 0 ;
29118 void *argp3 = 0 ;
29119 int res3 = 0 ;
29120 PyObject * obj0 = 0 ;
29121 PyObject * obj1 = 0 ;
29122 PyObject * obj2 = 0 ;
29123 char * kwnames[] = {
29124 (char *) "self",(char *) "col",(char *) "item", NULL
29125 };
29126
29127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29129 if (!SWIG_IsOK(res1)) {
29130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29131 }
29132 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29133 ecode2 = SWIG_AsVal_int(obj1, &val2);
29134 if (!SWIG_IsOK(ecode2)) {
29135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29136 }
29137 arg2 = static_cast< int >(val2);
29138 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29139 if (!SWIG_IsOK(res3)) {
29140 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29141 }
29142 if (!argp3) {
29143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29144 }
29145 arg3 = reinterpret_cast< wxListItem * >(argp3);
29146 {
29147 PyThreadState* __tstate = wxPyBeginAllowThreads();
29148 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29149 wxPyEndAllowThreads(__tstate);
29150 if (PyErr_Occurred()) SWIG_fail;
29151 }
29152 {
29153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29154 }
29155 return resultobj;
29156 fail:
29157 return NULL;
29158 }
29159
29160
29161 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29162 PyObject *resultobj = 0;
29163 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29164 int arg2 ;
29165 int result;
29166 void *argp1 = 0 ;
29167 int res1 = 0 ;
29168 int val2 ;
29169 int ecode2 = 0 ;
29170 PyObject * obj0 = 0 ;
29171 PyObject * obj1 = 0 ;
29172 char * kwnames[] = {
29173 (char *) "self",(char *) "col", NULL
29174 };
29175
29176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29178 if (!SWIG_IsOK(res1)) {
29179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29180 }
29181 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29182 ecode2 = SWIG_AsVal_int(obj1, &val2);
29183 if (!SWIG_IsOK(ecode2)) {
29184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29185 }
29186 arg2 = static_cast< int >(val2);
29187 {
29188 PyThreadState* __tstate = wxPyBeginAllowThreads();
29189 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29190 wxPyEndAllowThreads(__tstate);
29191 if (PyErr_Occurred()) SWIG_fail;
29192 }
29193 resultobj = SWIG_From_int(static_cast< int >(result));
29194 return resultobj;
29195 fail:
29196 return NULL;
29197 }
29198
29199
29200 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29201 PyObject *resultobj = 0;
29202 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29203 int arg2 ;
29204 int arg3 ;
29205 bool result;
29206 void *argp1 = 0 ;
29207 int res1 = 0 ;
29208 int val2 ;
29209 int ecode2 = 0 ;
29210 int val3 ;
29211 int ecode3 = 0 ;
29212 PyObject * obj0 = 0 ;
29213 PyObject * obj1 = 0 ;
29214 PyObject * obj2 = 0 ;
29215 char * kwnames[] = {
29216 (char *) "self",(char *) "col",(char *) "width", NULL
29217 };
29218
29219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29221 if (!SWIG_IsOK(res1)) {
29222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29223 }
29224 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29225 ecode2 = SWIG_AsVal_int(obj1, &val2);
29226 if (!SWIG_IsOK(ecode2)) {
29227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29228 }
29229 arg2 = static_cast< int >(val2);
29230 ecode3 = SWIG_AsVal_int(obj2, &val3);
29231 if (!SWIG_IsOK(ecode3)) {
29232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29233 }
29234 arg3 = static_cast< int >(val3);
29235 {
29236 PyThreadState* __tstate = wxPyBeginAllowThreads();
29237 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29238 wxPyEndAllowThreads(__tstate);
29239 if (PyErr_Occurred()) SWIG_fail;
29240 }
29241 {
29242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29243 }
29244 return resultobj;
29245 fail:
29246 return NULL;
29247 }
29248
29249
29250 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29251 PyObject *resultobj = 0;
29252 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29253 int result;
29254 void *argp1 = 0 ;
29255 int res1 = 0 ;
29256 PyObject *swig_obj[1] ;
29257
29258 if (!args) SWIG_fail;
29259 swig_obj[0] = args;
29260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29261 if (!SWIG_IsOK(res1)) {
29262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29263 }
29264 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29265 {
29266 PyThreadState* __tstate = wxPyBeginAllowThreads();
29267 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29268 wxPyEndAllowThreads(__tstate);
29269 if (PyErr_Occurred()) SWIG_fail;
29270 }
29271 resultobj = SWIG_From_int(static_cast< int >(result));
29272 return resultobj;
29273 fail:
29274 return NULL;
29275 }
29276
29277
29278 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29279 PyObject *resultobj = 0;
29280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29281 wxRect result;
29282 void *argp1 = 0 ;
29283 int res1 = 0 ;
29284 PyObject *swig_obj[1] ;
29285
29286 if (!args) SWIG_fail;
29287 swig_obj[0] = args;
29288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29289 if (!SWIG_IsOK(res1)) {
29290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29291 }
29292 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29293 {
29294 PyThreadState* __tstate = wxPyBeginAllowThreads();
29295 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29296 wxPyEndAllowThreads(__tstate);
29297 if (PyErr_Occurred()) SWIG_fail;
29298 }
29299 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29300 return resultobj;
29301 fail:
29302 return NULL;
29303 }
29304
29305
29306 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29307 PyObject *resultobj = 0;
29308 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29309 wxTextCtrl *result = 0 ;
29310 void *argp1 = 0 ;
29311 int res1 = 0 ;
29312 PyObject *swig_obj[1] ;
29313
29314 if (!args) SWIG_fail;
29315 swig_obj[0] = args;
29316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29317 if (!SWIG_IsOK(res1)) {
29318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29319 }
29320 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29321 {
29322 PyThreadState* __tstate = wxPyBeginAllowThreads();
29323 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29324 wxPyEndAllowThreads(__tstate);
29325 if (PyErr_Occurred()) SWIG_fail;
29326 }
29327 {
29328 resultobj = wxPyMake_wxObject(result, 0);
29329 }
29330 return resultobj;
29331 fail:
29332 return NULL;
29333 }
29334
29335
29336 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29337 PyObject *resultobj = 0;
29338 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29339 long arg2 ;
29340 int arg3 = (int) 0 ;
29341 wxListItem *result = 0 ;
29342 void *argp1 = 0 ;
29343 int res1 = 0 ;
29344 long val2 ;
29345 int ecode2 = 0 ;
29346 int val3 ;
29347 int ecode3 = 0 ;
29348 PyObject * obj0 = 0 ;
29349 PyObject * obj1 = 0 ;
29350 PyObject * obj2 = 0 ;
29351 char * kwnames[] = {
29352 (char *) "self",(char *) "itemId",(char *) "col", NULL
29353 };
29354
29355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29357 if (!SWIG_IsOK(res1)) {
29358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29359 }
29360 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29361 ecode2 = SWIG_AsVal_long(obj1, &val2);
29362 if (!SWIG_IsOK(ecode2)) {
29363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29364 }
29365 arg2 = static_cast< long >(val2);
29366 if (obj2) {
29367 ecode3 = SWIG_AsVal_int(obj2, &val3);
29368 if (!SWIG_IsOK(ecode3)) {
29369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29370 }
29371 arg3 = static_cast< int >(val3);
29372 }
29373 {
29374 PyThreadState* __tstate = wxPyBeginAllowThreads();
29375 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29376 wxPyEndAllowThreads(__tstate);
29377 if (PyErr_Occurred()) SWIG_fail;
29378 }
29379 {
29380 resultobj = wxPyMake_wxObject(result, 0);
29381 }
29382 return resultobj;
29383 fail:
29384 return NULL;
29385 }
29386
29387
29388 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29389 PyObject *resultobj = 0;
29390 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29391 wxListItem *arg2 = 0 ;
29392 bool result;
29393 void *argp1 = 0 ;
29394 int res1 = 0 ;
29395 void *argp2 = 0 ;
29396 int res2 = 0 ;
29397 PyObject * obj0 = 0 ;
29398 PyObject * obj1 = 0 ;
29399 char * kwnames[] = {
29400 (char *) "self",(char *) "info", NULL
29401 };
29402
29403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29405 if (!SWIG_IsOK(res1)) {
29406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29407 }
29408 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29410 if (!SWIG_IsOK(res2)) {
29411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29412 }
29413 if (!argp2) {
29414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29415 }
29416 arg2 = reinterpret_cast< wxListItem * >(argp2);
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 result = (bool)(arg1)->SetItem(*arg2);
29420 wxPyEndAllowThreads(__tstate);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 {
29424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29425 }
29426 return resultobj;
29427 fail:
29428 return NULL;
29429 }
29430
29431
29432 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29433 PyObject *resultobj = 0;
29434 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29435 long arg2 ;
29436 int arg3 ;
29437 wxString *arg4 = 0 ;
29438 int arg5 = (int) -1 ;
29439 long result;
29440 void *argp1 = 0 ;
29441 int res1 = 0 ;
29442 long val2 ;
29443 int ecode2 = 0 ;
29444 int val3 ;
29445 int ecode3 = 0 ;
29446 bool temp4 = false ;
29447 int val5 ;
29448 int ecode5 = 0 ;
29449 PyObject * obj0 = 0 ;
29450 PyObject * obj1 = 0 ;
29451 PyObject * obj2 = 0 ;
29452 PyObject * obj3 = 0 ;
29453 PyObject * obj4 = 0 ;
29454 char * kwnames[] = {
29455 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29456 };
29457
29458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29460 if (!SWIG_IsOK(res1)) {
29461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29462 }
29463 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29464 ecode2 = SWIG_AsVal_long(obj1, &val2);
29465 if (!SWIG_IsOK(ecode2)) {
29466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29467 }
29468 arg2 = static_cast< long >(val2);
29469 ecode3 = SWIG_AsVal_int(obj2, &val3);
29470 if (!SWIG_IsOK(ecode3)) {
29471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29472 }
29473 arg3 = static_cast< int >(val3);
29474 {
29475 arg4 = wxString_in_helper(obj3);
29476 if (arg4 == NULL) SWIG_fail;
29477 temp4 = true;
29478 }
29479 if (obj4) {
29480 ecode5 = SWIG_AsVal_int(obj4, &val5);
29481 if (!SWIG_IsOK(ecode5)) {
29482 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29483 }
29484 arg5 = static_cast< int >(val5);
29485 }
29486 {
29487 PyThreadState* __tstate = wxPyBeginAllowThreads();
29488 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29489 wxPyEndAllowThreads(__tstate);
29490 if (PyErr_Occurred()) SWIG_fail;
29491 }
29492 resultobj = SWIG_From_long(static_cast< long >(result));
29493 {
29494 if (temp4)
29495 delete arg4;
29496 }
29497 return resultobj;
29498 fail:
29499 {
29500 if (temp4)
29501 delete arg4;
29502 }
29503 return NULL;
29504 }
29505
29506
29507 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29508 PyObject *resultobj = 0;
29509 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29510 long arg2 ;
29511 long arg3 ;
29512 int result;
29513 void *argp1 = 0 ;
29514 int res1 = 0 ;
29515 long val2 ;
29516 int ecode2 = 0 ;
29517 long val3 ;
29518 int ecode3 = 0 ;
29519 PyObject * obj0 = 0 ;
29520 PyObject * obj1 = 0 ;
29521 PyObject * obj2 = 0 ;
29522 char * kwnames[] = {
29523 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29524 };
29525
29526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29528 if (!SWIG_IsOK(res1)) {
29529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29530 }
29531 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29532 ecode2 = SWIG_AsVal_long(obj1, &val2);
29533 if (!SWIG_IsOK(ecode2)) {
29534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29535 }
29536 arg2 = static_cast< long >(val2);
29537 ecode3 = SWIG_AsVal_long(obj2, &val3);
29538 if (!SWIG_IsOK(ecode3)) {
29539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29540 }
29541 arg3 = static_cast< long >(val3);
29542 {
29543 PyThreadState* __tstate = wxPyBeginAllowThreads();
29544 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29545 wxPyEndAllowThreads(__tstate);
29546 if (PyErr_Occurred()) SWIG_fail;
29547 }
29548 resultobj = SWIG_From_int(static_cast< int >(result));
29549 return resultobj;
29550 fail:
29551 return NULL;
29552 }
29553
29554
29555 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29556 PyObject *resultobj = 0;
29557 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29558 long arg2 ;
29559 long arg3 ;
29560 long arg4 ;
29561 bool result;
29562 void *argp1 = 0 ;
29563 int res1 = 0 ;
29564 long val2 ;
29565 int ecode2 = 0 ;
29566 long val3 ;
29567 int ecode3 = 0 ;
29568 long val4 ;
29569 int ecode4 = 0 ;
29570 PyObject * obj0 = 0 ;
29571 PyObject * obj1 = 0 ;
29572 PyObject * obj2 = 0 ;
29573 PyObject * obj3 = 0 ;
29574 char * kwnames[] = {
29575 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29576 };
29577
29578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29580 if (!SWIG_IsOK(res1)) {
29581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29582 }
29583 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29584 ecode2 = SWIG_AsVal_long(obj1, &val2);
29585 if (!SWIG_IsOK(ecode2)) {
29586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29587 }
29588 arg2 = static_cast< long >(val2);
29589 ecode3 = SWIG_AsVal_long(obj2, &val3);
29590 if (!SWIG_IsOK(ecode3)) {
29591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29592 }
29593 arg3 = static_cast< long >(val3);
29594 ecode4 = SWIG_AsVal_long(obj3, &val4);
29595 if (!SWIG_IsOK(ecode4)) {
29596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29597 }
29598 arg4 = static_cast< long >(val4);
29599 {
29600 PyThreadState* __tstate = wxPyBeginAllowThreads();
29601 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29602 wxPyEndAllowThreads(__tstate);
29603 if (PyErr_Occurred()) SWIG_fail;
29604 }
29605 {
29606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29607 }
29608 return resultobj;
29609 fail:
29610 return NULL;
29611 }
29612
29613
29614 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29615 PyObject *resultobj = 0;
29616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29617 long arg2 ;
29618 int arg3 ;
29619 int arg4 = (int) -1 ;
29620 bool result;
29621 void *argp1 = 0 ;
29622 int res1 = 0 ;
29623 long val2 ;
29624 int ecode2 = 0 ;
29625 int val3 ;
29626 int ecode3 = 0 ;
29627 int val4 ;
29628 int ecode4 = 0 ;
29629 PyObject * obj0 = 0 ;
29630 PyObject * obj1 = 0 ;
29631 PyObject * obj2 = 0 ;
29632 PyObject * obj3 = 0 ;
29633 char * kwnames[] = {
29634 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29635 };
29636
29637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29639 if (!SWIG_IsOK(res1)) {
29640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29641 }
29642 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29643 ecode2 = SWIG_AsVal_long(obj1, &val2);
29644 if (!SWIG_IsOK(ecode2)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29646 }
29647 arg2 = static_cast< long >(val2);
29648 ecode3 = SWIG_AsVal_int(obj2, &val3);
29649 if (!SWIG_IsOK(ecode3)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29651 }
29652 arg3 = static_cast< int >(val3);
29653 if (obj3) {
29654 ecode4 = SWIG_AsVal_int(obj3, &val4);
29655 if (!SWIG_IsOK(ecode4)) {
29656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29657 }
29658 arg4 = static_cast< int >(val4);
29659 }
29660 {
29661 PyThreadState* __tstate = wxPyBeginAllowThreads();
29662 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29663 wxPyEndAllowThreads(__tstate);
29664 if (PyErr_Occurred()) SWIG_fail;
29665 }
29666 {
29667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29668 }
29669 return resultobj;
29670 fail:
29671 return NULL;
29672 }
29673
29674
29675 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29676 PyObject *resultobj = 0;
29677 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29678 long arg2 ;
29679 long arg3 ;
29680 int arg4 ;
29681 bool result;
29682 void *argp1 = 0 ;
29683 int res1 = 0 ;
29684 long val2 ;
29685 int ecode2 = 0 ;
29686 long val3 ;
29687 int ecode3 = 0 ;
29688 int val4 ;
29689 int ecode4 = 0 ;
29690 PyObject * obj0 = 0 ;
29691 PyObject * obj1 = 0 ;
29692 PyObject * obj2 = 0 ;
29693 PyObject * obj3 = 0 ;
29694 char * kwnames[] = {
29695 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29696 };
29697
29698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29700 if (!SWIG_IsOK(res1)) {
29701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29702 }
29703 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29704 ecode2 = SWIG_AsVal_long(obj1, &val2);
29705 if (!SWIG_IsOK(ecode2)) {
29706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29707 }
29708 arg2 = static_cast< long >(val2);
29709 ecode3 = SWIG_AsVal_long(obj2, &val3);
29710 if (!SWIG_IsOK(ecode3)) {
29711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29712 }
29713 arg3 = static_cast< long >(val3);
29714 ecode4 = SWIG_AsVal_int(obj3, &val4);
29715 if (!SWIG_IsOK(ecode4)) {
29716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29717 }
29718 arg4 = static_cast< int >(val4);
29719 {
29720 PyThreadState* __tstate = wxPyBeginAllowThreads();
29721 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29722 wxPyEndAllowThreads(__tstate);
29723 if (PyErr_Occurred()) SWIG_fail;
29724 }
29725 {
29726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29727 }
29728 return resultobj;
29729 fail:
29730 return NULL;
29731 }
29732
29733
29734 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29735 PyObject *resultobj = 0;
29736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29737 long arg2 ;
29738 wxString result;
29739 void *argp1 = 0 ;
29740 int res1 = 0 ;
29741 long val2 ;
29742 int ecode2 = 0 ;
29743 PyObject * obj0 = 0 ;
29744 PyObject * obj1 = 0 ;
29745 char * kwnames[] = {
29746 (char *) "self",(char *) "item", NULL
29747 };
29748
29749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29751 if (!SWIG_IsOK(res1)) {
29752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29753 }
29754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29755 ecode2 = SWIG_AsVal_long(obj1, &val2);
29756 if (!SWIG_IsOK(ecode2)) {
29757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29758 }
29759 arg2 = static_cast< long >(val2);
29760 {
29761 PyThreadState* __tstate = wxPyBeginAllowThreads();
29762 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29763 wxPyEndAllowThreads(__tstate);
29764 if (PyErr_Occurred()) SWIG_fail;
29765 }
29766 {
29767 #if wxUSE_UNICODE
29768 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29769 #else
29770 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29771 #endif
29772 }
29773 return resultobj;
29774 fail:
29775 return NULL;
29776 }
29777
29778
29779 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29780 PyObject *resultobj = 0;
29781 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29782 long arg2 ;
29783 wxString *arg3 = 0 ;
29784 void *argp1 = 0 ;
29785 int res1 = 0 ;
29786 long val2 ;
29787 int ecode2 = 0 ;
29788 bool temp3 = false ;
29789 PyObject * obj0 = 0 ;
29790 PyObject * obj1 = 0 ;
29791 PyObject * obj2 = 0 ;
29792 char * kwnames[] = {
29793 (char *) "self",(char *) "item",(char *) "str", NULL
29794 };
29795
29796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29798 if (!SWIG_IsOK(res1)) {
29799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29800 }
29801 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29802 ecode2 = SWIG_AsVal_long(obj1, &val2);
29803 if (!SWIG_IsOK(ecode2)) {
29804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29805 }
29806 arg2 = static_cast< long >(val2);
29807 {
29808 arg3 = wxString_in_helper(obj2);
29809 if (arg3 == NULL) SWIG_fail;
29810 temp3 = true;
29811 }
29812 {
29813 PyThreadState* __tstate = wxPyBeginAllowThreads();
29814 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29815 wxPyEndAllowThreads(__tstate);
29816 if (PyErr_Occurred()) SWIG_fail;
29817 }
29818 resultobj = SWIG_Py_Void();
29819 {
29820 if (temp3)
29821 delete arg3;
29822 }
29823 return resultobj;
29824 fail:
29825 {
29826 if (temp3)
29827 delete arg3;
29828 }
29829 return NULL;
29830 }
29831
29832
29833 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29834 PyObject *resultobj = 0;
29835 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29836 long arg2 ;
29837 long result;
29838 void *argp1 = 0 ;
29839 int res1 = 0 ;
29840 long val2 ;
29841 int ecode2 = 0 ;
29842 PyObject * obj0 = 0 ;
29843 PyObject * obj1 = 0 ;
29844 char * kwnames[] = {
29845 (char *) "self",(char *) "item", NULL
29846 };
29847
29848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29850 if (!SWIG_IsOK(res1)) {
29851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29852 }
29853 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29854 ecode2 = SWIG_AsVal_long(obj1, &val2);
29855 if (!SWIG_IsOK(ecode2)) {
29856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29857 }
29858 arg2 = static_cast< long >(val2);
29859 {
29860 PyThreadState* __tstate = wxPyBeginAllowThreads();
29861 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29862 wxPyEndAllowThreads(__tstate);
29863 if (PyErr_Occurred()) SWIG_fail;
29864 }
29865 resultobj = SWIG_From_long(static_cast< long >(result));
29866 return resultobj;
29867 fail:
29868 return NULL;
29869 }
29870
29871
29872 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29873 PyObject *resultobj = 0;
29874 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29875 long arg2 ;
29876 long arg3 ;
29877 bool result;
29878 void *argp1 = 0 ;
29879 int res1 = 0 ;
29880 long val2 ;
29881 int ecode2 = 0 ;
29882 long val3 ;
29883 int ecode3 = 0 ;
29884 PyObject * obj0 = 0 ;
29885 PyObject * obj1 = 0 ;
29886 PyObject * obj2 = 0 ;
29887 char * kwnames[] = {
29888 (char *) "self",(char *) "item",(char *) "data", NULL
29889 };
29890
29891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29893 if (!SWIG_IsOK(res1)) {
29894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29895 }
29896 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29897 ecode2 = SWIG_AsVal_long(obj1, &val2);
29898 if (!SWIG_IsOK(ecode2)) {
29899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29900 }
29901 arg2 = static_cast< long >(val2);
29902 ecode3 = SWIG_AsVal_long(obj2, &val3);
29903 if (!SWIG_IsOK(ecode3)) {
29904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29905 }
29906 arg3 = static_cast< long >(val3);
29907 {
29908 PyThreadState* __tstate = wxPyBeginAllowThreads();
29909 result = (bool)(arg1)->SetItemData(arg2,arg3);
29910 wxPyEndAllowThreads(__tstate);
29911 if (PyErr_Occurred()) SWIG_fail;
29912 }
29913 {
29914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29915 }
29916 return resultobj;
29917 fail:
29918 return NULL;
29919 }
29920
29921
29922 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29923 PyObject *resultobj = 0;
29924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29925 long arg2 ;
29926 wxPoint result;
29927 void *argp1 = 0 ;
29928 int res1 = 0 ;
29929 long val2 ;
29930 int ecode2 = 0 ;
29931 PyObject * obj0 = 0 ;
29932 PyObject * obj1 = 0 ;
29933 char * kwnames[] = {
29934 (char *) "self",(char *) "item", NULL
29935 };
29936
29937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29939 if (!SWIG_IsOK(res1)) {
29940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29941 }
29942 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29943 ecode2 = SWIG_AsVal_long(obj1, &val2);
29944 if (!SWIG_IsOK(ecode2)) {
29945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29946 }
29947 arg2 = static_cast< long >(val2);
29948 {
29949 PyThreadState* __tstate = wxPyBeginAllowThreads();
29950 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29951 wxPyEndAllowThreads(__tstate);
29952 if (PyErr_Occurred()) SWIG_fail;
29953 }
29954 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29955 return resultobj;
29956 fail:
29957 return NULL;
29958 }
29959
29960
29961 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29962 PyObject *resultobj = 0;
29963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29964 long arg2 ;
29965 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29966 wxRect result;
29967 void *argp1 = 0 ;
29968 int res1 = 0 ;
29969 long val2 ;
29970 int ecode2 = 0 ;
29971 int val3 ;
29972 int ecode3 = 0 ;
29973 PyObject * obj0 = 0 ;
29974 PyObject * obj1 = 0 ;
29975 PyObject * obj2 = 0 ;
29976 char * kwnames[] = {
29977 (char *) "self",(char *) "item",(char *) "code", NULL
29978 };
29979
29980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29982 if (!SWIG_IsOK(res1)) {
29983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29984 }
29985 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29986 ecode2 = SWIG_AsVal_long(obj1, &val2);
29987 if (!SWIG_IsOK(ecode2)) {
29988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29989 }
29990 arg2 = static_cast< long >(val2);
29991 if (obj2) {
29992 ecode3 = SWIG_AsVal_int(obj2, &val3);
29993 if (!SWIG_IsOK(ecode3)) {
29994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29995 }
29996 arg3 = static_cast< int >(val3);
29997 }
29998 {
29999 PyThreadState* __tstate = wxPyBeginAllowThreads();
30000 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30001 wxPyEndAllowThreads(__tstate);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30005 return resultobj;
30006 fail:
30007 return NULL;
30008 }
30009
30010
30011 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30012 PyObject *resultobj = 0;
30013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30014 long arg2 ;
30015 wxPoint *arg3 = 0 ;
30016 bool result;
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 long val2 ;
30020 int ecode2 = 0 ;
30021 wxPoint temp3 ;
30022 PyObject * obj0 = 0 ;
30023 PyObject * obj1 = 0 ;
30024 PyObject * obj2 = 0 ;
30025 char * kwnames[] = {
30026 (char *) "self",(char *) "item",(char *) "pos", NULL
30027 };
30028
30029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30031 if (!SWIG_IsOK(res1)) {
30032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30033 }
30034 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30035 ecode2 = SWIG_AsVal_long(obj1, &val2);
30036 if (!SWIG_IsOK(ecode2)) {
30037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30038 }
30039 arg2 = static_cast< long >(val2);
30040 {
30041 arg3 = &temp3;
30042 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30043 }
30044 {
30045 PyThreadState* __tstate = wxPyBeginAllowThreads();
30046 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30047 wxPyEndAllowThreads(__tstate);
30048 if (PyErr_Occurred()) SWIG_fail;
30049 }
30050 {
30051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30052 }
30053 return resultobj;
30054 fail:
30055 return NULL;
30056 }
30057
30058
30059 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30060 PyObject *resultobj = 0;
30061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30062 int result;
30063 void *argp1 = 0 ;
30064 int res1 = 0 ;
30065 PyObject *swig_obj[1] ;
30066
30067 if (!args) SWIG_fail;
30068 swig_obj[0] = args;
30069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30070 if (!SWIG_IsOK(res1)) {
30071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30072 }
30073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30074 {
30075 PyThreadState* __tstate = wxPyBeginAllowThreads();
30076 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30077 wxPyEndAllowThreads(__tstate);
30078 if (PyErr_Occurred()) SWIG_fail;
30079 }
30080 resultobj = SWIG_From_int(static_cast< int >(result));
30081 return resultobj;
30082 fail:
30083 return NULL;
30084 }
30085
30086
30087 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30088 PyObject *resultobj = 0;
30089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30090 int result;
30091 void *argp1 = 0 ;
30092 int res1 = 0 ;
30093 PyObject *swig_obj[1] ;
30094
30095 if (!args) SWIG_fail;
30096 swig_obj[0] = args;
30097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30098 if (!SWIG_IsOK(res1)) {
30099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30100 }
30101 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30102 {
30103 PyThreadState* __tstate = wxPyBeginAllowThreads();
30104 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30105 wxPyEndAllowThreads(__tstate);
30106 if (PyErr_Occurred()) SWIG_fail;
30107 }
30108 resultobj = SWIG_From_int(static_cast< int >(result));
30109 return resultobj;
30110 fail:
30111 return NULL;
30112 }
30113
30114
30115 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30116 PyObject *resultobj = 0;
30117 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30118 wxSize result;
30119 void *argp1 = 0 ;
30120 int res1 = 0 ;
30121 PyObject *swig_obj[1] ;
30122
30123 if (!args) SWIG_fail;
30124 swig_obj[0] = args;
30125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30126 if (!SWIG_IsOK(res1)) {
30127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30128 }
30129 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30130 {
30131 PyThreadState* __tstate = wxPyBeginAllowThreads();
30132 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30133 wxPyEndAllowThreads(__tstate);
30134 if (PyErr_Occurred()) SWIG_fail;
30135 }
30136 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30137 return resultobj;
30138 fail:
30139 return NULL;
30140 }
30141
30142
30143 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30144 PyObject *resultobj = 0;
30145 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30146 int arg2 ;
30147 bool arg3 = (bool) false ;
30148 void *argp1 = 0 ;
30149 int res1 = 0 ;
30150 int val2 ;
30151 int ecode2 = 0 ;
30152 bool val3 ;
30153 int ecode3 = 0 ;
30154 PyObject * obj0 = 0 ;
30155 PyObject * obj1 = 0 ;
30156 PyObject * obj2 = 0 ;
30157 char * kwnames[] = {
30158 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30159 };
30160
30161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30163 if (!SWIG_IsOK(res1)) {
30164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30165 }
30166 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30167 ecode2 = SWIG_AsVal_int(obj1, &val2);
30168 if (!SWIG_IsOK(ecode2)) {
30169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30170 }
30171 arg2 = static_cast< int >(val2);
30172 if (obj2) {
30173 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30174 if (!SWIG_IsOK(ecode3)) {
30175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30176 }
30177 arg3 = static_cast< bool >(val3);
30178 }
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 (arg1)->SetItemSpacing(arg2,arg3);
30182 wxPyEndAllowThreads(__tstate);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 resultobj = SWIG_Py_Void();
30186 return resultobj;
30187 fail:
30188 return NULL;
30189 }
30190
30191
30192 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30193 PyObject *resultobj = 0;
30194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30195 int result;
30196 void *argp1 = 0 ;
30197 int res1 = 0 ;
30198 PyObject *swig_obj[1] ;
30199
30200 if (!args) SWIG_fail;
30201 swig_obj[0] = args;
30202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30203 if (!SWIG_IsOK(res1)) {
30204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30205 }
30206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30207 {
30208 PyThreadState* __tstate = wxPyBeginAllowThreads();
30209 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30210 wxPyEndAllowThreads(__tstate);
30211 if (PyErr_Occurred()) SWIG_fail;
30212 }
30213 resultobj = SWIG_From_int(static_cast< int >(result));
30214 return resultobj;
30215 fail:
30216 return NULL;
30217 }
30218
30219
30220 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30221 PyObject *resultobj = 0;
30222 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30223 wxColour result;
30224 void *argp1 = 0 ;
30225 int res1 = 0 ;
30226 PyObject *swig_obj[1] ;
30227
30228 if (!args) SWIG_fail;
30229 swig_obj[0] = args;
30230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30231 if (!SWIG_IsOK(res1)) {
30232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30233 }
30234 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30235 {
30236 PyThreadState* __tstate = wxPyBeginAllowThreads();
30237 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30238 wxPyEndAllowThreads(__tstate);
30239 if (PyErr_Occurred()) SWIG_fail;
30240 }
30241 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30242 return resultobj;
30243 fail:
30244 return NULL;
30245 }
30246
30247
30248 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30249 PyObject *resultobj = 0;
30250 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30251 wxColour *arg2 = 0 ;
30252 void *argp1 = 0 ;
30253 int res1 = 0 ;
30254 wxColour temp2 ;
30255 PyObject * obj0 = 0 ;
30256 PyObject * obj1 = 0 ;
30257 char * kwnames[] = {
30258 (char *) "self",(char *) "col", NULL
30259 };
30260
30261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30263 if (!SWIG_IsOK(res1)) {
30264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30265 }
30266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30267 {
30268 arg2 = &temp2;
30269 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30270 }
30271 {
30272 PyThreadState* __tstate = wxPyBeginAllowThreads();
30273 (arg1)->SetTextColour((wxColour const &)*arg2);
30274 wxPyEndAllowThreads(__tstate);
30275 if (PyErr_Occurred()) SWIG_fail;
30276 }
30277 resultobj = SWIG_Py_Void();
30278 return resultobj;
30279 fail:
30280 return NULL;
30281 }
30282
30283
30284 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30285 PyObject *resultobj = 0;
30286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30287 long result;
30288 void *argp1 = 0 ;
30289 int res1 = 0 ;
30290 PyObject *swig_obj[1] ;
30291
30292 if (!args) SWIG_fail;
30293 swig_obj[0] = args;
30294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30295 if (!SWIG_IsOK(res1)) {
30296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30297 }
30298 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30299 {
30300 PyThreadState* __tstate = wxPyBeginAllowThreads();
30301 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_From_long(static_cast< long >(result));
30306 return resultobj;
30307 fail:
30308 return NULL;
30309 }
30310
30311
30312 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj = 0;
30314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30315 long arg2 ;
30316 bool arg3 = (bool) true ;
30317 void *argp1 = 0 ;
30318 int res1 = 0 ;
30319 long val2 ;
30320 int ecode2 = 0 ;
30321 bool val3 ;
30322 int ecode3 = 0 ;
30323 PyObject * obj0 = 0 ;
30324 PyObject * obj1 = 0 ;
30325 PyObject * obj2 = 0 ;
30326 char * kwnames[] = {
30327 (char *) "self",(char *) "style",(char *) "add", NULL
30328 };
30329
30330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30332 if (!SWIG_IsOK(res1)) {
30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30334 }
30335 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30336 ecode2 = SWIG_AsVal_long(obj1, &val2);
30337 if (!SWIG_IsOK(ecode2)) {
30338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30339 }
30340 arg2 = static_cast< long >(val2);
30341 if (obj2) {
30342 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30343 if (!SWIG_IsOK(ecode3)) {
30344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30345 }
30346 arg3 = static_cast< bool >(val3);
30347 }
30348 {
30349 PyThreadState* __tstate = wxPyBeginAllowThreads();
30350 (arg1)->SetSingleStyle(arg2,arg3);
30351 wxPyEndAllowThreads(__tstate);
30352 if (PyErr_Occurred()) SWIG_fail;
30353 }
30354 resultobj = SWIG_Py_Void();
30355 return resultobj;
30356 fail:
30357 return NULL;
30358 }
30359
30360
30361 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30362 PyObject *resultobj = 0;
30363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30364 long arg2 ;
30365 int arg3 = (int) wxLIST_NEXT_ALL ;
30366 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30367 long result;
30368 void *argp1 = 0 ;
30369 int res1 = 0 ;
30370 long val2 ;
30371 int ecode2 = 0 ;
30372 int val3 ;
30373 int ecode3 = 0 ;
30374 int val4 ;
30375 int ecode4 = 0 ;
30376 PyObject * obj0 = 0 ;
30377 PyObject * obj1 = 0 ;
30378 PyObject * obj2 = 0 ;
30379 PyObject * obj3 = 0 ;
30380 char * kwnames[] = {
30381 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30382 };
30383
30384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30386 if (!SWIG_IsOK(res1)) {
30387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30388 }
30389 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30390 ecode2 = SWIG_AsVal_long(obj1, &val2);
30391 if (!SWIG_IsOK(ecode2)) {
30392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30393 }
30394 arg2 = static_cast< long >(val2);
30395 if (obj2) {
30396 ecode3 = SWIG_AsVal_int(obj2, &val3);
30397 if (!SWIG_IsOK(ecode3)) {
30398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30399 }
30400 arg3 = static_cast< int >(val3);
30401 }
30402 if (obj3) {
30403 ecode4 = SWIG_AsVal_int(obj3, &val4);
30404 if (!SWIG_IsOK(ecode4)) {
30405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30406 }
30407 arg4 = static_cast< int >(val4);
30408 }
30409 {
30410 PyThreadState* __tstate = wxPyBeginAllowThreads();
30411 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30412 wxPyEndAllowThreads(__tstate);
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 resultobj = SWIG_From_long(static_cast< long >(result));
30416 return resultobj;
30417 fail:
30418 return NULL;
30419 }
30420
30421
30422 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30423 PyObject *resultobj = 0;
30424 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30425 int arg2 ;
30426 wxImageList *result = 0 ;
30427 void *argp1 = 0 ;
30428 int res1 = 0 ;
30429 int val2 ;
30430 int ecode2 = 0 ;
30431 PyObject * obj0 = 0 ;
30432 PyObject * obj1 = 0 ;
30433 char * kwnames[] = {
30434 (char *) "self",(char *) "which", NULL
30435 };
30436
30437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30439 if (!SWIG_IsOK(res1)) {
30440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30441 }
30442 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30443 ecode2 = SWIG_AsVal_int(obj1, &val2);
30444 if (!SWIG_IsOK(ecode2)) {
30445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30446 }
30447 arg2 = static_cast< int >(val2);
30448 {
30449 PyThreadState* __tstate = wxPyBeginAllowThreads();
30450 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30451 wxPyEndAllowThreads(__tstate);
30452 if (PyErr_Occurred()) SWIG_fail;
30453 }
30454 {
30455 resultobj = wxPyMake_wxObject(result, (bool)0);
30456 }
30457 return resultobj;
30458 fail:
30459 return NULL;
30460 }
30461
30462
30463 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30464 PyObject *resultobj = 0;
30465 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30466 wxImageList *arg2 = (wxImageList *) 0 ;
30467 int arg3 ;
30468 void *argp1 = 0 ;
30469 int res1 = 0 ;
30470 void *argp2 = 0 ;
30471 int res2 = 0 ;
30472 int val3 ;
30473 int ecode3 = 0 ;
30474 PyObject * obj0 = 0 ;
30475 PyObject * obj1 = 0 ;
30476 PyObject * obj2 = 0 ;
30477 char * kwnames[] = {
30478 (char *) "self",(char *) "imageList",(char *) "which", NULL
30479 };
30480
30481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30483 if (!SWIG_IsOK(res1)) {
30484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30485 }
30486 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30487 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30488 if (!SWIG_IsOK(res2)) {
30489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30490 }
30491 arg2 = reinterpret_cast< wxImageList * >(argp2);
30492 ecode3 = SWIG_AsVal_int(obj2, &val3);
30493 if (!SWIG_IsOK(ecode3)) {
30494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30495 }
30496 arg3 = static_cast< int >(val3);
30497 {
30498 PyThreadState* __tstate = wxPyBeginAllowThreads();
30499 (arg1)->SetImageList(arg2,arg3);
30500 wxPyEndAllowThreads(__tstate);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 resultobj = SWIG_Py_Void();
30504 return resultobj;
30505 fail:
30506 return NULL;
30507 }
30508
30509
30510 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30511 PyObject *resultobj = 0;
30512 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30513 wxImageList *arg2 = (wxImageList *) 0 ;
30514 int arg3 ;
30515 void *argp1 = 0 ;
30516 int res1 = 0 ;
30517 int res2 = 0 ;
30518 int val3 ;
30519 int ecode3 = 0 ;
30520 PyObject * obj0 = 0 ;
30521 PyObject * obj1 = 0 ;
30522 PyObject * obj2 = 0 ;
30523 char * kwnames[] = {
30524 (char *) "self",(char *) "imageList",(char *) "which", NULL
30525 };
30526
30527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30529 if (!SWIG_IsOK(res1)) {
30530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30531 }
30532 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30533 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30534 if (!SWIG_IsOK(res2)) {
30535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30536 }
30537 ecode3 = SWIG_AsVal_int(obj2, &val3);
30538 if (!SWIG_IsOK(ecode3)) {
30539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30540 }
30541 arg3 = static_cast< int >(val3);
30542 {
30543 PyThreadState* __tstate = wxPyBeginAllowThreads();
30544 (arg1)->AssignImageList(arg2,arg3);
30545 wxPyEndAllowThreads(__tstate);
30546 if (PyErr_Occurred()) SWIG_fail;
30547 }
30548 resultobj = SWIG_Py_Void();
30549 return resultobj;
30550 fail:
30551 return NULL;
30552 }
30553
30554
30555 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30556 PyObject *resultobj = 0;
30557 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30558 bool result;
30559 void *argp1 = 0 ;
30560 int res1 = 0 ;
30561 PyObject *swig_obj[1] ;
30562
30563 if (!args) SWIG_fail;
30564 swig_obj[0] = args;
30565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30566 if (!SWIG_IsOK(res1)) {
30567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30568 }
30569 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30570 {
30571 PyThreadState* __tstate = wxPyBeginAllowThreads();
30572 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30573 wxPyEndAllowThreads(__tstate);
30574 if (PyErr_Occurred()) SWIG_fail;
30575 }
30576 {
30577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30578 }
30579 return resultobj;
30580 fail:
30581 return NULL;
30582 }
30583
30584
30585 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30586 PyObject *resultobj = 0;
30587 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30588 bool result;
30589 void *argp1 = 0 ;
30590 int res1 = 0 ;
30591 PyObject *swig_obj[1] ;
30592
30593 if (!args) SWIG_fail;
30594 swig_obj[0] = args;
30595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30596 if (!SWIG_IsOK(res1)) {
30597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30598 }
30599 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30600 {
30601 PyThreadState* __tstate = wxPyBeginAllowThreads();
30602 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30603 wxPyEndAllowThreads(__tstate);
30604 if (PyErr_Occurred()) SWIG_fail;
30605 }
30606 {
30607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30608 }
30609 return resultobj;
30610 fail:
30611 return NULL;
30612 }
30613
30614
30615 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30616 PyObject *resultobj = 0;
30617 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30618 long arg2 ;
30619 void *argp1 = 0 ;
30620 int res1 = 0 ;
30621 long val2 ;
30622 int ecode2 = 0 ;
30623 PyObject * obj0 = 0 ;
30624 PyObject * obj1 = 0 ;
30625 char * kwnames[] = {
30626 (char *) "self",(char *) "item", NULL
30627 };
30628
30629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30631 if (!SWIG_IsOK(res1)) {
30632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30633 }
30634 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30635 ecode2 = SWIG_AsVal_long(obj1, &val2);
30636 if (!SWIG_IsOK(ecode2)) {
30637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30638 }
30639 arg2 = static_cast< long >(val2);
30640 {
30641 PyThreadState* __tstate = wxPyBeginAllowThreads();
30642 (arg1)->RefreshItem(arg2);
30643 wxPyEndAllowThreads(__tstate);
30644 if (PyErr_Occurred()) SWIG_fail;
30645 }
30646 resultobj = SWIG_Py_Void();
30647 return resultobj;
30648 fail:
30649 return NULL;
30650 }
30651
30652
30653 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30654 PyObject *resultobj = 0;
30655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30656 long arg2 ;
30657 long arg3 ;
30658 void *argp1 = 0 ;
30659 int res1 = 0 ;
30660 long val2 ;
30661 int ecode2 = 0 ;
30662 long val3 ;
30663 int ecode3 = 0 ;
30664 PyObject * obj0 = 0 ;
30665 PyObject * obj1 = 0 ;
30666 PyObject * obj2 = 0 ;
30667 char * kwnames[] = {
30668 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30669 };
30670
30671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30673 if (!SWIG_IsOK(res1)) {
30674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30675 }
30676 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30677 ecode2 = SWIG_AsVal_long(obj1, &val2);
30678 if (!SWIG_IsOK(ecode2)) {
30679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30680 }
30681 arg2 = static_cast< long >(val2);
30682 ecode3 = SWIG_AsVal_long(obj2, &val3);
30683 if (!SWIG_IsOK(ecode3)) {
30684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30685 }
30686 arg3 = static_cast< long >(val3);
30687 {
30688 PyThreadState* __tstate = wxPyBeginAllowThreads();
30689 (arg1)->RefreshItems(arg2,arg3);
30690 wxPyEndAllowThreads(__tstate);
30691 if (PyErr_Occurred()) SWIG_fail;
30692 }
30693 resultobj = SWIG_Py_Void();
30694 return resultobj;
30695 fail:
30696 return NULL;
30697 }
30698
30699
30700 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30701 PyObject *resultobj = 0;
30702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30703 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30704 bool result;
30705 void *argp1 = 0 ;
30706 int res1 = 0 ;
30707 int val2 ;
30708 int ecode2 = 0 ;
30709 PyObject * obj0 = 0 ;
30710 PyObject * obj1 = 0 ;
30711 char * kwnames[] = {
30712 (char *) "self",(char *) "flag", NULL
30713 };
30714
30715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30717 if (!SWIG_IsOK(res1)) {
30718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30719 }
30720 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30721 if (obj1) {
30722 ecode2 = SWIG_AsVal_int(obj1, &val2);
30723 if (!SWIG_IsOK(ecode2)) {
30724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30725 }
30726 arg2 = static_cast< int >(val2);
30727 }
30728 {
30729 PyThreadState* __tstate = wxPyBeginAllowThreads();
30730 result = (bool)(arg1)->Arrange(arg2);
30731 wxPyEndAllowThreads(__tstate);
30732 if (PyErr_Occurred()) SWIG_fail;
30733 }
30734 {
30735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30736 }
30737 return resultobj;
30738 fail:
30739 return NULL;
30740 }
30741
30742
30743 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30744 PyObject *resultobj = 0;
30745 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30746 long arg2 ;
30747 bool result;
30748 void *argp1 = 0 ;
30749 int res1 = 0 ;
30750 long val2 ;
30751 int ecode2 = 0 ;
30752 PyObject * obj0 = 0 ;
30753 PyObject * obj1 = 0 ;
30754 char * kwnames[] = {
30755 (char *) "self",(char *) "item", NULL
30756 };
30757
30758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30760 if (!SWIG_IsOK(res1)) {
30761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30762 }
30763 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30764 ecode2 = SWIG_AsVal_long(obj1, &val2);
30765 if (!SWIG_IsOK(ecode2)) {
30766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30767 }
30768 arg2 = static_cast< long >(val2);
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 result = (bool)(arg1)->DeleteItem(arg2);
30772 wxPyEndAllowThreads(__tstate);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 {
30776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30777 }
30778 return resultobj;
30779 fail:
30780 return NULL;
30781 }
30782
30783
30784 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30785 PyObject *resultobj = 0;
30786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30787 bool result;
30788 void *argp1 = 0 ;
30789 int res1 = 0 ;
30790 PyObject *swig_obj[1] ;
30791
30792 if (!args) SWIG_fail;
30793 swig_obj[0] = args;
30794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30795 if (!SWIG_IsOK(res1)) {
30796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30797 }
30798 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30799 {
30800 PyThreadState* __tstate = wxPyBeginAllowThreads();
30801 result = (bool)(arg1)->DeleteAllItems();
30802 wxPyEndAllowThreads(__tstate);
30803 if (PyErr_Occurred()) SWIG_fail;
30804 }
30805 {
30806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30807 }
30808 return resultobj;
30809 fail:
30810 return NULL;
30811 }
30812
30813
30814 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30815 PyObject *resultobj = 0;
30816 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30817 int arg2 ;
30818 bool result;
30819 void *argp1 = 0 ;
30820 int res1 = 0 ;
30821 int val2 ;
30822 int ecode2 = 0 ;
30823 PyObject * obj0 = 0 ;
30824 PyObject * obj1 = 0 ;
30825 char * kwnames[] = {
30826 (char *) "self",(char *) "col", NULL
30827 };
30828
30829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30831 if (!SWIG_IsOK(res1)) {
30832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30833 }
30834 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30835 ecode2 = SWIG_AsVal_int(obj1, &val2);
30836 if (!SWIG_IsOK(ecode2)) {
30837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30838 }
30839 arg2 = static_cast< int >(val2);
30840 {
30841 PyThreadState* __tstate = wxPyBeginAllowThreads();
30842 result = (bool)(arg1)->DeleteColumn(arg2);
30843 wxPyEndAllowThreads(__tstate);
30844 if (PyErr_Occurred()) SWIG_fail;
30845 }
30846 {
30847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30848 }
30849 return resultobj;
30850 fail:
30851 return NULL;
30852 }
30853
30854
30855 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30856 PyObject *resultobj = 0;
30857 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30858 bool result;
30859 void *argp1 = 0 ;
30860 int res1 = 0 ;
30861 PyObject *swig_obj[1] ;
30862
30863 if (!args) SWIG_fail;
30864 swig_obj[0] = args;
30865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30866 if (!SWIG_IsOK(res1)) {
30867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30868 }
30869 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30870 {
30871 PyThreadState* __tstate = wxPyBeginAllowThreads();
30872 result = (bool)(arg1)->DeleteAllColumns();
30873 wxPyEndAllowThreads(__tstate);
30874 if (PyErr_Occurred()) SWIG_fail;
30875 }
30876 {
30877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30878 }
30879 return resultobj;
30880 fail:
30881 return NULL;
30882 }
30883
30884
30885 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30886 PyObject *resultobj = 0;
30887 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30888 void *argp1 = 0 ;
30889 int res1 = 0 ;
30890 PyObject *swig_obj[1] ;
30891
30892 if (!args) SWIG_fail;
30893 swig_obj[0] = args;
30894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30895 if (!SWIG_IsOK(res1)) {
30896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30897 }
30898 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30899 {
30900 PyThreadState* __tstate = wxPyBeginAllowThreads();
30901 (arg1)->ClearAll();
30902 wxPyEndAllowThreads(__tstate);
30903 if (PyErr_Occurred()) SWIG_fail;
30904 }
30905 resultobj = SWIG_Py_Void();
30906 return resultobj;
30907 fail:
30908 return NULL;
30909 }
30910
30911
30912 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30913 PyObject *resultobj = 0;
30914 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30915 long arg2 ;
30916 void *argp1 = 0 ;
30917 int res1 = 0 ;
30918 long val2 ;
30919 int ecode2 = 0 ;
30920 PyObject * obj0 = 0 ;
30921 PyObject * obj1 = 0 ;
30922 char * kwnames[] = {
30923 (char *) "self",(char *) "item", NULL
30924 };
30925
30926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30928 if (!SWIG_IsOK(res1)) {
30929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30930 }
30931 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30932 ecode2 = SWIG_AsVal_long(obj1, &val2);
30933 if (!SWIG_IsOK(ecode2)) {
30934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30935 }
30936 arg2 = static_cast< long >(val2);
30937 {
30938 PyThreadState* __tstate = wxPyBeginAllowThreads();
30939 (arg1)->EditLabel(arg2);
30940 wxPyEndAllowThreads(__tstate);
30941 if (PyErr_Occurred()) SWIG_fail;
30942 }
30943 resultobj = SWIG_Py_Void();
30944 return resultobj;
30945 fail:
30946 return NULL;
30947 }
30948
30949
30950 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30951 PyObject *resultobj = 0;
30952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30953 long arg2 ;
30954 bool result;
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_EnsureVisible",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_EnsureVisible" "', 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_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30974 }
30975 arg2 = static_cast< long >(val2);
30976 {
30977 PyThreadState* __tstate = wxPyBeginAllowThreads();
30978 result = (bool)(arg1)->EnsureVisible(arg2);
30979 wxPyEndAllowThreads(__tstate);
30980 if (PyErr_Occurred()) SWIG_fail;
30981 }
30982 {
30983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30984 }
30985 return resultobj;
30986 fail:
30987 return NULL;
30988 }
30989
30990
30991 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30992 PyObject *resultobj = 0;
30993 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30994 long arg2 ;
30995 wxString *arg3 = 0 ;
30996 bool arg4 = (bool) false ;
30997 long result;
30998 void *argp1 = 0 ;
30999 int res1 = 0 ;
31000 long val2 ;
31001 int ecode2 = 0 ;
31002 bool temp3 = false ;
31003 bool val4 ;
31004 int ecode4 = 0 ;
31005 PyObject * obj0 = 0 ;
31006 PyObject * obj1 = 0 ;
31007 PyObject * obj2 = 0 ;
31008 PyObject * obj3 = 0 ;
31009 char * kwnames[] = {
31010 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31011 };
31012
31013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31015 if (!SWIG_IsOK(res1)) {
31016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31017 }
31018 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31019 ecode2 = SWIG_AsVal_long(obj1, &val2);
31020 if (!SWIG_IsOK(ecode2)) {
31021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31022 }
31023 arg2 = static_cast< long >(val2);
31024 {
31025 arg3 = wxString_in_helper(obj2);
31026 if (arg3 == NULL) SWIG_fail;
31027 temp3 = true;
31028 }
31029 if (obj3) {
31030 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31031 if (!SWIG_IsOK(ecode4)) {
31032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31033 }
31034 arg4 = static_cast< bool >(val4);
31035 }
31036 {
31037 PyThreadState* __tstate = wxPyBeginAllowThreads();
31038 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31039 wxPyEndAllowThreads(__tstate);
31040 if (PyErr_Occurred()) SWIG_fail;
31041 }
31042 resultobj = SWIG_From_long(static_cast< long >(result));
31043 {
31044 if (temp3)
31045 delete arg3;
31046 }
31047 return resultobj;
31048 fail:
31049 {
31050 if (temp3)
31051 delete arg3;
31052 }
31053 return NULL;
31054 }
31055
31056
31057 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31058 PyObject *resultobj = 0;
31059 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31060 long arg2 ;
31061 long arg3 ;
31062 long result;
31063 void *argp1 = 0 ;
31064 int res1 = 0 ;
31065 long val2 ;
31066 int ecode2 = 0 ;
31067 long val3 ;
31068 int ecode3 = 0 ;
31069 PyObject * obj0 = 0 ;
31070 PyObject * obj1 = 0 ;
31071 PyObject * obj2 = 0 ;
31072 char * kwnames[] = {
31073 (char *) "self",(char *) "start",(char *) "data", NULL
31074 };
31075
31076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31078 if (!SWIG_IsOK(res1)) {
31079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31080 }
31081 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31082 ecode2 = SWIG_AsVal_long(obj1, &val2);
31083 if (!SWIG_IsOK(ecode2)) {
31084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31085 }
31086 arg2 = static_cast< long >(val2);
31087 ecode3 = SWIG_AsVal_long(obj2, &val3);
31088 if (!SWIG_IsOK(ecode3)) {
31089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31090 }
31091 arg3 = static_cast< long >(val3);
31092 {
31093 PyThreadState* __tstate = wxPyBeginAllowThreads();
31094 result = (long)(arg1)->FindItem(arg2,arg3);
31095 wxPyEndAllowThreads(__tstate);
31096 if (PyErr_Occurred()) SWIG_fail;
31097 }
31098 resultobj = SWIG_From_long(static_cast< long >(result));
31099 return resultobj;
31100 fail:
31101 return NULL;
31102 }
31103
31104
31105 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31106 PyObject *resultobj = 0;
31107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31108 long arg2 ;
31109 wxPoint *arg3 = 0 ;
31110 int arg4 ;
31111 long result;
31112 void *argp1 = 0 ;
31113 int res1 = 0 ;
31114 long val2 ;
31115 int ecode2 = 0 ;
31116 wxPoint temp3 ;
31117 int val4 ;
31118 int ecode4 = 0 ;
31119 PyObject * obj0 = 0 ;
31120 PyObject * obj1 = 0 ;
31121 PyObject * obj2 = 0 ;
31122 PyObject * obj3 = 0 ;
31123 char * kwnames[] = {
31124 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31125 };
31126
31127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31129 if (!SWIG_IsOK(res1)) {
31130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31131 }
31132 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31133 ecode2 = SWIG_AsVal_long(obj1, &val2);
31134 if (!SWIG_IsOK(ecode2)) {
31135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31136 }
31137 arg2 = static_cast< long >(val2);
31138 {
31139 arg3 = &temp3;
31140 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31141 }
31142 ecode4 = SWIG_AsVal_int(obj3, &val4);
31143 if (!SWIG_IsOK(ecode4)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31145 }
31146 arg4 = static_cast< int >(val4);
31147 {
31148 PyThreadState* __tstate = wxPyBeginAllowThreads();
31149 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31150 wxPyEndAllowThreads(__tstate);
31151 if (PyErr_Occurred()) SWIG_fail;
31152 }
31153 resultobj = SWIG_From_long(static_cast< long >(result));
31154 return resultobj;
31155 fail:
31156 return NULL;
31157 }
31158
31159
31160 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31161 PyObject *resultobj = 0;
31162 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31163 wxPoint *arg2 = 0 ;
31164 int *arg3 = 0 ;
31165 long result;
31166 void *argp1 = 0 ;
31167 int res1 = 0 ;
31168 wxPoint temp2 ;
31169 int temp3 ;
31170 int res3 = SWIG_TMPOBJ ;
31171 PyObject * obj0 = 0 ;
31172 PyObject * obj1 = 0 ;
31173 char * kwnames[] = {
31174 (char *) "self",(char *) "point", NULL
31175 };
31176
31177 arg3 = &temp3;
31178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31180 if (!SWIG_IsOK(res1)) {
31181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31182 }
31183 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31184 {
31185 arg2 = &temp2;
31186 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31187 }
31188 {
31189 PyThreadState* __tstate = wxPyBeginAllowThreads();
31190 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31191 wxPyEndAllowThreads(__tstate);
31192 if (PyErr_Occurred()) SWIG_fail;
31193 }
31194 resultobj = SWIG_From_long(static_cast< long >(result));
31195 if (SWIG_IsTmpObj(res3)) {
31196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31197 } else {
31198 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31200 }
31201 return resultobj;
31202 fail:
31203 return NULL;
31204 }
31205
31206
31207 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31208 PyObject *resultobj = 0;
31209 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31210 wxPoint *arg2 = 0 ;
31211 int *arg3 = 0 ;
31212 long *arg4 = (long *) 0 ;
31213 long result;
31214 void *argp1 = 0 ;
31215 int res1 = 0 ;
31216 wxPoint temp2 ;
31217 int temp3 ;
31218 int res3 = SWIG_TMPOBJ ;
31219 long temp4 ;
31220 int res4 = SWIG_TMPOBJ ;
31221 PyObject * obj0 = 0 ;
31222 PyObject * obj1 = 0 ;
31223 char * kwnames[] = {
31224 (char *) "self",(char *) "point", NULL
31225 };
31226
31227 arg3 = &temp3;
31228 arg4 = &temp4;
31229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31231 if (!SWIG_IsOK(res1)) {
31232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31233 }
31234 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31235 {
31236 arg2 = &temp2;
31237 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31238 }
31239 {
31240 PyThreadState* __tstate = wxPyBeginAllowThreads();
31241 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31242 wxPyEndAllowThreads(__tstate);
31243 if (PyErr_Occurred()) SWIG_fail;
31244 }
31245 resultobj = SWIG_From_long(static_cast< long >(result));
31246 if (SWIG_IsTmpObj(res3)) {
31247 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31248 } else {
31249 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31251 }
31252 if (SWIG_IsTmpObj(res4)) {
31253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31254 } else {
31255 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31257 }
31258 return resultobj;
31259 fail:
31260 return NULL;
31261 }
31262
31263
31264 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31265 PyObject *resultobj = 0;
31266 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31267 wxListItem *arg2 = 0 ;
31268 long result;
31269 void *argp1 = 0 ;
31270 int res1 = 0 ;
31271 void *argp2 = 0 ;
31272 int res2 = 0 ;
31273 PyObject * obj0 = 0 ;
31274 PyObject * obj1 = 0 ;
31275 char * kwnames[] = {
31276 (char *) "self",(char *) "info", NULL
31277 };
31278
31279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31281 if (!SWIG_IsOK(res1)) {
31282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31283 }
31284 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31286 if (!SWIG_IsOK(res2)) {
31287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31288 }
31289 if (!argp2) {
31290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31291 }
31292 arg2 = reinterpret_cast< wxListItem * >(argp2);
31293 {
31294 PyThreadState* __tstate = wxPyBeginAllowThreads();
31295 result = (long)(arg1)->InsertItem(*arg2);
31296 wxPyEndAllowThreads(__tstate);
31297 if (PyErr_Occurred()) SWIG_fail;
31298 }
31299 resultobj = SWIG_From_long(static_cast< long >(result));
31300 return resultobj;
31301 fail:
31302 return NULL;
31303 }
31304
31305
31306 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31307 PyObject *resultobj = 0;
31308 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31309 long arg2 ;
31310 wxString *arg3 = 0 ;
31311 int arg4 = (int) -1 ;
31312 long result;
31313 void *argp1 = 0 ;
31314 int res1 = 0 ;
31315 long val2 ;
31316 int ecode2 = 0 ;
31317 bool temp3 = false ;
31318 int val4 ;
31319 int ecode4 = 0 ;
31320 PyObject * obj0 = 0 ;
31321 PyObject * obj1 = 0 ;
31322 PyObject * obj2 = 0 ;
31323 PyObject * obj3 = 0 ;
31324 char * kwnames[] = {
31325 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31326 };
31327
31328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31330 if (!SWIG_IsOK(res1)) {
31331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31332 }
31333 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31334 ecode2 = SWIG_AsVal_long(obj1, &val2);
31335 if (!SWIG_IsOK(ecode2)) {
31336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31337 }
31338 arg2 = static_cast< long >(val2);
31339 {
31340 arg3 = wxString_in_helper(obj2);
31341 if (arg3 == NULL) SWIG_fail;
31342 temp3 = true;
31343 }
31344 if (obj3) {
31345 ecode4 = SWIG_AsVal_int(obj3, &val4);
31346 if (!SWIG_IsOK(ecode4)) {
31347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31348 }
31349 arg4 = static_cast< int >(val4);
31350 }
31351 {
31352 PyThreadState* __tstate = wxPyBeginAllowThreads();
31353 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31354 wxPyEndAllowThreads(__tstate);
31355 if (PyErr_Occurred()) SWIG_fail;
31356 }
31357 resultobj = SWIG_From_long(static_cast< long >(result));
31358 {
31359 if (temp3)
31360 delete arg3;
31361 }
31362 return resultobj;
31363 fail:
31364 {
31365 if (temp3)
31366 delete arg3;
31367 }
31368 return NULL;
31369 }
31370
31371
31372 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31373 PyObject *resultobj = 0;
31374 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31375 long arg2 ;
31376 int arg3 ;
31377 long result;
31378 void *argp1 = 0 ;
31379 int res1 = 0 ;
31380 long val2 ;
31381 int ecode2 = 0 ;
31382 int val3 ;
31383 int ecode3 = 0 ;
31384 PyObject * obj0 = 0 ;
31385 PyObject * obj1 = 0 ;
31386 PyObject * obj2 = 0 ;
31387 char * kwnames[] = {
31388 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31389 };
31390
31391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31393 if (!SWIG_IsOK(res1)) {
31394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31395 }
31396 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31397 ecode2 = SWIG_AsVal_long(obj1, &val2);
31398 if (!SWIG_IsOK(ecode2)) {
31399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31400 }
31401 arg2 = static_cast< long >(val2);
31402 ecode3 = SWIG_AsVal_int(obj2, &val3);
31403 if (!SWIG_IsOK(ecode3)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31405 }
31406 arg3 = static_cast< int >(val3);
31407 {
31408 PyThreadState* __tstate = wxPyBeginAllowThreads();
31409 result = (long)(arg1)->InsertItem(arg2,arg3);
31410 wxPyEndAllowThreads(__tstate);
31411 if (PyErr_Occurred()) SWIG_fail;
31412 }
31413 resultobj = SWIG_From_long(static_cast< long >(result));
31414 return resultobj;
31415 fail:
31416 return NULL;
31417 }
31418
31419
31420 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31421 PyObject *resultobj = 0;
31422 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31423 long arg2 ;
31424 wxString *arg3 = 0 ;
31425 int arg4 ;
31426 long result;
31427 void *argp1 = 0 ;
31428 int res1 = 0 ;
31429 long val2 ;
31430 int ecode2 = 0 ;
31431 bool temp3 = false ;
31432 int val4 ;
31433 int ecode4 = 0 ;
31434 PyObject * obj0 = 0 ;
31435 PyObject * obj1 = 0 ;
31436 PyObject * obj2 = 0 ;
31437 PyObject * obj3 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31440 };
31441
31442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31446 }
31447 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31448 ecode2 = SWIG_AsVal_long(obj1, &val2);
31449 if (!SWIG_IsOK(ecode2)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31451 }
31452 arg2 = static_cast< long >(val2);
31453 {
31454 arg3 = wxString_in_helper(obj2);
31455 if (arg3 == NULL) SWIG_fail;
31456 temp3 = true;
31457 }
31458 ecode4 = SWIG_AsVal_int(obj3, &val4);
31459 if (!SWIG_IsOK(ecode4)) {
31460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31461 }
31462 arg4 = static_cast< int >(val4);
31463 {
31464 PyThreadState* __tstate = wxPyBeginAllowThreads();
31465 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31466 wxPyEndAllowThreads(__tstate);
31467 if (PyErr_Occurred()) SWIG_fail;
31468 }
31469 resultobj = SWIG_From_long(static_cast< long >(result));
31470 {
31471 if (temp3)
31472 delete arg3;
31473 }
31474 return resultobj;
31475 fail:
31476 {
31477 if (temp3)
31478 delete arg3;
31479 }
31480 return NULL;
31481 }
31482
31483
31484 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31485 PyObject *resultobj = 0;
31486 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31487 long arg2 ;
31488 wxListItem *arg3 = 0 ;
31489 long result;
31490 void *argp1 = 0 ;
31491 int res1 = 0 ;
31492 long val2 ;
31493 int ecode2 = 0 ;
31494 void *argp3 = 0 ;
31495 int res3 = 0 ;
31496 PyObject * obj0 = 0 ;
31497 PyObject * obj1 = 0 ;
31498 PyObject * obj2 = 0 ;
31499 char * kwnames[] = {
31500 (char *) "self",(char *) "col",(char *) "info", NULL
31501 };
31502
31503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31505 if (!SWIG_IsOK(res1)) {
31506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31507 }
31508 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31509 ecode2 = SWIG_AsVal_long(obj1, &val2);
31510 if (!SWIG_IsOK(ecode2)) {
31511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31512 }
31513 arg2 = static_cast< long >(val2);
31514 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31515 if (!SWIG_IsOK(res3)) {
31516 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31517 }
31518 if (!argp3) {
31519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31520 }
31521 arg3 = reinterpret_cast< wxListItem * >(argp3);
31522 {
31523 PyThreadState* __tstate = wxPyBeginAllowThreads();
31524 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31525 wxPyEndAllowThreads(__tstate);
31526 if (PyErr_Occurred()) SWIG_fail;
31527 }
31528 resultobj = SWIG_From_long(static_cast< long >(result));
31529 return resultobj;
31530 fail:
31531 return NULL;
31532 }
31533
31534
31535 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31536 PyObject *resultobj = 0;
31537 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31538 long arg2 ;
31539 wxString *arg3 = 0 ;
31540 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31541 int arg5 = (int) -1 ;
31542 long result;
31543 void *argp1 = 0 ;
31544 int res1 = 0 ;
31545 long val2 ;
31546 int ecode2 = 0 ;
31547 bool temp3 = false ;
31548 int val4 ;
31549 int ecode4 = 0 ;
31550 int val5 ;
31551 int ecode5 = 0 ;
31552 PyObject * obj0 = 0 ;
31553 PyObject * obj1 = 0 ;
31554 PyObject * obj2 = 0 ;
31555 PyObject * obj3 = 0 ;
31556 PyObject * obj4 = 0 ;
31557 char * kwnames[] = {
31558 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31559 };
31560
31561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31563 if (!SWIG_IsOK(res1)) {
31564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31565 }
31566 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31567 ecode2 = SWIG_AsVal_long(obj1, &val2);
31568 if (!SWIG_IsOK(ecode2)) {
31569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31570 }
31571 arg2 = static_cast< long >(val2);
31572 {
31573 arg3 = wxString_in_helper(obj2);
31574 if (arg3 == NULL) SWIG_fail;
31575 temp3 = true;
31576 }
31577 if (obj3) {
31578 ecode4 = SWIG_AsVal_int(obj3, &val4);
31579 if (!SWIG_IsOK(ecode4)) {
31580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31581 }
31582 arg4 = static_cast< int >(val4);
31583 }
31584 if (obj4) {
31585 ecode5 = SWIG_AsVal_int(obj4, &val5);
31586 if (!SWIG_IsOK(ecode5)) {
31587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31588 }
31589 arg5 = static_cast< int >(val5);
31590 }
31591 {
31592 PyThreadState* __tstate = wxPyBeginAllowThreads();
31593 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31594 wxPyEndAllowThreads(__tstate);
31595 if (PyErr_Occurred()) SWIG_fail;
31596 }
31597 resultobj = SWIG_From_long(static_cast< long >(result));
31598 {
31599 if (temp3)
31600 delete arg3;
31601 }
31602 return resultobj;
31603 fail:
31604 {
31605 if (temp3)
31606 delete arg3;
31607 }
31608 return NULL;
31609 }
31610
31611
31612 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31613 PyObject *resultobj = 0;
31614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31615 long arg2 ;
31616 void *argp1 = 0 ;
31617 int res1 = 0 ;
31618 long val2 ;
31619 int ecode2 = 0 ;
31620 PyObject * obj0 = 0 ;
31621 PyObject * obj1 = 0 ;
31622 char * kwnames[] = {
31623 (char *) "self",(char *) "count", NULL
31624 };
31625
31626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31628 if (!SWIG_IsOK(res1)) {
31629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31630 }
31631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31632 ecode2 = SWIG_AsVal_long(obj1, &val2);
31633 if (!SWIG_IsOK(ecode2)) {
31634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31635 }
31636 arg2 = static_cast< long >(val2);
31637 {
31638 PyThreadState* __tstate = wxPyBeginAllowThreads();
31639 (arg1)->SetItemCount(arg2);
31640 wxPyEndAllowThreads(__tstate);
31641 if (PyErr_Occurred()) SWIG_fail;
31642 }
31643 resultobj = SWIG_Py_Void();
31644 return resultobj;
31645 fail:
31646 return NULL;
31647 }
31648
31649
31650 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31651 PyObject *resultobj = 0;
31652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31653 int arg2 ;
31654 int arg3 ;
31655 bool result;
31656 void *argp1 = 0 ;
31657 int res1 = 0 ;
31658 int val2 ;
31659 int ecode2 = 0 ;
31660 int val3 ;
31661 int ecode3 = 0 ;
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 PyObject * obj2 = 0 ;
31665 char * kwnames[] = {
31666 (char *) "self",(char *) "dx",(char *) "dy", NULL
31667 };
31668
31669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31671 if (!SWIG_IsOK(res1)) {
31672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31673 }
31674 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31675 ecode2 = SWIG_AsVal_int(obj1, &val2);
31676 if (!SWIG_IsOK(ecode2)) {
31677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31678 }
31679 arg2 = static_cast< int >(val2);
31680 ecode3 = SWIG_AsVal_int(obj2, &val3);
31681 if (!SWIG_IsOK(ecode3)) {
31682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31683 }
31684 arg3 = static_cast< int >(val3);
31685 {
31686 PyThreadState* __tstate = wxPyBeginAllowThreads();
31687 result = (bool)(arg1)->ScrollList(arg2,arg3);
31688 wxPyEndAllowThreads(__tstate);
31689 if (PyErr_Occurred()) SWIG_fail;
31690 }
31691 {
31692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31693 }
31694 return resultobj;
31695 fail:
31696 return NULL;
31697 }
31698
31699
31700 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31701 PyObject *resultobj = 0;
31702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31703 long arg2 ;
31704 wxColour *arg3 = 0 ;
31705 void *argp1 = 0 ;
31706 int res1 = 0 ;
31707 long val2 ;
31708 int ecode2 = 0 ;
31709 wxColour temp3 ;
31710 PyObject * obj0 = 0 ;
31711 PyObject * obj1 = 0 ;
31712 PyObject * obj2 = 0 ;
31713 char * kwnames[] = {
31714 (char *) "self",(char *) "item",(char *) "col", NULL
31715 };
31716
31717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31719 if (!SWIG_IsOK(res1)) {
31720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31721 }
31722 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31723 ecode2 = SWIG_AsVal_long(obj1, &val2);
31724 if (!SWIG_IsOK(ecode2)) {
31725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31726 }
31727 arg2 = static_cast< long >(val2);
31728 {
31729 arg3 = &temp3;
31730 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31731 }
31732 {
31733 PyThreadState* __tstate = wxPyBeginAllowThreads();
31734 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31735 wxPyEndAllowThreads(__tstate);
31736 if (PyErr_Occurred()) SWIG_fail;
31737 }
31738 resultobj = SWIG_Py_Void();
31739 return resultobj;
31740 fail:
31741 return NULL;
31742 }
31743
31744
31745 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31746 PyObject *resultobj = 0;
31747 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31748 long arg2 ;
31749 wxColour result;
31750 void *argp1 = 0 ;
31751 int res1 = 0 ;
31752 long val2 ;
31753 int ecode2 = 0 ;
31754 PyObject * obj0 = 0 ;
31755 PyObject * obj1 = 0 ;
31756 char * kwnames[] = {
31757 (char *) "self",(char *) "item", NULL
31758 };
31759
31760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31762 if (!SWIG_IsOK(res1)) {
31763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31764 }
31765 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31766 ecode2 = SWIG_AsVal_long(obj1, &val2);
31767 if (!SWIG_IsOK(ecode2)) {
31768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31769 }
31770 arg2 = static_cast< long >(val2);
31771 {
31772 PyThreadState* __tstate = wxPyBeginAllowThreads();
31773 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31774 wxPyEndAllowThreads(__tstate);
31775 if (PyErr_Occurred()) SWIG_fail;
31776 }
31777 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31778 return resultobj;
31779 fail:
31780 return NULL;
31781 }
31782
31783
31784 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31785 PyObject *resultobj = 0;
31786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31787 long arg2 ;
31788 wxColour *arg3 = 0 ;
31789 void *argp1 = 0 ;
31790 int res1 = 0 ;
31791 long val2 ;
31792 int ecode2 = 0 ;
31793 wxColour temp3 ;
31794 PyObject * obj0 = 0 ;
31795 PyObject * obj1 = 0 ;
31796 PyObject * obj2 = 0 ;
31797 char * kwnames[] = {
31798 (char *) "self",(char *) "item",(char *) "col", NULL
31799 };
31800
31801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31803 if (!SWIG_IsOK(res1)) {
31804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31805 }
31806 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31807 ecode2 = SWIG_AsVal_long(obj1, &val2);
31808 if (!SWIG_IsOK(ecode2)) {
31809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31810 }
31811 arg2 = static_cast< long >(val2);
31812 {
31813 arg3 = &temp3;
31814 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31815 }
31816 {
31817 PyThreadState* __tstate = wxPyBeginAllowThreads();
31818 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31819 wxPyEndAllowThreads(__tstate);
31820 if (PyErr_Occurred()) SWIG_fail;
31821 }
31822 resultobj = SWIG_Py_Void();
31823 return resultobj;
31824 fail:
31825 return NULL;
31826 }
31827
31828
31829 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31830 PyObject *resultobj = 0;
31831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31832 long arg2 ;
31833 wxColour result;
31834 void *argp1 = 0 ;
31835 int res1 = 0 ;
31836 long val2 ;
31837 int ecode2 = 0 ;
31838 PyObject * obj0 = 0 ;
31839 PyObject * obj1 = 0 ;
31840 char * kwnames[] = {
31841 (char *) "self",(char *) "item", NULL
31842 };
31843
31844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31846 if (!SWIG_IsOK(res1)) {
31847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31848 }
31849 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31850 ecode2 = SWIG_AsVal_long(obj1, &val2);
31851 if (!SWIG_IsOK(ecode2)) {
31852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31853 }
31854 arg2 = static_cast< long >(val2);
31855 {
31856 PyThreadState* __tstate = wxPyBeginAllowThreads();
31857 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31858 wxPyEndAllowThreads(__tstate);
31859 if (PyErr_Occurred()) SWIG_fail;
31860 }
31861 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31862 return resultobj;
31863 fail:
31864 return NULL;
31865 }
31866
31867
31868 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31869 PyObject *resultobj = 0;
31870 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31871 long arg2 ;
31872 wxFont *arg3 = 0 ;
31873 void *argp1 = 0 ;
31874 int res1 = 0 ;
31875 long val2 ;
31876 int ecode2 = 0 ;
31877 void *argp3 = 0 ;
31878 int res3 = 0 ;
31879 PyObject * obj0 = 0 ;
31880 PyObject * obj1 = 0 ;
31881 PyObject * obj2 = 0 ;
31882 char * kwnames[] = {
31883 (char *) "self",(char *) "item",(char *) "f", NULL
31884 };
31885
31886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31888 if (!SWIG_IsOK(res1)) {
31889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31890 }
31891 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31892 ecode2 = SWIG_AsVal_long(obj1, &val2);
31893 if (!SWIG_IsOK(ecode2)) {
31894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31895 }
31896 arg2 = static_cast< long >(val2);
31897 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31898 if (!SWIG_IsOK(res3)) {
31899 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31900 }
31901 if (!argp3) {
31902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31903 }
31904 arg3 = reinterpret_cast< wxFont * >(argp3);
31905 {
31906 PyThreadState* __tstate = wxPyBeginAllowThreads();
31907 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31908 wxPyEndAllowThreads(__tstate);
31909 if (PyErr_Occurred()) SWIG_fail;
31910 }
31911 resultobj = SWIG_Py_Void();
31912 return resultobj;
31913 fail:
31914 return NULL;
31915 }
31916
31917
31918 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31919 PyObject *resultobj = 0;
31920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31921 long arg2 ;
31922 wxFont result;
31923 void *argp1 = 0 ;
31924 int res1 = 0 ;
31925 long val2 ;
31926 int ecode2 = 0 ;
31927 PyObject * obj0 = 0 ;
31928 PyObject * obj1 = 0 ;
31929 char * kwnames[] = {
31930 (char *) "self",(char *) "item", NULL
31931 };
31932
31933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31935 if (!SWIG_IsOK(res1)) {
31936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31937 }
31938 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31939 ecode2 = SWIG_AsVal_long(obj1, &val2);
31940 if (!SWIG_IsOK(ecode2)) {
31941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31942 }
31943 arg2 = static_cast< long >(val2);
31944 {
31945 PyThreadState* __tstate = wxPyBeginAllowThreads();
31946 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31947 wxPyEndAllowThreads(__tstate);
31948 if (PyErr_Occurred()) SWIG_fail;
31949 }
31950 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31951 return resultobj;
31952 fail:
31953 return NULL;
31954 }
31955
31956
31957 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31958 PyObject *resultobj = 0;
31959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31960 PyObject *arg2 = (PyObject *) 0 ;
31961 bool result;
31962 void *argp1 = 0 ;
31963 int res1 = 0 ;
31964 PyObject * obj0 = 0 ;
31965 PyObject * obj1 = 0 ;
31966 char * kwnames[] = {
31967 (char *) "self",(char *) "func", NULL
31968 };
31969
31970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31972 if (!SWIG_IsOK(res1)) {
31973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31974 }
31975 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31976 arg2 = obj1;
31977 {
31978 PyThreadState* __tstate = wxPyBeginAllowThreads();
31979 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31980 wxPyEndAllowThreads(__tstate);
31981 if (PyErr_Occurred()) SWIG_fail;
31982 }
31983 {
31984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31985 }
31986 return resultobj;
31987 fail:
31988 return NULL;
31989 }
31990
31991
31992 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31993 PyObject *resultobj = 0;
31994 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31995 wxWindow *result = 0 ;
31996 void *argp1 = 0 ;
31997 int res1 = 0 ;
31998 PyObject *swig_obj[1] ;
31999
32000 if (!args) SWIG_fail;
32001 swig_obj[0] = args;
32002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32003 if (!SWIG_IsOK(res1)) {
32004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32005 }
32006 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32007 {
32008 PyThreadState* __tstate = wxPyBeginAllowThreads();
32009 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32010 wxPyEndAllowThreads(__tstate);
32011 if (PyErr_Occurred()) SWIG_fail;
32012 }
32013 {
32014 resultobj = wxPyMake_wxObject(result, 0);
32015 }
32016 return resultobj;
32017 fail:
32018 return NULL;
32019 }
32020
32021
32022 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32023 PyObject *resultobj = 0;
32024 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32025 SwigValueWrapper<wxVisualAttributes > result;
32026 int val1 ;
32027 int ecode1 = 0 ;
32028 PyObject * obj0 = 0 ;
32029 char * kwnames[] = {
32030 (char *) "variant", NULL
32031 };
32032
32033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32034 if (obj0) {
32035 ecode1 = SWIG_AsVal_int(obj0, &val1);
32036 if (!SWIG_IsOK(ecode1)) {
32037 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32038 }
32039 arg1 = static_cast< wxWindowVariant >(val1);
32040 }
32041 {
32042 if (!wxPyCheckForApp()) SWIG_fail;
32043 PyThreadState* __tstate = wxPyBeginAllowThreads();
32044 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32045 wxPyEndAllowThreads(__tstate);
32046 if (PyErr_Occurred()) SWIG_fail;
32047 }
32048 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32049 return resultobj;
32050 fail:
32051 return NULL;
32052 }
32053
32054
32055 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32056 PyObject *obj;
32057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32058 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32059 return SWIG_Py_Void();
32060 }
32061
32062 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32063 return SWIG_Python_InitShadowInstance(args);
32064 }
32065
32066 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32067 PyObject *resultobj = 0;
32068 wxWindow *arg1 = (wxWindow *) 0 ;
32069 int arg2 = (int) -1 ;
32070 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32071 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32072 wxSize const &arg4_defvalue = wxDefaultSize ;
32073 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32074 long arg5 = (long) wxLC_REPORT ;
32075 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32076 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32077 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32078 wxString *arg7 = (wxString *) &arg7_defvalue ;
32079 wxListView *result = 0 ;
32080 void *argp1 = 0 ;
32081 int res1 = 0 ;
32082 int val2 ;
32083 int ecode2 = 0 ;
32084 wxPoint temp3 ;
32085 wxSize temp4 ;
32086 long val5 ;
32087 int ecode5 = 0 ;
32088 void *argp6 = 0 ;
32089 int res6 = 0 ;
32090 bool temp7 = false ;
32091 PyObject * obj0 = 0 ;
32092 PyObject * obj1 = 0 ;
32093 PyObject * obj2 = 0 ;
32094 PyObject * obj3 = 0 ;
32095 PyObject * obj4 = 0 ;
32096 PyObject * obj5 = 0 ;
32097 PyObject * obj6 = 0 ;
32098 char * kwnames[] = {
32099 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32100 };
32101
32102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32104 if (!SWIG_IsOK(res1)) {
32105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32106 }
32107 arg1 = reinterpret_cast< wxWindow * >(argp1);
32108 if (obj1) {
32109 ecode2 = SWIG_AsVal_int(obj1, &val2);
32110 if (!SWIG_IsOK(ecode2)) {
32111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32112 }
32113 arg2 = static_cast< int >(val2);
32114 }
32115 if (obj2) {
32116 {
32117 arg3 = &temp3;
32118 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32119 }
32120 }
32121 if (obj3) {
32122 {
32123 arg4 = &temp4;
32124 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32125 }
32126 }
32127 if (obj4) {
32128 ecode5 = SWIG_AsVal_long(obj4, &val5);
32129 if (!SWIG_IsOK(ecode5)) {
32130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32131 }
32132 arg5 = static_cast< long >(val5);
32133 }
32134 if (obj5) {
32135 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32136 if (!SWIG_IsOK(res6)) {
32137 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32138 }
32139 if (!argp6) {
32140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32141 }
32142 arg6 = reinterpret_cast< wxValidator * >(argp6);
32143 }
32144 if (obj6) {
32145 {
32146 arg7 = wxString_in_helper(obj6);
32147 if (arg7 == NULL) SWIG_fail;
32148 temp7 = true;
32149 }
32150 }
32151 {
32152 if (!wxPyCheckForApp()) SWIG_fail;
32153 PyThreadState* __tstate = wxPyBeginAllowThreads();
32154 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32155 wxPyEndAllowThreads(__tstate);
32156 if (PyErr_Occurred()) SWIG_fail;
32157 }
32158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32159 {
32160 if (temp7)
32161 delete arg7;
32162 }
32163 return resultobj;
32164 fail:
32165 {
32166 if (temp7)
32167 delete arg7;
32168 }
32169 return NULL;
32170 }
32171
32172
32173 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32174 PyObject *resultobj = 0;
32175 wxListView *result = 0 ;
32176
32177 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32178 {
32179 if (!wxPyCheckForApp()) SWIG_fail;
32180 PyThreadState* __tstate = wxPyBeginAllowThreads();
32181 result = (wxListView *)new wxListView();
32182 wxPyEndAllowThreads(__tstate);
32183 if (PyErr_Occurred()) SWIG_fail;
32184 }
32185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32186 return resultobj;
32187 fail:
32188 return NULL;
32189 }
32190
32191
32192 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32193 PyObject *resultobj = 0;
32194 wxListView *arg1 = (wxListView *) 0 ;
32195 wxWindow *arg2 = (wxWindow *) 0 ;
32196 int arg3 = (int) -1 ;
32197 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32198 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32199 wxSize const &arg5_defvalue = wxDefaultSize ;
32200 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32201 long arg6 = (long) wxLC_REPORT ;
32202 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32203 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32204 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32205 wxString *arg8 = (wxString *) &arg8_defvalue ;
32206 bool result;
32207 void *argp1 = 0 ;
32208 int res1 = 0 ;
32209 void *argp2 = 0 ;
32210 int res2 = 0 ;
32211 int val3 ;
32212 int ecode3 = 0 ;
32213 wxPoint temp4 ;
32214 wxSize temp5 ;
32215 long val6 ;
32216 int ecode6 = 0 ;
32217 void *argp7 = 0 ;
32218 int res7 = 0 ;
32219 bool temp8 = false ;
32220 PyObject * obj0 = 0 ;
32221 PyObject * obj1 = 0 ;
32222 PyObject * obj2 = 0 ;
32223 PyObject * obj3 = 0 ;
32224 PyObject * obj4 = 0 ;
32225 PyObject * obj5 = 0 ;
32226 PyObject * obj6 = 0 ;
32227 PyObject * obj7 = 0 ;
32228 char * kwnames[] = {
32229 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32230 };
32231
32232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32234 if (!SWIG_IsOK(res1)) {
32235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32236 }
32237 arg1 = reinterpret_cast< wxListView * >(argp1);
32238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32239 if (!SWIG_IsOK(res2)) {
32240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32241 }
32242 arg2 = reinterpret_cast< wxWindow * >(argp2);
32243 if (obj2) {
32244 ecode3 = SWIG_AsVal_int(obj2, &val3);
32245 if (!SWIG_IsOK(ecode3)) {
32246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32247 }
32248 arg3 = static_cast< int >(val3);
32249 }
32250 if (obj3) {
32251 {
32252 arg4 = &temp4;
32253 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32254 }
32255 }
32256 if (obj4) {
32257 {
32258 arg5 = &temp5;
32259 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32260 }
32261 }
32262 if (obj5) {
32263 ecode6 = SWIG_AsVal_long(obj5, &val6);
32264 if (!SWIG_IsOK(ecode6)) {
32265 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32266 }
32267 arg6 = static_cast< long >(val6);
32268 }
32269 if (obj6) {
32270 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32271 if (!SWIG_IsOK(res7)) {
32272 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32273 }
32274 if (!argp7) {
32275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32276 }
32277 arg7 = reinterpret_cast< wxValidator * >(argp7);
32278 }
32279 if (obj7) {
32280 {
32281 arg8 = wxString_in_helper(obj7);
32282 if (arg8 == NULL) SWIG_fail;
32283 temp8 = true;
32284 }
32285 }
32286 {
32287 PyThreadState* __tstate = wxPyBeginAllowThreads();
32288 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32289 wxPyEndAllowThreads(__tstate);
32290 if (PyErr_Occurred()) SWIG_fail;
32291 }
32292 {
32293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32294 }
32295 {
32296 if (temp8)
32297 delete arg8;
32298 }
32299 return resultobj;
32300 fail:
32301 {
32302 if (temp8)
32303 delete arg8;
32304 }
32305 return NULL;
32306 }
32307
32308
32309 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32310 PyObject *resultobj = 0;
32311 wxListView *arg1 = (wxListView *) 0 ;
32312 long arg2 ;
32313 bool arg3 = (bool) true ;
32314 void *argp1 = 0 ;
32315 int res1 = 0 ;
32316 long val2 ;
32317 int ecode2 = 0 ;
32318 bool val3 ;
32319 int ecode3 = 0 ;
32320 PyObject * obj0 = 0 ;
32321 PyObject * obj1 = 0 ;
32322 PyObject * obj2 = 0 ;
32323 char * kwnames[] = {
32324 (char *) "self",(char *) "n",(char *) "on", NULL
32325 };
32326
32327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32329 if (!SWIG_IsOK(res1)) {
32330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32331 }
32332 arg1 = reinterpret_cast< wxListView * >(argp1);
32333 ecode2 = SWIG_AsVal_long(obj1, &val2);
32334 if (!SWIG_IsOK(ecode2)) {
32335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32336 }
32337 arg2 = static_cast< long >(val2);
32338 if (obj2) {
32339 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32340 if (!SWIG_IsOK(ecode3)) {
32341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32342 }
32343 arg3 = static_cast< bool >(val3);
32344 }
32345 {
32346 PyThreadState* __tstate = wxPyBeginAllowThreads();
32347 (arg1)->Select(arg2,arg3);
32348 wxPyEndAllowThreads(__tstate);
32349 if (PyErr_Occurred()) SWIG_fail;
32350 }
32351 resultobj = SWIG_Py_Void();
32352 return resultobj;
32353 fail:
32354 return NULL;
32355 }
32356
32357
32358 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32359 PyObject *resultobj = 0;
32360 wxListView *arg1 = (wxListView *) 0 ;
32361 long arg2 ;
32362 void *argp1 = 0 ;
32363 int res1 = 0 ;
32364 long val2 ;
32365 int ecode2 = 0 ;
32366 PyObject * obj0 = 0 ;
32367 PyObject * obj1 = 0 ;
32368 char * kwnames[] = {
32369 (char *) "self",(char *) "index", NULL
32370 };
32371
32372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32374 if (!SWIG_IsOK(res1)) {
32375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32376 }
32377 arg1 = reinterpret_cast< wxListView * >(argp1);
32378 ecode2 = SWIG_AsVal_long(obj1, &val2);
32379 if (!SWIG_IsOK(ecode2)) {
32380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32381 }
32382 arg2 = static_cast< long >(val2);
32383 {
32384 PyThreadState* __tstate = wxPyBeginAllowThreads();
32385 (arg1)->Focus(arg2);
32386 wxPyEndAllowThreads(__tstate);
32387 if (PyErr_Occurred()) SWIG_fail;
32388 }
32389 resultobj = SWIG_Py_Void();
32390 return resultobj;
32391 fail:
32392 return NULL;
32393 }
32394
32395
32396 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32397 PyObject *resultobj = 0;
32398 wxListView *arg1 = (wxListView *) 0 ;
32399 long result;
32400 void *argp1 = 0 ;
32401 int res1 = 0 ;
32402 PyObject *swig_obj[1] ;
32403
32404 if (!args) SWIG_fail;
32405 swig_obj[0] = args;
32406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32407 if (!SWIG_IsOK(res1)) {
32408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32409 }
32410 arg1 = reinterpret_cast< wxListView * >(argp1);
32411 {
32412 PyThreadState* __tstate = wxPyBeginAllowThreads();
32413 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32414 wxPyEndAllowThreads(__tstate);
32415 if (PyErr_Occurred()) SWIG_fail;
32416 }
32417 resultobj = SWIG_From_long(static_cast< long >(result));
32418 return resultobj;
32419 fail:
32420 return NULL;
32421 }
32422
32423
32424 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32425 PyObject *resultobj = 0;
32426 wxListView *arg1 = (wxListView *) 0 ;
32427 long arg2 ;
32428 long result;
32429 void *argp1 = 0 ;
32430 int res1 = 0 ;
32431 long val2 ;
32432 int ecode2 = 0 ;
32433 PyObject * obj0 = 0 ;
32434 PyObject * obj1 = 0 ;
32435 char * kwnames[] = {
32436 (char *) "self",(char *) "item", NULL
32437 };
32438
32439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32441 if (!SWIG_IsOK(res1)) {
32442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32443 }
32444 arg1 = reinterpret_cast< wxListView * >(argp1);
32445 ecode2 = SWIG_AsVal_long(obj1, &val2);
32446 if (!SWIG_IsOK(ecode2)) {
32447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32448 }
32449 arg2 = static_cast< long >(val2);
32450 {
32451 PyThreadState* __tstate = wxPyBeginAllowThreads();
32452 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
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_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32464 PyObject *resultobj = 0;
32465 wxListView *arg1 = (wxListView *) 0 ;
32466 long result;
32467 void *argp1 = 0 ;
32468 int res1 = 0 ;
32469 PyObject *swig_obj[1] ;
32470
32471 if (!args) SWIG_fail;
32472 swig_obj[0] = args;
32473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32474 if (!SWIG_IsOK(res1)) {
32475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32476 }
32477 arg1 = reinterpret_cast< wxListView * >(argp1);
32478 {
32479 PyThreadState* __tstate = wxPyBeginAllowThreads();
32480 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32481 wxPyEndAllowThreads(__tstate);
32482 if (PyErr_Occurred()) SWIG_fail;
32483 }
32484 resultobj = SWIG_From_long(static_cast< long >(result));
32485 return resultobj;
32486 fail:
32487 return NULL;
32488 }
32489
32490
32491 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32492 PyObject *resultobj = 0;
32493 wxListView *arg1 = (wxListView *) 0 ;
32494 long arg2 ;
32495 bool result;
32496 void *argp1 = 0 ;
32497 int res1 = 0 ;
32498 long val2 ;
32499 int ecode2 = 0 ;
32500 PyObject * obj0 = 0 ;
32501 PyObject * obj1 = 0 ;
32502 char * kwnames[] = {
32503 (char *) "self",(char *) "index", NULL
32504 };
32505
32506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32508 if (!SWIG_IsOK(res1)) {
32509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32510 }
32511 arg1 = reinterpret_cast< wxListView * >(argp1);
32512 ecode2 = SWIG_AsVal_long(obj1, &val2);
32513 if (!SWIG_IsOK(ecode2)) {
32514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32515 }
32516 arg2 = static_cast< long >(val2);
32517 {
32518 PyThreadState* __tstate = wxPyBeginAllowThreads();
32519 result = (bool)(arg1)->IsSelected(arg2);
32520 wxPyEndAllowThreads(__tstate);
32521 if (PyErr_Occurred()) SWIG_fail;
32522 }
32523 {
32524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32525 }
32526 return resultobj;
32527 fail:
32528 return NULL;
32529 }
32530
32531
32532 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32533 PyObject *resultobj = 0;
32534 wxListView *arg1 = (wxListView *) 0 ;
32535 int arg2 ;
32536 int arg3 ;
32537 void *argp1 = 0 ;
32538 int res1 = 0 ;
32539 int val2 ;
32540 int ecode2 = 0 ;
32541 int val3 ;
32542 int ecode3 = 0 ;
32543 PyObject * obj0 = 0 ;
32544 PyObject * obj1 = 0 ;
32545 PyObject * obj2 = 0 ;
32546 char * kwnames[] = {
32547 (char *) "self",(char *) "col",(char *) "image", NULL
32548 };
32549
32550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32552 if (!SWIG_IsOK(res1)) {
32553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32554 }
32555 arg1 = reinterpret_cast< wxListView * >(argp1);
32556 ecode2 = SWIG_AsVal_int(obj1, &val2);
32557 if (!SWIG_IsOK(ecode2)) {
32558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32559 }
32560 arg2 = static_cast< int >(val2);
32561 ecode3 = SWIG_AsVal_int(obj2, &val3);
32562 if (!SWIG_IsOK(ecode3)) {
32563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32564 }
32565 arg3 = static_cast< int >(val3);
32566 {
32567 PyThreadState* __tstate = wxPyBeginAllowThreads();
32568 (arg1)->SetColumnImage(arg2,arg3);
32569 wxPyEndAllowThreads(__tstate);
32570 if (PyErr_Occurred()) SWIG_fail;
32571 }
32572 resultobj = SWIG_Py_Void();
32573 return resultobj;
32574 fail:
32575 return NULL;
32576 }
32577
32578
32579 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32580 PyObject *resultobj = 0;
32581 wxListView *arg1 = (wxListView *) 0 ;
32582 int arg2 ;
32583 void *argp1 = 0 ;
32584 int res1 = 0 ;
32585 int val2 ;
32586 int ecode2 = 0 ;
32587 PyObject * obj0 = 0 ;
32588 PyObject * obj1 = 0 ;
32589 char * kwnames[] = {
32590 (char *) "self",(char *) "col", NULL
32591 };
32592
32593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32595 if (!SWIG_IsOK(res1)) {
32596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32597 }
32598 arg1 = reinterpret_cast< wxListView * >(argp1);
32599 ecode2 = SWIG_AsVal_int(obj1, &val2);
32600 if (!SWIG_IsOK(ecode2)) {
32601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32602 }
32603 arg2 = static_cast< int >(val2);
32604 {
32605 PyThreadState* __tstate = wxPyBeginAllowThreads();
32606 (arg1)->ClearColumnImage(arg2);
32607 wxPyEndAllowThreads(__tstate);
32608 if (PyErr_Occurred()) SWIG_fail;
32609 }
32610 resultobj = SWIG_Py_Void();
32611 return resultobj;
32612 fail:
32613 return NULL;
32614 }
32615
32616
32617 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32618 PyObject *obj;
32619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32620 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32621 return SWIG_Py_Void();
32622 }
32623
32624 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32625 return SWIG_Python_InitShadowInstance(args);
32626 }
32627
32628 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32629 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32630 return 1;
32631 }
32632
32633
32634 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32635 PyObject *pyobj = 0;
32636
32637 {
32638 #if wxUSE_UNICODE
32639 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32640 #else
32641 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32642 #endif
32643 }
32644 return pyobj;
32645 }
32646
32647
32648 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32649 PyObject *resultobj = 0;
32650 wxTreeItemId *result = 0 ;
32651
32652 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32653 {
32654 PyThreadState* __tstate = wxPyBeginAllowThreads();
32655 result = (wxTreeItemId *)new wxTreeItemId();
32656 wxPyEndAllowThreads(__tstate);
32657 if (PyErr_Occurred()) SWIG_fail;
32658 }
32659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32660 return resultobj;
32661 fail:
32662 return NULL;
32663 }
32664
32665
32666 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32667 PyObject *resultobj = 0;
32668 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32669 void *argp1 = 0 ;
32670 int res1 = 0 ;
32671 PyObject *swig_obj[1] ;
32672
32673 if (!args) SWIG_fail;
32674 swig_obj[0] = args;
32675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32676 if (!SWIG_IsOK(res1)) {
32677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32678 }
32679 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32680 {
32681 PyThreadState* __tstate = wxPyBeginAllowThreads();
32682 delete arg1;
32683
32684 wxPyEndAllowThreads(__tstate);
32685 if (PyErr_Occurred()) SWIG_fail;
32686 }
32687 resultobj = SWIG_Py_Void();
32688 return resultobj;
32689 fail:
32690 return NULL;
32691 }
32692
32693
32694 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32695 PyObject *resultobj = 0;
32696 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32697 bool result;
32698 void *argp1 = 0 ;
32699 int res1 = 0 ;
32700 PyObject *swig_obj[1] ;
32701
32702 if (!args) SWIG_fail;
32703 swig_obj[0] = args;
32704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32705 if (!SWIG_IsOK(res1)) {
32706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32707 }
32708 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32709 {
32710 PyThreadState* __tstate = wxPyBeginAllowThreads();
32711 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32712 wxPyEndAllowThreads(__tstate);
32713 if (PyErr_Occurred()) SWIG_fail;
32714 }
32715 {
32716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32717 }
32718 return resultobj;
32719 fail:
32720 return NULL;
32721 }
32722
32723
32724 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32725 PyObject *resultobj = 0;
32726 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32727 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32728 bool result;
32729 void *argp1 = 0 ;
32730 int res1 = 0 ;
32731 void *argp2 = 0 ;
32732 int res2 = 0 ;
32733 PyObject * obj0 = 0 ;
32734 PyObject * obj1 = 0 ;
32735 char * kwnames[] = {
32736 (char *) "self",(char *) "other", NULL
32737 };
32738
32739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32741 if (!SWIG_IsOK(res1)) {
32742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32743 }
32744 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32745 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32746 if (!SWIG_IsOK(res2)) {
32747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32748 }
32749 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32750 {
32751 PyThreadState* __tstate = wxPyBeginAllowThreads();
32752 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32753 wxPyEndAllowThreads(__tstate);
32754 if (PyErr_Occurred()) SWIG_fail;
32755 }
32756 {
32757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32758 }
32759 return resultobj;
32760 fail:
32761 return NULL;
32762 }
32763
32764
32765 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32766 PyObject *resultobj = 0;
32767 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32768 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32769 bool result;
32770 void *argp1 = 0 ;
32771 int res1 = 0 ;
32772 void *argp2 = 0 ;
32773 int res2 = 0 ;
32774 PyObject * obj0 = 0 ;
32775 PyObject * obj1 = 0 ;
32776 char * kwnames[] = {
32777 (char *) "self",(char *) "other", NULL
32778 };
32779
32780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32782 if (!SWIG_IsOK(res1)) {
32783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32784 }
32785 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32787 if (!SWIG_IsOK(res2)) {
32788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32789 }
32790 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32791 {
32792 PyThreadState* __tstate = wxPyBeginAllowThreads();
32793 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32794 wxPyEndAllowThreads(__tstate);
32795 if (PyErr_Occurred()) SWIG_fail;
32796 }
32797 {
32798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32799 }
32800 return resultobj;
32801 fail:
32802 return NULL;
32803 }
32804
32805
32806 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32807 PyObject *resultobj = 0;
32808 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32809 void *arg2 = (void *) 0 ;
32810 void *argp1 = 0 ;
32811 int res1 = 0 ;
32812 int res2 ;
32813 PyObject *swig_obj[2] ;
32814
32815 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32817 if (!SWIG_IsOK(res1)) {
32818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32819 }
32820 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32821 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32822 if (!SWIG_IsOK(res2)) {
32823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32824 }
32825 if (arg1) (arg1)->m_pItem = arg2;
32826
32827 resultobj = SWIG_Py_Void();
32828 return resultobj;
32829 fail:
32830 return NULL;
32831 }
32832
32833
32834 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32835 PyObject *resultobj = 0;
32836 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32837 void *result = 0 ;
32838 void *argp1 = 0 ;
32839 int res1 = 0 ;
32840 PyObject *swig_obj[1] ;
32841
32842 if (!args) SWIG_fail;
32843 swig_obj[0] = args;
32844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32845 if (!SWIG_IsOK(res1)) {
32846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32847 }
32848 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32849 result = (void *) ((arg1)->m_pItem);
32850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32851 return resultobj;
32852 fail:
32853 return NULL;
32854 }
32855
32856
32857 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32858 PyObject *obj;
32859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32860 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32861 return SWIG_Py_Void();
32862 }
32863
32864 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32865 return SWIG_Python_InitShadowInstance(args);
32866 }
32867
32868 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32869 PyObject *resultobj = 0;
32870 PyObject *arg1 = (PyObject *) NULL ;
32871 wxPyTreeItemData *result = 0 ;
32872 PyObject * obj0 = 0 ;
32873 char * kwnames[] = {
32874 (char *) "obj", NULL
32875 };
32876
32877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32878 if (obj0) {
32879 arg1 = obj0;
32880 }
32881 {
32882 PyThreadState* __tstate = wxPyBeginAllowThreads();
32883 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32884 wxPyEndAllowThreads(__tstate);
32885 if (PyErr_Occurred()) SWIG_fail;
32886 }
32887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32888 return resultobj;
32889 fail:
32890 return NULL;
32891 }
32892
32893
32894 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32895 PyObject *resultobj = 0;
32896 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32897 void *argp1 = 0 ;
32898 int res1 = 0 ;
32899 PyObject *swig_obj[1] ;
32900
32901 if (!args) SWIG_fail;
32902 swig_obj[0] = args;
32903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32904 if (!SWIG_IsOK(res1)) {
32905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32906 }
32907 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32908 {
32909 PyThreadState* __tstate = wxPyBeginAllowThreads();
32910 delete arg1;
32911
32912 wxPyEndAllowThreads(__tstate);
32913 if (PyErr_Occurred()) SWIG_fail;
32914 }
32915 resultobj = SWIG_Py_Void();
32916 return resultobj;
32917 fail:
32918 return NULL;
32919 }
32920
32921
32922 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32923 PyObject *resultobj = 0;
32924 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32925 PyObject *result = 0 ;
32926 void *argp1 = 0 ;
32927 int res1 = 0 ;
32928 PyObject *swig_obj[1] ;
32929
32930 if (!args) SWIG_fail;
32931 swig_obj[0] = args;
32932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32933 if (!SWIG_IsOK(res1)) {
32934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32935 }
32936 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32937 {
32938 PyThreadState* __tstate = wxPyBeginAllowThreads();
32939 result = (PyObject *)(arg1)->GetData();
32940 wxPyEndAllowThreads(__tstate);
32941 if (PyErr_Occurred()) SWIG_fail;
32942 }
32943 resultobj = result;
32944 return resultobj;
32945 fail:
32946 return NULL;
32947 }
32948
32949
32950 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32951 PyObject *resultobj = 0;
32952 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32953 PyObject *arg2 = (PyObject *) 0 ;
32954 void *argp1 = 0 ;
32955 int res1 = 0 ;
32956 PyObject * obj0 = 0 ;
32957 PyObject * obj1 = 0 ;
32958 char * kwnames[] = {
32959 (char *) "self",(char *) "obj", NULL
32960 };
32961
32962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32964 if (!SWIG_IsOK(res1)) {
32965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32966 }
32967 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32968 arg2 = obj1;
32969 {
32970 PyThreadState* __tstate = wxPyBeginAllowThreads();
32971 (arg1)->SetData(arg2);
32972 wxPyEndAllowThreads(__tstate);
32973 if (PyErr_Occurred()) SWIG_fail;
32974 }
32975 resultobj = SWIG_Py_Void();
32976 return resultobj;
32977 fail:
32978 return NULL;
32979 }
32980
32981
32982 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32983 PyObject *resultobj = 0;
32984 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32985 wxTreeItemId *result = 0 ;
32986 void *argp1 = 0 ;
32987 int res1 = 0 ;
32988 PyObject *swig_obj[1] ;
32989
32990 if (!args) SWIG_fail;
32991 swig_obj[0] = args;
32992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32993 if (!SWIG_IsOK(res1)) {
32994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32995 }
32996 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32997 {
32998 PyThreadState* __tstate = wxPyBeginAllowThreads();
32999 {
33000 wxTreeItemId const &_result_ref = (arg1)->GetId();
33001 result = (wxTreeItemId *) &_result_ref;
33002 }
33003 wxPyEndAllowThreads(__tstate);
33004 if (PyErr_Occurred()) SWIG_fail;
33005 }
33006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33007 return resultobj;
33008 fail:
33009 return NULL;
33010 }
33011
33012
33013 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33014 PyObject *resultobj = 0;
33015 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33016 wxTreeItemId *arg2 = 0 ;
33017 void *argp1 = 0 ;
33018 int res1 = 0 ;
33019 void *argp2 = 0 ;
33020 int res2 = 0 ;
33021 PyObject * obj0 = 0 ;
33022 PyObject * obj1 = 0 ;
33023 char * kwnames[] = {
33024 (char *) "self",(char *) "id", NULL
33025 };
33026
33027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33029 if (!SWIG_IsOK(res1)) {
33030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33031 }
33032 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33034 if (!SWIG_IsOK(res2)) {
33035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33036 }
33037 if (!argp2) {
33038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33039 }
33040 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33041 {
33042 PyThreadState* __tstate = wxPyBeginAllowThreads();
33043 (arg1)->SetId((wxTreeItemId const &)*arg2);
33044 wxPyEndAllowThreads(__tstate);
33045 if (PyErr_Occurred()) SWIG_fail;
33046 }
33047 resultobj = SWIG_Py_Void();
33048 return resultobj;
33049 fail:
33050 return NULL;
33051 }
33052
33053
33054 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33055 PyObject *resultobj = 0;
33056 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33057 void *argp1 = 0 ;
33058 int res1 = 0 ;
33059 PyObject *swig_obj[1] ;
33060
33061 if (!args) SWIG_fail;
33062 swig_obj[0] = args;
33063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33064 if (!SWIG_IsOK(res1)) {
33065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33066 }
33067 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33068 {
33069 PyThreadState* __tstate = wxPyBeginAllowThreads();
33070 wxPyTreeItemData_Destroy(arg1);
33071 wxPyEndAllowThreads(__tstate);
33072 if (PyErr_Occurred()) SWIG_fail;
33073 }
33074 resultobj = SWIG_Py_Void();
33075 return resultobj;
33076 fail:
33077 return NULL;
33078 }
33079
33080
33081 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33082 PyObject *obj;
33083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33084 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33085 return SWIG_Py_Void();
33086 }
33087
33088 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33089 return SWIG_Python_InitShadowInstance(args);
33090 }
33091
33092 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33093 {
33094 void *argp = 0;
33095 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33096 if (!SWIG_IsOK(res)) {
33097 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33098 }
33099 if (!argp) {
33100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33101 } else {
33102 wxTreeItemId * temp;
33103 temp = reinterpret_cast< wxTreeItemId * >(argp);
33104 wxNullTreeItemId = *temp;
33105 if (SWIG_IsNewObj(res)) delete temp;
33106 }
33107 }
33108 return 0;
33109 fail:
33110 return 1;
33111 }
33112
33113
33114 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33115 PyObject *pyobj = 0;
33116
33117 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33118 return pyobj;
33119 }
33120
33121
33122 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33123 PyObject *resultobj = 0;
33124 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33125 int arg2 = (int) 0 ;
33126 wxTreeEvent *result = 0 ;
33127 int val1 ;
33128 int ecode1 = 0 ;
33129 int val2 ;
33130 int ecode2 = 0 ;
33131
33132 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33133 if (swig_obj[0]) {
33134 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33135 if (!SWIG_IsOK(ecode1)) {
33136 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33137 }
33138 arg1 = static_cast< wxEventType >(val1);
33139 }
33140 if (swig_obj[1]) {
33141 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33142 if (!SWIG_IsOK(ecode2)) {
33143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33144 }
33145 arg2 = static_cast< int >(val2);
33146 }
33147 {
33148 PyThreadState* __tstate = wxPyBeginAllowThreads();
33149 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33150 wxPyEndAllowThreads(__tstate);
33151 if (PyErr_Occurred()) SWIG_fail;
33152 }
33153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33154 return resultobj;
33155 fail:
33156 return NULL;
33157 }
33158
33159
33160 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33161 PyObject *resultobj = 0;
33162 wxEventType arg1 ;
33163 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33164 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33165 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33166 wxTreeEvent *result = 0 ;
33167 int val1 ;
33168 int ecode1 = 0 ;
33169 void *argp2 = 0 ;
33170 int res2 = 0 ;
33171 void *argp3 = 0 ;
33172 int res3 = 0 ;
33173
33174 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33175 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33176 if (!SWIG_IsOK(ecode1)) {
33177 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33178 }
33179 arg1 = static_cast< wxEventType >(val1);
33180 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33181 if (!SWIG_IsOK(res2)) {
33182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33183 }
33184 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33185 if (swig_obj[2]) {
33186 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33187 if (!SWIG_IsOK(res3)) {
33188 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33189 }
33190 if (!argp3) {
33191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33192 }
33193 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33194 }
33195 {
33196 PyThreadState* __tstate = wxPyBeginAllowThreads();
33197 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33198 wxPyEndAllowThreads(__tstate);
33199 if (PyErr_Occurred()) SWIG_fail;
33200 }
33201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33202 return resultobj;
33203 fail:
33204 return NULL;
33205 }
33206
33207
33208 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33209 int argc;
33210 PyObject *argv[4];
33211
33212 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33213 --argc;
33214 if ((argc >= 0) && (argc <= 2)) {
33215 int _v = 0;
33216 if (argc > 1) {
33217 {
33218 {
33219 int res = SWIG_AsVal_int(argv[1], NULL);
33220 _v = SWIG_CheckState(res);
33221 }
33222 }
33223 if (!_v) goto check_1;
33224 }
33225 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33226 }
33227 check_1:
33228
33229 if ((argc >= 2) && (argc <= 3)) {
33230 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33231 }
33232
33233 fail:
33234 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33235 return NULL;
33236 }
33237
33238
33239 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33240 PyObject *resultobj = 0;
33241 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33242 wxTreeItemId result;
33243 void *argp1 = 0 ;
33244 int res1 = 0 ;
33245 PyObject *swig_obj[1] ;
33246
33247 if (!args) SWIG_fail;
33248 swig_obj[0] = args;
33249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33250 if (!SWIG_IsOK(res1)) {
33251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33252 }
33253 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33254 {
33255 PyThreadState* __tstate = wxPyBeginAllowThreads();
33256 result = ((wxTreeEvent const *)arg1)->GetItem();
33257 wxPyEndAllowThreads(__tstate);
33258 if (PyErr_Occurred()) SWIG_fail;
33259 }
33260 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33261 return resultobj;
33262 fail:
33263 return NULL;
33264 }
33265
33266
33267 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33268 PyObject *resultobj = 0;
33269 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33270 wxTreeItemId *arg2 = 0 ;
33271 void *argp1 = 0 ;
33272 int res1 = 0 ;
33273 void *argp2 = 0 ;
33274 int res2 = 0 ;
33275 PyObject * obj0 = 0 ;
33276 PyObject * obj1 = 0 ;
33277 char * kwnames[] = {
33278 (char *) "self",(char *) "item", NULL
33279 };
33280
33281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33283 if (!SWIG_IsOK(res1)) {
33284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33285 }
33286 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33288 if (!SWIG_IsOK(res2)) {
33289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33290 }
33291 if (!argp2) {
33292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33293 }
33294 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33295 {
33296 PyThreadState* __tstate = wxPyBeginAllowThreads();
33297 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33298 wxPyEndAllowThreads(__tstate);
33299 if (PyErr_Occurred()) SWIG_fail;
33300 }
33301 resultobj = SWIG_Py_Void();
33302 return resultobj;
33303 fail:
33304 return NULL;
33305 }
33306
33307
33308 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33309 PyObject *resultobj = 0;
33310 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33311 wxTreeItemId result;
33312 void *argp1 = 0 ;
33313 int res1 = 0 ;
33314 PyObject *swig_obj[1] ;
33315
33316 if (!args) SWIG_fail;
33317 swig_obj[0] = args;
33318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33319 if (!SWIG_IsOK(res1)) {
33320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33321 }
33322 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33323 {
33324 PyThreadState* __tstate = wxPyBeginAllowThreads();
33325 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33326 wxPyEndAllowThreads(__tstate);
33327 if (PyErr_Occurred()) SWIG_fail;
33328 }
33329 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33330 return resultobj;
33331 fail:
33332 return NULL;
33333 }
33334
33335
33336 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33337 PyObject *resultobj = 0;
33338 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33339 wxTreeItemId *arg2 = 0 ;
33340 void *argp1 = 0 ;
33341 int res1 = 0 ;
33342 void *argp2 = 0 ;
33343 int res2 = 0 ;
33344 PyObject * obj0 = 0 ;
33345 PyObject * obj1 = 0 ;
33346 char * kwnames[] = {
33347 (char *) "self",(char *) "item", NULL
33348 };
33349
33350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33352 if (!SWIG_IsOK(res1)) {
33353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33354 }
33355 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33357 if (!SWIG_IsOK(res2)) {
33358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33359 }
33360 if (!argp2) {
33361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33362 }
33363 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33364 {
33365 PyThreadState* __tstate = wxPyBeginAllowThreads();
33366 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33367 wxPyEndAllowThreads(__tstate);
33368 if (PyErr_Occurred()) SWIG_fail;
33369 }
33370 resultobj = SWIG_Py_Void();
33371 return resultobj;
33372 fail:
33373 return NULL;
33374 }
33375
33376
33377 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33378 PyObject *resultobj = 0;
33379 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33380 wxPoint result;
33381 void *argp1 = 0 ;
33382 int res1 = 0 ;
33383 PyObject *swig_obj[1] ;
33384
33385 if (!args) SWIG_fail;
33386 swig_obj[0] = args;
33387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33388 if (!SWIG_IsOK(res1)) {
33389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33390 }
33391 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33392 {
33393 PyThreadState* __tstate = wxPyBeginAllowThreads();
33394 result = ((wxTreeEvent const *)arg1)->GetPoint();
33395 wxPyEndAllowThreads(__tstate);
33396 if (PyErr_Occurred()) SWIG_fail;
33397 }
33398 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33399 return resultobj;
33400 fail:
33401 return NULL;
33402 }
33403
33404
33405 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33406 PyObject *resultobj = 0;
33407 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33408 wxPoint *arg2 = 0 ;
33409 void *argp1 = 0 ;
33410 int res1 = 0 ;
33411 wxPoint temp2 ;
33412 PyObject * obj0 = 0 ;
33413 PyObject * obj1 = 0 ;
33414 char * kwnames[] = {
33415 (char *) "self",(char *) "pt", NULL
33416 };
33417
33418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33420 if (!SWIG_IsOK(res1)) {
33421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33422 }
33423 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33424 {
33425 arg2 = &temp2;
33426 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33427 }
33428 {
33429 PyThreadState* __tstate = wxPyBeginAllowThreads();
33430 (arg1)->SetPoint((wxPoint const &)*arg2);
33431 wxPyEndAllowThreads(__tstate);
33432 if (PyErr_Occurred()) SWIG_fail;
33433 }
33434 resultobj = SWIG_Py_Void();
33435 return resultobj;
33436 fail:
33437 return NULL;
33438 }
33439
33440
33441 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33442 PyObject *resultobj = 0;
33443 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33444 wxKeyEvent *result = 0 ;
33445 void *argp1 = 0 ;
33446 int res1 = 0 ;
33447 PyObject *swig_obj[1] ;
33448
33449 if (!args) SWIG_fail;
33450 swig_obj[0] = args;
33451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33452 if (!SWIG_IsOK(res1)) {
33453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33454 }
33455 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33456 {
33457 PyThreadState* __tstate = wxPyBeginAllowThreads();
33458 {
33459 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33460 result = (wxKeyEvent *) &_result_ref;
33461 }
33462 wxPyEndAllowThreads(__tstate);
33463 if (PyErr_Occurred()) SWIG_fail;
33464 }
33465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33466 return resultobj;
33467 fail:
33468 return NULL;
33469 }
33470
33471
33472 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33473 PyObject *resultobj = 0;
33474 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33475 int result;
33476 void *argp1 = 0 ;
33477 int res1 = 0 ;
33478 PyObject *swig_obj[1] ;
33479
33480 if (!args) SWIG_fail;
33481 swig_obj[0] = args;
33482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33483 if (!SWIG_IsOK(res1)) {
33484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33485 }
33486 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33487 {
33488 PyThreadState* __tstate = wxPyBeginAllowThreads();
33489 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33490 wxPyEndAllowThreads(__tstate);
33491 if (PyErr_Occurred()) SWIG_fail;
33492 }
33493 resultobj = SWIG_From_int(static_cast< int >(result));
33494 return resultobj;
33495 fail:
33496 return NULL;
33497 }
33498
33499
33500 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33501 PyObject *resultobj = 0;
33502 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33503 wxKeyEvent *arg2 = 0 ;
33504 void *argp1 = 0 ;
33505 int res1 = 0 ;
33506 void *argp2 = 0 ;
33507 int res2 = 0 ;
33508 PyObject * obj0 = 0 ;
33509 PyObject * obj1 = 0 ;
33510 char * kwnames[] = {
33511 (char *) "self",(char *) "evt", NULL
33512 };
33513
33514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33516 if (!SWIG_IsOK(res1)) {
33517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33518 }
33519 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33521 if (!SWIG_IsOK(res2)) {
33522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33523 }
33524 if (!argp2) {
33525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33526 }
33527 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33528 {
33529 PyThreadState* __tstate = wxPyBeginAllowThreads();
33530 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33531 wxPyEndAllowThreads(__tstate);
33532 if (PyErr_Occurred()) SWIG_fail;
33533 }
33534 resultobj = SWIG_Py_Void();
33535 return resultobj;
33536 fail:
33537 return NULL;
33538 }
33539
33540
33541 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33542 PyObject *resultobj = 0;
33543 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33544 wxString *result = 0 ;
33545 void *argp1 = 0 ;
33546 int res1 = 0 ;
33547 PyObject *swig_obj[1] ;
33548
33549 if (!args) SWIG_fail;
33550 swig_obj[0] = args;
33551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33552 if (!SWIG_IsOK(res1)) {
33553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33554 }
33555 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33556 {
33557 PyThreadState* __tstate = wxPyBeginAllowThreads();
33558 {
33559 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33560 result = (wxString *) &_result_ref;
33561 }
33562 wxPyEndAllowThreads(__tstate);
33563 if (PyErr_Occurred()) SWIG_fail;
33564 }
33565 {
33566 #if wxUSE_UNICODE
33567 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33568 #else
33569 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33570 #endif
33571 }
33572 return resultobj;
33573 fail:
33574 return NULL;
33575 }
33576
33577
33578 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33579 PyObject *resultobj = 0;
33580 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33581 wxString *arg2 = 0 ;
33582 void *argp1 = 0 ;
33583 int res1 = 0 ;
33584 bool temp2 = false ;
33585 PyObject * obj0 = 0 ;
33586 PyObject * obj1 = 0 ;
33587 char * kwnames[] = {
33588 (char *) "self",(char *) "label", NULL
33589 };
33590
33591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33593 if (!SWIG_IsOK(res1)) {
33594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33595 }
33596 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33597 {
33598 arg2 = wxString_in_helper(obj1);
33599 if (arg2 == NULL) SWIG_fail;
33600 temp2 = true;
33601 }
33602 {
33603 PyThreadState* __tstate = wxPyBeginAllowThreads();
33604 (arg1)->SetLabel((wxString const &)*arg2);
33605 wxPyEndAllowThreads(__tstate);
33606 if (PyErr_Occurred()) SWIG_fail;
33607 }
33608 resultobj = SWIG_Py_Void();
33609 {
33610 if (temp2)
33611 delete arg2;
33612 }
33613 return resultobj;
33614 fail:
33615 {
33616 if (temp2)
33617 delete arg2;
33618 }
33619 return NULL;
33620 }
33621
33622
33623 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33624 PyObject *resultobj = 0;
33625 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33626 bool result;
33627 void *argp1 = 0 ;
33628 int res1 = 0 ;
33629 PyObject *swig_obj[1] ;
33630
33631 if (!args) SWIG_fail;
33632 swig_obj[0] = args;
33633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33634 if (!SWIG_IsOK(res1)) {
33635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33636 }
33637 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33638 {
33639 PyThreadState* __tstate = wxPyBeginAllowThreads();
33640 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33641 wxPyEndAllowThreads(__tstate);
33642 if (PyErr_Occurred()) SWIG_fail;
33643 }
33644 {
33645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33646 }
33647 return resultobj;
33648 fail:
33649 return NULL;
33650 }
33651
33652
33653 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33654 PyObject *resultobj = 0;
33655 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33656 bool arg2 ;
33657 void *argp1 = 0 ;
33658 int res1 = 0 ;
33659 bool val2 ;
33660 int ecode2 = 0 ;
33661 PyObject * obj0 = 0 ;
33662 PyObject * obj1 = 0 ;
33663 char * kwnames[] = {
33664 (char *) "self",(char *) "editCancelled", NULL
33665 };
33666
33667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33669 if (!SWIG_IsOK(res1)) {
33670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33671 }
33672 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33673 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33674 if (!SWIG_IsOK(ecode2)) {
33675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33676 }
33677 arg2 = static_cast< bool >(val2);
33678 {
33679 PyThreadState* __tstate = wxPyBeginAllowThreads();
33680 (arg1)->SetEditCanceled(arg2);
33681 wxPyEndAllowThreads(__tstate);
33682 if (PyErr_Occurred()) SWIG_fail;
33683 }
33684 resultobj = SWIG_Py_Void();
33685 return resultobj;
33686 fail:
33687 return NULL;
33688 }
33689
33690
33691 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33692 PyObject *resultobj = 0;
33693 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33694 wxString *arg2 = 0 ;
33695 void *argp1 = 0 ;
33696 int res1 = 0 ;
33697 bool temp2 = false ;
33698 PyObject * obj0 = 0 ;
33699 PyObject * obj1 = 0 ;
33700 char * kwnames[] = {
33701 (char *) "self",(char *) "toolTip", NULL
33702 };
33703
33704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33706 if (!SWIG_IsOK(res1)) {
33707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33708 }
33709 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33710 {
33711 arg2 = wxString_in_helper(obj1);
33712 if (arg2 == NULL) SWIG_fail;
33713 temp2 = true;
33714 }
33715 {
33716 PyThreadState* __tstate = wxPyBeginAllowThreads();
33717 (arg1)->SetToolTip((wxString const &)*arg2);
33718 wxPyEndAllowThreads(__tstate);
33719 if (PyErr_Occurred()) SWIG_fail;
33720 }
33721 resultobj = SWIG_Py_Void();
33722 {
33723 if (temp2)
33724 delete arg2;
33725 }
33726 return resultobj;
33727 fail:
33728 {
33729 if (temp2)
33730 delete arg2;
33731 }
33732 return NULL;
33733 }
33734
33735
33736 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33737 PyObject *resultobj = 0;
33738 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33739 wxString result;
33740 void *argp1 = 0 ;
33741 int res1 = 0 ;
33742 PyObject *swig_obj[1] ;
33743
33744 if (!args) SWIG_fail;
33745 swig_obj[0] = args;
33746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33747 if (!SWIG_IsOK(res1)) {
33748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33749 }
33750 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33751 {
33752 PyThreadState* __tstate = wxPyBeginAllowThreads();
33753 result = (arg1)->GetToolTip();
33754 wxPyEndAllowThreads(__tstate);
33755 if (PyErr_Occurred()) SWIG_fail;
33756 }
33757 {
33758 #if wxUSE_UNICODE
33759 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33760 #else
33761 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33762 #endif
33763 }
33764 return resultobj;
33765 fail:
33766 return NULL;
33767 }
33768
33769
33770 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33771 PyObject *obj;
33772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33773 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33774 return SWIG_Py_Void();
33775 }
33776
33777 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33778 return SWIG_Python_InitShadowInstance(args);
33779 }
33780
33781 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33782 PyObject *resultobj = 0;
33783 wxWindow *arg1 = (wxWindow *) 0 ;
33784 int arg2 = (int) -1 ;
33785 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33786 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33787 wxSize const &arg4_defvalue = wxDefaultSize ;
33788 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33789 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33790 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33791 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33792 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33793 wxString *arg7 = (wxString *) &arg7_defvalue ;
33794 wxPyTreeCtrl *result = 0 ;
33795 void *argp1 = 0 ;
33796 int res1 = 0 ;
33797 int val2 ;
33798 int ecode2 = 0 ;
33799 wxPoint temp3 ;
33800 wxSize temp4 ;
33801 long val5 ;
33802 int ecode5 = 0 ;
33803 void *argp6 = 0 ;
33804 int res6 = 0 ;
33805 bool temp7 = false ;
33806 PyObject * obj0 = 0 ;
33807 PyObject * obj1 = 0 ;
33808 PyObject * obj2 = 0 ;
33809 PyObject * obj3 = 0 ;
33810 PyObject * obj4 = 0 ;
33811 PyObject * obj5 = 0 ;
33812 PyObject * obj6 = 0 ;
33813 char * kwnames[] = {
33814 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33815 };
33816
33817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33819 if (!SWIG_IsOK(res1)) {
33820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33821 }
33822 arg1 = reinterpret_cast< wxWindow * >(argp1);
33823 if (obj1) {
33824 ecode2 = SWIG_AsVal_int(obj1, &val2);
33825 if (!SWIG_IsOK(ecode2)) {
33826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33827 }
33828 arg2 = static_cast< int >(val2);
33829 }
33830 if (obj2) {
33831 {
33832 arg3 = &temp3;
33833 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33834 }
33835 }
33836 if (obj3) {
33837 {
33838 arg4 = &temp4;
33839 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33840 }
33841 }
33842 if (obj4) {
33843 ecode5 = SWIG_AsVal_long(obj4, &val5);
33844 if (!SWIG_IsOK(ecode5)) {
33845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33846 }
33847 arg5 = static_cast< long >(val5);
33848 }
33849 if (obj5) {
33850 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33851 if (!SWIG_IsOK(res6)) {
33852 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33853 }
33854 if (!argp6) {
33855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33856 }
33857 arg6 = reinterpret_cast< wxValidator * >(argp6);
33858 }
33859 if (obj6) {
33860 {
33861 arg7 = wxString_in_helper(obj6);
33862 if (arg7 == NULL) SWIG_fail;
33863 temp7 = true;
33864 }
33865 }
33866 {
33867 if (!wxPyCheckForApp()) SWIG_fail;
33868 PyThreadState* __tstate = wxPyBeginAllowThreads();
33869 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33870 wxPyEndAllowThreads(__tstate);
33871 if (PyErr_Occurred()) SWIG_fail;
33872 }
33873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33874 {
33875 if (temp7)
33876 delete arg7;
33877 }
33878 return resultobj;
33879 fail:
33880 {
33881 if (temp7)
33882 delete arg7;
33883 }
33884 return NULL;
33885 }
33886
33887
33888 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33889 PyObject *resultobj = 0;
33890 wxPyTreeCtrl *result = 0 ;
33891
33892 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33893 {
33894 if (!wxPyCheckForApp()) SWIG_fail;
33895 PyThreadState* __tstate = wxPyBeginAllowThreads();
33896 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33897 wxPyEndAllowThreads(__tstate);
33898 if (PyErr_Occurred()) SWIG_fail;
33899 }
33900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33901 return resultobj;
33902 fail:
33903 return NULL;
33904 }
33905
33906
33907 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33908 PyObject *resultobj = 0;
33909 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33910 wxWindow *arg2 = (wxWindow *) 0 ;
33911 int arg3 = (int) -1 ;
33912 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33913 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33914 wxSize const &arg5_defvalue = wxDefaultSize ;
33915 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33916 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33917 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33918 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33919 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33920 wxString *arg8 = (wxString *) &arg8_defvalue ;
33921 bool result;
33922 void *argp1 = 0 ;
33923 int res1 = 0 ;
33924 void *argp2 = 0 ;
33925 int res2 = 0 ;
33926 int val3 ;
33927 int ecode3 = 0 ;
33928 wxPoint temp4 ;
33929 wxSize temp5 ;
33930 long val6 ;
33931 int ecode6 = 0 ;
33932 void *argp7 = 0 ;
33933 int res7 = 0 ;
33934 bool temp8 = false ;
33935 PyObject * obj0 = 0 ;
33936 PyObject * obj1 = 0 ;
33937 PyObject * obj2 = 0 ;
33938 PyObject * obj3 = 0 ;
33939 PyObject * obj4 = 0 ;
33940 PyObject * obj5 = 0 ;
33941 PyObject * obj6 = 0 ;
33942 PyObject * obj7 = 0 ;
33943 char * kwnames[] = {
33944 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33945 };
33946
33947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33949 if (!SWIG_IsOK(res1)) {
33950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33951 }
33952 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33954 if (!SWIG_IsOK(res2)) {
33955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33956 }
33957 arg2 = reinterpret_cast< wxWindow * >(argp2);
33958 if (obj2) {
33959 ecode3 = SWIG_AsVal_int(obj2, &val3);
33960 if (!SWIG_IsOK(ecode3)) {
33961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33962 }
33963 arg3 = static_cast< int >(val3);
33964 }
33965 if (obj3) {
33966 {
33967 arg4 = &temp4;
33968 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33969 }
33970 }
33971 if (obj4) {
33972 {
33973 arg5 = &temp5;
33974 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33975 }
33976 }
33977 if (obj5) {
33978 ecode6 = SWIG_AsVal_long(obj5, &val6);
33979 if (!SWIG_IsOK(ecode6)) {
33980 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33981 }
33982 arg6 = static_cast< long >(val6);
33983 }
33984 if (obj6) {
33985 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33986 if (!SWIG_IsOK(res7)) {
33987 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33988 }
33989 if (!argp7) {
33990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33991 }
33992 arg7 = reinterpret_cast< wxValidator * >(argp7);
33993 }
33994 if (obj7) {
33995 {
33996 arg8 = wxString_in_helper(obj7);
33997 if (arg8 == NULL) SWIG_fail;
33998 temp8 = true;
33999 }
34000 }
34001 {
34002 PyThreadState* __tstate = wxPyBeginAllowThreads();
34003 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34004 wxPyEndAllowThreads(__tstate);
34005 if (PyErr_Occurred()) SWIG_fail;
34006 }
34007 {
34008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34009 }
34010 {
34011 if (temp8)
34012 delete arg8;
34013 }
34014 return resultobj;
34015 fail:
34016 {
34017 if (temp8)
34018 delete arg8;
34019 }
34020 return NULL;
34021 }
34022
34023
34024 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34025 PyObject *resultobj = 0;
34026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34027 PyObject *arg2 = (PyObject *) 0 ;
34028 PyObject *arg3 = (PyObject *) 0 ;
34029 void *argp1 = 0 ;
34030 int res1 = 0 ;
34031 PyObject * obj0 = 0 ;
34032 PyObject * obj1 = 0 ;
34033 PyObject * obj2 = 0 ;
34034 char * kwnames[] = {
34035 (char *) "self",(char *) "self",(char *) "_class", NULL
34036 };
34037
34038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34040 if (!SWIG_IsOK(res1)) {
34041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34042 }
34043 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34044 arg2 = obj1;
34045 arg3 = obj2;
34046 {
34047 PyThreadState* __tstate = wxPyBeginAllowThreads();
34048 (arg1)->_setCallbackInfo(arg2,arg3);
34049 wxPyEndAllowThreads(__tstate);
34050 if (PyErr_Occurred()) SWIG_fail;
34051 }
34052 resultobj = SWIG_Py_Void();
34053 return resultobj;
34054 fail:
34055 return NULL;
34056 }
34057
34058
34059 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34060 PyObject *resultobj = 0;
34061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34062 unsigned int result;
34063 void *argp1 = 0 ;
34064 int res1 = 0 ;
34065 PyObject *swig_obj[1] ;
34066
34067 if (!args) SWIG_fail;
34068 swig_obj[0] = args;
34069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34070 if (!SWIG_IsOK(res1)) {
34071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34072 }
34073 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34074 {
34075 PyThreadState* __tstate = wxPyBeginAllowThreads();
34076 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34077 wxPyEndAllowThreads(__tstate);
34078 if (PyErr_Occurred()) SWIG_fail;
34079 }
34080 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34081 return resultobj;
34082 fail:
34083 return NULL;
34084 }
34085
34086
34087 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34088 PyObject *resultobj = 0;
34089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34090 unsigned int result;
34091 void *argp1 = 0 ;
34092 int res1 = 0 ;
34093 PyObject *swig_obj[1] ;
34094
34095 if (!args) SWIG_fail;
34096 swig_obj[0] = args;
34097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34098 if (!SWIG_IsOK(res1)) {
34099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34100 }
34101 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34102 {
34103 PyThreadState* __tstate = wxPyBeginAllowThreads();
34104 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34105 wxPyEndAllowThreads(__tstate);
34106 if (PyErr_Occurred()) SWIG_fail;
34107 }
34108 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34109 return resultobj;
34110 fail:
34111 return NULL;
34112 }
34113
34114
34115 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34116 PyObject *resultobj = 0;
34117 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34118 unsigned int arg2 ;
34119 void *argp1 = 0 ;
34120 int res1 = 0 ;
34121 unsigned int val2 ;
34122 int ecode2 = 0 ;
34123 PyObject * obj0 = 0 ;
34124 PyObject * obj1 = 0 ;
34125 char * kwnames[] = {
34126 (char *) "self",(char *) "indent", NULL
34127 };
34128
34129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34131 if (!SWIG_IsOK(res1)) {
34132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34133 }
34134 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34135 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34136 if (!SWIG_IsOK(ecode2)) {
34137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34138 }
34139 arg2 = static_cast< unsigned int >(val2);
34140 {
34141 PyThreadState* __tstate = wxPyBeginAllowThreads();
34142 (arg1)->SetIndent(arg2);
34143 wxPyEndAllowThreads(__tstate);
34144 if (PyErr_Occurred()) SWIG_fail;
34145 }
34146 resultobj = SWIG_Py_Void();
34147 return resultobj;
34148 fail:
34149 return NULL;
34150 }
34151
34152
34153 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34154 PyObject *resultobj = 0;
34155 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34156 unsigned int result;
34157 void *argp1 = 0 ;
34158 int res1 = 0 ;
34159 PyObject *swig_obj[1] ;
34160
34161 if (!args) SWIG_fail;
34162 swig_obj[0] = args;
34163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34164 if (!SWIG_IsOK(res1)) {
34165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34166 }
34167 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34168 {
34169 PyThreadState* __tstate = wxPyBeginAllowThreads();
34170 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34171 wxPyEndAllowThreads(__tstate);
34172 if (PyErr_Occurred()) SWIG_fail;
34173 }
34174 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34175 return resultobj;
34176 fail:
34177 return NULL;
34178 }
34179
34180
34181 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34182 PyObject *resultobj = 0;
34183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34184 unsigned int arg2 ;
34185 void *argp1 = 0 ;
34186 int res1 = 0 ;
34187 unsigned int val2 ;
34188 int ecode2 = 0 ;
34189 PyObject * obj0 = 0 ;
34190 PyObject * obj1 = 0 ;
34191 char * kwnames[] = {
34192 (char *) "self",(char *) "spacing", NULL
34193 };
34194
34195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34197 if (!SWIG_IsOK(res1)) {
34198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34199 }
34200 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34201 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34202 if (!SWIG_IsOK(ecode2)) {
34203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34204 }
34205 arg2 = static_cast< unsigned int >(val2);
34206 {
34207 PyThreadState* __tstate = wxPyBeginAllowThreads();
34208 (arg1)->SetSpacing(arg2);
34209 wxPyEndAllowThreads(__tstate);
34210 if (PyErr_Occurred()) SWIG_fail;
34211 }
34212 resultobj = SWIG_Py_Void();
34213 return resultobj;
34214 fail:
34215 return NULL;
34216 }
34217
34218
34219 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34220 PyObject *resultobj = 0;
34221 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34222 wxImageList *result = 0 ;
34223 void *argp1 = 0 ;
34224 int res1 = 0 ;
34225 PyObject *swig_obj[1] ;
34226
34227 if (!args) SWIG_fail;
34228 swig_obj[0] = args;
34229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34230 if (!SWIG_IsOK(res1)) {
34231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34232 }
34233 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34234 {
34235 PyThreadState* __tstate = wxPyBeginAllowThreads();
34236 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34237 wxPyEndAllowThreads(__tstate);
34238 if (PyErr_Occurred()) SWIG_fail;
34239 }
34240 {
34241 resultobj = wxPyMake_wxObject(result, (bool)0);
34242 }
34243 return resultobj;
34244 fail:
34245 return NULL;
34246 }
34247
34248
34249 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34250 PyObject *resultobj = 0;
34251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34252 wxImageList *result = 0 ;
34253 void *argp1 = 0 ;
34254 int res1 = 0 ;
34255 PyObject *swig_obj[1] ;
34256
34257 if (!args) SWIG_fail;
34258 swig_obj[0] = args;
34259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34260 if (!SWIG_IsOK(res1)) {
34261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34262 }
34263 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34264 {
34265 PyThreadState* __tstate = wxPyBeginAllowThreads();
34266 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34267 wxPyEndAllowThreads(__tstate);
34268 if (PyErr_Occurred()) SWIG_fail;
34269 }
34270 {
34271 resultobj = wxPyMake_wxObject(result, (bool)0);
34272 }
34273 return resultobj;
34274 fail:
34275 return NULL;
34276 }
34277
34278
34279 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34280 PyObject *resultobj = 0;
34281 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34282 wxImageList *arg2 = (wxImageList *) 0 ;
34283 void *argp1 = 0 ;
34284 int res1 = 0 ;
34285 void *argp2 = 0 ;
34286 int res2 = 0 ;
34287 PyObject * obj0 = 0 ;
34288 PyObject * obj1 = 0 ;
34289 char * kwnames[] = {
34290 (char *) "self",(char *) "imageList", NULL
34291 };
34292
34293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34295 if (!SWIG_IsOK(res1)) {
34296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34297 }
34298 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34299 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34300 if (!SWIG_IsOK(res2)) {
34301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34302 }
34303 arg2 = reinterpret_cast< wxImageList * >(argp2);
34304 {
34305 PyThreadState* __tstate = wxPyBeginAllowThreads();
34306 (arg1)->SetImageList(arg2);
34307 wxPyEndAllowThreads(__tstate);
34308 if (PyErr_Occurred()) SWIG_fail;
34309 }
34310 resultobj = SWIG_Py_Void();
34311 return resultobj;
34312 fail:
34313 return NULL;
34314 }
34315
34316
34317 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34318 PyObject *resultobj = 0;
34319 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34320 wxImageList *arg2 = (wxImageList *) 0 ;
34321 void *argp1 = 0 ;
34322 int res1 = 0 ;
34323 void *argp2 = 0 ;
34324 int res2 = 0 ;
34325 PyObject * obj0 = 0 ;
34326 PyObject * obj1 = 0 ;
34327 char * kwnames[] = {
34328 (char *) "self",(char *) "imageList", NULL
34329 };
34330
34331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34333 if (!SWIG_IsOK(res1)) {
34334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34335 }
34336 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34337 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34338 if (!SWIG_IsOK(res2)) {
34339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34340 }
34341 arg2 = reinterpret_cast< wxImageList * >(argp2);
34342 {
34343 PyThreadState* __tstate = wxPyBeginAllowThreads();
34344 (arg1)->SetStateImageList(arg2);
34345 wxPyEndAllowThreads(__tstate);
34346 if (PyErr_Occurred()) SWIG_fail;
34347 }
34348 resultobj = SWIG_Py_Void();
34349 return resultobj;
34350 fail:
34351 return NULL;
34352 }
34353
34354
34355 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34356 PyObject *resultobj = 0;
34357 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34358 wxImageList *arg2 = (wxImageList *) 0 ;
34359 void *argp1 = 0 ;
34360 int res1 = 0 ;
34361 int res2 = 0 ;
34362 PyObject * obj0 = 0 ;
34363 PyObject * obj1 = 0 ;
34364 char * kwnames[] = {
34365 (char *) "self",(char *) "imageList", NULL
34366 };
34367
34368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34370 if (!SWIG_IsOK(res1)) {
34371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34372 }
34373 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34374 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34375 if (!SWIG_IsOK(res2)) {
34376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34377 }
34378 {
34379 PyThreadState* __tstate = wxPyBeginAllowThreads();
34380 (arg1)->AssignImageList(arg2);
34381 wxPyEndAllowThreads(__tstate);
34382 if (PyErr_Occurred()) SWIG_fail;
34383 }
34384 resultobj = SWIG_Py_Void();
34385 return resultobj;
34386 fail:
34387 return NULL;
34388 }
34389
34390
34391 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34392 PyObject *resultobj = 0;
34393 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34394 wxImageList *arg2 = (wxImageList *) 0 ;
34395 void *argp1 = 0 ;
34396 int res1 = 0 ;
34397 int res2 = 0 ;
34398 PyObject * obj0 = 0 ;
34399 PyObject * obj1 = 0 ;
34400 char * kwnames[] = {
34401 (char *) "self",(char *) "imageList", NULL
34402 };
34403
34404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34406 if (!SWIG_IsOK(res1)) {
34407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34408 }
34409 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34410 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34411 if (!SWIG_IsOK(res2)) {
34412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34413 }
34414 {
34415 PyThreadState* __tstate = wxPyBeginAllowThreads();
34416 (arg1)->AssignStateImageList(arg2);
34417 wxPyEndAllowThreads(__tstate);
34418 if (PyErr_Occurred()) SWIG_fail;
34419 }
34420 resultobj = SWIG_Py_Void();
34421 return resultobj;
34422 fail:
34423 return NULL;
34424 }
34425
34426
34427 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34428 PyObject *resultobj = 0;
34429 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34430 wxTreeItemId *arg2 = 0 ;
34431 wxString result;
34432 void *argp1 = 0 ;
34433 int res1 = 0 ;
34434 void *argp2 = 0 ;
34435 int res2 = 0 ;
34436 PyObject * obj0 = 0 ;
34437 PyObject * obj1 = 0 ;
34438 char * kwnames[] = {
34439 (char *) "self",(char *) "item", NULL
34440 };
34441
34442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34444 if (!SWIG_IsOK(res1)) {
34445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34446 }
34447 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34449 if (!SWIG_IsOK(res2)) {
34450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34451 }
34452 if (!argp2) {
34453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34454 }
34455 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34456 {
34457 PyThreadState* __tstate = wxPyBeginAllowThreads();
34458 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34459 wxPyEndAllowThreads(__tstate);
34460 if (PyErr_Occurred()) SWIG_fail;
34461 }
34462 {
34463 #if wxUSE_UNICODE
34464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34465 #else
34466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34467 #endif
34468 }
34469 return resultobj;
34470 fail:
34471 return NULL;
34472 }
34473
34474
34475 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34476 PyObject *resultobj = 0;
34477 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34478 wxTreeItemId *arg2 = 0 ;
34479 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34480 int result;
34481 void *argp1 = 0 ;
34482 int res1 = 0 ;
34483 void *argp2 = 0 ;
34484 int res2 = 0 ;
34485 int val3 ;
34486 int ecode3 = 0 ;
34487 PyObject * obj0 = 0 ;
34488 PyObject * obj1 = 0 ;
34489 PyObject * obj2 = 0 ;
34490 char * kwnames[] = {
34491 (char *) "self",(char *) "item",(char *) "which", NULL
34492 };
34493
34494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34496 if (!SWIG_IsOK(res1)) {
34497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34498 }
34499 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34501 if (!SWIG_IsOK(res2)) {
34502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34503 }
34504 if (!argp2) {
34505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34506 }
34507 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34508 if (obj2) {
34509 ecode3 = SWIG_AsVal_int(obj2, &val3);
34510 if (!SWIG_IsOK(ecode3)) {
34511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34512 }
34513 arg3 = static_cast< wxTreeItemIcon >(val3);
34514 }
34515 {
34516 PyThreadState* __tstate = wxPyBeginAllowThreads();
34517 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34518 wxPyEndAllowThreads(__tstate);
34519 if (PyErr_Occurred()) SWIG_fail;
34520 }
34521 resultobj = SWIG_From_int(static_cast< int >(result));
34522 return resultobj;
34523 fail:
34524 return NULL;
34525 }
34526
34527
34528 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34529 PyObject *resultobj = 0;
34530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34531 wxTreeItemId *arg2 = 0 ;
34532 wxPyTreeItemData *result = 0 ;
34533 void *argp1 = 0 ;
34534 int res1 = 0 ;
34535 void *argp2 = 0 ;
34536 int res2 = 0 ;
34537 PyObject * obj0 = 0 ;
34538 PyObject * obj1 = 0 ;
34539 char * kwnames[] = {
34540 (char *) "self",(char *) "item", NULL
34541 };
34542
34543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34545 if (!SWIG_IsOK(res1)) {
34546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34547 }
34548 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34550 if (!SWIG_IsOK(res2)) {
34551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34552 }
34553 if (!argp2) {
34554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34555 }
34556 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34557 {
34558 PyThreadState* __tstate = wxPyBeginAllowThreads();
34559 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34560 wxPyEndAllowThreads(__tstate);
34561 if (PyErr_Occurred()) SWIG_fail;
34562 }
34563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34564 return resultobj;
34565 fail:
34566 return NULL;
34567 }
34568
34569
34570 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34571 PyObject *resultobj = 0;
34572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34573 wxTreeItemId *arg2 = 0 ;
34574 PyObject *result = 0 ;
34575 void *argp1 = 0 ;
34576 int res1 = 0 ;
34577 void *argp2 = 0 ;
34578 int res2 = 0 ;
34579 PyObject * obj0 = 0 ;
34580 PyObject * obj1 = 0 ;
34581 char * kwnames[] = {
34582 (char *) "self",(char *) "item", NULL
34583 };
34584
34585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34587 if (!SWIG_IsOK(res1)) {
34588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34589 }
34590 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34591 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34592 if (!SWIG_IsOK(res2)) {
34593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34594 }
34595 if (!argp2) {
34596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34597 }
34598 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34599 {
34600 PyThreadState* __tstate = wxPyBeginAllowThreads();
34601 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34602 wxPyEndAllowThreads(__tstate);
34603 if (PyErr_Occurred()) SWIG_fail;
34604 }
34605 resultobj = result;
34606 return resultobj;
34607 fail:
34608 return NULL;
34609 }
34610
34611
34612 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34613 PyObject *resultobj = 0;
34614 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34615 wxTreeItemId *arg2 = 0 ;
34616 wxColour result;
34617 void *argp1 = 0 ;
34618 int res1 = 0 ;
34619 void *argp2 = 0 ;
34620 int res2 = 0 ;
34621 PyObject * obj0 = 0 ;
34622 PyObject * obj1 = 0 ;
34623 char * kwnames[] = {
34624 (char *) "self",(char *) "item", NULL
34625 };
34626
34627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34629 if (!SWIG_IsOK(res1)) {
34630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34631 }
34632 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34634 if (!SWIG_IsOK(res2)) {
34635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34636 }
34637 if (!argp2) {
34638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34639 }
34640 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34641 {
34642 PyThreadState* __tstate = wxPyBeginAllowThreads();
34643 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34644 wxPyEndAllowThreads(__tstate);
34645 if (PyErr_Occurred()) SWIG_fail;
34646 }
34647 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34648 return resultobj;
34649 fail:
34650 return NULL;
34651 }
34652
34653
34654 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34655 PyObject *resultobj = 0;
34656 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34657 wxTreeItemId *arg2 = 0 ;
34658 wxColour result;
34659 void *argp1 = 0 ;
34660 int res1 = 0 ;
34661 void *argp2 = 0 ;
34662 int res2 = 0 ;
34663 PyObject * obj0 = 0 ;
34664 PyObject * obj1 = 0 ;
34665 char * kwnames[] = {
34666 (char *) "self",(char *) "item", NULL
34667 };
34668
34669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34671 if (!SWIG_IsOK(res1)) {
34672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34673 }
34674 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34676 if (!SWIG_IsOK(res2)) {
34677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34678 }
34679 if (!argp2) {
34680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34681 }
34682 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34683 {
34684 PyThreadState* __tstate = wxPyBeginAllowThreads();
34685 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34686 wxPyEndAllowThreads(__tstate);
34687 if (PyErr_Occurred()) SWIG_fail;
34688 }
34689 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34690 return resultobj;
34691 fail:
34692 return NULL;
34693 }
34694
34695
34696 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34697 PyObject *resultobj = 0;
34698 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34699 wxTreeItemId *arg2 = 0 ;
34700 wxFont result;
34701 void *argp1 = 0 ;
34702 int res1 = 0 ;
34703 void *argp2 = 0 ;
34704 int res2 = 0 ;
34705 PyObject * obj0 = 0 ;
34706 PyObject * obj1 = 0 ;
34707 char * kwnames[] = {
34708 (char *) "self",(char *) "item", NULL
34709 };
34710
34711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34713 if (!SWIG_IsOK(res1)) {
34714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34715 }
34716 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34717 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34718 if (!SWIG_IsOK(res2)) {
34719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34720 }
34721 if (!argp2) {
34722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34723 }
34724 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34725 {
34726 PyThreadState* __tstate = wxPyBeginAllowThreads();
34727 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34728 wxPyEndAllowThreads(__tstate);
34729 if (PyErr_Occurred()) SWIG_fail;
34730 }
34731 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34732 return resultobj;
34733 fail:
34734 return NULL;
34735 }
34736
34737
34738 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34739 PyObject *resultobj = 0;
34740 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34741 wxTreeItemId *arg2 = 0 ;
34742 wxString *arg3 = 0 ;
34743 void *argp1 = 0 ;
34744 int res1 = 0 ;
34745 void *argp2 = 0 ;
34746 int res2 = 0 ;
34747 bool temp3 = false ;
34748 PyObject * obj0 = 0 ;
34749 PyObject * obj1 = 0 ;
34750 PyObject * obj2 = 0 ;
34751 char * kwnames[] = {
34752 (char *) "self",(char *) "item",(char *) "text", NULL
34753 };
34754
34755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34757 if (!SWIG_IsOK(res1)) {
34758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34759 }
34760 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34762 if (!SWIG_IsOK(res2)) {
34763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34764 }
34765 if (!argp2) {
34766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34767 }
34768 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34769 {
34770 arg3 = wxString_in_helper(obj2);
34771 if (arg3 == NULL) SWIG_fail;
34772 temp3 = true;
34773 }
34774 {
34775 PyThreadState* __tstate = wxPyBeginAllowThreads();
34776 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34777 wxPyEndAllowThreads(__tstate);
34778 if (PyErr_Occurred()) SWIG_fail;
34779 }
34780 resultobj = SWIG_Py_Void();
34781 {
34782 if (temp3)
34783 delete arg3;
34784 }
34785 return resultobj;
34786 fail:
34787 {
34788 if (temp3)
34789 delete arg3;
34790 }
34791 return NULL;
34792 }
34793
34794
34795 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34796 PyObject *resultobj = 0;
34797 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34798 wxTreeItemId *arg2 = 0 ;
34799 int arg3 ;
34800 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34801 void *argp1 = 0 ;
34802 int res1 = 0 ;
34803 void *argp2 = 0 ;
34804 int res2 = 0 ;
34805 int val3 ;
34806 int ecode3 = 0 ;
34807 int val4 ;
34808 int ecode4 = 0 ;
34809 PyObject * obj0 = 0 ;
34810 PyObject * obj1 = 0 ;
34811 PyObject * obj2 = 0 ;
34812 PyObject * obj3 = 0 ;
34813 char * kwnames[] = {
34814 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34815 };
34816
34817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34819 if (!SWIG_IsOK(res1)) {
34820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34821 }
34822 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34824 if (!SWIG_IsOK(res2)) {
34825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34826 }
34827 if (!argp2) {
34828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34829 }
34830 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34831 ecode3 = SWIG_AsVal_int(obj2, &val3);
34832 if (!SWIG_IsOK(ecode3)) {
34833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34834 }
34835 arg3 = static_cast< int >(val3);
34836 if (obj3) {
34837 ecode4 = SWIG_AsVal_int(obj3, &val4);
34838 if (!SWIG_IsOK(ecode4)) {
34839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34840 }
34841 arg4 = static_cast< wxTreeItemIcon >(val4);
34842 }
34843 {
34844 PyThreadState* __tstate = wxPyBeginAllowThreads();
34845 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34846 wxPyEndAllowThreads(__tstate);
34847 if (PyErr_Occurred()) SWIG_fail;
34848 }
34849 resultobj = SWIG_Py_Void();
34850 return resultobj;
34851 fail:
34852 return NULL;
34853 }
34854
34855
34856 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34857 PyObject *resultobj = 0;
34858 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34859 wxTreeItemId *arg2 = 0 ;
34860 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34861 void *argp1 = 0 ;
34862 int res1 = 0 ;
34863 void *argp2 = 0 ;
34864 int res2 = 0 ;
34865 int res3 = 0 ;
34866 PyObject * obj0 = 0 ;
34867 PyObject * obj1 = 0 ;
34868 PyObject * obj2 = 0 ;
34869 char * kwnames[] = {
34870 (char *) "self",(char *) "item",(char *) "data", NULL
34871 };
34872
34873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34875 if (!SWIG_IsOK(res1)) {
34876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34877 }
34878 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34880 if (!SWIG_IsOK(res2)) {
34881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34882 }
34883 if (!argp2) {
34884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34885 }
34886 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34887 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34888 if (!SWIG_IsOK(res3)) {
34889 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34890 }
34891 {
34892 PyThreadState* __tstate = wxPyBeginAllowThreads();
34893 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34894 wxPyEndAllowThreads(__tstate);
34895 if (PyErr_Occurred()) SWIG_fail;
34896 }
34897 resultobj = SWIG_Py_Void();
34898 return resultobj;
34899 fail:
34900 return NULL;
34901 }
34902
34903
34904 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34905 PyObject *resultobj = 0;
34906 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34907 wxTreeItemId *arg2 = 0 ;
34908 PyObject *arg3 = (PyObject *) 0 ;
34909 void *argp1 = 0 ;
34910 int res1 = 0 ;
34911 void *argp2 = 0 ;
34912 int res2 = 0 ;
34913 PyObject * obj0 = 0 ;
34914 PyObject * obj1 = 0 ;
34915 PyObject * obj2 = 0 ;
34916 char * kwnames[] = {
34917 (char *) "self",(char *) "item",(char *) "obj", NULL
34918 };
34919
34920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34922 if (!SWIG_IsOK(res1)) {
34923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34924 }
34925 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34926 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34927 if (!SWIG_IsOK(res2)) {
34928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34929 }
34930 if (!argp2) {
34931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34932 }
34933 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34934 arg3 = obj2;
34935 {
34936 PyThreadState* __tstate = wxPyBeginAllowThreads();
34937 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34938 wxPyEndAllowThreads(__tstate);
34939 if (PyErr_Occurred()) SWIG_fail;
34940 }
34941 resultobj = SWIG_Py_Void();
34942 return resultobj;
34943 fail:
34944 return NULL;
34945 }
34946
34947
34948 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34949 PyObject *resultobj = 0;
34950 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34951 wxTreeItemId *arg2 = 0 ;
34952 bool arg3 = (bool) true ;
34953 void *argp1 = 0 ;
34954 int res1 = 0 ;
34955 void *argp2 = 0 ;
34956 int res2 = 0 ;
34957 bool val3 ;
34958 int ecode3 = 0 ;
34959 PyObject * obj0 = 0 ;
34960 PyObject * obj1 = 0 ;
34961 PyObject * obj2 = 0 ;
34962 char * kwnames[] = {
34963 (char *) "self",(char *) "item",(char *) "has", NULL
34964 };
34965
34966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34968 if (!SWIG_IsOK(res1)) {
34969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34970 }
34971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34973 if (!SWIG_IsOK(res2)) {
34974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34975 }
34976 if (!argp2) {
34977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34978 }
34979 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34980 if (obj2) {
34981 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34982 if (!SWIG_IsOK(ecode3)) {
34983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34984 }
34985 arg3 = static_cast< bool >(val3);
34986 }
34987 {
34988 PyThreadState* __tstate = wxPyBeginAllowThreads();
34989 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34990 wxPyEndAllowThreads(__tstate);
34991 if (PyErr_Occurred()) SWIG_fail;
34992 }
34993 resultobj = SWIG_Py_Void();
34994 return resultobj;
34995 fail:
34996 return NULL;
34997 }
34998
34999
35000 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35001 PyObject *resultobj = 0;
35002 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35003 wxTreeItemId *arg2 = 0 ;
35004 bool arg3 = (bool) true ;
35005 void *argp1 = 0 ;
35006 int res1 = 0 ;
35007 void *argp2 = 0 ;
35008 int res2 = 0 ;
35009 bool val3 ;
35010 int ecode3 = 0 ;
35011 PyObject * obj0 = 0 ;
35012 PyObject * obj1 = 0 ;
35013 PyObject * obj2 = 0 ;
35014 char * kwnames[] = {
35015 (char *) "self",(char *) "item",(char *) "bold", NULL
35016 };
35017
35018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35020 if (!SWIG_IsOK(res1)) {
35021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35022 }
35023 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35025 if (!SWIG_IsOK(res2)) {
35026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35027 }
35028 if (!argp2) {
35029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35030 }
35031 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35032 if (obj2) {
35033 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35034 if (!SWIG_IsOK(ecode3)) {
35035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35036 }
35037 arg3 = static_cast< bool >(val3);
35038 }
35039 {
35040 PyThreadState* __tstate = wxPyBeginAllowThreads();
35041 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35042 wxPyEndAllowThreads(__tstate);
35043 if (PyErr_Occurred()) SWIG_fail;
35044 }
35045 resultobj = SWIG_Py_Void();
35046 return resultobj;
35047 fail:
35048 return NULL;
35049 }
35050
35051
35052 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35053 PyObject *resultobj = 0;
35054 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35055 wxTreeItemId *arg2 = 0 ;
35056 bool arg3 = (bool) true ;
35057 void *argp1 = 0 ;
35058 int res1 = 0 ;
35059 void *argp2 = 0 ;
35060 int res2 = 0 ;
35061 bool val3 ;
35062 int ecode3 = 0 ;
35063 PyObject * obj0 = 0 ;
35064 PyObject * obj1 = 0 ;
35065 PyObject * obj2 = 0 ;
35066 char * kwnames[] = {
35067 (char *) "self",(char *) "item",(char *) "highlight", NULL
35068 };
35069
35070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35072 if (!SWIG_IsOK(res1)) {
35073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35074 }
35075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35077 if (!SWIG_IsOK(res2)) {
35078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35079 }
35080 if (!argp2) {
35081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35082 }
35083 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35084 if (obj2) {
35085 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35086 if (!SWIG_IsOK(ecode3)) {
35087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35088 }
35089 arg3 = static_cast< bool >(val3);
35090 }
35091 {
35092 PyThreadState* __tstate = wxPyBeginAllowThreads();
35093 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35094 wxPyEndAllowThreads(__tstate);
35095 if (PyErr_Occurred()) SWIG_fail;
35096 }
35097 resultobj = SWIG_Py_Void();
35098 return resultobj;
35099 fail:
35100 return NULL;
35101 }
35102
35103
35104 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35105 PyObject *resultobj = 0;
35106 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35107 wxTreeItemId *arg2 = 0 ;
35108 wxColour *arg3 = 0 ;
35109 void *argp1 = 0 ;
35110 int res1 = 0 ;
35111 void *argp2 = 0 ;
35112 int res2 = 0 ;
35113 wxColour temp3 ;
35114 PyObject * obj0 = 0 ;
35115 PyObject * obj1 = 0 ;
35116 PyObject * obj2 = 0 ;
35117 char * kwnames[] = {
35118 (char *) "self",(char *) "item",(char *) "col", NULL
35119 };
35120
35121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35123 if (!SWIG_IsOK(res1)) {
35124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35125 }
35126 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35128 if (!SWIG_IsOK(res2)) {
35129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35130 }
35131 if (!argp2) {
35132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35133 }
35134 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35135 {
35136 arg3 = &temp3;
35137 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35138 }
35139 {
35140 PyThreadState* __tstate = wxPyBeginAllowThreads();
35141 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35142 wxPyEndAllowThreads(__tstate);
35143 if (PyErr_Occurred()) SWIG_fail;
35144 }
35145 resultobj = SWIG_Py_Void();
35146 return resultobj;
35147 fail:
35148 return NULL;
35149 }
35150
35151
35152 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35153 PyObject *resultobj = 0;
35154 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35155 wxTreeItemId *arg2 = 0 ;
35156 wxColour *arg3 = 0 ;
35157 void *argp1 = 0 ;
35158 int res1 = 0 ;
35159 void *argp2 = 0 ;
35160 int res2 = 0 ;
35161 wxColour temp3 ;
35162 PyObject * obj0 = 0 ;
35163 PyObject * obj1 = 0 ;
35164 PyObject * obj2 = 0 ;
35165 char * kwnames[] = {
35166 (char *) "self",(char *) "item",(char *) "col", NULL
35167 };
35168
35169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35171 if (!SWIG_IsOK(res1)) {
35172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35173 }
35174 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35176 if (!SWIG_IsOK(res2)) {
35177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35178 }
35179 if (!argp2) {
35180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35181 }
35182 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35183 {
35184 arg3 = &temp3;
35185 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35186 }
35187 {
35188 PyThreadState* __tstate = wxPyBeginAllowThreads();
35189 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35190 wxPyEndAllowThreads(__tstate);
35191 if (PyErr_Occurred()) SWIG_fail;
35192 }
35193 resultobj = SWIG_Py_Void();
35194 return resultobj;
35195 fail:
35196 return NULL;
35197 }
35198
35199
35200 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35201 PyObject *resultobj = 0;
35202 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35203 wxTreeItemId *arg2 = 0 ;
35204 wxFont *arg3 = 0 ;
35205 void *argp1 = 0 ;
35206 int res1 = 0 ;
35207 void *argp2 = 0 ;
35208 int res2 = 0 ;
35209 void *argp3 = 0 ;
35210 int res3 = 0 ;
35211 PyObject * obj0 = 0 ;
35212 PyObject * obj1 = 0 ;
35213 PyObject * obj2 = 0 ;
35214 char * kwnames[] = {
35215 (char *) "self",(char *) "item",(char *) "font", NULL
35216 };
35217
35218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35220 if (!SWIG_IsOK(res1)) {
35221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35222 }
35223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35225 if (!SWIG_IsOK(res2)) {
35226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35227 }
35228 if (!argp2) {
35229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35230 }
35231 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35232 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35233 if (!SWIG_IsOK(res3)) {
35234 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35235 }
35236 if (!argp3) {
35237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35238 }
35239 arg3 = reinterpret_cast< wxFont * >(argp3);
35240 {
35241 PyThreadState* __tstate = wxPyBeginAllowThreads();
35242 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35243 wxPyEndAllowThreads(__tstate);
35244 if (PyErr_Occurred()) SWIG_fail;
35245 }
35246 resultobj = SWIG_Py_Void();
35247 return resultobj;
35248 fail:
35249 return NULL;
35250 }
35251
35252
35253 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35254 PyObject *resultobj = 0;
35255 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35256 wxTreeItemId *arg2 = 0 ;
35257 bool result;
35258 void *argp1 = 0 ;
35259 int res1 = 0 ;
35260 void *argp2 = 0 ;
35261 int res2 = 0 ;
35262 PyObject * obj0 = 0 ;
35263 PyObject * obj1 = 0 ;
35264 char * kwnames[] = {
35265 (char *) "self",(char *) "item", NULL
35266 };
35267
35268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35270 if (!SWIG_IsOK(res1)) {
35271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35272 }
35273 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35275 if (!SWIG_IsOK(res2)) {
35276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35277 }
35278 if (!argp2) {
35279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35280 }
35281 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35282 {
35283 PyThreadState* __tstate = wxPyBeginAllowThreads();
35284 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35285 wxPyEndAllowThreads(__tstate);
35286 if (PyErr_Occurred()) SWIG_fail;
35287 }
35288 {
35289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35290 }
35291 return resultobj;
35292 fail:
35293 return NULL;
35294 }
35295
35296
35297 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj = 0;
35299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35300 wxTreeItemId *arg2 = 0 ;
35301 bool result;
35302 void *argp1 = 0 ;
35303 int res1 = 0 ;
35304 void *argp2 = 0 ;
35305 int res2 = 0 ;
35306 PyObject * obj0 = 0 ;
35307 PyObject * obj1 = 0 ;
35308 char * kwnames[] = {
35309 (char *) "self",(char *) "item", NULL
35310 };
35311
35312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35314 if (!SWIG_IsOK(res1)) {
35315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35316 }
35317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35319 if (!SWIG_IsOK(res2)) {
35320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35321 }
35322 if (!argp2) {
35323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35324 }
35325 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35326 {
35327 PyThreadState* __tstate = wxPyBeginAllowThreads();
35328 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35329 wxPyEndAllowThreads(__tstate);
35330 if (PyErr_Occurred()) SWIG_fail;
35331 }
35332 {
35333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35334 }
35335 return resultobj;
35336 fail:
35337 return NULL;
35338 }
35339
35340
35341 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35342 PyObject *resultobj = 0;
35343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35344 wxTreeItemId *arg2 = 0 ;
35345 bool result;
35346 void *argp1 = 0 ;
35347 int res1 = 0 ;
35348 void *argp2 = 0 ;
35349 int res2 = 0 ;
35350 PyObject * obj0 = 0 ;
35351 PyObject * obj1 = 0 ;
35352 char * kwnames[] = {
35353 (char *) "self",(char *) "item", NULL
35354 };
35355
35356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35358 if (!SWIG_IsOK(res1)) {
35359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35360 }
35361 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35362 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35363 if (!SWIG_IsOK(res2)) {
35364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35365 }
35366 if (!argp2) {
35367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35368 }
35369 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35370 {
35371 PyThreadState* __tstate = wxPyBeginAllowThreads();
35372 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35373 wxPyEndAllowThreads(__tstate);
35374 if (PyErr_Occurred()) SWIG_fail;
35375 }
35376 {
35377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35378 }
35379 return resultobj;
35380 fail:
35381 return NULL;
35382 }
35383
35384
35385 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35386 PyObject *resultobj = 0;
35387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35388 wxTreeItemId *arg2 = 0 ;
35389 bool result;
35390 void *argp1 = 0 ;
35391 int res1 = 0 ;
35392 void *argp2 = 0 ;
35393 int res2 = 0 ;
35394 PyObject * obj0 = 0 ;
35395 PyObject * obj1 = 0 ;
35396 char * kwnames[] = {
35397 (char *) "self",(char *) "item", NULL
35398 };
35399
35400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35402 if (!SWIG_IsOK(res1)) {
35403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35404 }
35405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35407 if (!SWIG_IsOK(res2)) {
35408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35409 }
35410 if (!argp2) {
35411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35412 }
35413 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35414 {
35415 PyThreadState* __tstate = wxPyBeginAllowThreads();
35416 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35417 wxPyEndAllowThreads(__tstate);
35418 if (PyErr_Occurred()) SWIG_fail;
35419 }
35420 {
35421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35422 }
35423 return resultobj;
35424 fail:
35425 return NULL;
35426 }
35427
35428
35429 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35430 PyObject *resultobj = 0;
35431 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35432 wxTreeItemId *arg2 = 0 ;
35433 bool result;
35434 void *argp1 = 0 ;
35435 int res1 = 0 ;
35436 void *argp2 = 0 ;
35437 int res2 = 0 ;
35438 PyObject * obj0 = 0 ;
35439 PyObject * obj1 = 0 ;
35440 char * kwnames[] = {
35441 (char *) "self",(char *) "item", NULL
35442 };
35443
35444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35446 if (!SWIG_IsOK(res1)) {
35447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35448 }
35449 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35451 if (!SWIG_IsOK(res2)) {
35452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35453 }
35454 if (!argp2) {
35455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35456 }
35457 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35458 {
35459 PyThreadState* __tstate = wxPyBeginAllowThreads();
35460 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35461 wxPyEndAllowThreads(__tstate);
35462 if (PyErr_Occurred()) SWIG_fail;
35463 }
35464 {
35465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35466 }
35467 return resultobj;
35468 fail:
35469 return NULL;
35470 }
35471
35472
35473 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35474 PyObject *resultobj = 0;
35475 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35476 wxTreeItemId *arg2 = 0 ;
35477 bool arg3 = (bool) true ;
35478 size_t result;
35479 void *argp1 = 0 ;
35480 int res1 = 0 ;
35481 void *argp2 = 0 ;
35482 int res2 = 0 ;
35483 bool val3 ;
35484 int ecode3 = 0 ;
35485 PyObject * obj0 = 0 ;
35486 PyObject * obj1 = 0 ;
35487 PyObject * obj2 = 0 ;
35488 char * kwnames[] = {
35489 (char *) "self",(char *) "item",(char *) "recursively", NULL
35490 };
35491
35492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35494 if (!SWIG_IsOK(res1)) {
35495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35496 }
35497 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35499 if (!SWIG_IsOK(res2)) {
35500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35501 }
35502 if (!argp2) {
35503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35504 }
35505 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35506 if (obj2) {
35507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35508 if (!SWIG_IsOK(ecode3)) {
35509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35510 }
35511 arg3 = static_cast< bool >(val3);
35512 }
35513 {
35514 PyThreadState* __tstate = wxPyBeginAllowThreads();
35515 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35516 wxPyEndAllowThreads(__tstate);
35517 if (PyErr_Occurred()) SWIG_fail;
35518 }
35519 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35520 return resultobj;
35521 fail:
35522 return NULL;
35523 }
35524
35525
35526 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35527 PyObject *resultobj = 0;
35528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35529 wxTreeItemId result;
35530 void *argp1 = 0 ;
35531 int res1 = 0 ;
35532 PyObject *swig_obj[1] ;
35533
35534 if (!args) SWIG_fail;
35535 swig_obj[0] = args;
35536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35539 }
35540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35548 return resultobj;
35549 fail:
35550 return NULL;
35551 }
35552
35553
35554 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35555 PyObject *resultobj = 0;
35556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35557 wxTreeItemId result;
35558 void *argp1 = 0 ;
35559 int res1 = 0 ;
35560 PyObject *swig_obj[1] ;
35561
35562 if (!args) SWIG_fail;
35563 swig_obj[0] = args;
35564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35565 if (!SWIG_IsOK(res1)) {
35566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35567 }
35568 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35569 {
35570 PyThreadState* __tstate = wxPyBeginAllowThreads();
35571 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35572 wxPyEndAllowThreads(__tstate);
35573 if (PyErr_Occurred()) SWIG_fail;
35574 }
35575 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35576 return resultobj;
35577 fail:
35578 return NULL;
35579 }
35580
35581
35582 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35583 PyObject *resultobj = 0;
35584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35585 PyObject *result = 0 ;
35586 void *argp1 = 0 ;
35587 int res1 = 0 ;
35588 PyObject *swig_obj[1] ;
35589
35590 if (!args) SWIG_fail;
35591 swig_obj[0] = args;
35592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35593 if (!SWIG_IsOK(res1)) {
35594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35595 }
35596 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35597 {
35598 PyThreadState* __tstate = wxPyBeginAllowThreads();
35599 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35600 wxPyEndAllowThreads(__tstate);
35601 if (PyErr_Occurred()) SWIG_fail;
35602 }
35603 resultobj = result;
35604 return resultobj;
35605 fail:
35606 return NULL;
35607 }
35608
35609
35610 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35611 PyObject *resultobj = 0;
35612 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35613 wxTreeItemId *arg2 = 0 ;
35614 wxTreeItemId result;
35615 void *argp1 = 0 ;
35616 int res1 = 0 ;
35617 void *argp2 = 0 ;
35618 int res2 = 0 ;
35619 PyObject * obj0 = 0 ;
35620 PyObject * obj1 = 0 ;
35621 char * kwnames[] = {
35622 (char *) "self",(char *) "item", NULL
35623 };
35624
35625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35627 if (!SWIG_IsOK(res1)) {
35628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35629 }
35630 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35632 if (!SWIG_IsOK(res2)) {
35633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35634 }
35635 if (!argp2) {
35636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35637 }
35638 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35639 {
35640 PyThreadState* __tstate = wxPyBeginAllowThreads();
35641 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35642 wxPyEndAllowThreads(__tstate);
35643 if (PyErr_Occurred()) SWIG_fail;
35644 }
35645 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35646 return resultobj;
35647 fail:
35648 return NULL;
35649 }
35650
35651
35652 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35653 PyObject *resultobj = 0;
35654 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35655 wxTreeItemId *arg2 = 0 ;
35656 PyObject *result = 0 ;
35657 void *argp1 = 0 ;
35658 int res1 = 0 ;
35659 void *argp2 = 0 ;
35660 int res2 = 0 ;
35661 PyObject * obj0 = 0 ;
35662 PyObject * obj1 = 0 ;
35663 char * kwnames[] = {
35664 (char *) "self",(char *) "item", NULL
35665 };
35666
35667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35669 if (!SWIG_IsOK(res1)) {
35670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35671 }
35672 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35674 if (!SWIG_IsOK(res2)) {
35675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35676 }
35677 if (!argp2) {
35678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35679 }
35680 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35681 {
35682 PyThreadState* __tstate = wxPyBeginAllowThreads();
35683 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35684 wxPyEndAllowThreads(__tstate);
35685 if (PyErr_Occurred()) SWIG_fail;
35686 }
35687 resultobj = result;
35688 return resultobj;
35689 fail:
35690 return NULL;
35691 }
35692
35693
35694 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35695 PyObject *resultobj = 0;
35696 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35697 wxTreeItemId *arg2 = 0 ;
35698 void *arg3 = (void *) 0 ;
35699 PyObject *result = 0 ;
35700 void *argp1 = 0 ;
35701 int res1 = 0 ;
35702 void *argp2 = 0 ;
35703 int res2 = 0 ;
35704 int res3 ;
35705 PyObject * obj0 = 0 ;
35706 PyObject * obj1 = 0 ;
35707 PyObject * obj2 = 0 ;
35708 char * kwnames[] = {
35709 (char *) "self",(char *) "item",(char *) "cookie", NULL
35710 };
35711
35712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35714 if (!SWIG_IsOK(res1)) {
35715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35716 }
35717 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35719 if (!SWIG_IsOK(res2)) {
35720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35721 }
35722 if (!argp2) {
35723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35724 }
35725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35726 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35727 if (!SWIG_IsOK(res3)) {
35728 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35729 }
35730 {
35731 PyThreadState* __tstate = wxPyBeginAllowThreads();
35732 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35733 wxPyEndAllowThreads(__tstate);
35734 if (PyErr_Occurred()) SWIG_fail;
35735 }
35736 resultobj = result;
35737 return resultobj;
35738 fail:
35739 return NULL;
35740 }
35741
35742
35743 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35744 PyObject *resultobj = 0;
35745 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35746 wxTreeItemId *arg2 = 0 ;
35747 wxTreeItemId result;
35748 void *argp1 = 0 ;
35749 int res1 = 0 ;
35750 void *argp2 = 0 ;
35751 int res2 = 0 ;
35752 PyObject * obj0 = 0 ;
35753 PyObject * obj1 = 0 ;
35754 char * kwnames[] = {
35755 (char *) "self",(char *) "item", NULL
35756 };
35757
35758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35760 if (!SWIG_IsOK(res1)) {
35761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35762 }
35763 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35765 if (!SWIG_IsOK(res2)) {
35766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35767 }
35768 if (!argp2) {
35769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35770 }
35771 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35772 {
35773 PyThreadState* __tstate = wxPyBeginAllowThreads();
35774 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35775 wxPyEndAllowThreads(__tstate);
35776 if (PyErr_Occurred()) SWIG_fail;
35777 }
35778 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35779 return resultobj;
35780 fail:
35781 return NULL;
35782 }
35783
35784
35785 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35786 PyObject *resultobj = 0;
35787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35788 wxTreeItemId *arg2 = 0 ;
35789 wxTreeItemId result;
35790 void *argp1 = 0 ;
35791 int res1 = 0 ;
35792 void *argp2 = 0 ;
35793 int res2 = 0 ;
35794 PyObject * obj0 = 0 ;
35795 PyObject * obj1 = 0 ;
35796 char * kwnames[] = {
35797 (char *) "self",(char *) "item", NULL
35798 };
35799
35800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35802 if (!SWIG_IsOK(res1)) {
35803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35804 }
35805 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35806 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35807 if (!SWIG_IsOK(res2)) {
35808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35809 }
35810 if (!argp2) {
35811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35812 }
35813 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35814 {
35815 PyThreadState* __tstate = wxPyBeginAllowThreads();
35816 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35817 wxPyEndAllowThreads(__tstate);
35818 if (PyErr_Occurred()) SWIG_fail;
35819 }
35820 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35821 return resultobj;
35822 fail:
35823 return NULL;
35824 }
35825
35826
35827 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35828 PyObject *resultobj = 0;
35829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35830 wxTreeItemId *arg2 = 0 ;
35831 wxTreeItemId result;
35832 void *argp1 = 0 ;
35833 int res1 = 0 ;
35834 void *argp2 = 0 ;
35835 int res2 = 0 ;
35836 PyObject * obj0 = 0 ;
35837 PyObject * obj1 = 0 ;
35838 char * kwnames[] = {
35839 (char *) "self",(char *) "item", NULL
35840 };
35841
35842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35844 if (!SWIG_IsOK(res1)) {
35845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35846 }
35847 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35849 if (!SWIG_IsOK(res2)) {
35850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35851 }
35852 if (!argp2) {
35853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35854 }
35855 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35856 {
35857 PyThreadState* __tstate = wxPyBeginAllowThreads();
35858 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35859 wxPyEndAllowThreads(__tstate);
35860 if (PyErr_Occurred()) SWIG_fail;
35861 }
35862 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35863 return resultobj;
35864 fail:
35865 return NULL;
35866 }
35867
35868
35869 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35870 PyObject *resultobj = 0;
35871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35872 wxTreeItemId result;
35873 void *argp1 = 0 ;
35874 int res1 = 0 ;
35875 PyObject *swig_obj[1] ;
35876
35877 if (!args) SWIG_fail;
35878 swig_obj[0] = args;
35879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35880 if (!SWIG_IsOK(res1)) {
35881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35882 }
35883 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35884 {
35885 PyThreadState* __tstate = wxPyBeginAllowThreads();
35886 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35887 wxPyEndAllowThreads(__tstate);
35888 if (PyErr_Occurred()) SWIG_fail;
35889 }
35890 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35891 return resultobj;
35892 fail:
35893 return NULL;
35894 }
35895
35896
35897 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35898 PyObject *resultobj = 0;
35899 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35900 wxTreeItemId *arg2 = 0 ;
35901 wxTreeItemId result;
35902 void *argp1 = 0 ;
35903 int res1 = 0 ;
35904 void *argp2 = 0 ;
35905 int res2 = 0 ;
35906 PyObject * obj0 = 0 ;
35907 PyObject * obj1 = 0 ;
35908 char * kwnames[] = {
35909 (char *) "self",(char *) "item", NULL
35910 };
35911
35912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35914 if (!SWIG_IsOK(res1)) {
35915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35916 }
35917 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35919 if (!SWIG_IsOK(res2)) {
35920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35921 }
35922 if (!argp2) {
35923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35924 }
35925 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35926 {
35927 PyThreadState* __tstate = wxPyBeginAllowThreads();
35928 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35929 wxPyEndAllowThreads(__tstate);
35930 if (PyErr_Occurred()) SWIG_fail;
35931 }
35932 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35933 return resultobj;
35934 fail:
35935 return NULL;
35936 }
35937
35938
35939 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35940 PyObject *resultobj = 0;
35941 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35942 wxTreeItemId *arg2 = 0 ;
35943 wxTreeItemId result;
35944 void *argp1 = 0 ;
35945 int res1 = 0 ;
35946 void *argp2 = 0 ;
35947 int res2 = 0 ;
35948 PyObject * obj0 = 0 ;
35949 PyObject * obj1 = 0 ;
35950 char * kwnames[] = {
35951 (char *) "self",(char *) "item", NULL
35952 };
35953
35954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35956 if (!SWIG_IsOK(res1)) {
35957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35958 }
35959 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35961 if (!SWIG_IsOK(res2)) {
35962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35963 }
35964 if (!argp2) {
35965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35966 }
35967 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35968 {
35969 PyThreadState* __tstate = wxPyBeginAllowThreads();
35970 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35971 wxPyEndAllowThreads(__tstate);
35972 if (PyErr_Occurred()) SWIG_fail;
35973 }
35974 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35975 return resultobj;
35976 fail:
35977 return NULL;
35978 }
35979
35980
35981 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35982 PyObject *resultobj = 0;
35983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35984 wxString *arg2 = 0 ;
35985 int arg3 = (int) -1 ;
35986 int arg4 = (int) -1 ;
35987 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35988 wxTreeItemId result;
35989 void *argp1 = 0 ;
35990 int res1 = 0 ;
35991 bool temp2 = false ;
35992 int val3 ;
35993 int ecode3 = 0 ;
35994 int val4 ;
35995 int ecode4 = 0 ;
35996 int res5 = 0 ;
35997 PyObject * obj0 = 0 ;
35998 PyObject * obj1 = 0 ;
35999 PyObject * obj2 = 0 ;
36000 PyObject * obj3 = 0 ;
36001 PyObject * obj4 = 0 ;
36002 char * kwnames[] = {
36003 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36004 };
36005
36006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36008 if (!SWIG_IsOK(res1)) {
36009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36010 }
36011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36012 {
36013 arg2 = wxString_in_helper(obj1);
36014 if (arg2 == NULL) SWIG_fail;
36015 temp2 = true;
36016 }
36017 if (obj2) {
36018 ecode3 = SWIG_AsVal_int(obj2, &val3);
36019 if (!SWIG_IsOK(ecode3)) {
36020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36021 }
36022 arg3 = static_cast< int >(val3);
36023 }
36024 if (obj3) {
36025 ecode4 = SWIG_AsVal_int(obj3, &val4);
36026 if (!SWIG_IsOK(ecode4)) {
36027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36028 }
36029 arg4 = static_cast< int >(val4);
36030 }
36031 if (obj4) {
36032 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36033 if (!SWIG_IsOK(res5)) {
36034 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36035 }
36036 }
36037 {
36038 PyThreadState* __tstate = wxPyBeginAllowThreads();
36039 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36040 wxPyEndAllowThreads(__tstate);
36041 if (PyErr_Occurred()) SWIG_fail;
36042 }
36043 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36044 {
36045 if (temp2)
36046 delete arg2;
36047 }
36048 return resultobj;
36049 fail:
36050 {
36051 if (temp2)
36052 delete arg2;
36053 }
36054 return NULL;
36055 }
36056
36057
36058 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36059 PyObject *resultobj = 0;
36060 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36061 wxTreeItemId *arg2 = 0 ;
36062 wxString *arg3 = 0 ;
36063 int arg4 = (int) -1 ;
36064 int arg5 = (int) -1 ;
36065 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36066 wxTreeItemId result;
36067 void *argp1 = 0 ;
36068 int res1 = 0 ;
36069 void *argp2 = 0 ;
36070 int res2 = 0 ;
36071 bool temp3 = false ;
36072 int val4 ;
36073 int ecode4 = 0 ;
36074 int val5 ;
36075 int ecode5 = 0 ;
36076 int res6 = 0 ;
36077 PyObject * obj0 = 0 ;
36078 PyObject * obj1 = 0 ;
36079 PyObject * obj2 = 0 ;
36080 PyObject * obj3 = 0 ;
36081 PyObject * obj4 = 0 ;
36082 PyObject * obj5 = 0 ;
36083 char * kwnames[] = {
36084 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36085 };
36086
36087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36089 if (!SWIG_IsOK(res1)) {
36090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36091 }
36092 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36094 if (!SWIG_IsOK(res2)) {
36095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36096 }
36097 if (!argp2) {
36098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36099 }
36100 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36101 {
36102 arg3 = wxString_in_helper(obj2);
36103 if (arg3 == NULL) SWIG_fail;
36104 temp3 = true;
36105 }
36106 if (obj3) {
36107 ecode4 = SWIG_AsVal_int(obj3, &val4);
36108 if (!SWIG_IsOK(ecode4)) {
36109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36110 }
36111 arg4 = static_cast< int >(val4);
36112 }
36113 if (obj4) {
36114 ecode5 = SWIG_AsVal_int(obj4, &val5);
36115 if (!SWIG_IsOK(ecode5)) {
36116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36117 }
36118 arg5 = static_cast< int >(val5);
36119 }
36120 if (obj5) {
36121 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36122 if (!SWIG_IsOK(res6)) {
36123 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36124 }
36125 }
36126 {
36127 PyThreadState* __tstate = wxPyBeginAllowThreads();
36128 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36129 wxPyEndAllowThreads(__tstate);
36130 if (PyErr_Occurred()) SWIG_fail;
36131 }
36132 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36133 {
36134 if (temp3)
36135 delete arg3;
36136 }
36137 return resultobj;
36138 fail:
36139 {
36140 if (temp3)
36141 delete arg3;
36142 }
36143 return NULL;
36144 }
36145
36146
36147 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36148 PyObject *resultobj = 0;
36149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36150 wxTreeItemId *arg2 = 0 ;
36151 wxTreeItemId *arg3 = 0 ;
36152 wxString *arg4 = 0 ;
36153 int arg5 = (int) -1 ;
36154 int arg6 = (int) -1 ;
36155 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36156 wxTreeItemId result;
36157 void *argp1 = 0 ;
36158 int res1 = 0 ;
36159 void *argp2 = 0 ;
36160 int res2 = 0 ;
36161 void *argp3 = 0 ;
36162 int res3 = 0 ;
36163 bool temp4 = false ;
36164 int val5 ;
36165 int ecode5 = 0 ;
36166 int val6 ;
36167 int ecode6 = 0 ;
36168 int res7 = 0 ;
36169 PyObject * obj0 = 0 ;
36170 PyObject * obj1 = 0 ;
36171 PyObject * obj2 = 0 ;
36172 PyObject * obj3 = 0 ;
36173 PyObject * obj4 = 0 ;
36174 PyObject * obj5 = 0 ;
36175 PyObject * obj6 = 0 ;
36176 char * kwnames[] = {
36177 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36178 };
36179
36180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36182 if (!SWIG_IsOK(res1)) {
36183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36184 }
36185 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36187 if (!SWIG_IsOK(res2)) {
36188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36189 }
36190 if (!argp2) {
36191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36192 }
36193 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36194 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36195 if (!SWIG_IsOK(res3)) {
36196 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36197 }
36198 if (!argp3) {
36199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36200 }
36201 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36202 {
36203 arg4 = wxString_in_helper(obj3);
36204 if (arg4 == NULL) SWIG_fail;
36205 temp4 = true;
36206 }
36207 if (obj4) {
36208 ecode5 = SWIG_AsVal_int(obj4, &val5);
36209 if (!SWIG_IsOK(ecode5)) {
36210 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36211 }
36212 arg5 = static_cast< int >(val5);
36213 }
36214 if (obj5) {
36215 ecode6 = SWIG_AsVal_int(obj5, &val6);
36216 if (!SWIG_IsOK(ecode6)) {
36217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36218 }
36219 arg6 = static_cast< int >(val6);
36220 }
36221 if (obj6) {
36222 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36223 if (!SWIG_IsOK(res7)) {
36224 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36225 }
36226 }
36227 {
36228 PyThreadState* __tstate = wxPyBeginAllowThreads();
36229 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36230 wxPyEndAllowThreads(__tstate);
36231 if (PyErr_Occurred()) SWIG_fail;
36232 }
36233 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36234 {
36235 if (temp4)
36236 delete arg4;
36237 }
36238 return resultobj;
36239 fail:
36240 {
36241 if (temp4)
36242 delete arg4;
36243 }
36244 return NULL;
36245 }
36246
36247
36248 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36249 PyObject *resultobj = 0;
36250 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36251 wxTreeItemId *arg2 = 0 ;
36252 size_t arg3 ;
36253 wxString *arg4 = 0 ;
36254 int arg5 = (int) -1 ;
36255 int arg6 = (int) -1 ;
36256 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36257 wxTreeItemId result;
36258 void *argp1 = 0 ;
36259 int res1 = 0 ;
36260 void *argp2 = 0 ;
36261 int res2 = 0 ;
36262 size_t val3 ;
36263 int ecode3 = 0 ;
36264 bool temp4 = false ;
36265 int val5 ;
36266 int ecode5 = 0 ;
36267 int val6 ;
36268 int ecode6 = 0 ;
36269 int res7 = 0 ;
36270 PyObject * obj0 = 0 ;
36271 PyObject * obj1 = 0 ;
36272 PyObject * obj2 = 0 ;
36273 PyObject * obj3 = 0 ;
36274 PyObject * obj4 = 0 ;
36275 PyObject * obj5 = 0 ;
36276 PyObject * obj6 = 0 ;
36277 char * kwnames[] = {
36278 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36279 };
36280
36281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36283 if (!SWIG_IsOK(res1)) {
36284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36285 }
36286 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36288 if (!SWIG_IsOK(res2)) {
36289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36290 }
36291 if (!argp2) {
36292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36293 }
36294 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36295 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36296 if (!SWIG_IsOK(ecode3)) {
36297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36298 }
36299 arg3 = static_cast< size_t >(val3);
36300 {
36301 arg4 = wxString_in_helper(obj3);
36302 if (arg4 == NULL) SWIG_fail;
36303 temp4 = true;
36304 }
36305 if (obj4) {
36306 ecode5 = SWIG_AsVal_int(obj4, &val5);
36307 if (!SWIG_IsOK(ecode5)) {
36308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36309 }
36310 arg5 = static_cast< int >(val5);
36311 }
36312 if (obj5) {
36313 ecode6 = SWIG_AsVal_int(obj5, &val6);
36314 if (!SWIG_IsOK(ecode6)) {
36315 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36316 }
36317 arg6 = static_cast< int >(val6);
36318 }
36319 if (obj6) {
36320 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36321 if (!SWIG_IsOK(res7)) {
36322 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36323 }
36324 }
36325 {
36326 PyThreadState* __tstate = wxPyBeginAllowThreads();
36327 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36328 wxPyEndAllowThreads(__tstate);
36329 if (PyErr_Occurred()) SWIG_fail;
36330 }
36331 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36332 {
36333 if (temp4)
36334 delete arg4;
36335 }
36336 return resultobj;
36337 fail:
36338 {
36339 if (temp4)
36340 delete arg4;
36341 }
36342 return NULL;
36343 }
36344
36345
36346 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36347 PyObject *resultobj = 0;
36348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36349 wxTreeItemId *arg2 = 0 ;
36350 wxString *arg3 = 0 ;
36351 int arg4 = (int) -1 ;
36352 int arg5 = (int) -1 ;
36353 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36354 wxTreeItemId result;
36355 void *argp1 = 0 ;
36356 int res1 = 0 ;
36357 void *argp2 = 0 ;
36358 int res2 = 0 ;
36359 bool temp3 = false ;
36360 int val4 ;
36361 int ecode4 = 0 ;
36362 int val5 ;
36363 int ecode5 = 0 ;
36364 int res6 = 0 ;
36365 PyObject * obj0 = 0 ;
36366 PyObject * obj1 = 0 ;
36367 PyObject * obj2 = 0 ;
36368 PyObject * obj3 = 0 ;
36369 PyObject * obj4 = 0 ;
36370 PyObject * obj5 = 0 ;
36371 char * kwnames[] = {
36372 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36373 };
36374
36375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36377 if (!SWIG_IsOK(res1)) {
36378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36379 }
36380 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36382 if (!SWIG_IsOK(res2)) {
36383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36384 }
36385 if (!argp2) {
36386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36387 }
36388 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36389 {
36390 arg3 = wxString_in_helper(obj2);
36391 if (arg3 == NULL) SWIG_fail;
36392 temp3 = true;
36393 }
36394 if (obj3) {
36395 ecode4 = SWIG_AsVal_int(obj3, &val4);
36396 if (!SWIG_IsOK(ecode4)) {
36397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36398 }
36399 arg4 = static_cast< int >(val4);
36400 }
36401 if (obj4) {
36402 ecode5 = SWIG_AsVal_int(obj4, &val5);
36403 if (!SWIG_IsOK(ecode5)) {
36404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36405 }
36406 arg5 = static_cast< int >(val5);
36407 }
36408 if (obj5) {
36409 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36410 if (!SWIG_IsOK(res6)) {
36411 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36412 }
36413 }
36414 {
36415 PyThreadState* __tstate = wxPyBeginAllowThreads();
36416 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36417 wxPyEndAllowThreads(__tstate);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36421 {
36422 if (temp3)
36423 delete arg3;
36424 }
36425 return resultobj;
36426 fail:
36427 {
36428 if (temp3)
36429 delete arg3;
36430 }
36431 return NULL;
36432 }
36433
36434
36435 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36436 PyObject *resultobj = 0;
36437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36438 wxTreeItemId *arg2 = 0 ;
36439 void *argp1 = 0 ;
36440 int res1 = 0 ;
36441 void *argp2 = 0 ;
36442 int res2 = 0 ;
36443 PyObject * obj0 = 0 ;
36444 PyObject * obj1 = 0 ;
36445 char * kwnames[] = {
36446 (char *) "self",(char *) "item", NULL
36447 };
36448
36449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36451 if (!SWIG_IsOK(res1)) {
36452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36453 }
36454 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36456 if (!SWIG_IsOK(res2)) {
36457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36458 }
36459 if (!argp2) {
36460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36461 }
36462 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36463 {
36464 PyThreadState* __tstate = wxPyBeginAllowThreads();
36465 (arg1)->Delete((wxTreeItemId const &)*arg2);
36466 wxPyEndAllowThreads(__tstate);
36467 if (PyErr_Occurred()) SWIG_fail;
36468 }
36469 resultobj = SWIG_Py_Void();
36470 return resultobj;
36471 fail:
36472 return NULL;
36473 }
36474
36475
36476 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36477 PyObject *resultobj = 0;
36478 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36479 wxTreeItemId *arg2 = 0 ;
36480 void *argp1 = 0 ;
36481 int res1 = 0 ;
36482 void *argp2 = 0 ;
36483 int res2 = 0 ;
36484 PyObject * obj0 = 0 ;
36485 PyObject * obj1 = 0 ;
36486 char * kwnames[] = {
36487 (char *) "self",(char *) "item", NULL
36488 };
36489
36490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36492 if (!SWIG_IsOK(res1)) {
36493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36494 }
36495 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36497 if (!SWIG_IsOK(res2)) {
36498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36499 }
36500 if (!argp2) {
36501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36502 }
36503 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36504 {
36505 PyThreadState* __tstate = wxPyBeginAllowThreads();
36506 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36507 wxPyEndAllowThreads(__tstate);
36508 if (PyErr_Occurred()) SWIG_fail;
36509 }
36510 resultobj = SWIG_Py_Void();
36511 return resultobj;
36512 fail:
36513 return NULL;
36514 }
36515
36516
36517 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36518 PyObject *resultobj = 0;
36519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36520 void *argp1 = 0 ;
36521 int res1 = 0 ;
36522 PyObject *swig_obj[1] ;
36523
36524 if (!args) SWIG_fail;
36525 swig_obj[0] = args;
36526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36527 if (!SWIG_IsOK(res1)) {
36528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36529 }
36530 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36531 {
36532 PyThreadState* __tstate = wxPyBeginAllowThreads();
36533 (arg1)->DeleteAllItems();
36534 wxPyEndAllowThreads(__tstate);
36535 if (PyErr_Occurred()) SWIG_fail;
36536 }
36537 resultobj = SWIG_Py_Void();
36538 return resultobj;
36539 fail:
36540 return NULL;
36541 }
36542
36543
36544 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36545 PyObject *resultobj = 0;
36546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36547 wxTreeItemId *arg2 = 0 ;
36548 void *argp1 = 0 ;
36549 int res1 = 0 ;
36550 void *argp2 = 0 ;
36551 int res2 = 0 ;
36552 PyObject * obj0 = 0 ;
36553 PyObject * obj1 = 0 ;
36554 char * kwnames[] = {
36555 (char *) "self",(char *) "item", NULL
36556 };
36557
36558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36560 if (!SWIG_IsOK(res1)) {
36561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36562 }
36563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36565 if (!SWIG_IsOK(res2)) {
36566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36567 }
36568 if (!argp2) {
36569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36570 }
36571 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36572 {
36573 PyThreadState* __tstate = wxPyBeginAllowThreads();
36574 (arg1)->Expand((wxTreeItemId const &)*arg2);
36575 wxPyEndAllowThreads(__tstate);
36576 if (PyErr_Occurred()) SWIG_fail;
36577 }
36578 resultobj = SWIG_Py_Void();
36579 return resultobj;
36580 fail:
36581 return NULL;
36582 }
36583
36584
36585 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36586 PyObject *resultobj = 0;
36587 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36588 wxTreeItemId *arg2 = 0 ;
36589 void *argp1 = 0 ;
36590 int res1 = 0 ;
36591 void *argp2 = 0 ;
36592 int res2 = 0 ;
36593 PyObject * obj0 = 0 ;
36594 PyObject * obj1 = 0 ;
36595 char * kwnames[] = {
36596 (char *) "self",(char *) "item", NULL
36597 };
36598
36599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36601 if (!SWIG_IsOK(res1)) {
36602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36603 }
36604 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36606 if (!SWIG_IsOK(res2)) {
36607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36608 }
36609 if (!argp2) {
36610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36611 }
36612 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36613 {
36614 PyThreadState* __tstate = wxPyBeginAllowThreads();
36615 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36616 wxPyEndAllowThreads(__tstate);
36617 if (PyErr_Occurred()) SWIG_fail;
36618 }
36619 resultobj = SWIG_Py_Void();
36620 return resultobj;
36621 fail:
36622 return NULL;
36623 }
36624
36625
36626 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36627 PyObject *resultobj = 0;
36628 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36629 void *argp1 = 0 ;
36630 int res1 = 0 ;
36631 PyObject *swig_obj[1] ;
36632
36633 if (!args) SWIG_fail;
36634 swig_obj[0] = args;
36635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36636 if (!SWIG_IsOK(res1)) {
36637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36638 }
36639 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36640 {
36641 PyThreadState* __tstate = wxPyBeginAllowThreads();
36642 (arg1)->ExpandAll();
36643 wxPyEndAllowThreads(__tstate);
36644 if (PyErr_Occurred()) SWIG_fail;
36645 }
36646 resultobj = SWIG_Py_Void();
36647 return resultobj;
36648 fail:
36649 return NULL;
36650 }
36651
36652
36653 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36654 PyObject *resultobj = 0;
36655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36656 wxTreeItemId *arg2 = 0 ;
36657 void *argp1 = 0 ;
36658 int res1 = 0 ;
36659 void *argp2 = 0 ;
36660 int res2 = 0 ;
36661 PyObject * obj0 = 0 ;
36662 PyObject * obj1 = 0 ;
36663 char * kwnames[] = {
36664 (char *) "self",(char *) "item", NULL
36665 };
36666
36667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36669 if (!SWIG_IsOK(res1)) {
36670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36671 }
36672 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36674 if (!SWIG_IsOK(res2)) {
36675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36676 }
36677 if (!argp2) {
36678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36679 }
36680 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36681 {
36682 PyThreadState* __tstate = wxPyBeginAllowThreads();
36683 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36684 wxPyEndAllowThreads(__tstate);
36685 if (PyErr_Occurred()) SWIG_fail;
36686 }
36687 resultobj = SWIG_Py_Void();
36688 return resultobj;
36689 fail:
36690 return NULL;
36691 }
36692
36693
36694 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36695 PyObject *resultobj = 0;
36696 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36697 wxTreeItemId *arg2 = 0 ;
36698 void *argp1 = 0 ;
36699 int res1 = 0 ;
36700 void *argp2 = 0 ;
36701 int res2 = 0 ;
36702 PyObject * obj0 = 0 ;
36703 PyObject * obj1 = 0 ;
36704 char * kwnames[] = {
36705 (char *) "self",(char *) "item", NULL
36706 };
36707
36708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36710 if (!SWIG_IsOK(res1)) {
36711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36712 }
36713 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36715 if (!SWIG_IsOK(res2)) {
36716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36717 }
36718 if (!argp2) {
36719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36720 }
36721 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36722 {
36723 PyThreadState* __tstate = wxPyBeginAllowThreads();
36724 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36725 wxPyEndAllowThreads(__tstate);
36726 if (PyErr_Occurred()) SWIG_fail;
36727 }
36728 resultobj = SWIG_Py_Void();
36729 return resultobj;
36730 fail:
36731 return NULL;
36732 }
36733
36734
36735 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36736 PyObject *resultobj = 0;
36737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36738 wxTreeItemId *arg2 = 0 ;
36739 void *argp1 = 0 ;
36740 int res1 = 0 ;
36741 void *argp2 = 0 ;
36742 int res2 = 0 ;
36743 PyObject * obj0 = 0 ;
36744 PyObject * obj1 = 0 ;
36745 char * kwnames[] = {
36746 (char *) "self",(char *) "item", NULL
36747 };
36748
36749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36751 if (!SWIG_IsOK(res1)) {
36752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36753 }
36754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36756 if (!SWIG_IsOK(res2)) {
36757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36758 }
36759 if (!argp2) {
36760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36761 }
36762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36763 {
36764 PyThreadState* __tstate = wxPyBeginAllowThreads();
36765 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36766 wxPyEndAllowThreads(__tstate);
36767 if (PyErr_Occurred()) SWIG_fail;
36768 }
36769 resultobj = SWIG_Py_Void();
36770 return resultobj;
36771 fail:
36772 return NULL;
36773 }
36774
36775
36776 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36777 PyObject *resultobj = 0;
36778 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36779 void *argp1 = 0 ;
36780 int res1 = 0 ;
36781 PyObject *swig_obj[1] ;
36782
36783 if (!args) SWIG_fail;
36784 swig_obj[0] = args;
36785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36786 if (!SWIG_IsOK(res1)) {
36787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36788 }
36789 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36790 {
36791 PyThreadState* __tstate = wxPyBeginAllowThreads();
36792 (arg1)->Unselect();
36793 wxPyEndAllowThreads(__tstate);
36794 if (PyErr_Occurred()) SWIG_fail;
36795 }
36796 resultobj = SWIG_Py_Void();
36797 return resultobj;
36798 fail:
36799 return NULL;
36800 }
36801
36802
36803 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36804 PyObject *resultobj = 0;
36805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36806 wxTreeItemId *arg2 = 0 ;
36807 void *argp1 = 0 ;
36808 int res1 = 0 ;
36809 void *argp2 = 0 ;
36810 int res2 = 0 ;
36811 PyObject * obj0 = 0 ;
36812 PyObject * obj1 = 0 ;
36813 char * kwnames[] = {
36814 (char *) "self",(char *) "item", NULL
36815 };
36816
36817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36819 if (!SWIG_IsOK(res1)) {
36820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36821 }
36822 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36824 if (!SWIG_IsOK(res2)) {
36825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36826 }
36827 if (!argp2) {
36828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36829 }
36830 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36831 {
36832 PyThreadState* __tstate = wxPyBeginAllowThreads();
36833 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36834 wxPyEndAllowThreads(__tstate);
36835 if (PyErr_Occurred()) SWIG_fail;
36836 }
36837 resultobj = SWIG_Py_Void();
36838 return resultobj;
36839 fail:
36840 return NULL;
36841 }
36842
36843
36844 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36845 PyObject *resultobj = 0;
36846 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36847 void *argp1 = 0 ;
36848 int res1 = 0 ;
36849 PyObject *swig_obj[1] ;
36850
36851 if (!args) SWIG_fail;
36852 swig_obj[0] = args;
36853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36854 if (!SWIG_IsOK(res1)) {
36855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36856 }
36857 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36858 {
36859 PyThreadState* __tstate = wxPyBeginAllowThreads();
36860 (arg1)->UnselectAll();
36861 wxPyEndAllowThreads(__tstate);
36862 if (PyErr_Occurred()) SWIG_fail;
36863 }
36864 resultobj = SWIG_Py_Void();
36865 return resultobj;
36866 fail:
36867 return NULL;
36868 }
36869
36870
36871 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36872 PyObject *resultobj = 0;
36873 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36874 wxTreeItemId *arg2 = 0 ;
36875 bool arg3 = (bool) true ;
36876 void *argp1 = 0 ;
36877 int res1 = 0 ;
36878 void *argp2 = 0 ;
36879 int res2 = 0 ;
36880 bool val3 ;
36881 int ecode3 = 0 ;
36882 PyObject * obj0 = 0 ;
36883 PyObject * obj1 = 0 ;
36884 PyObject * obj2 = 0 ;
36885 char * kwnames[] = {
36886 (char *) "self",(char *) "item",(char *) "select", NULL
36887 };
36888
36889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36891 if (!SWIG_IsOK(res1)) {
36892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36893 }
36894 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36896 if (!SWIG_IsOK(res2)) {
36897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36898 }
36899 if (!argp2) {
36900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36901 }
36902 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36903 if (obj2) {
36904 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36905 if (!SWIG_IsOK(ecode3)) {
36906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36907 }
36908 arg3 = static_cast< bool >(val3);
36909 }
36910 {
36911 PyThreadState* __tstate = wxPyBeginAllowThreads();
36912 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36913 wxPyEndAllowThreads(__tstate);
36914 if (PyErr_Occurred()) SWIG_fail;
36915 }
36916 resultobj = SWIG_Py_Void();
36917 return resultobj;
36918 fail:
36919 return NULL;
36920 }
36921
36922
36923 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36924 PyObject *resultobj = 0;
36925 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36926 wxTreeItemId *arg2 = 0 ;
36927 void *argp1 = 0 ;
36928 int res1 = 0 ;
36929 void *argp2 = 0 ;
36930 int res2 = 0 ;
36931 PyObject * obj0 = 0 ;
36932 PyObject * obj1 = 0 ;
36933 char * kwnames[] = {
36934 (char *) "self",(char *) "item", NULL
36935 };
36936
36937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36939 if (!SWIG_IsOK(res1)) {
36940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36941 }
36942 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36944 if (!SWIG_IsOK(res2)) {
36945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36946 }
36947 if (!argp2) {
36948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36949 }
36950 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36951 {
36952 PyThreadState* __tstate = wxPyBeginAllowThreads();
36953 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36954 wxPyEndAllowThreads(__tstate);
36955 if (PyErr_Occurred()) SWIG_fail;
36956 }
36957 resultobj = SWIG_Py_Void();
36958 return resultobj;
36959 fail:
36960 return NULL;
36961 }
36962
36963
36964 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36965 PyObject *resultobj = 0;
36966 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36967 wxTreeItemId *arg2 = 0 ;
36968 void *argp1 = 0 ;
36969 int res1 = 0 ;
36970 void *argp2 = 0 ;
36971 int res2 = 0 ;
36972 PyObject * obj0 = 0 ;
36973 PyObject * obj1 = 0 ;
36974 char * kwnames[] = {
36975 (char *) "self",(char *) "item", NULL
36976 };
36977
36978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36980 if (!SWIG_IsOK(res1)) {
36981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36982 }
36983 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36985 if (!SWIG_IsOK(res2)) {
36986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36987 }
36988 if (!argp2) {
36989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36990 }
36991 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36992 {
36993 PyThreadState* __tstate = wxPyBeginAllowThreads();
36994 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36995 wxPyEndAllowThreads(__tstate);
36996 if (PyErr_Occurred()) SWIG_fail;
36997 }
36998 resultobj = SWIG_Py_Void();
36999 return resultobj;
37000 fail:
37001 return NULL;
37002 }
37003
37004
37005 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37006 PyObject *resultobj = 0;
37007 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37008 wxTreeItemId *arg2 = 0 ;
37009 void *argp1 = 0 ;
37010 int res1 = 0 ;
37011 void *argp2 = 0 ;
37012 int res2 = 0 ;
37013 PyObject * obj0 = 0 ;
37014 PyObject * obj1 = 0 ;
37015 char * kwnames[] = {
37016 (char *) "self",(char *) "item", NULL
37017 };
37018
37019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37021 if (!SWIG_IsOK(res1)) {
37022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37023 }
37024 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37026 if (!SWIG_IsOK(res2)) {
37027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37028 }
37029 if (!argp2) {
37030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37031 }
37032 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37033 {
37034 PyThreadState* __tstate = wxPyBeginAllowThreads();
37035 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37036 wxPyEndAllowThreads(__tstate);
37037 if (PyErr_Occurred()) SWIG_fail;
37038 }
37039 resultobj = SWIG_Py_Void();
37040 return resultobj;
37041 fail:
37042 return NULL;
37043 }
37044
37045
37046 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37047 PyObject *resultobj = 0;
37048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37049 wxTreeItemId *arg2 = 0 ;
37050 void *argp1 = 0 ;
37051 int res1 = 0 ;
37052 void *argp2 = 0 ;
37053 int res2 = 0 ;
37054 PyObject * obj0 = 0 ;
37055 PyObject * obj1 = 0 ;
37056 char * kwnames[] = {
37057 (char *) "self",(char *) "item", NULL
37058 };
37059
37060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37062 if (!SWIG_IsOK(res1)) {
37063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37064 }
37065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37067 if (!SWIG_IsOK(res2)) {
37068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37069 }
37070 if (!argp2) {
37071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37072 }
37073 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37074 {
37075 PyThreadState* __tstate = wxPyBeginAllowThreads();
37076 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37077 wxPyEndAllowThreads(__tstate);
37078 if (PyErr_Occurred()) SWIG_fail;
37079 }
37080 resultobj = SWIG_Py_Void();
37081 return resultobj;
37082 fail:
37083 return NULL;
37084 }
37085
37086
37087 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37088 PyObject *resultobj = 0;
37089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37090 wxTextCtrl *result = 0 ;
37091 void *argp1 = 0 ;
37092 int res1 = 0 ;
37093 PyObject *swig_obj[1] ;
37094
37095 if (!args) SWIG_fail;
37096 swig_obj[0] = args;
37097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37098 if (!SWIG_IsOK(res1)) {
37099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37100 }
37101 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37102 {
37103 PyThreadState* __tstate = wxPyBeginAllowThreads();
37104 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37105 wxPyEndAllowThreads(__tstate);
37106 if (PyErr_Occurred()) SWIG_fail;
37107 }
37108 {
37109 resultobj = wxPyMake_wxObject(result, 0);
37110 }
37111 return resultobj;
37112 fail:
37113 return NULL;
37114 }
37115
37116
37117 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37118 PyObject *resultobj = 0;
37119 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37120 wxTreeItemId *arg2 = 0 ;
37121 void *argp1 = 0 ;
37122 int res1 = 0 ;
37123 void *argp2 = 0 ;
37124 int res2 = 0 ;
37125 PyObject * obj0 = 0 ;
37126 PyObject * obj1 = 0 ;
37127 char * kwnames[] = {
37128 (char *) "self",(char *) "item", NULL
37129 };
37130
37131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37133 if (!SWIG_IsOK(res1)) {
37134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37135 }
37136 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37138 if (!SWIG_IsOK(res2)) {
37139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37140 }
37141 if (!argp2) {
37142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37143 }
37144 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37145 {
37146 PyThreadState* __tstate = wxPyBeginAllowThreads();
37147 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37148 wxPyEndAllowThreads(__tstate);
37149 if (PyErr_Occurred()) SWIG_fail;
37150 }
37151 resultobj = SWIG_Py_Void();
37152 return resultobj;
37153 fail:
37154 return NULL;
37155 }
37156
37157
37158 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37159 PyObject *resultobj = 0;
37160 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37161 wxPoint *arg2 = 0 ;
37162 int *arg3 = 0 ;
37163 wxTreeItemId result;
37164 void *argp1 = 0 ;
37165 int res1 = 0 ;
37166 wxPoint temp2 ;
37167 int temp3 ;
37168 int res3 = SWIG_TMPOBJ ;
37169 PyObject * obj0 = 0 ;
37170 PyObject * obj1 = 0 ;
37171 char * kwnames[] = {
37172 (char *) "self",(char *) "point", NULL
37173 };
37174
37175 arg3 = &temp3;
37176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37178 if (!SWIG_IsOK(res1)) {
37179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37180 }
37181 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37182 {
37183 arg2 = &temp2;
37184 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37185 }
37186 {
37187 PyThreadState* __tstate = wxPyBeginAllowThreads();
37188 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37189 wxPyEndAllowThreads(__tstate);
37190 if (PyErr_Occurred()) SWIG_fail;
37191 }
37192 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37193 if (SWIG_IsTmpObj(res3)) {
37194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37195 } else {
37196 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37198 }
37199 return resultobj;
37200 fail:
37201 return NULL;
37202 }
37203
37204
37205 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37206 PyObject *resultobj = 0;
37207 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37208 wxTreeItemId *arg2 = 0 ;
37209 bool arg3 = (bool) false ;
37210 PyObject *result = 0 ;
37211 void *argp1 = 0 ;
37212 int res1 = 0 ;
37213 void *argp2 = 0 ;
37214 int res2 = 0 ;
37215 bool val3 ;
37216 int ecode3 = 0 ;
37217 PyObject * obj0 = 0 ;
37218 PyObject * obj1 = 0 ;
37219 PyObject * obj2 = 0 ;
37220 char * kwnames[] = {
37221 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37222 };
37223
37224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37226 if (!SWIG_IsOK(res1)) {
37227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37228 }
37229 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37231 if (!SWIG_IsOK(res2)) {
37232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37233 }
37234 if (!argp2) {
37235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37236 }
37237 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37238 if (obj2) {
37239 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37240 if (!SWIG_IsOK(ecode3)) {
37241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37242 }
37243 arg3 = static_cast< bool >(val3);
37244 }
37245 {
37246 PyThreadState* __tstate = wxPyBeginAllowThreads();
37247 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37248 wxPyEndAllowThreads(__tstate);
37249 if (PyErr_Occurred()) SWIG_fail;
37250 }
37251 resultobj = result;
37252 return resultobj;
37253 fail:
37254 return NULL;
37255 }
37256
37257
37258 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37259 PyObject *resultobj = 0;
37260 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37261 SwigValueWrapper<wxVisualAttributes > result;
37262 int val1 ;
37263 int ecode1 = 0 ;
37264 PyObject * obj0 = 0 ;
37265 char * kwnames[] = {
37266 (char *) "variant", NULL
37267 };
37268
37269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37270 if (obj0) {
37271 ecode1 = SWIG_AsVal_int(obj0, &val1);
37272 if (!SWIG_IsOK(ecode1)) {
37273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37274 }
37275 arg1 = static_cast< wxWindowVariant >(val1);
37276 }
37277 {
37278 if (!wxPyCheckForApp()) SWIG_fail;
37279 PyThreadState* __tstate = wxPyBeginAllowThreads();
37280 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37281 wxPyEndAllowThreads(__tstate);
37282 if (PyErr_Occurred()) SWIG_fail;
37283 }
37284 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37285 return resultobj;
37286 fail:
37287 return NULL;
37288 }
37289
37290
37291 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37292 PyObject *resultobj = 0;
37293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37294 bool arg2 ;
37295 void *argp1 = 0 ;
37296 int res1 = 0 ;
37297 bool val2 ;
37298 int ecode2 = 0 ;
37299 PyObject * obj0 = 0 ;
37300 PyObject * obj1 = 0 ;
37301 char * kwnames[] = {
37302 (char *) "self",(char *) "q", NULL
37303 };
37304
37305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37307 if (!SWIG_IsOK(res1)) {
37308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37309 }
37310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37311 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37312 if (!SWIG_IsOK(ecode2)) {
37313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37314 }
37315 arg2 = static_cast< bool >(val2);
37316 {
37317 PyThreadState* __tstate = wxPyBeginAllowThreads();
37318 (arg1)->SetQuickBestSize(arg2);
37319 wxPyEndAllowThreads(__tstate);
37320 if (PyErr_Occurred()) SWIG_fail;
37321 }
37322 resultobj = SWIG_Py_Void();
37323 return resultobj;
37324 fail:
37325 return NULL;
37326 }
37327
37328
37329 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37330 PyObject *resultobj = 0;
37331 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37332 bool result;
37333 void *argp1 = 0 ;
37334 int res1 = 0 ;
37335 PyObject *swig_obj[1] ;
37336
37337 if (!args) SWIG_fail;
37338 swig_obj[0] = args;
37339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37340 if (!SWIG_IsOK(res1)) {
37341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37342 }
37343 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37344 {
37345 PyThreadState* __tstate = wxPyBeginAllowThreads();
37346 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37347 wxPyEndAllowThreads(__tstate);
37348 if (PyErr_Occurred()) SWIG_fail;
37349 }
37350 {
37351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37352 }
37353 return resultobj;
37354 fail:
37355 return NULL;
37356 }
37357
37358
37359 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37360 PyObject *obj;
37361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37362 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37363 return SWIG_Py_Void();
37364 }
37365
37366 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37367 return SWIG_Python_InitShadowInstance(args);
37368 }
37369
37370 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37371 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37372 return 1;
37373 }
37374
37375
37376 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37377 PyObject *pyobj = 0;
37378
37379 {
37380 #if wxUSE_UNICODE
37381 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37382 #else
37383 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37384 #endif
37385 }
37386 return pyobj;
37387 }
37388
37389
37390 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37391 PyObject *resultobj = 0;
37392 wxWindow *arg1 = (wxWindow *) 0 ;
37393 int arg2 = (int) (int)-1 ;
37394 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37395 wxString *arg3 = (wxString *) &arg3_defvalue ;
37396 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37397 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37398 wxSize const &arg5_defvalue = wxDefaultSize ;
37399 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37400 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37401 wxString const &arg7_defvalue = wxPyEmptyString ;
37402 wxString *arg7 = (wxString *) &arg7_defvalue ;
37403 int arg8 = (int) 0 ;
37404 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37405 wxString *arg9 = (wxString *) &arg9_defvalue ;
37406 wxGenericDirCtrl *result = 0 ;
37407 void *argp1 = 0 ;
37408 int res1 = 0 ;
37409 int val2 ;
37410 int ecode2 = 0 ;
37411 bool temp3 = false ;
37412 wxPoint temp4 ;
37413 wxSize temp5 ;
37414 long val6 ;
37415 int ecode6 = 0 ;
37416 bool temp7 = false ;
37417 int val8 ;
37418 int ecode8 = 0 ;
37419 bool temp9 = false ;
37420 PyObject * obj0 = 0 ;
37421 PyObject * obj1 = 0 ;
37422 PyObject * obj2 = 0 ;
37423 PyObject * obj3 = 0 ;
37424 PyObject * obj4 = 0 ;
37425 PyObject * obj5 = 0 ;
37426 PyObject * obj6 = 0 ;
37427 PyObject * obj7 = 0 ;
37428 PyObject * obj8 = 0 ;
37429 char * kwnames[] = {
37430 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37431 };
37432
37433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37435 if (!SWIG_IsOK(res1)) {
37436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37437 }
37438 arg1 = reinterpret_cast< wxWindow * >(argp1);
37439 if (obj1) {
37440 ecode2 = SWIG_AsVal_int(obj1, &val2);
37441 if (!SWIG_IsOK(ecode2)) {
37442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37443 }
37444 arg2 = static_cast< int >(val2);
37445 }
37446 if (obj2) {
37447 {
37448 arg3 = wxString_in_helper(obj2);
37449 if (arg3 == NULL) SWIG_fail;
37450 temp3 = true;
37451 }
37452 }
37453 if (obj3) {
37454 {
37455 arg4 = &temp4;
37456 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37457 }
37458 }
37459 if (obj4) {
37460 {
37461 arg5 = &temp5;
37462 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37463 }
37464 }
37465 if (obj5) {
37466 ecode6 = SWIG_AsVal_long(obj5, &val6);
37467 if (!SWIG_IsOK(ecode6)) {
37468 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37469 }
37470 arg6 = static_cast< long >(val6);
37471 }
37472 if (obj6) {
37473 {
37474 arg7 = wxString_in_helper(obj6);
37475 if (arg7 == NULL) SWIG_fail;
37476 temp7 = true;
37477 }
37478 }
37479 if (obj7) {
37480 ecode8 = SWIG_AsVal_int(obj7, &val8);
37481 if (!SWIG_IsOK(ecode8)) {
37482 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37483 }
37484 arg8 = static_cast< int >(val8);
37485 }
37486 if (obj8) {
37487 {
37488 arg9 = wxString_in_helper(obj8);
37489 if (arg9 == NULL) SWIG_fail;
37490 temp9 = true;
37491 }
37492 }
37493 {
37494 if (!wxPyCheckForApp()) SWIG_fail;
37495 PyThreadState* __tstate = wxPyBeginAllowThreads();
37496 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37497 wxPyEndAllowThreads(__tstate);
37498 if (PyErr_Occurred()) SWIG_fail;
37499 }
37500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37501 {
37502 if (temp3)
37503 delete arg3;
37504 }
37505 {
37506 if (temp7)
37507 delete arg7;
37508 }
37509 {
37510 if (temp9)
37511 delete arg9;
37512 }
37513 return resultobj;
37514 fail:
37515 {
37516 if (temp3)
37517 delete arg3;
37518 }
37519 {
37520 if (temp7)
37521 delete arg7;
37522 }
37523 {
37524 if (temp9)
37525 delete arg9;
37526 }
37527 return NULL;
37528 }
37529
37530
37531 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37532 PyObject *resultobj = 0;
37533 wxGenericDirCtrl *result = 0 ;
37534
37535 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37536 {
37537 if (!wxPyCheckForApp()) SWIG_fail;
37538 PyThreadState* __tstate = wxPyBeginAllowThreads();
37539 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37540 wxPyEndAllowThreads(__tstate);
37541 if (PyErr_Occurred()) SWIG_fail;
37542 }
37543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37544 return resultobj;
37545 fail:
37546 return NULL;
37547 }
37548
37549
37550 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37551 PyObject *resultobj = 0;
37552 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37553 wxWindow *arg2 = (wxWindow *) 0 ;
37554 int arg3 = (int) (int)-1 ;
37555 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37556 wxString *arg4 = (wxString *) &arg4_defvalue ;
37557 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37558 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37559 wxSize const &arg6_defvalue = wxDefaultSize ;
37560 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37561 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37562 wxString const &arg8_defvalue = wxPyEmptyString ;
37563 wxString *arg8 = (wxString *) &arg8_defvalue ;
37564 int arg9 = (int) 0 ;
37565 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37566 wxString *arg10 = (wxString *) &arg10_defvalue ;
37567 bool result;
37568 void *argp1 = 0 ;
37569 int res1 = 0 ;
37570 void *argp2 = 0 ;
37571 int res2 = 0 ;
37572 int val3 ;
37573 int ecode3 = 0 ;
37574 bool temp4 = false ;
37575 wxPoint temp5 ;
37576 wxSize temp6 ;
37577 long val7 ;
37578 int ecode7 = 0 ;
37579 bool temp8 = false ;
37580 int val9 ;
37581 int ecode9 = 0 ;
37582 bool temp10 = false ;
37583 PyObject * obj0 = 0 ;
37584 PyObject * obj1 = 0 ;
37585 PyObject * obj2 = 0 ;
37586 PyObject * obj3 = 0 ;
37587 PyObject * obj4 = 0 ;
37588 PyObject * obj5 = 0 ;
37589 PyObject * obj6 = 0 ;
37590 PyObject * obj7 = 0 ;
37591 PyObject * obj8 = 0 ;
37592 PyObject * obj9 = 0 ;
37593 char * kwnames[] = {
37594 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37595 };
37596
37597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37599 if (!SWIG_IsOK(res1)) {
37600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37601 }
37602 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37604 if (!SWIG_IsOK(res2)) {
37605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37606 }
37607 arg2 = reinterpret_cast< wxWindow * >(argp2);
37608 if (obj2) {
37609 ecode3 = SWIG_AsVal_int(obj2, &val3);
37610 if (!SWIG_IsOK(ecode3)) {
37611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37612 }
37613 arg3 = static_cast< int >(val3);
37614 }
37615 if (obj3) {
37616 {
37617 arg4 = wxString_in_helper(obj3);
37618 if (arg4 == NULL) SWIG_fail;
37619 temp4 = true;
37620 }
37621 }
37622 if (obj4) {
37623 {
37624 arg5 = &temp5;
37625 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37626 }
37627 }
37628 if (obj5) {
37629 {
37630 arg6 = &temp6;
37631 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37632 }
37633 }
37634 if (obj6) {
37635 ecode7 = SWIG_AsVal_long(obj6, &val7);
37636 if (!SWIG_IsOK(ecode7)) {
37637 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37638 }
37639 arg7 = static_cast< long >(val7);
37640 }
37641 if (obj7) {
37642 {
37643 arg8 = wxString_in_helper(obj7);
37644 if (arg8 == NULL) SWIG_fail;
37645 temp8 = true;
37646 }
37647 }
37648 if (obj8) {
37649 ecode9 = SWIG_AsVal_int(obj8, &val9);
37650 if (!SWIG_IsOK(ecode9)) {
37651 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37652 }
37653 arg9 = static_cast< int >(val9);
37654 }
37655 if (obj9) {
37656 {
37657 arg10 = wxString_in_helper(obj9);
37658 if (arg10 == NULL) SWIG_fail;
37659 temp10 = true;
37660 }
37661 }
37662 {
37663 PyThreadState* __tstate = wxPyBeginAllowThreads();
37664 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37665 wxPyEndAllowThreads(__tstate);
37666 if (PyErr_Occurred()) SWIG_fail;
37667 }
37668 {
37669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37670 }
37671 {
37672 if (temp4)
37673 delete arg4;
37674 }
37675 {
37676 if (temp8)
37677 delete arg8;
37678 }
37679 {
37680 if (temp10)
37681 delete arg10;
37682 }
37683 return resultobj;
37684 fail:
37685 {
37686 if (temp4)
37687 delete arg4;
37688 }
37689 {
37690 if (temp8)
37691 delete arg8;
37692 }
37693 {
37694 if (temp10)
37695 delete arg10;
37696 }
37697 return NULL;
37698 }
37699
37700
37701 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37702 PyObject *resultobj = 0;
37703 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37704 wxString *arg2 = 0 ;
37705 bool result;
37706 void *argp1 = 0 ;
37707 int res1 = 0 ;
37708 bool temp2 = false ;
37709 PyObject * obj0 = 0 ;
37710 PyObject * obj1 = 0 ;
37711 char * kwnames[] = {
37712 (char *) "self",(char *) "path", NULL
37713 };
37714
37715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37717 if (!SWIG_IsOK(res1)) {
37718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37719 }
37720 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37721 {
37722 arg2 = wxString_in_helper(obj1);
37723 if (arg2 == NULL) SWIG_fail;
37724 temp2 = true;
37725 }
37726 {
37727 PyThreadState* __tstate = wxPyBeginAllowThreads();
37728 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37729 wxPyEndAllowThreads(__tstate);
37730 if (PyErr_Occurred()) SWIG_fail;
37731 }
37732 {
37733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37734 }
37735 {
37736 if (temp2)
37737 delete arg2;
37738 }
37739 return resultobj;
37740 fail:
37741 {
37742 if (temp2)
37743 delete arg2;
37744 }
37745 return NULL;
37746 }
37747
37748
37749 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37750 PyObject *resultobj = 0;
37751 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37752 wxString *arg2 = 0 ;
37753 bool result;
37754 void *argp1 = 0 ;
37755 int res1 = 0 ;
37756 bool temp2 = false ;
37757 PyObject * obj0 = 0 ;
37758 PyObject * obj1 = 0 ;
37759 char * kwnames[] = {
37760 (char *) "self",(char *) "path", NULL
37761 };
37762
37763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37765 if (!SWIG_IsOK(res1)) {
37766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37767 }
37768 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37769 {
37770 arg2 = wxString_in_helper(obj1);
37771 if (arg2 == NULL) SWIG_fail;
37772 temp2 = true;
37773 }
37774 {
37775 PyThreadState* __tstate = wxPyBeginAllowThreads();
37776 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37777 wxPyEndAllowThreads(__tstate);
37778 if (PyErr_Occurred()) SWIG_fail;
37779 }
37780 {
37781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37782 }
37783 {
37784 if (temp2)
37785 delete arg2;
37786 }
37787 return resultobj;
37788 fail:
37789 {
37790 if (temp2)
37791 delete arg2;
37792 }
37793 return NULL;
37794 }
37795
37796
37797 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37798 PyObject *resultobj = 0;
37799 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37800 wxString result;
37801 void *argp1 = 0 ;
37802 int res1 = 0 ;
37803 PyObject *swig_obj[1] ;
37804
37805 if (!args) SWIG_fail;
37806 swig_obj[0] = args;
37807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37808 if (!SWIG_IsOK(res1)) {
37809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37810 }
37811 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37812 {
37813 PyThreadState* __tstate = wxPyBeginAllowThreads();
37814 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37815 wxPyEndAllowThreads(__tstate);
37816 if (PyErr_Occurred()) SWIG_fail;
37817 }
37818 {
37819 #if wxUSE_UNICODE
37820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37821 #else
37822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37823 #endif
37824 }
37825 return resultobj;
37826 fail:
37827 return NULL;
37828 }
37829
37830
37831 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37832 PyObject *resultobj = 0;
37833 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37834 wxString *arg2 = 0 ;
37835 void *argp1 = 0 ;
37836 int res1 = 0 ;
37837 bool temp2 = false ;
37838 PyObject * obj0 = 0 ;
37839 PyObject * obj1 = 0 ;
37840 char * kwnames[] = {
37841 (char *) "self",(char *) "path", NULL
37842 };
37843
37844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37846 if (!SWIG_IsOK(res1)) {
37847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37848 }
37849 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37850 {
37851 arg2 = wxString_in_helper(obj1);
37852 if (arg2 == NULL) SWIG_fail;
37853 temp2 = true;
37854 }
37855 {
37856 PyThreadState* __tstate = wxPyBeginAllowThreads();
37857 (arg1)->SetDefaultPath((wxString const &)*arg2);
37858 wxPyEndAllowThreads(__tstate);
37859 if (PyErr_Occurred()) SWIG_fail;
37860 }
37861 resultobj = SWIG_Py_Void();
37862 {
37863 if (temp2)
37864 delete arg2;
37865 }
37866 return resultobj;
37867 fail:
37868 {
37869 if (temp2)
37870 delete arg2;
37871 }
37872 return NULL;
37873 }
37874
37875
37876 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37877 PyObject *resultobj = 0;
37878 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37879 wxString result;
37880 void *argp1 = 0 ;
37881 int res1 = 0 ;
37882 PyObject *swig_obj[1] ;
37883
37884 if (!args) SWIG_fail;
37885 swig_obj[0] = args;
37886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37887 if (!SWIG_IsOK(res1)) {
37888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37889 }
37890 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37891 {
37892 PyThreadState* __tstate = wxPyBeginAllowThreads();
37893 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37894 wxPyEndAllowThreads(__tstate);
37895 if (PyErr_Occurred()) SWIG_fail;
37896 }
37897 {
37898 #if wxUSE_UNICODE
37899 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37900 #else
37901 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37902 #endif
37903 }
37904 return resultobj;
37905 fail:
37906 return NULL;
37907 }
37908
37909
37910 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37911 PyObject *resultobj = 0;
37912 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37913 wxString result;
37914 void *argp1 = 0 ;
37915 int res1 = 0 ;
37916 PyObject *swig_obj[1] ;
37917
37918 if (!args) SWIG_fail;
37919 swig_obj[0] = args;
37920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37921 if (!SWIG_IsOK(res1)) {
37922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37923 }
37924 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37925 {
37926 PyThreadState* __tstate = wxPyBeginAllowThreads();
37927 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37928 wxPyEndAllowThreads(__tstate);
37929 if (PyErr_Occurred()) SWIG_fail;
37930 }
37931 {
37932 #if wxUSE_UNICODE
37933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37934 #else
37935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37936 #endif
37937 }
37938 return resultobj;
37939 fail:
37940 return NULL;
37941 }
37942
37943
37944 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37945 PyObject *resultobj = 0;
37946 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37947 wxString *arg2 = 0 ;
37948 void *argp1 = 0 ;
37949 int res1 = 0 ;
37950 bool temp2 = false ;
37951 PyObject * obj0 = 0 ;
37952 PyObject * obj1 = 0 ;
37953 char * kwnames[] = {
37954 (char *) "self",(char *) "path", NULL
37955 };
37956
37957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37959 if (!SWIG_IsOK(res1)) {
37960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37961 }
37962 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37963 {
37964 arg2 = wxString_in_helper(obj1);
37965 if (arg2 == NULL) SWIG_fail;
37966 temp2 = true;
37967 }
37968 {
37969 PyThreadState* __tstate = wxPyBeginAllowThreads();
37970 (arg1)->SetPath((wxString const &)*arg2);
37971 wxPyEndAllowThreads(__tstate);
37972 if (PyErr_Occurred()) SWIG_fail;
37973 }
37974 resultobj = SWIG_Py_Void();
37975 {
37976 if (temp2)
37977 delete arg2;
37978 }
37979 return resultobj;
37980 fail:
37981 {
37982 if (temp2)
37983 delete arg2;
37984 }
37985 return NULL;
37986 }
37987
37988
37989 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37990 PyObject *resultobj = 0;
37991 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37992 bool arg2 ;
37993 void *argp1 = 0 ;
37994 int res1 = 0 ;
37995 bool val2 ;
37996 int ecode2 = 0 ;
37997 PyObject * obj0 = 0 ;
37998 PyObject * obj1 = 0 ;
37999 char * kwnames[] = {
38000 (char *) "self",(char *) "show", NULL
38001 };
38002
38003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38005 if (!SWIG_IsOK(res1)) {
38006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38007 }
38008 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38009 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38010 if (!SWIG_IsOK(ecode2)) {
38011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38012 }
38013 arg2 = static_cast< bool >(val2);
38014 {
38015 PyThreadState* __tstate = wxPyBeginAllowThreads();
38016 (arg1)->ShowHidden(arg2);
38017 wxPyEndAllowThreads(__tstate);
38018 if (PyErr_Occurred()) SWIG_fail;
38019 }
38020 resultobj = SWIG_Py_Void();
38021 return resultobj;
38022 fail:
38023 return NULL;
38024 }
38025
38026
38027 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38028 PyObject *resultobj = 0;
38029 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38030 bool result;
38031 void *argp1 = 0 ;
38032 int res1 = 0 ;
38033 PyObject *swig_obj[1] ;
38034
38035 if (!args) SWIG_fail;
38036 swig_obj[0] = args;
38037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38038 if (!SWIG_IsOK(res1)) {
38039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38040 }
38041 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38042 {
38043 PyThreadState* __tstate = wxPyBeginAllowThreads();
38044 result = (bool)(arg1)->GetShowHidden();
38045 wxPyEndAllowThreads(__tstate);
38046 if (PyErr_Occurred()) SWIG_fail;
38047 }
38048 {
38049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38050 }
38051 return resultobj;
38052 fail:
38053 return NULL;
38054 }
38055
38056
38057 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38058 PyObject *resultobj = 0;
38059 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38060 wxString result;
38061 void *argp1 = 0 ;
38062 int res1 = 0 ;
38063 PyObject *swig_obj[1] ;
38064
38065 if (!args) SWIG_fail;
38066 swig_obj[0] = args;
38067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38068 if (!SWIG_IsOK(res1)) {
38069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38070 }
38071 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38072 {
38073 PyThreadState* __tstate = wxPyBeginAllowThreads();
38074 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38075 wxPyEndAllowThreads(__tstate);
38076 if (PyErr_Occurred()) SWIG_fail;
38077 }
38078 {
38079 #if wxUSE_UNICODE
38080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38081 #else
38082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38083 #endif
38084 }
38085 return resultobj;
38086 fail:
38087 return NULL;
38088 }
38089
38090
38091 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38092 PyObject *resultobj = 0;
38093 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38094 wxString *arg2 = 0 ;
38095 void *argp1 = 0 ;
38096 int res1 = 0 ;
38097 bool temp2 = false ;
38098 PyObject * obj0 = 0 ;
38099 PyObject * obj1 = 0 ;
38100 char * kwnames[] = {
38101 (char *) "self",(char *) "filter", NULL
38102 };
38103
38104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38106 if (!SWIG_IsOK(res1)) {
38107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38108 }
38109 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38110 {
38111 arg2 = wxString_in_helper(obj1);
38112 if (arg2 == NULL) SWIG_fail;
38113 temp2 = true;
38114 }
38115 {
38116 PyThreadState* __tstate = wxPyBeginAllowThreads();
38117 (arg1)->SetFilter((wxString const &)*arg2);
38118 wxPyEndAllowThreads(__tstate);
38119 if (PyErr_Occurred()) SWIG_fail;
38120 }
38121 resultobj = SWIG_Py_Void();
38122 {
38123 if (temp2)
38124 delete arg2;
38125 }
38126 return resultobj;
38127 fail:
38128 {
38129 if (temp2)
38130 delete arg2;
38131 }
38132 return NULL;
38133 }
38134
38135
38136 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38137 PyObject *resultobj = 0;
38138 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38139 int result;
38140 void *argp1 = 0 ;
38141 int res1 = 0 ;
38142 PyObject *swig_obj[1] ;
38143
38144 if (!args) SWIG_fail;
38145 swig_obj[0] = args;
38146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38147 if (!SWIG_IsOK(res1)) {
38148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38149 }
38150 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38151 {
38152 PyThreadState* __tstate = wxPyBeginAllowThreads();
38153 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38154 wxPyEndAllowThreads(__tstate);
38155 if (PyErr_Occurred()) SWIG_fail;
38156 }
38157 resultobj = SWIG_From_int(static_cast< int >(result));
38158 return resultobj;
38159 fail:
38160 return NULL;
38161 }
38162
38163
38164 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38165 PyObject *resultobj = 0;
38166 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38167 int arg2 ;
38168 void *argp1 = 0 ;
38169 int res1 = 0 ;
38170 int val2 ;
38171 int ecode2 = 0 ;
38172 PyObject * obj0 = 0 ;
38173 PyObject * obj1 = 0 ;
38174 char * kwnames[] = {
38175 (char *) "self",(char *) "n", NULL
38176 };
38177
38178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38180 if (!SWIG_IsOK(res1)) {
38181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38182 }
38183 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38184 ecode2 = SWIG_AsVal_int(obj1, &val2);
38185 if (!SWIG_IsOK(ecode2)) {
38186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38187 }
38188 arg2 = static_cast< int >(val2);
38189 {
38190 PyThreadState* __tstate = wxPyBeginAllowThreads();
38191 (arg1)->SetFilterIndex(arg2);
38192 wxPyEndAllowThreads(__tstate);
38193 if (PyErr_Occurred()) SWIG_fail;
38194 }
38195 resultobj = SWIG_Py_Void();
38196 return resultobj;
38197 fail:
38198 return NULL;
38199 }
38200
38201
38202 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38203 PyObject *resultobj = 0;
38204 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38205 wxTreeItemId result;
38206 void *argp1 = 0 ;
38207 int res1 = 0 ;
38208 PyObject *swig_obj[1] ;
38209
38210 if (!args) SWIG_fail;
38211 swig_obj[0] = args;
38212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38213 if (!SWIG_IsOK(res1)) {
38214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38215 }
38216 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38217 {
38218 PyThreadState* __tstate = wxPyBeginAllowThreads();
38219 result = (arg1)->GetRootId();
38220 wxPyEndAllowThreads(__tstate);
38221 if (PyErr_Occurred()) SWIG_fail;
38222 }
38223 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38224 return resultobj;
38225 fail:
38226 return NULL;
38227 }
38228
38229
38230 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38231 PyObject *resultobj = 0;
38232 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38233 wxPyTreeCtrl *result = 0 ;
38234 void *argp1 = 0 ;
38235 int res1 = 0 ;
38236 PyObject *swig_obj[1] ;
38237
38238 if (!args) SWIG_fail;
38239 swig_obj[0] = args;
38240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38241 if (!SWIG_IsOK(res1)) {
38242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38243 }
38244 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38245 {
38246 PyThreadState* __tstate = wxPyBeginAllowThreads();
38247 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38248 wxPyEndAllowThreads(__tstate);
38249 if (PyErr_Occurred()) SWIG_fail;
38250 }
38251 {
38252 resultobj = wxPyMake_wxObject(result, 0);
38253 }
38254 return resultobj;
38255 fail:
38256 return NULL;
38257 }
38258
38259
38260 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38261 PyObject *resultobj = 0;
38262 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38263 wxDirFilterListCtrl *result = 0 ;
38264 void *argp1 = 0 ;
38265 int res1 = 0 ;
38266 PyObject *swig_obj[1] ;
38267
38268 if (!args) SWIG_fail;
38269 swig_obj[0] = args;
38270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38271 if (!SWIG_IsOK(res1)) {
38272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38273 }
38274 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38275 {
38276 PyThreadState* __tstate = wxPyBeginAllowThreads();
38277 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38278 wxPyEndAllowThreads(__tstate);
38279 if (PyErr_Occurred()) SWIG_fail;
38280 }
38281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38282 return resultobj;
38283 fail:
38284 return NULL;
38285 }
38286
38287
38288 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38289 PyObject *resultobj = 0;
38290 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38291 wxTreeItemId arg2 ;
38292 wxString *arg3 = 0 ;
38293 bool *arg4 = 0 ;
38294 wxTreeItemId result;
38295 void *argp1 = 0 ;
38296 int res1 = 0 ;
38297 void *argp2 ;
38298 int res2 = 0 ;
38299 bool temp3 = false ;
38300 bool temp4 ;
38301 int res4 = SWIG_TMPOBJ ;
38302 PyObject * obj0 = 0 ;
38303 PyObject * obj1 = 0 ;
38304 PyObject * obj2 = 0 ;
38305 char * kwnames[] = {
38306 (char *) "self",(char *) "parentId",(char *) "path", NULL
38307 };
38308
38309 arg4 = &temp4;
38310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38312 if (!SWIG_IsOK(res1)) {
38313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38314 }
38315 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38316 {
38317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38318 if (!SWIG_IsOK(res2)) {
38319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38320 }
38321 if (!argp2) {
38322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38323 } else {
38324 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38325 arg2 = *temp;
38326 if (SWIG_IsNewObj(res2)) delete temp;
38327 }
38328 }
38329 {
38330 arg3 = wxString_in_helper(obj2);
38331 if (arg3 == NULL) SWIG_fail;
38332 temp3 = true;
38333 }
38334 {
38335 PyThreadState* __tstate = wxPyBeginAllowThreads();
38336 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38337 wxPyEndAllowThreads(__tstate);
38338 if (PyErr_Occurred()) SWIG_fail;
38339 }
38340 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38341 if (SWIG_IsTmpObj(res4)) {
38342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38343 } else {
38344 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38345 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38346 }
38347 {
38348 if (temp3)
38349 delete arg3;
38350 }
38351 return resultobj;
38352 fail:
38353 {
38354 if (temp3)
38355 delete arg3;
38356 }
38357 return NULL;
38358 }
38359
38360
38361 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38362 PyObject *resultobj = 0;
38363 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38364 void *argp1 = 0 ;
38365 int res1 = 0 ;
38366 PyObject *swig_obj[1] ;
38367
38368 if (!args) SWIG_fail;
38369 swig_obj[0] = args;
38370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38371 if (!SWIG_IsOK(res1)) {
38372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38373 }
38374 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38375 {
38376 PyThreadState* __tstate = wxPyBeginAllowThreads();
38377 (arg1)->DoResize();
38378 wxPyEndAllowThreads(__tstate);
38379 if (PyErr_Occurred()) SWIG_fail;
38380 }
38381 resultobj = SWIG_Py_Void();
38382 return resultobj;
38383 fail:
38384 return NULL;
38385 }
38386
38387
38388 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38389 PyObject *resultobj = 0;
38390 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38391 void *argp1 = 0 ;
38392 int res1 = 0 ;
38393 PyObject *swig_obj[1] ;
38394
38395 if (!args) SWIG_fail;
38396 swig_obj[0] = args;
38397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38398 if (!SWIG_IsOK(res1)) {
38399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38400 }
38401 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38402 {
38403 PyThreadState* __tstate = wxPyBeginAllowThreads();
38404 (arg1)->ReCreateTree();
38405 wxPyEndAllowThreads(__tstate);
38406 if (PyErr_Occurred()) SWIG_fail;
38407 }
38408 resultobj = SWIG_Py_Void();
38409 return resultobj;
38410 fail:
38411 return NULL;
38412 }
38413
38414
38415 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38416 PyObject *obj;
38417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38418 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38419 return SWIG_Py_Void();
38420 }
38421
38422 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38423 return SWIG_Python_InitShadowInstance(args);
38424 }
38425
38426 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38427 PyObject *resultobj = 0;
38428 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38429 int arg2 = (int) (int)-1 ;
38430 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38431 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38432 wxSize const &arg4_defvalue = wxDefaultSize ;
38433 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38434 long arg5 = (long) 0 ;
38435 wxDirFilterListCtrl *result = 0 ;
38436 void *argp1 = 0 ;
38437 int res1 = 0 ;
38438 int val2 ;
38439 int ecode2 = 0 ;
38440 wxPoint temp3 ;
38441 wxSize temp4 ;
38442 long val5 ;
38443 int ecode5 = 0 ;
38444 PyObject * obj0 = 0 ;
38445 PyObject * obj1 = 0 ;
38446 PyObject * obj2 = 0 ;
38447 PyObject * obj3 = 0 ;
38448 PyObject * obj4 = 0 ;
38449 char * kwnames[] = {
38450 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38451 };
38452
38453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38455 if (!SWIG_IsOK(res1)) {
38456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38457 }
38458 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38459 if (obj1) {
38460 ecode2 = SWIG_AsVal_int(obj1, &val2);
38461 if (!SWIG_IsOK(ecode2)) {
38462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38463 }
38464 arg2 = static_cast< int >(val2);
38465 }
38466 if (obj2) {
38467 {
38468 arg3 = &temp3;
38469 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38470 }
38471 }
38472 if (obj3) {
38473 {
38474 arg4 = &temp4;
38475 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38476 }
38477 }
38478 if (obj4) {
38479 ecode5 = SWIG_AsVal_long(obj4, &val5);
38480 if (!SWIG_IsOK(ecode5)) {
38481 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38482 }
38483 arg5 = static_cast< long >(val5);
38484 }
38485 {
38486 if (!wxPyCheckForApp()) SWIG_fail;
38487 PyThreadState* __tstate = wxPyBeginAllowThreads();
38488 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38489 wxPyEndAllowThreads(__tstate);
38490 if (PyErr_Occurred()) SWIG_fail;
38491 }
38492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38493 return resultobj;
38494 fail:
38495 return NULL;
38496 }
38497
38498
38499 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38500 PyObject *resultobj = 0;
38501 wxDirFilterListCtrl *result = 0 ;
38502
38503 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38504 {
38505 if (!wxPyCheckForApp()) SWIG_fail;
38506 PyThreadState* __tstate = wxPyBeginAllowThreads();
38507 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38508 wxPyEndAllowThreads(__tstate);
38509 if (PyErr_Occurred()) SWIG_fail;
38510 }
38511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38512 return resultobj;
38513 fail:
38514 return NULL;
38515 }
38516
38517
38518 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38519 PyObject *resultobj = 0;
38520 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38521 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38522 int arg3 = (int) (int)-1 ;
38523 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38524 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38525 wxSize const &arg5_defvalue = wxDefaultSize ;
38526 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38527 long arg6 = (long) 0 ;
38528 bool result;
38529 void *argp1 = 0 ;
38530 int res1 = 0 ;
38531 void *argp2 = 0 ;
38532 int res2 = 0 ;
38533 int val3 ;
38534 int ecode3 = 0 ;
38535 wxPoint temp4 ;
38536 wxSize temp5 ;
38537 long val6 ;
38538 int ecode6 = 0 ;
38539 PyObject * obj0 = 0 ;
38540 PyObject * obj1 = 0 ;
38541 PyObject * obj2 = 0 ;
38542 PyObject * obj3 = 0 ;
38543 PyObject * obj4 = 0 ;
38544 PyObject * obj5 = 0 ;
38545 char * kwnames[] = {
38546 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38547 };
38548
38549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38551 if (!SWIG_IsOK(res1)) {
38552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38553 }
38554 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38555 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38556 if (!SWIG_IsOK(res2)) {
38557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38558 }
38559 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38560 if (obj2) {
38561 ecode3 = SWIG_AsVal_int(obj2, &val3);
38562 if (!SWIG_IsOK(ecode3)) {
38563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38564 }
38565 arg3 = static_cast< int >(val3);
38566 }
38567 if (obj3) {
38568 {
38569 arg4 = &temp4;
38570 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38571 }
38572 }
38573 if (obj4) {
38574 {
38575 arg5 = &temp5;
38576 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38577 }
38578 }
38579 if (obj5) {
38580 ecode6 = SWIG_AsVal_long(obj5, &val6);
38581 if (!SWIG_IsOK(ecode6)) {
38582 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38583 }
38584 arg6 = static_cast< long >(val6);
38585 }
38586 {
38587 PyThreadState* __tstate = wxPyBeginAllowThreads();
38588 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38589 wxPyEndAllowThreads(__tstate);
38590 if (PyErr_Occurred()) SWIG_fail;
38591 }
38592 {
38593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38594 }
38595 return resultobj;
38596 fail:
38597 return NULL;
38598 }
38599
38600
38601 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38602 PyObject *resultobj = 0;
38603 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38604 wxString *arg2 = 0 ;
38605 int arg3 ;
38606 void *argp1 = 0 ;
38607 int res1 = 0 ;
38608 bool temp2 = false ;
38609 int val3 ;
38610 int ecode3 = 0 ;
38611 PyObject * obj0 = 0 ;
38612 PyObject * obj1 = 0 ;
38613 PyObject * obj2 = 0 ;
38614 char * kwnames[] = {
38615 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38616 };
38617
38618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38620 if (!SWIG_IsOK(res1)) {
38621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38622 }
38623 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38624 {
38625 arg2 = wxString_in_helper(obj1);
38626 if (arg2 == NULL) SWIG_fail;
38627 temp2 = true;
38628 }
38629 ecode3 = SWIG_AsVal_int(obj2, &val3);
38630 if (!SWIG_IsOK(ecode3)) {
38631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38632 }
38633 arg3 = static_cast< int >(val3);
38634 {
38635 PyThreadState* __tstate = wxPyBeginAllowThreads();
38636 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38637 wxPyEndAllowThreads(__tstate);
38638 if (PyErr_Occurred()) SWIG_fail;
38639 }
38640 resultobj = SWIG_Py_Void();
38641 {
38642 if (temp2)
38643 delete arg2;
38644 }
38645 return resultobj;
38646 fail:
38647 {
38648 if (temp2)
38649 delete arg2;
38650 }
38651 return NULL;
38652 }
38653
38654
38655 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38656 PyObject *obj;
38657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38658 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38659 return SWIG_Py_Void();
38660 }
38661
38662 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38663 return SWIG_Python_InitShadowInstance(args);
38664 }
38665
38666 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38667 PyObject *resultobj = 0;
38668 wxWindow *arg1 = (wxWindow *) 0 ;
38669 int arg2 = (int) (int)-1 ;
38670 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38671 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38672 wxSize const &arg4_defvalue = wxDefaultSize ;
38673 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38674 long arg5 = (long) 0 ;
38675 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38676 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38677 wxString const &arg7_defvalue = wxPyControlNameStr ;
38678 wxString *arg7 = (wxString *) &arg7_defvalue ;
38679 wxPyControl *result = 0 ;
38680 void *argp1 = 0 ;
38681 int res1 = 0 ;
38682 int val2 ;
38683 int ecode2 = 0 ;
38684 wxPoint temp3 ;
38685 wxSize temp4 ;
38686 long val5 ;
38687 int ecode5 = 0 ;
38688 void *argp6 = 0 ;
38689 int res6 = 0 ;
38690 bool temp7 = false ;
38691 PyObject * obj0 = 0 ;
38692 PyObject * obj1 = 0 ;
38693 PyObject * obj2 = 0 ;
38694 PyObject * obj3 = 0 ;
38695 PyObject * obj4 = 0 ;
38696 PyObject * obj5 = 0 ;
38697 PyObject * obj6 = 0 ;
38698 char * kwnames[] = {
38699 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38700 };
38701
38702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38704 if (!SWIG_IsOK(res1)) {
38705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38706 }
38707 arg1 = reinterpret_cast< wxWindow * >(argp1);
38708 if (obj1) {
38709 ecode2 = SWIG_AsVal_int(obj1, &val2);
38710 if (!SWIG_IsOK(ecode2)) {
38711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38712 }
38713 arg2 = static_cast< int >(val2);
38714 }
38715 if (obj2) {
38716 {
38717 arg3 = &temp3;
38718 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38719 }
38720 }
38721 if (obj3) {
38722 {
38723 arg4 = &temp4;
38724 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38725 }
38726 }
38727 if (obj4) {
38728 ecode5 = SWIG_AsVal_long(obj4, &val5);
38729 if (!SWIG_IsOK(ecode5)) {
38730 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38731 }
38732 arg5 = static_cast< long >(val5);
38733 }
38734 if (obj5) {
38735 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38736 if (!SWIG_IsOK(res6)) {
38737 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38738 }
38739 if (!argp6) {
38740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38741 }
38742 arg6 = reinterpret_cast< wxValidator * >(argp6);
38743 }
38744 if (obj6) {
38745 {
38746 arg7 = wxString_in_helper(obj6);
38747 if (arg7 == NULL) SWIG_fail;
38748 temp7 = true;
38749 }
38750 }
38751 {
38752 if (!wxPyCheckForApp()) SWIG_fail;
38753 PyThreadState* __tstate = wxPyBeginAllowThreads();
38754 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38755 wxPyEndAllowThreads(__tstate);
38756 if (PyErr_Occurred()) SWIG_fail;
38757 }
38758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38759 {
38760 if (temp7)
38761 delete arg7;
38762 }
38763 return resultobj;
38764 fail:
38765 {
38766 if (temp7)
38767 delete arg7;
38768 }
38769 return NULL;
38770 }
38771
38772
38773 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38774 PyObject *resultobj = 0;
38775 wxPyControl *result = 0 ;
38776
38777 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38778 {
38779 if (!wxPyCheckForApp()) SWIG_fail;
38780 PyThreadState* __tstate = wxPyBeginAllowThreads();
38781 result = (wxPyControl *)new wxPyControl();
38782 wxPyEndAllowThreads(__tstate);
38783 if (PyErr_Occurred()) SWIG_fail;
38784 }
38785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38786 return resultobj;
38787 fail:
38788 return NULL;
38789 }
38790
38791
38792 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38793 PyObject *resultobj = 0;
38794 wxPyControl *arg1 = (wxPyControl *) 0 ;
38795 PyObject *arg2 = (PyObject *) 0 ;
38796 PyObject *arg3 = (PyObject *) 0 ;
38797 void *argp1 = 0 ;
38798 int res1 = 0 ;
38799 PyObject * obj0 = 0 ;
38800 PyObject * obj1 = 0 ;
38801 PyObject * obj2 = 0 ;
38802 char * kwnames[] = {
38803 (char *) "self",(char *) "self",(char *) "_class", NULL
38804 };
38805
38806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38808 if (!SWIG_IsOK(res1)) {
38809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38810 }
38811 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38812 arg2 = obj1;
38813 arg3 = obj2;
38814 {
38815 PyThreadState* __tstate = wxPyBeginAllowThreads();
38816 (arg1)->_setCallbackInfo(arg2,arg3);
38817 wxPyEndAllowThreads(__tstate);
38818 if (PyErr_Occurred()) SWIG_fail;
38819 }
38820 resultobj = SWIG_Py_Void();
38821 return resultobj;
38822 fail:
38823 return NULL;
38824 }
38825
38826
38827 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38828 PyObject *resultobj = 0;
38829 wxPyControl *arg1 = (wxPyControl *) 0 ;
38830 wxDC *arg2 = (wxDC *) 0 ;
38831 bool result;
38832 void *argp1 = 0 ;
38833 int res1 = 0 ;
38834 void *argp2 = 0 ;
38835 int res2 = 0 ;
38836 PyObject * obj0 = 0 ;
38837 PyObject * obj1 = 0 ;
38838 char * kwnames[] = {
38839 (char *) "self",(char *) "dc", NULL
38840 };
38841
38842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38844 if (!SWIG_IsOK(res1)) {
38845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38846 }
38847 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38849 if (!SWIG_IsOK(res2)) {
38850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38851 }
38852 arg2 = reinterpret_cast< wxDC * >(argp2);
38853 {
38854 PyThreadState* __tstate = wxPyBeginAllowThreads();
38855 result = (bool)(arg1)->DoEraseBackground(arg2);
38856 wxPyEndAllowThreads(__tstate);
38857 if (PyErr_Occurred()) SWIG_fail;
38858 }
38859 {
38860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38861 }
38862 return resultobj;
38863 fail:
38864 return NULL;
38865 }
38866
38867
38868 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38869 PyObject *resultobj = 0;
38870 wxPyControl *arg1 = (wxPyControl *) 0 ;
38871 int arg2 ;
38872 int arg3 ;
38873 int arg4 ;
38874 int arg5 ;
38875 void *argp1 = 0 ;
38876 int res1 = 0 ;
38877 int val2 ;
38878 int ecode2 = 0 ;
38879 int val3 ;
38880 int ecode3 = 0 ;
38881 int val4 ;
38882 int ecode4 = 0 ;
38883 int val5 ;
38884 int ecode5 = 0 ;
38885 PyObject * obj0 = 0 ;
38886 PyObject * obj1 = 0 ;
38887 PyObject * obj2 = 0 ;
38888 PyObject * obj3 = 0 ;
38889 PyObject * obj4 = 0 ;
38890 char * kwnames[] = {
38891 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38892 };
38893
38894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38896 if (!SWIG_IsOK(res1)) {
38897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38898 }
38899 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38900 ecode2 = SWIG_AsVal_int(obj1, &val2);
38901 if (!SWIG_IsOK(ecode2)) {
38902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38903 }
38904 arg2 = static_cast< int >(val2);
38905 ecode3 = SWIG_AsVal_int(obj2, &val3);
38906 if (!SWIG_IsOK(ecode3)) {
38907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38908 }
38909 arg3 = static_cast< int >(val3);
38910 ecode4 = SWIG_AsVal_int(obj3, &val4);
38911 if (!SWIG_IsOK(ecode4)) {
38912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38913 }
38914 arg4 = static_cast< int >(val4);
38915 ecode5 = SWIG_AsVal_int(obj4, &val5);
38916 if (!SWIG_IsOK(ecode5)) {
38917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38918 }
38919 arg5 = static_cast< int >(val5);
38920 {
38921 PyThreadState* __tstate = wxPyBeginAllowThreads();
38922 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38923 wxPyEndAllowThreads(__tstate);
38924 if (PyErr_Occurred()) SWIG_fail;
38925 }
38926 resultobj = SWIG_Py_Void();
38927 return resultobj;
38928 fail:
38929 return NULL;
38930 }
38931
38932
38933 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38934 PyObject *resultobj = 0;
38935 wxPyControl *arg1 = (wxPyControl *) 0 ;
38936 int arg2 ;
38937 int arg3 ;
38938 int arg4 ;
38939 int arg5 ;
38940 int arg6 = (int) wxSIZE_AUTO ;
38941 void *argp1 = 0 ;
38942 int res1 = 0 ;
38943 int val2 ;
38944 int ecode2 = 0 ;
38945 int val3 ;
38946 int ecode3 = 0 ;
38947 int val4 ;
38948 int ecode4 = 0 ;
38949 int val5 ;
38950 int ecode5 = 0 ;
38951 int val6 ;
38952 int ecode6 = 0 ;
38953 PyObject * obj0 = 0 ;
38954 PyObject * obj1 = 0 ;
38955 PyObject * obj2 = 0 ;
38956 PyObject * obj3 = 0 ;
38957 PyObject * obj4 = 0 ;
38958 PyObject * obj5 = 0 ;
38959 char * kwnames[] = {
38960 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38961 };
38962
38963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38965 if (!SWIG_IsOK(res1)) {
38966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38967 }
38968 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38969 ecode2 = SWIG_AsVal_int(obj1, &val2);
38970 if (!SWIG_IsOK(ecode2)) {
38971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38972 }
38973 arg2 = static_cast< int >(val2);
38974 ecode3 = SWIG_AsVal_int(obj2, &val3);
38975 if (!SWIG_IsOK(ecode3)) {
38976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38977 }
38978 arg3 = static_cast< int >(val3);
38979 ecode4 = SWIG_AsVal_int(obj3, &val4);
38980 if (!SWIG_IsOK(ecode4)) {
38981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38982 }
38983 arg4 = static_cast< int >(val4);
38984 ecode5 = SWIG_AsVal_int(obj4, &val5);
38985 if (!SWIG_IsOK(ecode5)) {
38986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38987 }
38988 arg5 = static_cast< int >(val5);
38989 if (obj5) {
38990 ecode6 = SWIG_AsVal_int(obj5, &val6);
38991 if (!SWIG_IsOK(ecode6)) {
38992 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38993 }
38994 arg6 = static_cast< int >(val6);
38995 }
38996 {
38997 PyThreadState* __tstate = wxPyBeginAllowThreads();
38998 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38999 wxPyEndAllowThreads(__tstate);
39000 if (PyErr_Occurred()) SWIG_fail;
39001 }
39002 resultobj = SWIG_Py_Void();
39003 return resultobj;
39004 fail:
39005 return NULL;
39006 }
39007
39008
39009 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39010 PyObject *resultobj = 0;
39011 wxPyControl *arg1 = (wxPyControl *) 0 ;
39012 int arg2 ;
39013 int arg3 ;
39014 void *argp1 = 0 ;
39015 int res1 = 0 ;
39016 int val2 ;
39017 int ecode2 = 0 ;
39018 int val3 ;
39019 int ecode3 = 0 ;
39020 PyObject * obj0 = 0 ;
39021 PyObject * obj1 = 0 ;
39022 PyObject * obj2 = 0 ;
39023 char * kwnames[] = {
39024 (char *) "self",(char *) "width",(char *) "height", NULL
39025 };
39026
39027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39029 if (!SWIG_IsOK(res1)) {
39030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39031 }
39032 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39033 ecode2 = SWIG_AsVal_int(obj1, &val2);
39034 if (!SWIG_IsOK(ecode2)) {
39035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39036 }
39037 arg2 = static_cast< int >(val2);
39038 ecode3 = SWIG_AsVal_int(obj2, &val3);
39039 if (!SWIG_IsOK(ecode3)) {
39040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39041 }
39042 arg3 = static_cast< int >(val3);
39043 {
39044 PyThreadState* __tstate = wxPyBeginAllowThreads();
39045 (arg1)->DoSetClientSize(arg2,arg3);
39046 wxPyEndAllowThreads(__tstate);
39047 if (PyErr_Occurred()) SWIG_fail;
39048 }
39049 resultobj = SWIG_Py_Void();
39050 return resultobj;
39051 fail:
39052 return NULL;
39053 }
39054
39055
39056 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39057 PyObject *resultobj = 0;
39058 wxPyControl *arg1 = (wxPyControl *) 0 ;
39059 int arg2 ;
39060 int arg3 ;
39061 void *argp1 = 0 ;
39062 int res1 = 0 ;
39063 int val2 ;
39064 int ecode2 = 0 ;
39065 int val3 ;
39066 int ecode3 = 0 ;
39067 PyObject * obj0 = 0 ;
39068 PyObject * obj1 = 0 ;
39069 PyObject * obj2 = 0 ;
39070 char * kwnames[] = {
39071 (char *) "self",(char *) "x",(char *) "y", NULL
39072 };
39073
39074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39076 if (!SWIG_IsOK(res1)) {
39077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39078 }
39079 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39080 ecode2 = SWIG_AsVal_int(obj1, &val2);
39081 if (!SWIG_IsOK(ecode2)) {
39082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39083 }
39084 arg2 = static_cast< int >(val2);
39085 ecode3 = SWIG_AsVal_int(obj2, &val3);
39086 if (!SWIG_IsOK(ecode3)) {
39087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39088 }
39089 arg3 = static_cast< int >(val3);
39090 {
39091 PyThreadState* __tstate = wxPyBeginAllowThreads();
39092 (arg1)->DoSetVirtualSize(arg2,arg3);
39093 wxPyEndAllowThreads(__tstate);
39094 if (PyErr_Occurred()) SWIG_fail;
39095 }
39096 resultobj = SWIG_Py_Void();
39097 return resultobj;
39098 fail:
39099 return NULL;
39100 }
39101
39102
39103 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39104 PyObject *resultobj = 0;
39105 wxPyControl *arg1 = (wxPyControl *) 0 ;
39106 int *arg2 = (int *) 0 ;
39107 int *arg3 = (int *) 0 ;
39108 void *argp1 = 0 ;
39109 int res1 = 0 ;
39110 int temp2 ;
39111 int res2 = SWIG_TMPOBJ ;
39112 int temp3 ;
39113 int res3 = SWIG_TMPOBJ ;
39114 PyObject *swig_obj[1] ;
39115
39116 arg2 = &temp2;
39117 arg3 = &temp3;
39118 if (!args) SWIG_fail;
39119 swig_obj[0] = args;
39120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39121 if (!SWIG_IsOK(res1)) {
39122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39123 }
39124 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39125 {
39126 PyThreadState* __tstate = wxPyBeginAllowThreads();
39127 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39128 wxPyEndAllowThreads(__tstate);
39129 if (PyErr_Occurred()) SWIG_fail;
39130 }
39131 resultobj = SWIG_Py_Void();
39132 if (SWIG_IsTmpObj(res2)) {
39133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39134 } else {
39135 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39137 }
39138 if (SWIG_IsTmpObj(res3)) {
39139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39140 } else {
39141 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39143 }
39144 return resultobj;
39145 fail:
39146 return NULL;
39147 }
39148
39149
39150 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39151 PyObject *resultobj = 0;
39152 wxPyControl *arg1 = (wxPyControl *) 0 ;
39153 int *arg2 = (int *) 0 ;
39154 int *arg3 = (int *) 0 ;
39155 void *argp1 = 0 ;
39156 int res1 = 0 ;
39157 int temp2 ;
39158 int res2 = SWIG_TMPOBJ ;
39159 int temp3 ;
39160 int res3 = SWIG_TMPOBJ ;
39161 PyObject *swig_obj[1] ;
39162
39163 arg2 = &temp2;
39164 arg3 = &temp3;
39165 if (!args) SWIG_fail;
39166 swig_obj[0] = args;
39167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39168 if (!SWIG_IsOK(res1)) {
39169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39170 }
39171 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39172 {
39173 PyThreadState* __tstate = wxPyBeginAllowThreads();
39174 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39175 wxPyEndAllowThreads(__tstate);
39176 if (PyErr_Occurred()) SWIG_fail;
39177 }
39178 resultobj = SWIG_Py_Void();
39179 if (SWIG_IsTmpObj(res2)) {
39180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39181 } else {
39182 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39184 }
39185 if (SWIG_IsTmpObj(res3)) {
39186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39187 } else {
39188 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39190 }
39191 return resultobj;
39192 fail:
39193 return NULL;
39194 }
39195
39196
39197 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39198 PyObject *resultobj = 0;
39199 wxPyControl *arg1 = (wxPyControl *) 0 ;
39200 int *arg2 = (int *) 0 ;
39201 int *arg3 = (int *) 0 ;
39202 void *argp1 = 0 ;
39203 int res1 = 0 ;
39204 int temp2 ;
39205 int res2 = SWIG_TMPOBJ ;
39206 int temp3 ;
39207 int res3 = SWIG_TMPOBJ ;
39208 PyObject *swig_obj[1] ;
39209
39210 arg2 = &temp2;
39211 arg3 = &temp3;
39212 if (!args) SWIG_fail;
39213 swig_obj[0] = args;
39214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39215 if (!SWIG_IsOK(res1)) {
39216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39217 }
39218 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39219 {
39220 PyThreadState* __tstate = wxPyBeginAllowThreads();
39221 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39222 wxPyEndAllowThreads(__tstate);
39223 if (PyErr_Occurred()) SWIG_fail;
39224 }
39225 resultobj = SWIG_Py_Void();
39226 if (SWIG_IsTmpObj(res2)) {
39227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39228 } else {
39229 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39231 }
39232 if (SWIG_IsTmpObj(res3)) {
39233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39234 } else {
39235 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39237 }
39238 return resultobj;
39239 fail:
39240 return NULL;
39241 }
39242
39243
39244 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39245 PyObject *resultobj = 0;
39246 wxPyControl *arg1 = (wxPyControl *) 0 ;
39247 wxSize result;
39248 void *argp1 = 0 ;
39249 int res1 = 0 ;
39250 PyObject *swig_obj[1] ;
39251
39252 if (!args) SWIG_fail;
39253 swig_obj[0] = args;
39254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39255 if (!SWIG_IsOK(res1)) {
39256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39257 }
39258 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39259 {
39260 PyThreadState* __tstate = wxPyBeginAllowThreads();
39261 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39262 wxPyEndAllowThreads(__tstate);
39263 if (PyErr_Occurred()) SWIG_fail;
39264 }
39265 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39266 return resultobj;
39267 fail:
39268 return NULL;
39269 }
39270
39271
39272 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39273 PyObject *resultobj = 0;
39274 wxPyControl *arg1 = (wxPyControl *) 0 ;
39275 wxSize result;
39276 void *argp1 = 0 ;
39277 int res1 = 0 ;
39278 PyObject *swig_obj[1] ;
39279
39280 if (!args) SWIG_fail;
39281 swig_obj[0] = args;
39282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39283 if (!SWIG_IsOK(res1)) {
39284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39285 }
39286 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39287 {
39288 PyThreadState* __tstate = wxPyBeginAllowThreads();
39289 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39290 wxPyEndAllowThreads(__tstate);
39291 if (PyErr_Occurred()) SWIG_fail;
39292 }
39293 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39294 return resultobj;
39295 fail:
39296 return NULL;
39297 }
39298
39299
39300 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39301 PyObject *resultobj = 0;
39302 wxPyControl *arg1 = (wxPyControl *) 0 ;
39303 SwigValueWrapper<wxVisualAttributes > result;
39304 void *argp1 = 0 ;
39305 int res1 = 0 ;
39306 PyObject *swig_obj[1] ;
39307
39308 if (!args) SWIG_fail;
39309 swig_obj[0] = args;
39310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39311 if (!SWIG_IsOK(res1)) {
39312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39313 }
39314 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39315 {
39316 PyThreadState* __tstate = wxPyBeginAllowThreads();
39317 result = (arg1)->GetDefaultAttributes();
39318 wxPyEndAllowThreads(__tstate);
39319 if (PyErr_Occurred()) SWIG_fail;
39320 }
39321 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39322 return resultobj;
39323 fail:
39324 return NULL;
39325 }
39326
39327
39328 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39329 PyObject *resultobj = 0;
39330 wxPyControl *arg1 = (wxPyControl *) 0 ;
39331 void *argp1 = 0 ;
39332 int res1 = 0 ;
39333 PyObject *swig_obj[1] ;
39334
39335 if (!args) SWIG_fail;
39336 swig_obj[0] = args;
39337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39338 if (!SWIG_IsOK(res1)) {
39339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39340 }
39341 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39342 {
39343 PyThreadState* __tstate = wxPyBeginAllowThreads();
39344 (arg1)->OnInternalIdle();
39345 wxPyEndAllowThreads(__tstate);
39346 if (PyErr_Occurred()) SWIG_fail;
39347 }
39348 resultobj = SWIG_Py_Void();
39349 return resultobj;
39350 fail:
39351 return NULL;
39352 }
39353
39354
39355 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39356 PyObject *obj;
39357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39358 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39359 return SWIG_Py_Void();
39360 }
39361
39362 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39363 return SWIG_Python_InitShadowInstance(args);
39364 }
39365
39366 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39367 PyObject *resultobj = 0;
39368 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39369 int arg2 = (int) 0 ;
39370 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39371 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39372 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39373 wxHelpEvent *result = 0 ;
39374 int val1 ;
39375 int ecode1 = 0 ;
39376 int val2 ;
39377 int ecode2 = 0 ;
39378 wxPoint temp3 ;
39379 int val4 ;
39380 int ecode4 = 0 ;
39381 PyObject * obj0 = 0 ;
39382 PyObject * obj1 = 0 ;
39383 PyObject * obj2 = 0 ;
39384 PyObject * obj3 = 0 ;
39385 char * kwnames[] = {
39386 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39387 };
39388
39389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39390 if (obj0) {
39391 ecode1 = SWIG_AsVal_int(obj0, &val1);
39392 if (!SWIG_IsOK(ecode1)) {
39393 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39394 }
39395 arg1 = static_cast< wxEventType >(val1);
39396 }
39397 if (obj1) {
39398 ecode2 = SWIG_AsVal_int(obj1, &val2);
39399 if (!SWIG_IsOK(ecode2)) {
39400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39401 }
39402 arg2 = static_cast< int >(val2);
39403 }
39404 if (obj2) {
39405 {
39406 arg3 = &temp3;
39407 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39408 }
39409 }
39410 if (obj3) {
39411 ecode4 = SWIG_AsVal_int(obj3, &val4);
39412 if (!SWIG_IsOK(ecode4)) {
39413 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39414 }
39415 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39416 }
39417 {
39418 PyThreadState* __tstate = wxPyBeginAllowThreads();
39419 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39420 wxPyEndAllowThreads(__tstate);
39421 if (PyErr_Occurred()) SWIG_fail;
39422 }
39423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39424 return resultobj;
39425 fail:
39426 return NULL;
39427 }
39428
39429
39430 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39431 PyObject *resultobj = 0;
39432 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39433 wxPoint result;
39434 void *argp1 = 0 ;
39435 int res1 = 0 ;
39436 PyObject *swig_obj[1] ;
39437
39438 if (!args) SWIG_fail;
39439 swig_obj[0] = args;
39440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39441 if (!SWIG_IsOK(res1)) {
39442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39443 }
39444 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39445 {
39446 PyThreadState* __tstate = wxPyBeginAllowThreads();
39447 result = ((wxHelpEvent const *)arg1)->GetPosition();
39448 wxPyEndAllowThreads(__tstate);
39449 if (PyErr_Occurred()) SWIG_fail;
39450 }
39451 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39452 return resultobj;
39453 fail:
39454 return NULL;
39455 }
39456
39457
39458 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39459 PyObject *resultobj = 0;
39460 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39461 wxPoint *arg2 = 0 ;
39462 void *argp1 = 0 ;
39463 int res1 = 0 ;
39464 wxPoint temp2 ;
39465 PyObject * obj0 = 0 ;
39466 PyObject * obj1 = 0 ;
39467 char * kwnames[] = {
39468 (char *) "self",(char *) "pos", NULL
39469 };
39470
39471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39473 if (!SWIG_IsOK(res1)) {
39474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39475 }
39476 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39477 {
39478 arg2 = &temp2;
39479 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39480 }
39481 {
39482 PyThreadState* __tstate = wxPyBeginAllowThreads();
39483 (arg1)->SetPosition((wxPoint const &)*arg2);
39484 wxPyEndAllowThreads(__tstate);
39485 if (PyErr_Occurred()) SWIG_fail;
39486 }
39487 resultobj = SWIG_Py_Void();
39488 return resultobj;
39489 fail:
39490 return NULL;
39491 }
39492
39493
39494 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39495 PyObject *resultobj = 0;
39496 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39497 wxString *result = 0 ;
39498 void *argp1 = 0 ;
39499 int res1 = 0 ;
39500 PyObject *swig_obj[1] ;
39501
39502 if (!args) SWIG_fail;
39503 swig_obj[0] = args;
39504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39505 if (!SWIG_IsOK(res1)) {
39506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39507 }
39508 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39509 {
39510 PyThreadState* __tstate = wxPyBeginAllowThreads();
39511 {
39512 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39513 result = (wxString *) &_result_ref;
39514 }
39515 wxPyEndAllowThreads(__tstate);
39516 if (PyErr_Occurred()) SWIG_fail;
39517 }
39518 {
39519 #if wxUSE_UNICODE
39520 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39521 #else
39522 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39523 #endif
39524 }
39525 return resultobj;
39526 fail:
39527 return NULL;
39528 }
39529
39530
39531 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39532 PyObject *resultobj = 0;
39533 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39534 wxString *arg2 = 0 ;
39535 void *argp1 = 0 ;
39536 int res1 = 0 ;
39537 bool temp2 = false ;
39538 PyObject * obj0 = 0 ;
39539 PyObject * obj1 = 0 ;
39540 char * kwnames[] = {
39541 (char *) "self",(char *) "link", NULL
39542 };
39543
39544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39546 if (!SWIG_IsOK(res1)) {
39547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39548 }
39549 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39550 {
39551 arg2 = wxString_in_helper(obj1);
39552 if (arg2 == NULL) SWIG_fail;
39553 temp2 = true;
39554 }
39555 {
39556 PyThreadState* __tstate = wxPyBeginAllowThreads();
39557 (arg1)->SetLink((wxString const &)*arg2);
39558 wxPyEndAllowThreads(__tstate);
39559 if (PyErr_Occurred()) SWIG_fail;
39560 }
39561 resultobj = SWIG_Py_Void();
39562 {
39563 if (temp2)
39564 delete arg2;
39565 }
39566 return resultobj;
39567 fail:
39568 {
39569 if (temp2)
39570 delete arg2;
39571 }
39572 return NULL;
39573 }
39574
39575
39576 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39577 PyObject *resultobj = 0;
39578 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39579 wxString *result = 0 ;
39580 void *argp1 = 0 ;
39581 int res1 = 0 ;
39582 PyObject *swig_obj[1] ;
39583
39584 if (!args) SWIG_fail;
39585 swig_obj[0] = args;
39586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39587 if (!SWIG_IsOK(res1)) {
39588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39589 }
39590 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39591 {
39592 PyThreadState* __tstate = wxPyBeginAllowThreads();
39593 {
39594 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39595 result = (wxString *) &_result_ref;
39596 }
39597 wxPyEndAllowThreads(__tstate);
39598 if (PyErr_Occurred()) SWIG_fail;
39599 }
39600 {
39601 #if wxUSE_UNICODE
39602 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39603 #else
39604 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39605 #endif
39606 }
39607 return resultobj;
39608 fail:
39609 return NULL;
39610 }
39611
39612
39613 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39614 PyObject *resultobj = 0;
39615 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39616 wxString *arg2 = 0 ;
39617 void *argp1 = 0 ;
39618 int res1 = 0 ;
39619 bool temp2 = false ;
39620 PyObject * obj0 = 0 ;
39621 PyObject * obj1 = 0 ;
39622 char * kwnames[] = {
39623 (char *) "self",(char *) "target", NULL
39624 };
39625
39626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39628 if (!SWIG_IsOK(res1)) {
39629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39630 }
39631 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39632 {
39633 arg2 = wxString_in_helper(obj1);
39634 if (arg2 == NULL) SWIG_fail;
39635 temp2 = true;
39636 }
39637 {
39638 PyThreadState* __tstate = wxPyBeginAllowThreads();
39639 (arg1)->SetTarget((wxString const &)*arg2);
39640 wxPyEndAllowThreads(__tstate);
39641 if (PyErr_Occurred()) SWIG_fail;
39642 }
39643 resultobj = SWIG_Py_Void();
39644 {
39645 if (temp2)
39646 delete arg2;
39647 }
39648 return resultobj;
39649 fail:
39650 {
39651 if (temp2)
39652 delete arg2;
39653 }
39654 return NULL;
39655 }
39656
39657
39658 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39659 PyObject *resultobj = 0;
39660 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39661 wxHelpEvent::Origin result;
39662 void *argp1 = 0 ;
39663 int res1 = 0 ;
39664 PyObject *swig_obj[1] ;
39665
39666 if (!args) SWIG_fail;
39667 swig_obj[0] = args;
39668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39669 if (!SWIG_IsOK(res1)) {
39670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39671 }
39672 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39673 {
39674 PyThreadState* __tstate = wxPyBeginAllowThreads();
39675 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39676 wxPyEndAllowThreads(__tstate);
39677 if (PyErr_Occurred()) SWIG_fail;
39678 }
39679 resultobj = SWIG_From_int(static_cast< int >(result));
39680 return resultobj;
39681 fail:
39682 return NULL;
39683 }
39684
39685
39686 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39687 PyObject *resultobj = 0;
39688 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39689 wxHelpEvent::Origin arg2 ;
39690 void *argp1 = 0 ;
39691 int res1 = 0 ;
39692 int val2 ;
39693 int ecode2 = 0 ;
39694 PyObject * obj0 = 0 ;
39695 PyObject * obj1 = 0 ;
39696 char * kwnames[] = {
39697 (char *) "self",(char *) "origin", NULL
39698 };
39699
39700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39702 if (!SWIG_IsOK(res1)) {
39703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39704 }
39705 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39706 ecode2 = SWIG_AsVal_int(obj1, &val2);
39707 if (!SWIG_IsOK(ecode2)) {
39708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39709 }
39710 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39711 {
39712 PyThreadState* __tstate = wxPyBeginAllowThreads();
39713 (arg1)->SetOrigin(arg2);
39714 wxPyEndAllowThreads(__tstate);
39715 if (PyErr_Occurred()) SWIG_fail;
39716 }
39717 resultobj = SWIG_Py_Void();
39718 return resultobj;
39719 fail:
39720 return NULL;
39721 }
39722
39723
39724 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39725 PyObject *obj;
39726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39727 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39728 return SWIG_Py_Void();
39729 }
39730
39731 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39732 return SWIG_Python_InitShadowInstance(args);
39733 }
39734
39735 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39736 PyObject *resultobj = 0;
39737 wxWindow *arg1 = (wxWindow *) NULL ;
39738 bool arg2 = (bool) true ;
39739 wxContextHelp *result = 0 ;
39740 void *argp1 = 0 ;
39741 int res1 = 0 ;
39742 bool val2 ;
39743 int ecode2 = 0 ;
39744 PyObject * obj0 = 0 ;
39745 PyObject * obj1 = 0 ;
39746 char * kwnames[] = {
39747 (char *) "window",(char *) "doNow", NULL
39748 };
39749
39750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39751 if (obj0) {
39752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39753 if (!SWIG_IsOK(res1)) {
39754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39755 }
39756 arg1 = reinterpret_cast< wxWindow * >(argp1);
39757 }
39758 if (obj1) {
39759 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39760 if (!SWIG_IsOK(ecode2)) {
39761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39762 }
39763 arg2 = static_cast< bool >(val2);
39764 }
39765 {
39766 if (!wxPyCheckForApp()) SWIG_fail;
39767 PyThreadState* __tstate = wxPyBeginAllowThreads();
39768 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39769 wxPyEndAllowThreads(__tstate);
39770 if (PyErr_Occurred()) SWIG_fail;
39771 }
39772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39773 return resultobj;
39774 fail:
39775 return NULL;
39776 }
39777
39778
39779 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39780 PyObject *resultobj = 0;
39781 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39782 void *argp1 = 0 ;
39783 int res1 = 0 ;
39784 PyObject *swig_obj[1] ;
39785
39786 if (!args) SWIG_fail;
39787 swig_obj[0] = args;
39788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39789 if (!SWIG_IsOK(res1)) {
39790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39791 }
39792 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39793 {
39794 PyThreadState* __tstate = wxPyBeginAllowThreads();
39795 delete arg1;
39796
39797 wxPyEndAllowThreads(__tstate);
39798 if (PyErr_Occurred()) SWIG_fail;
39799 }
39800 resultobj = SWIG_Py_Void();
39801 return resultobj;
39802 fail:
39803 return NULL;
39804 }
39805
39806
39807 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39808 PyObject *resultobj = 0;
39809 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39810 wxWindow *arg2 = (wxWindow *) NULL ;
39811 bool result;
39812 void *argp1 = 0 ;
39813 int res1 = 0 ;
39814 void *argp2 = 0 ;
39815 int res2 = 0 ;
39816 PyObject * obj0 = 0 ;
39817 PyObject * obj1 = 0 ;
39818 char * kwnames[] = {
39819 (char *) "self",(char *) "window", NULL
39820 };
39821
39822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39824 if (!SWIG_IsOK(res1)) {
39825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39826 }
39827 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39828 if (obj1) {
39829 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39830 if (!SWIG_IsOK(res2)) {
39831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39832 }
39833 arg2 = reinterpret_cast< wxWindow * >(argp2);
39834 }
39835 {
39836 PyThreadState* __tstate = wxPyBeginAllowThreads();
39837 result = (bool)(arg1)->BeginContextHelp(arg2);
39838 wxPyEndAllowThreads(__tstate);
39839 if (PyErr_Occurred()) SWIG_fail;
39840 }
39841 {
39842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39843 }
39844 return resultobj;
39845 fail:
39846 return NULL;
39847 }
39848
39849
39850 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39851 PyObject *resultobj = 0;
39852 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39853 bool result;
39854 void *argp1 = 0 ;
39855 int res1 = 0 ;
39856 PyObject *swig_obj[1] ;
39857
39858 if (!args) SWIG_fail;
39859 swig_obj[0] = args;
39860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39861 if (!SWIG_IsOK(res1)) {
39862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39863 }
39864 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39865 {
39866 PyThreadState* __tstate = wxPyBeginAllowThreads();
39867 result = (bool)(arg1)->EndContextHelp();
39868 wxPyEndAllowThreads(__tstate);
39869 if (PyErr_Occurred()) SWIG_fail;
39870 }
39871 {
39872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39873 }
39874 return resultobj;
39875 fail:
39876 return NULL;
39877 }
39878
39879
39880 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39881 PyObject *obj;
39882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39883 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39884 return SWIG_Py_Void();
39885 }
39886
39887 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39888 return SWIG_Python_InitShadowInstance(args);
39889 }
39890
39891 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39892 PyObject *resultobj = 0;
39893 wxWindow *arg1 = (wxWindow *) 0 ;
39894 int arg2 = (int) wxID_CONTEXT_HELP ;
39895 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39896 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39897 wxSize const &arg4_defvalue = wxDefaultSize ;
39898 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39899 long arg5 = (long) wxBU_AUTODRAW ;
39900 wxContextHelpButton *result = 0 ;
39901 void *argp1 = 0 ;
39902 int res1 = 0 ;
39903 int val2 ;
39904 int ecode2 = 0 ;
39905 wxPoint temp3 ;
39906 wxSize temp4 ;
39907 long val5 ;
39908 int ecode5 = 0 ;
39909 PyObject * obj0 = 0 ;
39910 PyObject * obj1 = 0 ;
39911 PyObject * obj2 = 0 ;
39912 PyObject * obj3 = 0 ;
39913 PyObject * obj4 = 0 ;
39914 char * kwnames[] = {
39915 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39916 };
39917
39918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39920 if (!SWIG_IsOK(res1)) {
39921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39922 }
39923 arg1 = reinterpret_cast< wxWindow * >(argp1);
39924 if (obj1) {
39925 ecode2 = SWIG_AsVal_int(obj1, &val2);
39926 if (!SWIG_IsOK(ecode2)) {
39927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39928 }
39929 arg2 = static_cast< int >(val2);
39930 }
39931 if (obj2) {
39932 {
39933 arg3 = &temp3;
39934 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39935 }
39936 }
39937 if (obj3) {
39938 {
39939 arg4 = &temp4;
39940 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39941 }
39942 }
39943 if (obj4) {
39944 ecode5 = SWIG_AsVal_long(obj4, &val5);
39945 if (!SWIG_IsOK(ecode5)) {
39946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39947 }
39948 arg5 = static_cast< long >(val5);
39949 }
39950 {
39951 if (!wxPyCheckForApp()) SWIG_fail;
39952 PyThreadState* __tstate = wxPyBeginAllowThreads();
39953 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39954 wxPyEndAllowThreads(__tstate);
39955 if (PyErr_Occurred()) SWIG_fail;
39956 }
39957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39958 return resultobj;
39959 fail:
39960 return NULL;
39961 }
39962
39963
39964 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39965 PyObject *obj;
39966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39967 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39968 return SWIG_Py_Void();
39969 }
39970
39971 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39972 return SWIG_Python_InitShadowInstance(args);
39973 }
39974
39975 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39976 PyObject *resultobj = 0;
39977 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39978 void *argp1 = 0 ;
39979 int res1 = 0 ;
39980 PyObject *swig_obj[1] ;
39981
39982 if (!args) SWIG_fail;
39983 swig_obj[0] = args;
39984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39985 if (!SWIG_IsOK(res1)) {
39986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39987 }
39988 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39989 {
39990 PyThreadState* __tstate = wxPyBeginAllowThreads();
39991 delete arg1;
39992
39993 wxPyEndAllowThreads(__tstate);
39994 if (PyErr_Occurred()) SWIG_fail;
39995 }
39996 resultobj = SWIG_Py_Void();
39997 return resultobj;
39998 fail:
39999 return NULL;
40000 }
40001
40002
40003 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40004 PyObject *resultobj = 0;
40005 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40006 wxHelpProvider *result = 0 ;
40007 int res1 = 0 ;
40008 PyObject * obj0 = 0 ;
40009 char * kwnames[] = {
40010 (char *) "helpProvider", NULL
40011 };
40012
40013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40014 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40015 if (!SWIG_IsOK(res1)) {
40016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40017 }
40018 {
40019 PyThreadState* __tstate = wxPyBeginAllowThreads();
40020 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40021 wxPyEndAllowThreads(__tstate);
40022 if (PyErr_Occurred()) SWIG_fail;
40023 }
40024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40025 return resultobj;
40026 fail:
40027 return NULL;
40028 }
40029
40030
40031 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40032 PyObject *resultobj = 0;
40033 wxHelpProvider *result = 0 ;
40034
40035 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40036 {
40037 PyThreadState* __tstate = wxPyBeginAllowThreads();
40038 result = (wxHelpProvider *)wxHelpProvider::Get();
40039 wxPyEndAllowThreads(__tstate);
40040 if (PyErr_Occurred()) SWIG_fail;
40041 }
40042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40043 return resultobj;
40044 fail:
40045 return NULL;
40046 }
40047
40048
40049 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40050 PyObject *resultobj = 0;
40051 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40052 wxWindow *arg2 = (wxWindow *) 0 ;
40053 wxString result;
40054 void *argp1 = 0 ;
40055 int res1 = 0 ;
40056 void *argp2 = 0 ;
40057 int res2 = 0 ;
40058 PyObject * obj0 = 0 ;
40059 PyObject * obj1 = 0 ;
40060 char * kwnames[] = {
40061 (char *) "self",(char *) "window", NULL
40062 };
40063
40064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40066 if (!SWIG_IsOK(res1)) {
40067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40068 }
40069 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40070 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40071 if (!SWIG_IsOK(res2)) {
40072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40073 }
40074 arg2 = reinterpret_cast< wxWindow * >(argp2);
40075 {
40076 PyThreadState* __tstate = wxPyBeginAllowThreads();
40077 result = (arg1)->GetHelp((wxWindow const *)arg2);
40078 wxPyEndAllowThreads(__tstate);
40079 if (PyErr_Occurred()) SWIG_fail;
40080 }
40081 {
40082 #if wxUSE_UNICODE
40083 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40084 #else
40085 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40086 #endif
40087 }
40088 return resultobj;
40089 fail:
40090 return NULL;
40091 }
40092
40093
40094 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40095 PyObject *resultobj = 0;
40096 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40097 wxWindow *arg2 = (wxWindow *) 0 ;
40098 bool result;
40099 void *argp1 = 0 ;
40100 int res1 = 0 ;
40101 void *argp2 = 0 ;
40102 int res2 = 0 ;
40103 PyObject * obj0 = 0 ;
40104 PyObject * obj1 = 0 ;
40105 char * kwnames[] = {
40106 (char *) "self",(char *) "window", NULL
40107 };
40108
40109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40111 if (!SWIG_IsOK(res1)) {
40112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40113 }
40114 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40115 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40116 if (!SWIG_IsOK(res2)) {
40117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40118 }
40119 arg2 = reinterpret_cast< wxWindow * >(argp2);
40120 {
40121 PyThreadState* __tstate = wxPyBeginAllowThreads();
40122 result = (bool)(arg1)->ShowHelp(arg2);
40123 wxPyEndAllowThreads(__tstate);
40124 if (PyErr_Occurred()) SWIG_fail;
40125 }
40126 {
40127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40128 }
40129 return resultobj;
40130 fail:
40131 return NULL;
40132 }
40133
40134
40135 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40136 PyObject *resultobj = 0;
40137 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40138 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40139 wxPoint *arg3 = 0 ;
40140 wxHelpEvent::Origin arg4 ;
40141 bool result;
40142 void *argp1 = 0 ;
40143 int res1 = 0 ;
40144 void *argp2 = 0 ;
40145 int res2 = 0 ;
40146 wxPoint temp3 ;
40147 int val4 ;
40148 int ecode4 = 0 ;
40149 PyObject * obj0 = 0 ;
40150 PyObject * obj1 = 0 ;
40151 PyObject * obj2 = 0 ;
40152 PyObject * obj3 = 0 ;
40153 char * kwnames[] = {
40154 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40155 };
40156
40157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40159 if (!SWIG_IsOK(res1)) {
40160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40161 }
40162 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40164 if (!SWIG_IsOK(res2)) {
40165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40166 }
40167 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40168 {
40169 arg3 = &temp3;
40170 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40171 }
40172 ecode4 = SWIG_AsVal_int(obj3, &val4);
40173 if (!SWIG_IsOK(ecode4)) {
40174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40175 }
40176 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40177 {
40178 PyThreadState* __tstate = wxPyBeginAllowThreads();
40179 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40180 wxPyEndAllowThreads(__tstate);
40181 if (PyErr_Occurred()) SWIG_fail;
40182 }
40183 {
40184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40185 }
40186 return resultobj;
40187 fail:
40188 return NULL;
40189 }
40190
40191
40192 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40193 PyObject *resultobj = 0;
40194 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40195 wxWindow *arg2 = (wxWindow *) 0 ;
40196 wxString *arg3 = 0 ;
40197 void *argp1 = 0 ;
40198 int res1 = 0 ;
40199 void *argp2 = 0 ;
40200 int res2 = 0 ;
40201 bool temp3 = false ;
40202 PyObject * obj0 = 0 ;
40203 PyObject * obj1 = 0 ;
40204 PyObject * obj2 = 0 ;
40205 char * kwnames[] = {
40206 (char *) "self",(char *) "window",(char *) "text", NULL
40207 };
40208
40209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40211 if (!SWIG_IsOK(res1)) {
40212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40213 }
40214 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40216 if (!SWIG_IsOK(res2)) {
40217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40218 }
40219 arg2 = reinterpret_cast< wxWindow * >(argp2);
40220 {
40221 arg3 = wxString_in_helper(obj2);
40222 if (arg3 == NULL) SWIG_fail;
40223 temp3 = true;
40224 }
40225 {
40226 PyThreadState* __tstate = wxPyBeginAllowThreads();
40227 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40228 wxPyEndAllowThreads(__tstate);
40229 if (PyErr_Occurred()) SWIG_fail;
40230 }
40231 resultobj = SWIG_Py_Void();
40232 {
40233 if (temp3)
40234 delete arg3;
40235 }
40236 return resultobj;
40237 fail:
40238 {
40239 if (temp3)
40240 delete arg3;
40241 }
40242 return NULL;
40243 }
40244
40245
40246 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40247 PyObject *resultobj = 0;
40248 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40249 int arg2 ;
40250 wxString *arg3 = 0 ;
40251 void *argp1 = 0 ;
40252 int res1 = 0 ;
40253 int val2 ;
40254 int ecode2 = 0 ;
40255 bool temp3 = false ;
40256 PyObject * obj0 = 0 ;
40257 PyObject * obj1 = 0 ;
40258 PyObject * obj2 = 0 ;
40259 char * kwnames[] = {
40260 (char *) "self",(char *) "id",(char *) "text", NULL
40261 };
40262
40263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40265 if (!SWIG_IsOK(res1)) {
40266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40267 }
40268 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40269 ecode2 = SWIG_AsVal_int(obj1, &val2);
40270 if (!SWIG_IsOK(ecode2)) {
40271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40272 }
40273 arg2 = static_cast< int >(val2);
40274 {
40275 arg3 = wxString_in_helper(obj2);
40276 if (arg3 == NULL) SWIG_fail;
40277 temp3 = true;
40278 }
40279 {
40280 PyThreadState* __tstate = wxPyBeginAllowThreads();
40281 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40282 wxPyEndAllowThreads(__tstate);
40283 if (PyErr_Occurred()) SWIG_fail;
40284 }
40285 resultobj = SWIG_Py_Void();
40286 {
40287 if (temp3)
40288 delete arg3;
40289 }
40290 return resultobj;
40291 fail:
40292 {
40293 if (temp3)
40294 delete arg3;
40295 }
40296 return NULL;
40297 }
40298
40299
40300 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40301 PyObject *resultobj = 0;
40302 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40303 wxWindow *arg2 = (wxWindow *) 0 ;
40304 void *argp1 = 0 ;
40305 int res1 = 0 ;
40306 void *argp2 = 0 ;
40307 int res2 = 0 ;
40308 PyObject * obj0 = 0 ;
40309 PyObject * obj1 = 0 ;
40310 char * kwnames[] = {
40311 (char *) "self",(char *) "window", NULL
40312 };
40313
40314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40316 if (!SWIG_IsOK(res1)) {
40317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40318 }
40319 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40320 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40321 if (!SWIG_IsOK(res2)) {
40322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40323 }
40324 arg2 = reinterpret_cast< wxWindow * >(argp2);
40325 {
40326 PyThreadState* __tstate = wxPyBeginAllowThreads();
40327 (arg1)->RemoveHelp(arg2);
40328 wxPyEndAllowThreads(__tstate);
40329 if (PyErr_Occurred()) SWIG_fail;
40330 }
40331 resultobj = SWIG_Py_Void();
40332 return resultobj;
40333 fail:
40334 return NULL;
40335 }
40336
40337
40338 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40339 PyObject *resultobj = 0;
40340 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40341 void *argp1 = 0 ;
40342 int res1 = 0 ;
40343 PyObject *swig_obj[1] ;
40344
40345 if (!args) SWIG_fail;
40346 swig_obj[0] = args;
40347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40348 if (!SWIG_IsOK(res1)) {
40349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40350 }
40351 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40352 {
40353 PyThreadState* __tstate = wxPyBeginAllowThreads();
40354 wxHelpProvider_Destroy(arg1);
40355 wxPyEndAllowThreads(__tstate);
40356 if (PyErr_Occurred()) SWIG_fail;
40357 }
40358 resultobj = SWIG_Py_Void();
40359 return resultobj;
40360 fail:
40361 return NULL;
40362 }
40363
40364
40365 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40366 PyObject *obj;
40367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40368 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40369 return SWIG_Py_Void();
40370 }
40371
40372 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40373 PyObject *resultobj = 0;
40374 wxSimpleHelpProvider *result = 0 ;
40375
40376 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40377 {
40378 PyThreadState* __tstate = wxPyBeginAllowThreads();
40379 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40380 wxPyEndAllowThreads(__tstate);
40381 if (PyErr_Occurred()) SWIG_fail;
40382 }
40383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40384 return resultobj;
40385 fail:
40386 return NULL;
40387 }
40388
40389
40390 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40391 PyObject *obj;
40392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40393 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40394 return SWIG_Py_Void();
40395 }
40396
40397 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40398 return SWIG_Python_InitShadowInstance(args);
40399 }
40400
40401 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40402 PyObject *resultobj = 0;
40403 wxBitmap *arg1 = 0 ;
40404 wxCursor const &arg2_defvalue = wxNullCursor ;
40405 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40406 wxGenericDragImage *result = 0 ;
40407 void *argp1 = 0 ;
40408 int res1 = 0 ;
40409 void *argp2 = 0 ;
40410 int res2 = 0 ;
40411 PyObject * obj0 = 0 ;
40412 PyObject * obj1 = 0 ;
40413 char * kwnames[] = {
40414 (char *) "image",(char *) "cursor", NULL
40415 };
40416
40417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40418 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40419 if (!SWIG_IsOK(res1)) {
40420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40421 }
40422 if (!argp1) {
40423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40424 }
40425 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40426 if (obj1) {
40427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40428 if (!SWIG_IsOK(res2)) {
40429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40430 }
40431 if (!argp2) {
40432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40433 }
40434 arg2 = reinterpret_cast< wxCursor * >(argp2);
40435 }
40436 {
40437 if (!wxPyCheckForApp()) SWIG_fail;
40438 PyThreadState* __tstate = wxPyBeginAllowThreads();
40439 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40440 wxPyEndAllowThreads(__tstate);
40441 if (PyErr_Occurred()) SWIG_fail;
40442 }
40443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40444 return resultobj;
40445 fail:
40446 return NULL;
40447 }
40448
40449
40450 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40451 PyObject *resultobj = 0;
40452 wxIcon *arg1 = 0 ;
40453 wxCursor const &arg2_defvalue = wxNullCursor ;
40454 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40455 wxGenericDragImage *result = 0 ;
40456 void *argp1 = 0 ;
40457 int res1 = 0 ;
40458 void *argp2 = 0 ;
40459 int res2 = 0 ;
40460 PyObject * obj0 = 0 ;
40461 PyObject * obj1 = 0 ;
40462 char * kwnames[] = {
40463 (char *) "image",(char *) "cursor", NULL
40464 };
40465
40466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40467 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40468 if (!SWIG_IsOK(res1)) {
40469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40470 }
40471 if (!argp1) {
40472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40473 }
40474 arg1 = reinterpret_cast< wxIcon * >(argp1);
40475 if (obj1) {
40476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40477 if (!SWIG_IsOK(res2)) {
40478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40479 }
40480 if (!argp2) {
40481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40482 }
40483 arg2 = reinterpret_cast< wxCursor * >(argp2);
40484 }
40485 {
40486 if (!wxPyCheckForApp()) SWIG_fail;
40487 PyThreadState* __tstate = wxPyBeginAllowThreads();
40488 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40489 wxPyEndAllowThreads(__tstate);
40490 if (PyErr_Occurred()) SWIG_fail;
40491 }
40492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40493 return resultobj;
40494 fail:
40495 return NULL;
40496 }
40497
40498
40499 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40500 PyObject *resultobj = 0;
40501 wxString *arg1 = 0 ;
40502 wxCursor const &arg2_defvalue = wxNullCursor ;
40503 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40504 wxGenericDragImage *result = 0 ;
40505 bool temp1 = false ;
40506 void *argp2 = 0 ;
40507 int res2 = 0 ;
40508 PyObject * obj0 = 0 ;
40509 PyObject * obj1 = 0 ;
40510 char * kwnames[] = {
40511 (char *) "str",(char *) "cursor", NULL
40512 };
40513
40514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40515 {
40516 arg1 = wxString_in_helper(obj0);
40517 if (arg1 == NULL) SWIG_fail;
40518 temp1 = true;
40519 }
40520 if (obj1) {
40521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40522 if (!SWIG_IsOK(res2)) {
40523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40524 }
40525 if (!argp2) {
40526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40527 }
40528 arg2 = reinterpret_cast< wxCursor * >(argp2);
40529 }
40530 {
40531 if (!wxPyCheckForApp()) SWIG_fail;
40532 PyThreadState* __tstate = wxPyBeginAllowThreads();
40533 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40534 wxPyEndAllowThreads(__tstate);
40535 if (PyErr_Occurred()) SWIG_fail;
40536 }
40537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40538 {
40539 if (temp1)
40540 delete arg1;
40541 }
40542 return resultobj;
40543 fail:
40544 {
40545 if (temp1)
40546 delete arg1;
40547 }
40548 return NULL;
40549 }
40550
40551
40552 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40553 PyObject *resultobj = 0;
40554 wxPyTreeCtrl *arg1 = 0 ;
40555 wxTreeItemId *arg2 = 0 ;
40556 wxGenericDragImage *result = 0 ;
40557 void *argp1 = 0 ;
40558 int res1 = 0 ;
40559 void *argp2 = 0 ;
40560 int res2 = 0 ;
40561 PyObject * obj0 = 0 ;
40562 PyObject * obj1 = 0 ;
40563 char * kwnames[] = {
40564 (char *) "treeCtrl",(char *) "id", NULL
40565 };
40566
40567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40568 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40569 if (!SWIG_IsOK(res1)) {
40570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40571 }
40572 if (!argp1) {
40573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40574 }
40575 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40577 if (!SWIG_IsOK(res2)) {
40578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40579 }
40580 if (!argp2) {
40581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40582 }
40583 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40584 {
40585 if (!wxPyCheckForApp()) SWIG_fail;
40586 PyThreadState* __tstate = wxPyBeginAllowThreads();
40587 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40588 wxPyEndAllowThreads(__tstate);
40589 if (PyErr_Occurred()) SWIG_fail;
40590 }
40591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40592 return resultobj;
40593 fail:
40594 return NULL;
40595 }
40596
40597
40598 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40599 PyObject *resultobj = 0;
40600 wxPyListCtrl *arg1 = 0 ;
40601 long arg2 ;
40602 wxGenericDragImage *result = 0 ;
40603 void *argp1 = 0 ;
40604 int res1 = 0 ;
40605 long val2 ;
40606 int ecode2 = 0 ;
40607 PyObject * obj0 = 0 ;
40608 PyObject * obj1 = 0 ;
40609 char * kwnames[] = {
40610 (char *) "listCtrl",(char *) "id", NULL
40611 };
40612
40613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40614 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40615 if (!SWIG_IsOK(res1)) {
40616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40617 }
40618 if (!argp1) {
40619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40620 }
40621 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40622 ecode2 = SWIG_AsVal_long(obj1, &val2);
40623 if (!SWIG_IsOK(ecode2)) {
40624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40625 }
40626 arg2 = static_cast< long >(val2);
40627 {
40628 if (!wxPyCheckForApp()) SWIG_fail;
40629 PyThreadState* __tstate = wxPyBeginAllowThreads();
40630 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40631 wxPyEndAllowThreads(__tstate);
40632 if (PyErr_Occurred()) SWIG_fail;
40633 }
40634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40635 return resultobj;
40636 fail:
40637 return NULL;
40638 }
40639
40640
40641 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40642 PyObject *resultobj = 0;
40643 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40644 void *argp1 = 0 ;
40645 int res1 = 0 ;
40646 PyObject *swig_obj[1] ;
40647
40648 if (!args) SWIG_fail;
40649 swig_obj[0] = args;
40650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40651 if (!SWIG_IsOK(res1)) {
40652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40653 }
40654 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40655 {
40656 PyThreadState* __tstate = wxPyBeginAllowThreads();
40657 delete arg1;
40658
40659 wxPyEndAllowThreads(__tstate);
40660 if (PyErr_Occurred()) SWIG_fail;
40661 }
40662 resultobj = SWIG_Py_Void();
40663 return resultobj;
40664 fail:
40665 return NULL;
40666 }
40667
40668
40669 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40670 PyObject *resultobj = 0;
40671 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40672 wxBitmap *arg2 = (wxBitmap *) 0 ;
40673 void *argp1 = 0 ;
40674 int res1 = 0 ;
40675 void *argp2 = 0 ;
40676 int res2 = 0 ;
40677 PyObject * obj0 = 0 ;
40678 PyObject * obj1 = 0 ;
40679 char * kwnames[] = {
40680 (char *) "self",(char *) "bitmap", NULL
40681 };
40682
40683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40685 if (!SWIG_IsOK(res1)) {
40686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40687 }
40688 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40690 if (!SWIG_IsOK(res2)) {
40691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40692 }
40693 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40694 {
40695 PyThreadState* __tstate = wxPyBeginAllowThreads();
40696 (arg1)->SetBackingBitmap(arg2);
40697 wxPyEndAllowThreads(__tstate);
40698 if (PyErr_Occurred()) SWIG_fail;
40699 }
40700 resultobj = SWIG_Py_Void();
40701 return resultobj;
40702 fail:
40703 return NULL;
40704 }
40705
40706
40707 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40708 PyObject *resultobj = 0;
40709 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40710 wxPoint *arg2 = 0 ;
40711 wxWindow *arg3 = (wxWindow *) 0 ;
40712 bool arg4 = (bool) false ;
40713 wxRect *arg5 = (wxRect *) NULL ;
40714 bool result;
40715 void *argp1 = 0 ;
40716 int res1 = 0 ;
40717 wxPoint temp2 ;
40718 void *argp3 = 0 ;
40719 int res3 = 0 ;
40720 bool val4 ;
40721 int ecode4 = 0 ;
40722 void *argp5 = 0 ;
40723 int res5 = 0 ;
40724 PyObject * obj0 = 0 ;
40725 PyObject * obj1 = 0 ;
40726 PyObject * obj2 = 0 ;
40727 PyObject * obj3 = 0 ;
40728 PyObject * obj4 = 0 ;
40729 char * kwnames[] = {
40730 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40731 };
40732
40733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40735 if (!SWIG_IsOK(res1)) {
40736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40737 }
40738 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40739 {
40740 arg2 = &temp2;
40741 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40742 }
40743 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40744 if (!SWIG_IsOK(res3)) {
40745 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40746 }
40747 arg3 = reinterpret_cast< wxWindow * >(argp3);
40748 if (obj3) {
40749 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40750 if (!SWIG_IsOK(ecode4)) {
40751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40752 }
40753 arg4 = static_cast< bool >(val4);
40754 }
40755 if (obj4) {
40756 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40757 if (!SWIG_IsOK(res5)) {
40758 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40759 }
40760 arg5 = reinterpret_cast< wxRect * >(argp5);
40761 }
40762 {
40763 PyThreadState* __tstate = wxPyBeginAllowThreads();
40764 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40765 wxPyEndAllowThreads(__tstate);
40766 if (PyErr_Occurred()) SWIG_fail;
40767 }
40768 {
40769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40770 }
40771 return resultobj;
40772 fail:
40773 return NULL;
40774 }
40775
40776
40777 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40778 PyObject *resultobj = 0;
40779 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40780 wxPoint *arg2 = 0 ;
40781 wxWindow *arg3 = (wxWindow *) 0 ;
40782 wxWindow *arg4 = (wxWindow *) 0 ;
40783 bool result;
40784 void *argp1 = 0 ;
40785 int res1 = 0 ;
40786 wxPoint temp2 ;
40787 void *argp3 = 0 ;
40788 int res3 = 0 ;
40789 void *argp4 = 0 ;
40790 int res4 = 0 ;
40791 PyObject * obj0 = 0 ;
40792 PyObject * obj1 = 0 ;
40793 PyObject * obj2 = 0 ;
40794 PyObject * obj3 = 0 ;
40795 char * kwnames[] = {
40796 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40797 };
40798
40799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40801 if (!SWIG_IsOK(res1)) {
40802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40803 }
40804 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40805 {
40806 arg2 = &temp2;
40807 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40808 }
40809 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40810 if (!SWIG_IsOK(res3)) {
40811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40812 }
40813 arg3 = reinterpret_cast< wxWindow * >(argp3);
40814 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40815 if (!SWIG_IsOK(res4)) {
40816 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40817 }
40818 arg4 = reinterpret_cast< wxWindow * >(argp4);
40819 {
40820 PyThreadState* __tstate = wxPyBeginAllowThreads();
40821 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40822 wxPyEndAllowThreads(__tstate);
40823 if (PyErr_Occurred()) SWIG_fail;
40824 }
40825 {
40826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40827 }
40828 return resultobj;
40829 fail:
40830 return NULL;
40831 }
40832
40833
40834 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40835 PyObject *resultobj = 0;
40836 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40837 bool result;
40838 void *argp1 = 0 ;
40839 int res1 = 0 ;
40840 PyObject *swig_obj[1] ;
40841
40842 if (!args) SWIG_fail;
40843 swig_obj[0] = args;
40844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40845 if (!SWIG_IsOK(res1)) {
40846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40847 }
40848 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40849 {
40850 PyThreadState* __tstate = wxPyBeginAllowThreads();
40851 result = (bool)(arg1)->EndDrag();
40852 wxPyEndAllowThreads(__tstate);
40853 if (PyErr_Occurred()) SWIG_fail;
40854 }
40855 {
40856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40857 }
40858 return resultobj;
40859 fail:
40860 return NULL;
40861 }
40862
40863
40864 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40865 PyObject *resultobj = 0;
40866 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40867 wxPoint *arg2 = 0 ;
40868 bool result;
40869 void *argp1 = 0 ;
40870 int res1 = 0 ;
40871 wxPoint temp2 ;
40872 PyObject * obj0 = 0 ;
40873 PyObject * obj1 = 0 ;
40874 char * kwnames[] = {
40875 (char *) "self",(char *) "pt", NULL
40876 };
40877
40878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40880 if (!SWIG_IsOK(res1)) {
40881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40882 }
40883 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40884 {
40885 arg2 = &temp2;
40886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40887 }
40888 {
40889 PyThreadState* __tstate = wxPyBeginAllowThreads();
40890 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
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_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40904 PyObject *resultobj = 0;
40905 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40906 bool result;
40907 void *argp1 = 0 ;
40908 int res1 = 0 ;
40909 PyObject *swig_obj[1] ;
40910
40911 if (!args) SWIG_fail;
40912 swig_obj[0] = args;
40913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40914 if (!SWIG_IsOK(res1)) {
40915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40916 }
40917 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40918 {
40919 PyThreadState* __tstate = wxPyBeginAllowThreads();
40920 result = (bool)(arg1)->Show();
40921 wxPyEndAllowThreads(__tstate);
40922 if (PyErr_Occurred()) SWIG_fail;
40923 }
40924 {
40925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40926 }
40927 return resultobj;
40928 fail:
40929 return NULL;
40930 }
40931
40932
40933 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40934 PyObject *resultobj = 0;
40935 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40936 bool result;
40937 void *argp1 = 0 ;
40938 int res1 = 0 ;
40939 PyObject *swig_obj[1] ;
40940
40941 if (!args) SWIG_fail;
40942 swig_obj[0] = args;
40943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40944 if (!SWIG_IsOK(res1)) {
40945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40946 }
40947 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40948 {
40949 PyThreadState* __tstate = wxPyBeginAllowThreads();
40950 result = (bool)(arg1)->Hide();
40951 wxPyEndAllowThreads(__tstate);
40952 if (PyErr_Occurred()) SWIG_fail;
40953 }
40954 {
40955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40956 }
40957 return resultobj;
40958 fail:
40959 return NULL;
40960 }
40961
40962
40963 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40964 PyObject *resultobj = 0;
40965 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40966 wxPoint *arg2 = 0 ;
40967 wxRect result;
40968 void *argp1 = 0 ;
40969 int res1 = 0 ;
40970 wxPoint temp2 ;
40971 PyObject * obj0 = 0 ;
40972 PyObject * obj1 = 0 ;
40973 char * kwnames[] = {
40974 (char *) "self",(char *) "pos", NULL
40975 };
40976
40977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40979 if (!SWIG_IsOK(res1)) {
40980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40981 }
40982 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40983 {
40984 arg2 = &temp2;
40985 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40986 }
40987 {
40988 PyThreadState* __tstate = wxPyBeginAllowThreads();
40989 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40990 wxPyEndAllowThreads(__tstate);
40991 if (PyErr_Occurred()) SWIG_fail;
40992 }
40993 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40994 return resultobj;
40995 fail:
40996 return NULL;
40997 }
40998
40999
41000 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41001 PyObject *resultobj = 0;
41002 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41003 wxDC *arg2 = 0 ;
41004 wxPoint *arg3 = 0 ;
41005 bool result;
41006 void *argp1 = 0 ;
41007 int res1 = 0 ;
41008 void *argp2 = 0 ;
41009 int res2 = 0 ;
41010 wxPoint temp3 ;
41011 PyObject * obj0 = 0 ;
41012 PyObject * obj1 = 0 ;
41013 PyObject * obj2 = 0 ;
41014 char * kwnames[] = {
41015 (char *) "self",(char *) "dc",(char *) "pos", NULL
41016 };
41017
41018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41020 if (!SWIG_IsOK(res1)) {
41021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41022 }
41023 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41025 if (!SWIG_IsOK(res2)) {
41026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41027 }
41028 if (!argp2) {
41029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41030 }
41031 arg2 = reinterpret_cast< wxDC * >(argp2);
41032 {
41033 arg3 = &temp3;
41034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41035 }
41036 {
41037 PyThreadState* __tstate = wxPyBeginAllowThreads();
41038 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41039 wxPyEndAllowThreads(__tstate);
41040 if (PyErr_Occurred()) SWIG_fail;
41041 }
41042 {
41043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41044 }
41045 return resultobj;
41046 fail:
41047 return NULL;
41048 }
41049
41050
41051 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41052 PyObject *resultobj = 0;
41053 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41054 wxDC *arg2 = 0 ;
41055 wxMemoryDC *arg3 = 0 ;
41056 wxRect *arg4 = 0 ;
41057 wxRect *arg5 = 0 ;
41058 bool result;
41059 void *argp1 = 0 ;
41060 int res1 = 0 ;
41061 void *argp2 = 0 ;
41062 int res2 = 0 ;
41063 void *argp3 = 0 ;
41064 int res3 = 0 ;
41065 wxRect temp4 ;
41066 wxRect temp5 ;
41067 PyObject * obj0 = 0 ;
41068 PyObject * obj1 = 0 ;
41069 PyObject * obj2 = 0 ;
41070 PyObject * obj3 = 0 ;
41071 PyObject * obj4 = 0 ;
41072 char * kwnames[] = {
41073 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41074 };
41075
41076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41078 if (!SWIG_IsOK(res1)) {
41079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41080 }
41081 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41083 if (!SWIG_IsOK(res2)) {
41084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41085 }
41086 if (!argp2) {
41087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41088 }
41089 arg2 = reinterpret_cast< wxDC * >(argp2);
41090 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41091 if (!SWIG_IsOK(res3)) {
41092 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41093 }
41094 if (!argp3) {
41095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41096 }
41097 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41098 {
41099 arg4 = &temp4;
41100 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41101 }
41102 {
41103 arg5 = &temp5;
41104 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41105 }
41106 {
41107 PyThreadState* __tstate = wxPyBeginAllowThreads();
41108 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41109 wxPyEndAllowThreads(__tstate);
41110 if (PyErr_Occurred()) SWIG_fail;
41111 }
41112 {
41113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41114 }
41115 return resultobj;
41116 fail:
41117 return NULL;
41118 }
41119
41120
41121 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41122 PyObject *resultobj = 0;
41123 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41124 wxPoint *arg2 = 0 ;
41125 wxPoint *arg3 = 0 ;
41126 bool arg4 ;
41127 bool arg5 ;
41128 bool result;
41129 void *argp1 = 0 ;
41130 int res1 = 0 ;
41131 wxPoint temp2 ;
41132 wxPoint temp3 ;
41133 bool val4 ;
41134 int ecode4 = 0 ;
41135 bool val5 ;
41136 int ecode5 = 0 ;
41137 PyObject * obj0 = 0 ;
41138 PyObject * obj1 = 0 ;
41139 PyObject * obj2 = 0 ;
41140 PyObject * obj3 = 0 ;
41141 PyObject * obj4 = 0 ;
41142 char * kwnames[] = {
41143 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41144 };
41145
41146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41148 if (!SWIG_IsOK(res1)) {
41149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41150 }
41151 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41152 {
41153 arg2 = &temp2;
41154 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41155 }
41156 {
41157 arg3 = &temp3;
41158 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41159 }
41160 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41161 if (!SWIG_IsOK(ecode4)) {
41162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41163 }
41164 arg4 = static_cast< bool >(val4);
41165 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41166 if (!SWIG_IsOK(ecode5)) {
41167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41168 }
41169 arg5 = static_cast< bool >(val5);
41170 {
41171 PyThreadState* __tstate = wxPyBeginAllowThreads();
41172 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41173 wxPyEndAllowThreads(__tstate);
41174 if (PyErr_Occurred()) SWIG_fail;
41175 }
41176 {
41177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41178 }
41179 return resultobj;
41180 fail:
41181 return NULL;
41182 }
41183
41184
41185 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41186 PyObject *obj;
41187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41188 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41189 return SWIG_Py_Void();
41190 }
41191
41192 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41193 return SWIG_Python_InitShadowInstance(args);
41194 }
41195
41196 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41197 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41198 return 1;
41199 }
41200
41201
41202 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41203 PyObject *pyobj = 0;
41204
41205 {
41206 #if wxUSE_UNICODE
41207 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41208 #else
41209 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41210 #endif
41211 }
41212 return pyobj;
41213 }
41214
41215
41216 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41217 PyObject *resultobj = 0;
41218 wxWindow *arg1 = (wxWindow *) 0 ;
41219 int arg2 = (int) -1 ;
41220 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41221 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41222 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41223 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41224 wxSize const &arg5_defvalue = wxDefaultSize ;
41225 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41226 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41227 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41228 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41229 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41230 wxString *arg8 = (wxString *) &arg8_defvalue ;
41231 wxDatePickerCtrl *result = 0 ;
41232 void *argp1 = 0 ;
41233 int res1 = 0 ;
41234 int val2 ;
41235 int ecode2 = 0 ;
41236 void *argp3 = 0 ;
41237 int res3 = 0 ;
41238 wxPoint temp4 ;
41239 wxSize temp5 ;
41240 long val6 ;
41241 int ecode6 = 0 ;
41242 void *argp7 = 0 ;
41243 int res7 = 0 ;
41244 bool temp8 = false ;
41245 PyObject * obj0 = 0 ;
41246 PyObject * obj1 = 0 ;
41247 PyObject * obj2 = 0 ;
41248 PyObject * obj3 = 0 ;
41249 PyObject * obj4 = 0 ;
41250 PyObject * obj5 = 0 ;
41251 PyObject * obj6 = 0 ;
41252 PyObject * obj7 = 0 ;
41253 char * kwnames[] = {
41254 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41255 };
41256
41257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41259 if (!SWIG_IsOK(res1)) {
41260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41261 }
41262 arg1 = reinterpret_cast< wxWindow * >(argp1);
41263 if (obj1) {
41264 ecode2 = SWIG_AsVal_int(obj1, &val2);
41265 if (!SWIG_IsOK(ecode2)) {
41266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41267 }
41268 arg2 = static_cast< int >(val2);
41269 }
41270 if (obj2) {
41271 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41272 if (!SWIG_IsOK(res3)) {
41273 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41274 }
41275 if (!argp3) {
41276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41277 }
41278 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41279 }
41280 if (obj3) {
41281 {
41282 arg4 = &temp4;
41283 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41284 }
41285 }
41286 if (obj4) {
41287 {
41288 arg5 = &temp5;
41289 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41290 }
41291 }
41292 if (obj5) {
41293 ecode6 = SWIG_AsVal_long(obj5, &val6);
41294 if (!SWIG_IsOK(ecode6)) {
41295 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41296 }
41297 arg6 = static_cast< long >(val6);
41298 }
41299 if (obj6) {
41300 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41301 if (!SWIG_IsOK(res7)) {
41302 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41303 }
41304 if (!argp7) {
41305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41306 }
41307 arg7 = reinterpret_cast< wxValidator * >(argp7);
41308 }
41309 if (obj7) {
41310 {
41311 arg8 = wxString_in_helper(obj7);
41312 if (arg8 == NULL) SWIG_fail;
41313 temp8 = true;
41314 }
41315 }
41316 {
41317 if (!wxPyCheckForApp()) SWIG_fail;
41318 PyThreadState* __tstate = wxPyBeginAllowThreads();
41319 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41320 wxPyEndAllowThreads(__tstate);
41321 if (PyErr_Occurred()) SWIG_fail;
41322 }
41323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41324 {
41325 if (temp8)
41326 delete arg8;
41327 }
41328 return resultobj;
41329 fail:
41330 {
41331 if (temp8)
41332 delete arg8;
41333 }
41334 return NULL;
41335 }
41336
41337
41338 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41339 PyObject *resultobj = 0;
41340 wxDatePickerCtrl *result = 0 ;
41341
41342 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41343 {
41344 if (!wxPyCheckForApp()) SWIG_fail;
41345 PyThreadState* __tstate = wxPyBeginAllowThreads();
41346 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41347 wxPyEndAllowThreads(__tstate);
41348 if (PyErr_Occurred()) SWIG_fail;
41349 }
41350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41351 return resultobj;
41352 fail:
41353 return NULL;
41354 }
41355
41356
41357 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41358 PyObject *resultobj = 0;
41359 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41360 wxWindow *arg2 = (wxWindow *) 0 ;
41361 int arg3 = (int) -1 ;
41362 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41363 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41364 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41365 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41366 wxSize const &arg6_defvalue = wxDefaultSize ;
41367 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41368 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41369 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41370 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41371 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41372 wxString *arg9 = (wxString *) &arg9_defvalue ;
41373 bool result;
41374 void *argp1 = 0 ;
41375 int res1 = 0 ;
41376 void *argp2 = 0 ;
41377 int res2 = 0 ;
41378 int val3 ;
41379 int ecode3 = 0 ;
41380 void *argp4 = 0 ;
41381 int res4 = 0 ;
41382 wxPoint temp5 ;
41383 wxSize temp6 ;
41384 long val7 ;
41385 int ecode7 = 0 ;
41386 void *argp8 = 0 ;
41387 int res8 = 0 ;
41388 bool temp9 = false ;
41389 PyObject * obj0 = 0 ;
41390 PyObject * obj1 = 0 ;
41391 PyObject * obj2 = 0 ;
41392 PyObject * obj3 = 0 ;
41393 PyObject * obj4 = 0 ;
41394 PyObject * obj5 = 0 ;
41395 PyObject * obj6 = 0 ;
41396 PyObject * obj7 = 0 ;
41397 PyObject * obj8 = 0 ;
41398 char * kwnames[] = {
41399 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41400 };
41401
41402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41404 if (!SWIG_IsOK(res1)) {
41405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41406 }
41407 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41409 if (!SWIG_IsOK(res2)) {
41410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41411 }
41412 arg2 = reinterpret_cast< wxWindow * >(argp2);
41413 if (obj2) {
41414 ecode3 = SWIG_AsVal_int(obj2, &val3);
41415 if (!SWIG_IsOK(ecode3)) {
41416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41417 }
41418 arg3 = static_cast< int >(val3);
41419 }
41420 if (obj3) {
41421 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41422 if (!SWIG_IsOK(res4)) {
41423 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41424 }
41425 if (!argp4) {
41426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41427 }
41428 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41429 }
41430 if (obj4) {
41431 {
41432 arg5 = &temp5;
41433 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41434 }
41435 }
41436 if (obj5) {
41437 {
41438 arg6 = &temp6;
41439 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41440 }
41441 }
41442 if (obj6) {
41443 ecode7 = SWIG_AsVal_long(obj6, &val7);
41444 if (!SWIG_IsOK(ecode7)) {
41445 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41446 }
41447 arg7 = static_cast< long >(val7);
41448 }
41449 if (obj7) {
41450 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41451 if (!SWIG_IsOK(res8)) {
41452 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41453 }
41454 if (!argp8) {
41455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41456 }
41457 arg8 = reinterpret_cast< wxValidator * >(argp8);
41458 }
41459 if (obj8) {
41460 {
41461 arg9 = wxString_in_helper(obj8);
41462 if (arg9 == NULL) SWIG_fail;
41463 temp9 = true;
41464 }
41465 }
41466 {
41467 PyThreadState* __tstate = wxPyBeginAllowThreads();
41468 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41469 wxPyEndAllowThreads(__tstate);
41470 if (PyErr_Occurred()) SWIG_fail;
41471 }
41472 {
41473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41474 }
41475 {
41476 if (temp9)
41477 delete arg9;
41478 }
41479 return resultobj;
41480 fail:
41481 {
41482 if (temp9)
41483 delete arg9;
41484 }
41485 return NULL;
41486 }
41487
41488
41489 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41490 PyObject *resultobj = 0;
41491 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41492 wxDateTime *arg2 = 0 ;
41493 void *argp1 = 0 ;
41494 int res1 = 0 ;
41495 void *argp2 = 0 ;
41496 int res2 = 0 ;
41497 PyObject * obj0 = 0 ;
41498 PyObject * obj1 = 0 ;
41499 char * kwnames[] = {
41500 (char *) "self",(char *) "dt", NULL
41501 };
41502
41503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41505 if (!SWIG_IsOK(res1)) {
41506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41507 }
41508 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41510 if (!SWIG_IsOK(res2)) {
41511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41512 }
41513 if (!argp2) {
41514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41515 }
41516 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41517 {
41518 PyThreadState* __tstate = wxPyBeginAllowThreads();
41519 (arg1)->SetValue((wxDateTime const &)*arg2);
41520 wxPyEndAllowThreads(__tstate);
41521 if (PyErr_Occurred()) SWIG_fail;
41522 }
41523 resultobj = SWIG_Py_Void();
41524 return resultobj;
41525 fail:
41526 return NULL;
41527 }
41528
41529
41530 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41531 PyObject *resultobj = 0;
41532 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41533 wxDateTime result;
41534 void *argp1 = 0 ;
41535 int res1 = 0 ;
41536 PyObject *swig_obj[1] ;
41537
41538 if (!args) SWIG_fail;
41539 swig_obj[0] = args;
41540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41541 if (!SWIG_IsOK(res1)) {
41542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41543 }
41544 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41545 {
41546 PyThreadState* __tstate = wxPyBeginAllowThreads();
41547 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41548 wxPyEndAllowThreads(__tstate);
41549 if (PyErr_Occurred()) SWIG_fail;
41550 }
41551 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41552 return resultobj;
41553 fail:
41554 return NULL;
41555 }
41556
41557
41558 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41559 PyObject *resultobj = 0;
41560 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41561 wxDateTime *arg2 = 0 ;
41562 wxDateTime *arg3 = 0 ;
41563 void *argp1 = 0 ;
41564 int res1 = 0 ;
41565 void *argp2 = 0 ;
41566 int res2 = 0 ;
41567 void *argp3 = 0 ;
41568 int res3 = 0 ;
41569 PyObject * obj0 = 0 ;
41570 PyObject * obj1 = 0 ;
41571 PyObject * obj2 = 0 ;
41572 char * kwnames[] = {
41573 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41574 };
41575
41576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41578 if (!SWIG_IsOK(res1)) {
41579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41580 }
41581 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41583 if (!SWIG_IsOK(res2)) {
41584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41585 }
41586 if (!argp2) {
41587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41588 }
41589 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41590 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41591 if (!SWIG_IsOK(res3)) {
41592 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41593 }
41594 if (!argp3) {
41595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41596 }
41597 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41598 {
41599 PyThreadState* __tstate = wxPyBeginAllowThreads();
41600 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41601 wxPyEndAllowThreads(__tstate);
41602 if (PyErr_Occurred()) SWIG_fail;
41603 }
41604 resultobj = SWIG_Py_Void();
41605 return resultobj;
41606 fail:
41607 return NULL;
41608 }
41609
41610
41611 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41612 PyObject *resultobj = 0;
41613 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41614 wxDateTime result;
41615 void *argp1 = 0 ;
41616 int res1 = 0 ;
41617 PyObject *swig_obj[1] ;
41618
41619 if (!args) SWIG_fail;
41620 swig_obj[0] = args;
41621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41622 if (!SWIG_IsOK(res1)) {
41623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41624 }
41625 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41626 {
41627 PyThreadState* __tstate = wxPyBeginAllowThreads();
41628 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41629 wxPyEndAllowThreads(__tstate);
41630 if (PyErr_Occurred()) SWIG_fail;
41631 }
41632 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41633 return resultobj;
41634 fail:
41635 return NULL;
41636 }
41637
41638
41639 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41640 PyObject *resultobj = 0;
41641 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41642 wxDateTime result;
41643 void *argp1 = 0 ;
41644 int res1 = 0 ;
41645 PyObject *swig_obj[1] ;
41646
41647 if (!args) SWIG_fail;
41648 swig_obj[0] = args;
41649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41650 if (!SWIG_IsOK(res1)) {
41651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41652 }
41653 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41654 {
41655 PyThreadState* __tstate = wxPyBeginAllowThreads();
41656 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41657 wxPyEndAllowThreads(__tstate);
41658 if (PyErr_Occurred()) SWIG_fail;
41659 }
41660 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41661 return resultobj;
41662 fail:
41663 return NULL;
41664 }
41665
41666
41667 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41668 PyObject *obj;
41669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41670 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41671 return SWIG_Py_Void();
41672 }
41673
41674 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41675 return SWIG_Python_InitShadowInstance(args);
41676 }
41677
41678 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41679 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41680 return 1;
41681 }
41682
41683
41684 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41685 PyObject *pyobj = 0;
41686
41687 {
41688 #if wxUSE_UNICODE
41689 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41690 #else
41691 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41692 #endif
41693 }
41694 return pyobj;
41695 }
41696
41697
41698 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41699 PyObject *resultobj = 0;
41700 wxWindow *arg1 = (wxWindow *) 0 ;
41701 int arg2 ;
41702 wxString *arg3 = 0 ;
41703 wxString *arg4 = 0 ;
41704 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41705 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41706 wxSize const &arg6_defvalue = wxDefaultSize ;
41707 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41708 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41709 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41710 wxString *arg8 = (wxString *) &arg8_defvalue ;
41711 wxHyperlinkCtrl *result = 0 ;
41712 void *argp1 = 0 ;
41713 int res1 = 0 ;
41714 int val2 ;
41715 int ecode2 = 0 ;
41716 bool temp3 = false ;
41717 bool temp4 = false ;
41718 wxPoint temp5 ;
41719 wxSize temp6 ;
41720 long val7 ;
41721 int ecode7 = 0 ;
41722 bool temp8 = false ;
41723 PyObject * obj0 = 0 ;
41724 PyObject * obj1 = 0 ;
41725 PyObject * obj2 = 0 ;
41726 PyObject * obj3 = 0 ;
41727 PyObject * obj4 = 0 ;
41728 PyObject * obj5 = 0 ;
41729 PyObject * obj6 = 0 ;
41730 PyObject * obj7 = 0 ;
41731 char * kwnames[] = {
41732 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41733 };
41734
41735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41737 if (!SWIG_IsOK(res1)) {
41738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41739 }
41740 arg1 = reinterpret_cast< wxWindow * >(argp1);
41741 ecode2 = SWIG_AsVal_int(obj1, &val2);
41742 if (!SWIG_IsOK(ecode2)) {
41743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41744 }
41745 arg2 = static_cast< int >(val2);
41746 {
41747 arg3 = wxString_in_helper(obj2);
41748 if (arg3 == NULL) SWIG_fail;
41749 temp3 = true;
41750 }
41751 {
41752 arg4 = wxString_in_helper(obj3);
41753 if (arg4 == NULL) SWIG_fail;
41754 temp4 = true;
41755 }
41756 if (obj4) {
41757 {
41758 arg5 = &temp5;
41759 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41760 }
41761 }
41762 if (obj5) {
41763 {
41764 arg6 = &temp6;
41765 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41766 }
41767 }
41768 if (obj6) {
41769 ecode7 = SWIG_AsVal_long(obj6, &val7);
41770 if (!SWIG_IsOK(ecode7)) {
41771 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41772 }
41773 arg7 = static_cast< long >(val7);
41774 }
41775 if (obj7) {
41776 {
41777 arg8 = wxString_in_helper(obj7);
41778 if (arg8 == NULL) SWIG_fail;
41779 temp8 = true;
41780 }
41781 }
41782 {
41783 if (!wxPyCheckForApp()) SWIG_fail;
41784 PyThreadState* __tstate = wxPyBeginAllowThreads();
41785 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41786 wxPyEndAllowThreads(__tstate);
41787 if (PyErr_Occurred()) SWIG_fail;
41788 }
41789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41790 {
41791 if (temp3)
41792 delete arg3;
41793 }
41794 {
41795 if (temp4)
41796 delete arg4;
41797 }
41798 {
41799 if (temp8)
41800 delete arg8;
41801 }
41802 return resultobj;
41803 fail:
41804 {
41805 if (temp3)
41806 delete arg3;
41807 }
41808 {
41809 if (temp4)
41810 delete arg4;
41811 }
41812 {
41813 if (temp8)
41814 delete arg8;
41815 }
41816 return NULL;
41817 }
41818
41819
41820 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41821 PyObject *resultobj = 0;
41822 wxHyperlinkCtrl *result = 0 ;
41823
41824 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41825 {
41826 if (!wxPyCheckForApp()) SWIG_fail;
41827 PyThreadState* __tstate = wxPyBeginAllowThreads();
41828 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41829 wxPyEndAllowThreads(__tstate);
41830 if (PyErr_Occurred()) SWIG_fail;
41831 }
41832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41833 return resultobj;
41834 fail:
41835 return NULL;
41836 }
41837
41838
41839 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41840 PyObject *resultobj = 0;
41841 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41842 wxWindow *arg2 = (wxWindow *) 0 ;
41843 int arg3 ;
41844 wxString *arg4 = 0 ;
41845 wxString *arg5 = 0 ;
41846 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41847 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41848 wxSize const &arg7_defvalue = wxDefaultSize ;
41849 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41850 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41851 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41852 wxString *arg9 = (wxString *) &arg9_defvalue ;
41853 bool result;
41854 void *argp1 = 0 ;
41855 int res1 = 0 ;
41856 void *argp2 = 0 ;
41857 int res2 = 0 ;
41858 int val3 ;
41859 int ecode3 = 0 ;
41860 bool temp4 = false ;
41861 bool temp5 = false ;
41862 wxPoint temp6 ;
41863 wxSize temp7 ;
41864 long val8 ;
41865 int ecode8 = 0 ;
41866 bool temp9 = false ;
41867 PyObject * obj0 = 0 ;
41868 PyObject * obj1 = 0 ;
41869 PyObject * obj2 = 0 ;
41870 PyObject * obj3 = 0 ;
41871 PyObject * obj4 = 0 ;
41872 PyObject * obj5 = 0 ;
41873 PyObject * obj6 = 0 ;
41874 PyObject * obj7 = 0 ;
41875 PyObject * obj8 = 0 ;
41876 char * kwnames[] = {
41877 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41878 };
41879
41880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41882 if (!SWIG_IsOK(res1)) {
41883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41884 }
41885 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41887 if (!SWIG_IsOK(res2)) {
41888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41889 }
41890 arg2 = reinterpret_cast< wxWindow * >(argp2);
41891 ecode3 = SWIG_AsVal_int(obj2, &val3);
41892 if (!SWIG_IsOK(ecode3)) {
41893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41894 }
41895 arg3 = static_cast< int >(val3);
41896 {
41897 arg4 = wxString_in_helper(obj3);
41898 if (arg4 == NULL) SWIG_fail;
41899 temp4 = true;
41900 }
41901 {
41902 arg5 = wxString_in_helper(obj4);
41903 if (arg5 == NULL) SWIG_fail;
41904 temp5 = true;
41905 }
41906 if (obj5) {
41907 {
41908 arg6 = &temp6;
41909 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41910 }
41911 }
41912 if (obj6) {
41913 {
41914 arg7 = &temp7;
41915 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41916 }
41917 }
41918 if (obj7) {
41919 ecode8 = SWIG_AsVal_long(obj7, &val8);
41920 if (!SWIG_IsOK(ecode8)) {
41921 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41922 }
41923 arg8 = static_cast< long >(val8);
41924 }
41925 if (obj8) {
41926 {
41927 arg9 = wxString_in_helper(obj8);
41928 if (arg9 == NULL) SWIG_fail;
41929 temp9 = true;
41930 }
41931 }
41932 {
41933 PyThreadState* __tstate = wxPyBeginAllowThreads();
41934 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41935 wxPyEndAllowThreads(__tstate);
41936 if (PyErr_Occurred()) SWIG_fail;
41937 }
41938 {
41939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41940 }
41941 {
41942 if (temp4)
41943 delete arg4;
41944 }
41945 {
41946 if (temp5)
41947 delete arg5;
41948 }
41949 {
41950 if (temp9)
41951 delete arg9;
41952 }
41953 return resultobj;
41954 fail:
41955 {
41956 if (temp4)
41957 delete arg4;
41958 }
41959 {
41960 if (temp5)
41961 delete arg5;
41962 }
41963 {
41964 if (temp9)
41965 delete arg9;
41966 }
41967 return NULL;
41968 }
41969
41970
41971 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41972 PyObject *resultobj = 0;
41973 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41974 wxColour result;
41975 void *argp1 = 0 ;
41976 int res1 = 0 ;
41977 PyObject *swig_obj[1] ;
41978
41979 if (!args) SWIG_fail;
41980 swig_obj[0] = args;
41981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41982 if (!SWIG_IsOK(res1)) {
41983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41984 }
41985 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41986 {
41987 PyThreadState* __tstate = wxPyBeginAllowThreads();
41988 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41989 wxPyEndAllowThreads(__tstate);
41990 if (PyErr_Occurred()) SWIG_fail;
41991 }
41992 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41993 return resultobj;
41994 fail:
41995 return NULL;
41996 }
41997
41998
41999 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42000 PyObject *resultobj = 0;
42001 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42002 wxColour *arg2 = 0 ;
42003 void *argp1 = 0 ;
42004 int res1 = 0 ;
42005 wxColour temp2 ;
42006 PyObject * obj0 = 0 ;
42007 PyObject * obj1 = 0 ;
42008 char * kwnames[] = {
42009 (char *) "self",(char *) "colour", NULL
42010 };
42011
42012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42014 if (!SWIG_IsOK(res1)) {
42015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42016 }
42017 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42018 {
42019 arg2 = &temp2;
42020 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42021 }
42022 {
42023 PyThreadState* __tstate = wxPyBeginAllowThreads();
42024 (arg1)->SetHoverColour((wxColour const &)*arg2);
42025 wxPyEndAllowThreads(__tstate);
42026 if (PyErr_Occurred()) SWIG_fail;
42027 }
42028 resultobj = SWIG_Py_Void();
42029 return resultobj;
42030 fail:
42031 return NULL;
42032 }
42033
42034
42035 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42036 PyObject *resultobj = 0;
42037 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42038 wxColour result;
42039 void *argp1 = 0 ;
42040 int res1 = 0 ;
42041 PyObject *swig_obj[1] ;
42042
42043 if (!args) SWIG_fail;
42044 swig_obj[0] = args;
42045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42046 if (!SWIG_IsOK(res1)) {
42047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42048 }
42049 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42050 {
42051 PyThreadState* __tstate = wxPyBeginAllowThreads();
42052 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42053 wxPyEndAllowThreads(__tstate);
42054 if (PyErr_Occurred()) SWIG_fail;
42055 }
42056 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42057 return resultobj;
42058 fail:
42059 return NULL;
42060 }
42061
42062
42063 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42064 PyObject *resultobj = 0;
42065 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42066 wxColour *arg2 = 0 ;
42067 void *argp1 = 0 ;
42068 int res1 = 0 ;
42069 wxColour temp2 ;
42070 PyObject * obj0 = 0 ;
42071 PyObject * obj1 = 0 ;
42072 char * kwnames[] = {
42073 (char *) "self",(char *) "colour", NULL
42074 };
42075
42076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42078 if (!SWIG_IsOK(res1)) {
42079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42080 }
42081 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42082 {
42083 arg2 = &temp2;
42084 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42085 }
42086 {
42087 PyThreadState* __tstate = wxPyBeginAllowThreads();
42088 (arg1)->SetNormalColour((wxColour const &)*arg2);
42089 wxPyEndAllowThreads(__tstate);
42090 if (PyErr_Occurred()) SWIG_fail;
42091 }
42092 resultobj = SWIG_Py_Void();
42093 return resultobj;
42094 fail:
42095 return NULL;
42096 }
42097
42098
42099 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42100 PyObject *resultobj = 0;
42101 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42102 wxColour result;
42103 void *argp1 = 0 ;
42104 int res1 = 0 ;
42105 PyObject *swig_obj[1] ;
42106
42107 if (!args) SWIG_fail;
42108 swig_obj[0] = args;
42109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42110 if (!SWIG_IsOK(res1)) {
42111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42112 }
42113 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42114 {
42115 PyThreadState* __tstate = wxPyBeginAllowThreads();
42116 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42117 wxPyEndAllowThreads(__tstate);
42118 if (PyErr_Occurred()) SWIG_fail;
42119 }
42120 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42121 return resultobj;
42122 fail:
42123 return NULL;
42124 }
42125
42126
42127 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42128 PyObject *resultobj = 0;
42129 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42130 wxColour *arg2 = 0 ;
42131 void *argp1 = 0 ;
42132 int res1 = 0 ;
42133 wxColour temp2 ;
42134 PyObject * obj0 = 0 ;
42135 PyObject * obj1 = 0 ;
42136 char * kwnames[] = {
42137 (char *) "self",(char *) "colour", NULL
42138 };
42139
42140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42142 if (!SWIG_IsOK(res1)) {
42143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42144 }
42145 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42146 {
42147 arg2 = &temp2;
42148 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42149 }
42150 {
42151 PyThreadState* __tstate = wxPyBeginAllowThreads();
42152 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42153 wxPyEndAllowThreads(__tstate);
42154 if (PyErr_Occurred()) SWIG_fail;
42155 }
42156 resultobj = SWIG_Py_Void();
42157 return resultobj;
42158 fail:
42159 return NULL;
42160 }
42161
42162
42163 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42164 PyObject *resultobj = 0;
42165 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42166 wxString result;
42167 void *argp1 = 0 ;
42168 int res1 = 0 ;
42169 PyObject *swig_obj[1] ;
42170
42171 if (!args) SWIG_fail;
42172 swig_obj[0] = args;
42173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42174 if (!SWIG_IsOK(res1)) {
42175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42176 }
42177 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42178 {
42179 PyThreadState* __tstate = wxPyBeginAllowThreads();
42180 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42181 wxPyEndAllowThreads(__tstate);
42182 if (PyErr_Occurred()) SWIG_fail;
42183 }
42184 {
42185 #if wxUSE_UNICODE
42186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42187 #else
42188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42189 #endif
42190 }
42191 return resultobj;
42192 fail:
42193 return NULL;
42194 }
42195
42196
42197 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42198 PyObject *resultobj = 0;
42199 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42200 wxString *arg2 = 0 ;
42201 void *argp1 = 0 ;
42202 int res1 = 0 ;
42203 bool temp2 = false ;
42204 PyObject * obj0 = 0 ;
42205 PyObject * obj1 = 0 ;
42206 char * kwnames[] = {
42207 (char *) "self",(char *) "url", NULL
42208 };
42209
42210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42212 if (!SWIG_IsOK(res1)) {
42213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42214 }
42215 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42216 {
42217 arg2 = wxString_in_helper(obj1);
42218 if (arg2 == NULL) SWIG_fail;
42219 temp2 = true;
42220 }
42221 {
42222 PyThreadState* __tstate = wxPyBeginAllowThreads();
42223 (arg1)->SetURL((wxString const &)*arg2);
42224 wxPyEndAllowThreads(__tstate);
42225 if (PyErr_Occurred()) SWIG_fail;
42226 }
42227 resultobj = SWIG_Py_Void();
42228 {
42229 if (temp2)
42230 delete arg2;
42231 }
42232 return resultobj;
42233 fail:
42234 {
42235 if (temp2)
42236 delete arg2;
42237 }
42238 return NULL;
42239 }
42240
42241
42242 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42243 PyObject *resultobj = 0;
42244 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42245 bool arg2 = (bool) true ;
42246 void *argp1 = 0 ;
42247 int res1 = 0 ;
42248 bool val2 ;
42249 int ecode2 = 0 ;
42250 PyObject * obj0 = 0 ;
42251 PyObject * obj1 = 0 ;
42252 char * kwnames[] = {
42253 (char *) "self",(char *) "visited", NULL
42254 };
42255
42256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42258 if (!SWIG_IsOK(res1)) {
42259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42260 }
42261 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42262 if (obj1) {
42263 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42264 if (!SWIG_IsOK(ecode2)) {
42265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42266 }
42267 arg2 = static_cast< bool >(val2);
42268 }
42269 {
42270 PyThreadState* __tstate = wxPyBeginAllowThreads();
42271 (arg1)->SetVisited(arg2);
42272 wxPyEndAllowThreads(__tstate);
42273 if (PyErr_Occurred()) SWIG_fail;
42274 }
42275 resultobj = SWIG_Py_Void();
42276 return resultobj;
42277 fail:
42278 return NULL;
42279 }
42280
42281
42282 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42283 PyObject *resultobj = 0;
42284 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42285 bool result;
42286 void *argp1 = 0 ;
42287 int res1 = 0 ;
42288 PyObject *swig_obj[1] ;
42289
42290 if (!args) SWIG_fail;
42291 swig_obj[0] = args;
42292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42293 if (!SWIG_IsOK(res1)) {
42294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42295 }
42296 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42297 {
42298 PyThreadState* __tstate = wxPyBeginAllowThreads();
42299 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42300 wxPyEndAllowThreads(__tstate);
42301 if (PyErr_Occurred()) SWIG_fail;
42302 }
42303 {
42304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42305 }
42306 return resultobj;
42307 fail:
42308 return NULL;
42309 }
42310
42311
42312 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42313 PyObject *obj;
42314 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42315 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42316 return SWIG_Py_Void();
42317 }
42318
42319 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42320 return SWIG_Python_InitShadowInstance(args);
42321 }
42322
42323 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42324 PyObject *resultobj = 0;
42325 wxObject *arg1 = (wxObject *) 0 ;
42326 int arg2 ;
42327 wxString *arg3 = 0 ;
42328 wxHyperlinkEvent *result = 0 ;
42329 void *argp1 = 0 ;
42330 int res1 = 0 ;
42331 int val2 ;
42332 int ecode2 = 0 ;
42333 bool temp3 = false ;
42334 PyObject * obj0 = 0 ;
42335 PyObject * obj1 = 0 ;
42336 PyObject * obj2 = 0 ;
42337 char * kwnames[] = {
42338 (char *) "generator",(char *) "id",(char *) "url", NULL
42339 };
42340
42341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42343 if (!SWIG_IsOK(res1)) {
42344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42345 }
42346 arg1 = reinterpret_cast< wxObject * >(argp1);
42347 ecode2 = SWIG_AsVal_int(obj1, &val2);
42348 if (!SWIG_IsOK(ecode2)) {
42349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42350 }
42351 arg2 = static_cast< int >(val2);
42352 {
42353 arg3 = wxString_in_helper(obj2);
42354 if (arg3 == NULL) SWIG_fail;
42355 temp3 = true;
42356 }
42357 {
42358 PyThreadState* __tstate = wxPyBeginAllowThreads();
42359 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42360 wxPyEndAllowThreads(__tstate);
42361 if (PyErr_Occurred()) SWIG_fail;
42362 }
42363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42364 {
42365 if (temp3)
42366 delete arg3;
42367 }
42368 return resultobj;
42369 fail:
42370 {
42371 if (temp3)
42372 delete arg3;
42373 }
42374 return NULL;
42375 }
42376
42377
42378 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42379 PyObject *resultobj = 0;
42380 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42381 wxString result;
42382 void *argp1 = 0 ;
42383 int res1 = 0 ;
42384 PyObject *swig_obj[1] ;
42385
42386 if (!args) SWIG_fail;
42387 swig_obj[0] = args;
42388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42389 if (!SWIG_IsOK(res1)) {
42390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42391 }
42392 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42393 {
42394 PyThreadState* __tstate = wxPyBeginAllowThreads();
42395 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42396 wxPyEndAllowThreads(__tstate);
42397 if (PyErr_Occurred()) SWIG_fail;
42398 }
42399 {
42400 #if wxUSE_UNICODE
42401 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42402 #else
42403 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42404 #endif
42405 }
42406 return resultobj;
42407 fail:
42408 return NULL;
42409 }
42410
42411
42412 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42413 PyObject *resultobj = 0;
42414 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42415 wxString *arg2 = 0 ;
42416 void *argp1 = 0 ;
42417 int res1 = 0 ;
42418 bool temp2 = false ;
42419 PyObject * obj0 = 0 ;
42420 PyObject * obj1 = 0 ;
42421 char * kwnames[] = {
42422 (char *) "self",(char *) "url", NULL
42423 };
42424
42425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42427 if (!SWIG_IsOK(res1)) {
42428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42429 }
42430 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42431 {
42432 arg2 = wxString_in_helper(obj1);
42433 if (arg2 == NULL) SWIG_fail;
42434 temp2 = true;
42435 }
42436 {
42437 PyThreadState* __tstate = wxPyBeginAllowThreads();
42438 (arg1)->SetURL((wxString const &)*arg2);
42439 wxPyEndAllowThreads(__tstate);
42440 if (PyErr_Occurred()) SWIG_fail;
42441 }
42442 resultobj = SWIG_Py_Void();
42443 {
42444 if (temp2)
42445 delete arg2;
42446 }
42447 return resultobj;
42448 fail:
42449 {
42450 if (temp2)
42451 delete arg2;
42452 }
42453 return NULL;
42454 }
42455
42456
42457 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42458 PyObject *obj;
42459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42460 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42461 return SWIG_Py_Void();
42462 }
42463
42464 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42465 return SWIG_Python_InitShadowInstance(args);
42466 }
42467
42468 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42469 PyObject *resultobj = 0;
42470 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42471 wxWindow *arg2 = (wxWindow *) 0 ;
42472 int arg3 ;
42473 wxString const &arg4_defvalue = wxEmptyString ;
42474 wxString *arg4 = (wxString *) &arg4_defvalue ;
42475 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42476 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42477 wxSize const &arg6_defvalue = wxDefaultSize ;
42478 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42479 long arg7 = (long) 0 ;
42480 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42481 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42482 wxString const &arg9_defvalue = wxButtonNameStr ;
42483 wxString *arg9 = (wxString *) &arg9_defvalue ;
42484 bool result;
42485 void *argp1 = 0 ;
42486 int res1 = 0 ;
42487 void *argp2 = 0 ;
42488 int res2 = 0 ;
42489 int val3 ;
42490 int ecode3 = 0 ;
42491 bool temp4 = false ;
42492 wxPoint temp5 ;
42493 wxSize temp6 ;
42494 long val7 ;
42495 int ecode7 = 0 ;
42496 void *argp8 = 0 ;
42497 int res8 = 0 ;
42498 bool temp9 = false ;
42499 PyObject * obj0 = 0 ;
42500 PyObject * obj1 = 0 ;
42501 PyObject * obj2 = 0 ;
42502 PyObject * obj3 = 0 ;
42503 PyObject * obj4 = 0 ;
42504 PyObject * obj5 = 0 ;
42505 PyObject * obj6 = 0 ;
42506 PyObject * obj7 = 0 ;
42507 PyObject * obj8 = 0 ;
42508 char * kwnames[] = {
42509 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42510 };
42511
42512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42514 if (!SWIG_IsOK(res1)) {
42515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42516 }
42517 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42518 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42519 if (!SWIG_IsOK(res2)) {
42520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42521 }
42522 arg2 = reinterpret_cast< wxWindow * >(argp2);
42523 ecode3 = SWIG_AsVal_int(obj2, &val3);
42524 if (!SWIG_IsOK(ecode3)) {
42525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42526 }
42527 arg3 = static_cast< int >(val3);
42528 if (obj3) {
42529 {
42530 arg4 = wxString_in_helper(obj3);
42531 if (arg4 == NULL) SWIG_fail;
42532 temp4 = true;
42533 }
42534 }
42535 if (obj4) {
42536 {
42537 arg5 = &temp5;
42538 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42539 }
42540 }
42541 if (obj5) {
42542 {
42543 arg6 = &temp6;
42544 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42545 }
42546 }
42547 if (obj6) {
42548 ecode7 = SWIG_AsVal_long(obj6, &val7);
42549 if (!SWIG_IsOK(ecode7)) {
42550 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42551 }
42552 arg7 = static_cast< long >(val7);
42553 }
42554 if (obj7) {
42555 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42556 if (!SWIG_IsOK(res8)) {
42557 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42558 }
42559 if (!argp8) {
42560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42561 }
42562 arg8 = reinterpret_cast< wxValidator * >(argp8);
42563 }
42564 if (obj8) {
42565 {
42566 arg9 = wxString_in_helper(obj8);
42567 if (arg9 == NULL) SWIG_fail;
42568 temp9 = true;
42569 }
42570 }
42571 {
42572 PyThreadState* __tstate = wxPyBeginAllowThreads();
42573 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42574 wxPyEndAllowThreads(__tstate);
42575 if (PyErr_Occurred()) SWIG_fail;
42576 }
42577 {
42578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42579 }
42580 {
42581 if (temp4)
42582 delete arg4;
42583 }
42584 {
42585 if (temp9)
42586 delete arg9;
42587 }
42588 return resultobj;
42589 fail:
42590 {
42591 if (temp4)
42592 delete arg4;
42593 }
42594 {
42595 if (temp9)
42596 delete arg9;
42597 }
42598 return NULL;
42599 }
42600
42601
42602 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42603 PyObject *resultobj = 0;
42604 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42605 int arg2 ;
42606 void *argp1 = 0 ;
42607 int res1 = 0 ;
42608 int val2 ;
42609 int ecode2 = 0 ;
42610 PyObject * obj0 = 0 ;
42611 PyObject * obj1 = 0 ;
42612 char * kwnames[] = {
42613 (char *) "self",(char *) "newmargin", NULL
42614 };
42615
42616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42618 if (!SWIG_IsOK(res1)) {
42619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42620 }
42621 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42622 ecode2 = SWIG_AsVal_int(obj1, &val2);
42623 if (!SWIG_IsOK(ecode2)) {
42624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42625 }
42626 arg2 = static_cast< int >(val2);
42627 {
42628 PyThreadState* __tstate = wxPyBeginAllowThreads();
42629 (arg1)->SetInternalMargin(arg2);
42630 wxPyEndAllowThreads(__tstate);
42631 if (PyErr_Occurred()) SWIG_fail;
42632 }
42633 resultobj = SWIG_Py_Void();
42634 return resultobj;
42635 fail:
42636 return NULL;
42637 }
42638
42639
42640 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42641 PyObject *resultobj = 0;
42642 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42643 int result;
42644 void *argp1 = 0 ;
42645 int res1 = 0 ;
42646 PyObject *swig_obj[1] ;
42647
42648 if (!args) SWIG_fail;
42649 swig_obj[0] = args;
42650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42651 if (!SWIG_IsOK(res1)) {
42652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42653 }
42654 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42655 {
42656 PyThreadState* __tstate = wxPyBeginAllowThreads();
42657 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42658 wxPyEndAllowThreads(__tstate);
42659 if (PyErr_Occurred()) SWIG_fail;
42660 }
42661 resultobj = SWIG_From_int(static_cast< int >(result));
42662 return resultobj;
42663 fail:
42664 return NULL;
42665 }
42666
42667
42668 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42669 PyObject *resultobj = 0;
42670 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42671 int arg2 ;
42672 void *argp1 = 0 ;
42673 int res1 = 0 ;
42674 int val2 ;
42675 int ecode2 = 0 ;
42676 PyObject * obj0 = 0 ;
42677 PyObject * obj1 = 0 ;
42678 char * kwnames[] = {
42679 (char *) "self",(char *) "prop", NULL
42680 };
42681
42682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42684 if (!SWIG_IsOK(res1)) {
42685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42686 }
42687 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42688 ecode2 = SWIG_AsVal_int(obj1, &val2);
42689 if (!SWIG_IsOK(ecode2)) {
42690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42691 }
42692 arg2 = static_cast< int >(val2);
42693 {
42694 PyThreadState* __tstate = wxPyBeginAllowThreads();
42695 (arg1)->SetTextCtrlProportion(arg2);
42696 wxPyEndAllowThreads(__tstate);
42697 if (PyErr_Occurred()) SWIG_fail;
42698 }
42699 resultobj = SWIG_Py_Void();
42700 return resultobj;
42701 fail:
42702 return NULL;
42703 }
42704
42705
42706 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42707 PyObject *resultobj = 0;
42708 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42709 int result;
42710 void *argp1 = 0 ;
42711 int res1 = 0 ;
42712 PyObject *swig_obj[1] ;
42713
42714 if (!args) SWIG_fail;
42715 swig_obj[0] = args;
42716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42717 if (!SWIG_IsOK(res1)) {
42718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42719 }
42720 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42721 {
42722 PyThreadState* __tstate = wxPyBeginAllowThreads();
42723 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42724 wxPyEndAllowThreads(__tstate);
42725 if (PyErr_Occurred()) SWIG_fail;
42726 }
42727 resultobj = SWIG_From_int(static_cast< int >(result));
42728 return resultobj;
42729 fail:
42730 return NULL;
42731 }
42732
42733
42734 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42735 PyObject *resultobj = 0;
42736 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42737 int arg2 ;
42738 void *argp1 = 0 ;
42739 int res1 = 0 ;
42740 int val2 ;
42741 int ecode2 = 0 ;
42742 PyObject * obj0 = 0 ;
42743 PyObject * obj1 = 0 ;
42744 char * kwnames[] = {
42745 (char *) "self",(char *) "prop", NULL
42746 };
42747
42748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42750 if (!SWIG_IsOK(res1)) {
42751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42752 }
42753 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42754 ecode2 = SWIG_AsVal_int(obj1, &val2);
42755 if (!SWIG_IsOK(ecode2)) {
42756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42757 }
42758 arg2 = static_cast< int >(val2);
42759 {
42760 PyThreadState* __tstate = wxPyBeginAllowThreads();
42761 (arg1)->SetPickerCtrlProportion(arg2);
42762 wxPyEndAllowThreads(__tstate);
42763 if (PyErr_Occurred()) SWIG_fail;
42764 }
42765 resultobj = SWIG_Py_Void();
42766 return resultobj;
42767 fail:
42768 return NULL;
42769 }
42770
42771
42772 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42773 PyObject *resultobj = 0;
42774 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42775 int result;
42776 void *argp1 = 0 ;
42777 int res1 = 0 ;
42778 PyObject *swig_obj[1] ;
42779
42780 if (!args) SWIG_fail;
42781 swig_obj[0] = args;
42782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42783 if (!SWIG_IsOK(res1)) {
42784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42785 }
42786 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42787 {
42788 PyThreadState* __tstate = wxPyBeginAllowThreads();
42789 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42790 wxPyEndAllowThreads(__tstate);
42791 if (PyErr_Occurred()) SWIG_fail;
42792 }
42793 resultobj = SWIG_From_int(static_cast< int >(result));
42794 return resultobj;
42795 fail:
42796 return NULL;
42797 }
42798
42799
42800 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42801 PyObject *resultobj = 0;
42802 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42803 bool result;
42804 void *argp1 = 0 ;
42805 int res1 = 0 ;
42806 PyObject *swig_obj[1] ;
42807
42808 if (!args) SWIG_fail;
42809 swig_obj[0] = args;
42810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42811 if (!SWIG_IsOK(res1)) {
42812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42813 }
42814 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42815 {
42816 PyThreadState* __tstate = wxPyBeginAllowThreads();
42817 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42818 wxPyEndAllowThreads(__tstate);
42819 if (PyErr_Occurred()) SWIG_fail;
42820 }
42821 {
42822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42823 }
42824 return resultobj;
42825 fail:
42826 return NULL;
42827 }
42828
42829
42830 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42831 PyObject *resultobj = 0;
42832 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42833 bool arg2 = (bool) true ;
42834 void *argp1 = 0 ;
42835 int res1 = 0 ;
42836 bool val2 ;
42837 int ecode2 = 0 ;
42838 PyObject * obj0 = 0 ;
42839 PyObject * obj1 = 0 ;
42840 char * kwnames[] = {
42841 (char *) "self",(char *) "grow", NULL
42842 };
42843
42844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42846 if (!SWIG_IsOK(res1)) {
42847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42848 }
42849 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42850 if (obj1) {
42851 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42852 if (!SWIG_IsOK(ecode2)) {
42853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42854 }
42855 arg2 = static_cast< bool >(val2);
42856 }
42857 {
42858 PyThreadState* __tstate = wxPyBeginAllowThreads();
42859 (arg1)->SetTextCtrlGrowable(arg2);
42860 wxPyEndAllowThreads(__tstate);
42861 if (PyErr_Occurred()) SWIG_fail;
42862 }
42863 resultobj = SWIG_Py_Void();
42864 return resultobj;
42865 fail:
42866 return NULL;
42867 }
42868
42869
42870 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42871 PyObject *resultobj = 0;
42872 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42873 bool result;
42874 void *argp1 = 0 ;
42875 int res1 = 0 ;
42876 PyObject *swig_obj[1] ;
42877
42878 if (!args) SWIG_fail;
42879 swig_obj[0] = args;
42880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42881 if (!SWIG_IsOK(res1)) {
42882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42883 }
42884 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42885 {
42886 PyThreadState* __tstate = wxPyBeginAllowThreads();
42887 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42888 wxPyEndAllowThreads(__tstate);
42889 if (PyErr_Occurred()) SWIG_fail;
42890 }
42891 {
42892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42893 }
42894 return resultobj;
42895 fail:
42896 return NULL;
42897 }
42898
42899
42900 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42901 PyObject *resultobj = 0;
42902 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42903 bool arg2 = (bool) true ;
42904 void *argp1 = 0 ;
42905 int res1 = 0 ;
42906 bool val2 ;
42907 int ecode2 = 0 ;
42908 PyObject * obj0 = 0 ;
42909 PyObject * obj1 = 0 ;
42910 char * kwnames[] = {
42911 (char *) "self",(char *) "grow", NULL
42912 };
42913
42914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42916 if (!SWIG_IsOK(res1)) {
42917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42918 }
42919 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42920 if (obj1) {
42921 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42922 if (!SWIG_IsOK(ecode2)) {
42923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42924 }
42925 arg2 = static_cast< bool >(val2);
42926 }
42927 {
42928 PyThreadState* __tstate = wxPyBeginAllowThreads();
42929 (arg1)->SetPickerCtrlGrowable(arg2);
42930 wxPyEndAllowThreads(__tstate);
42931 if (PyErr_Occurred()) SWIG_fail;
42932 }
42933 resultobj = SWIG_Py_Void();
42934 return resultobj;
42935 fail:
42936 return NULL;
42937 }
42938
42939
42940 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42941 PyObject *resultobj = 0;
42942 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42943 bool result;
42944 void *argp1 = 0 ;
42945 int res1 = 0 ;
42946 PyObject *swig_obj[1] ;
42947
42948 if (!args) SWIG_fail;
42949 swig_obj[0] = args;
42950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42951 if (!SWIG_IsOK(res1)) {
42952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42953 }
42954 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42955 {
42956 PyThreadState* __tstate = wxPyBeginAllowThreads();
42957 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42958 wxPyEndAllowThreads(__tstate);
42959 if (PyErr_Occurred()) SWIG_fail;
42960 }
42961 {
42962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42963 }
42964 return resultobj;
42965 fail:
42966 return NULL;
42967 }
42968
42969
42970 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42971 PyObject *resultobj = 0;
42972 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42973 wxTextCtrl *result = 0 ;
42974 void *argp1 = 0 ;
42975 int res1 = 0 ;
42976 PyObject *swig_obj[1] ;
42977
42978 if (!args) SWIG_fail;
42979 swig_obj[0] = args;
42980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42981 if (!SWIG_IsOK(res1)) {
42982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42983 }
42984 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42985 {
42986 PyThreadState* __tstate = wxPyBeginAllowThreads();
42987 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42988 wxPyEndAllowThreads(__tstate);
42989 if (PyErr_Occurred()) SWIG_fail;
42990 }
42991 {
42992 resultobj = wxPyMake_wxObject(result, 0);
42993 }
42994 return resultobj;
42995 fail:
42996 return NULL;
42997 }
42998
42999
43000 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43001 PyObject *resultobj = 0;
43002 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43003 wxControl *result = 0 ;
43004 void *argp1 = 0 ;
43005 int res1 = 0 ;
43006 PyObject *swig_obj[1] ;
43007
43008 if (!args) SWIG_fail;
43009 swig_obj[0] = args;
43010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43011 if (!SWIG_IsOK(res1)) {
43012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43013 }
43014 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43015 {
43016 PyThreadState* __tstate = wxPyBeginAllowThreads();
43017 result = (wxControl *)(arg1)->GetPickerCtrl();
43018 wxPyEndAllowThreads(__tstate);
43019 if (PyErr_Occurred()) SWIG_fail;
43020 }
43021 {
43022 resultobj = wxPyMake_wxObject(result, 0);
43023 }
43024 return resultobj;
43025 fail:
43026 return NULL;
43027 }
43028
43029
43030 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43031 PyObject *obj;
43032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43033 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43034 return SWIG_Py_Void();
43035 }
43036
43037 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43038 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43039 return 1;
43040 }
43041
43042
43043 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43044 PyObject *pyobj = 0;
43045
43046 {
43047 #if wxUSE_UNICODE
43048 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43049 #else
43050 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43051 #endif
43052 }
43053 return pyobj;
43054 }
43055
43056
43057 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43058 PyObject *resultobj = 0;
43059 wxWindow *arg1 = (wxWindow *) 0 ;
43060 int arg2 = (int) -1 ;
43061 wxColour const &arg3_defvalue = *wxBLACK ;
43062 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43063 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43064 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43065 wxSize const &arg5_defvalue = wxDefaultSize ;
43066 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43067 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43068 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43069 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43070 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43071 wxString *arg8 = (wxString *) &arg8_defvalue ;
43072 wxColourPickerCtrl *result = 0 ;
43073 void *argp1 = 0 ;
43074 int res1 = 0 ;
43075 int val2 ;
43076 int ecode2 = 0 ;
43077 wxColour temp3 ;
43078 wxPoint temp4 ;
43079 wxSize temp5 ;
43080 long val6 ;
43081 int ecode6 = 0 ;
43082 void *argp7 = 0 ;
43083 int res7 = 0 ;
43084 bool temp8 = false ;
43085 PyObject * obj0 = 0 ;
43086 PyObject * obj1 = 0 ;
43087 PyObject * obj2 = 0 ;
43088 PyObject * obj3 = 0 ;
43089 PyObject * obj4 = 0 ;
43090 PyObject * obj5 = 0 ;
43091 PyObject * obj6 = 0 ;
43092 PyObject * obj7 = 0 ;
43093 char * kwnames[] = {
43094 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43095 };
43096
43097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43099 if (!SWIG_IsOK(res1)) {
43100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43101 }
43102 arg1 = reinterpret_cast< wxWindow * >(argp1);
43103 if (obj1) {
43104 ecode2 = SWIG_AsVal_int(obj1, &val2);
43105 if (!SWIG_IsOK(ecode2)) {
43106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43107 }
43108 arg2 = static_cast< int >(val2);
43109 }
43110 if (obj2) {
43111 {
43112 arg3 = &temp3;
43113 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43114 }
43115 }
43116 if (obj3) {
43117 {
43118 arg4 = &temp4;
43119 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43120 }
43121 }
43122 if (obj4) {
43123 {
43124 arg5 = &temp5;
43125 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43126 }
43127 }
43128 if (obj5) {
43129 ecode6 = SWIG_AsVal_long(obj5, &val6);
43130 if (!SWIG_IsOK(ecode6)) {
43131 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43132 }
43133 arg6 = static_cast< long >(val6);
43134 }
43135 if (obj6) {
43136 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43137 if (!SWIG_IsOK(res7)) {
43138 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43139 }
43140 if (!argp7) {
43141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43142 }
43143 arg7 = reinterpret_cast< wxValidator * >(argp7);
43144 }
43145 if (obj7) {
43146 {
43147 arg8 = wxString_in_helper(obj7);
43148 if (arg8 == NULL) SWIG_fail;
43149 temp8 = true;
43150 }
43151 }
43152 {
43153 if (!wxPyCheckForApp()) SWIG_fail;
43154 PyThreadState* __tstate = wxPyBeginAllowThreads();
43155 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43156 wxPyEndAllowThreads(__tstate);
43157 if (PyErr_Occurred()) SWIG_fail;
43158 }
43159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43160 {
43161 if (temp8)
43162 delete arg8;
43163 }
43164 return resultobj;
43165 fail:
43166 {
43167 if (temp8)
43168 delete arg8;
43169 }
43170 return NULL;
43171 }
43172
43173
43174 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43175 PyObject *resultobj = 0;
43176 wxColourPickerCtrl *result = 0 ;
43177
43178 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43179 {
43180 if (!wxPyCheckForApp()) SWIG_fail;
43181 PyThreadState* __tstate = wxPyBeginAllowThreads();
43182 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43183 wxPyEndAllowThreads(__tstate);
43184 if (PyErr_Occurred()) SWIG_fail;
43185 }
43186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43187 return resultobj;
43188 fail:
43189 return NULL;
43190 }
43191
43192
43193 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43194 PyObject *resultobj = 0;
43195 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43196 wxWindow *arg2 = (wxWindow *) 0 ;
43197 int arg3 ;
43198 wxColour const &arg4_defvalue = *wxBLACK ;
43199 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43200 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43201 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43202 wxSize const &arg6_defvalue = wxDefaultSize ;
43203 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43204 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43205 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43206 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43207 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43208 wxString *arg9 = (wxString *) &arg9_defvalue ;
43209 bool result;
43210 void *argp1 = 0 ;
43211 int res1 = 0 ;
43212 void *argp2 = 0 ;
43213 int res2 = 0 ;
43214 int val3 ;
43215 int ecode3 = 0 ;
43216 wxColour temp4 ;
43217 wxPoint temp5 ;
43218 wxSize temp6 ;
43219 long val7 ;
43220 int ecode7 = 0 ;
43221 void *argp8 = 0 ;
43222 int res8 = 0 ;
43223 bool temp9 = false ;
43224 PyObject * obj0 = 0 ;
43225 PyObject * obj1 = 0 ;
43226 PyObject * obj2 = 0 ;
43227 PyObject * obj3 = 0 ;
43228 PyObject * obj4 = 0 ;
43229 PyObject * obj5 = 0 ;
43230 PyObject * obj6 = 0 ;
43231 PyObject * obj7 = 0 ;
43232 PyObject * obj8 = 0 ;
43233 char * kwnames[] = {
43234 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43235 };
43236
43237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43239 if (!SWIG_IsOK(res1)) {
43240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43241 }
43242 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43243 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43244 if (!SWIG_IsOK(res2)) {
43245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43246 }
43247 arg2 = reinterpret_cast< wxWindow * >(argp2);
43248 ecode3 = SWIG_AsVal_int(obj2, &val3);
43249 if (!SWIG_IsOK(ecode3)) {
43250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43251 }
43252 arg3 = static_cast< int >(val3);
43253 if (obj3) {
43254 {
43255 arg4 = &temp4;
43256 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43257 }
43258 }
43259 if (obj4) {
43260 {
43261 arg5 = &temp5;
43262 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43263 }
43264 }
43265 if (obj5) {
43266 {
43267 arg6 = &temp6;
43268 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43269 }
43270 }
43271 if (obj6) {
43272 ecode7 = SWIG_AsVal_long(obj6, &val7);
43273 if (!SWIG_IsOK(ecode7)) {
43274 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43275 }
43276 arg7 = static_cast< long >(val7);
43277 }
43278 if (obj7) {
43279 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43280 if (!SWIG_IsOK(res8)) {
43281 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43282 }
43283 if (!argp8) {
43284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43285 }
43286 arg8 = reinterpret_cast< wxValidator * >(argp8);
43287 }
43288 if (obj8) {
43289 {
43290 arg9 = wxString_in_helper(obj8);
43291 if (arg9 == NULL) SWIG_fail;
43292 temp9 = true;
43293 }
43294 }
43295 {
43296 PyThreadState* __tstate = wxPyBeginAllowThreads();
43297 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43298 wxPyEndAllowThreads(__tstate);
43299 if (PyErr_Occurred()) SWIG_fail;
43300 }
43301 {
43302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43303 }
43304 {
43305 if (temp9)
43306 delete arg9;
43307 }
43308 return resultobj;
43309 fail:
43310 {
43311 if (temp9)
43312 delete arg9;
43313 }
43314 return NULL;
43315 }
43316
43317
43318 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43319 PyObject *resultobj = 0;
43320 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43321 wxColour result;
43322 void *argp1 = 0 ;
43323 int res1 = 0 ;
43324 PyObject *swig_obj[1] ;
43325
43326 if (!args) SWIG_fail;
43327 swig_obj[0] = args;
43328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43329 if (!SWIG_IsOK(res1)) {
43330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43331 }
43332 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43333 {
43334 PyThreadState* __tstate = wxPyBeginAllowThreads();
43335 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43336 wxPyEndAllowThreads(__tstate);
43337 if (PyErr_Occurred()) SWIG_fail;
43338 }
43339 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43340 return resultobj;
43341 fail:
43342 return NULL;
43343 }
43344
43345
43346 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43347 PyObject *resultobj = 0;
43348 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43349 wxColour *arg2 = 0 ;
43350 void *argp1 = 0 ;
43351 int res1 = 0 ;
43352 wxColour temp2 ;
43353 PyObject * obj0 = 0 ;
43354 PyObject * obj1 = 0 ;
43355 char * kwnames[] = {
43356 (char *) "self",(char *) "col", NULL
43357 };
43358
43359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43361 if (!SWIG_IsOK(res1)) {
43362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43363 }
43364 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43365 {
43366 arg2 = &temp2;
43367 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43368 }
43369 {
43370 PyThreadState* __tstate = wxPyBeginAllowThreads();
43371 (arg1)->SetColour((wxColour const &)*arg2);
43372 wxPyEndAllowThreads(__tstate);
43373 if (PyErr_Occurred()) SWIG_fail;
43374 }
43375 resultobj = SWIG_Py_Void();
43376 return resultobj;
43377 fail:
43378 return NULL;
43379 }
43380
43381
43382 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43383 PyObject *obj;
43384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43385 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43386 return SWIG_Py_Void();
43387 }
43388
43389 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43390 return SWIG_Python_InitShadowInstance(args);
43391 }
43392
43393 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43394 PyObject *resultobj = 0;
43395 wxObject *arg1 = (wxObject *) 0 ;
43396 int arg2 ;
43397 wxColour *arg3 = 0 ;
43398 wxColourPickerEvent *result = 0 ;
43399 void *argp1 = 0 ;
43400 int res1 = 0 ;
43401 int val2 ;
43402 int ecode2 = 0 ;
43403 wxColour temp3 ;
43404 PyObject * obj0 = 0 ;
43405 PyObject * obj1 = 0 ;
43406 PyObject * obj2 = 0 ;
43407 char * kwnames[] = {
43408 (char *) "generator",(char *) "id",(char *) "col", NULL
43409 };
43410
43411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43413 if (!SWIG_IsOK(res1)) {
43414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43415 }
43416 arg1 = reinterpret_cast< wxObject * >(argp1);
43417 ecode2 = SWIG_AsVal_int(obj1, &val2);
43418 if (!SWIG_IsOK(ecode2)) {
43419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43420 }
43421 arg2 = static_cast< int >(val2);
43422 {
43423 arg3 = &temp3;
43424 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43425 }
43426 {
43427 PyThreadState* __tstate = wxPyBeginAllowThreads();
43428 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43429 wxPyEndAllowThreads(__tstate);
43430 if (PyErr_Occurred()) SWIG_fail;
43431 }
43432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43433 return resultobj;
43434 fail:
43435 return NULL;
43436 }
43437
43438
43439 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43440 PyObject *resultobj = 0;
43441 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43442 wxColour result;
43443 void *argp1 = 0 ;
43444 int res1 = 0 ;
43445 PyObject *swig_obj[1] ;
43446
43447 if (!args) SWIG_fail;
43448 swig_obj[0] = args;
43449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43450 if (!SWIG_IsOK(res1)) {
43451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43452 }
43453 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43454 {
43455 PyThreadState* __tstate = wxPyBeginAllowThreads();
43456 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43457 wxPyEndAllowThreads(__tstate);
43458 if (PyErr_Occurred()) SWIG_fail;
43459 }
43460 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43461 return resultobj;
43462 fail:
43463 return NULL;
43464 }
43465
43466
43467 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43468 PyObject *resultobj = 0;
43469 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43470 wxColour *arg2 = 0 ;
43471 void *argp1 = 0 ;
43472 int res1 = 0 ;
43473 wxColour temp2 ;
43474 PyObject * obj0 = 0 ;
43475 PyObject * obj1 = 0 ;
43476 char * kwnames[] = {
43477 (char *) "self",(char *) "c", NULL
43478 };
43479
43480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43482 if (!SWIG_IsOK(res1)) {
43483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43484 }
43485 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43486 {
43487 arg2 = &temp2;
43488 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43489 }
43490 {
43491 PyThreadState* __tstate = wxPyBeginAllowThreads();
43492 (arg1)->SetColour((wxColour const &)*arg2);
43493 wxPyEndAllowThreads(__tstate);
43494 if (PyErr_Occurred()) SWIG_fail;
43495 }
43496 resultobj = SWIG_Py_Void();
43497 return resultobj;
43498 fail:
43499 return NULL;
43500 }
43501
43502
43503 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43504 PyObject *obj;
43505 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43506 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43507 return SWIG_Py_Void();
43508 }
43509
43510 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43511 return SWIG_Python_InitShadowInstance(args);
43512 }
43513
43514 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43515 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43516 return 1;
43517 }
43518
43519
43520 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43521 PyObject *pyobj = 0;
43522
43523 {
43524 #if wxUSE_UNICODE
43525 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43526 #else
43527 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43528 #endif
43529 }
43530 return pyobj;
43531 }
43532
43533
43534 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43535 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43536 return 1;
43537 }
43538
43539
43540 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43541 PyObject *pyobj = 0;
43542
43543 {
43544 #if wxUSE_UNICODE
43545 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43546 #else
43547 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43548 #endif
43549 }
43550 return pyobj;
43551 }
43552
43553
43554 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43555 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43556 return 1;
43557 }
43558
43559
43560 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43561 PyObject *pyobj = 0;
43562
43563 {
43564 #if wxUSE_UNICODE
43565 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43566 #else
43567 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43568 #endif
43569 }
43570 return pyobj;
43571 }
43572
43573
43574 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43575 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43576 return 1;
43577 }
43578
43579
43580 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43581 PyObject *pyobj = 0;
43582
43583 {
43584 #if wxUSE_UNICODE
43585 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43586 #else
43587 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43588 #endif
43589 }
43590 return pyobj;
43591 }
43592
43593
43594 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43595 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43596 return 1;
43597 }
43598
43599
43600 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43601 PyObject *pyobj = 0;
43602
43603 {
43604 #if wxUSE_UNICODE
43605 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43606 #else
43607 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43608 #endif
43609 }
43610 return pyobj;
43611 }
43612
43613
43614 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43615 PyObject *resultobj = 0;
43616 wxWindow *arg1 = (wxWindow *) 0 ;
43617 int arg2 = (int) -1 ;
43618 wxString const &arg3_defvalue = wxPyEmptyString ;
43619 wxString *arg3 = (wxString *) &arg3_defvalue ;
43620 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43621 wxString *arg4 = (wxString *) &arg4_defvalue ;
43622 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43623 wxString *arg5 = (wxString *) &arg5_defvalue ;
43624 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43625 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43626 wxSize const &arg7_defvalue = wxDefaultSize ;
43627 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43628 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43629 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43630 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43631 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43632 wxString *arg10 = (wxString *) &arg10_defvalue ;
43633 wxFilePickerCtrl *result = 0 ;
43634 void *argp1 = 0 ;
43635 int res1 = 0 ;
43636 int val2 ;
43637 int ecode2 = 0 ;
43638 bool temp3 = false ;
43639 bool temp4 = false ;
43640 bool temp5 = false ;
43641 wxPoint temp6 ;
43642 wxSize temp7 ;
43643 long val8 ;
43644 int ecode8 = 0 ;
43645 void *argp9 = 0 ;
43646 int res9 = 0 ;
43647 bool temp10 = false ;
43648 PyObject * obj0 = 0 ;
43649 PyObject * obj1 = 0 ;
43650 PyObject * obj2 = 0 ;
43651 PyObject * obj3 = 0 ;
43652 PyObject * obj4 = 0 ;
43653 PyObject * obj5 = 0 ;
43654 PyObject * obj6 = 0 ;
43655 PyObject * obj7 = 0 ;
43656 PyObject * obj8 = 0 ;
43657 PyObject * obj9 = 0 ;
43658 char * kwnames[] = {
43659 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43660 };
43661
43662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43664 if (!SWIG_IsOK(res1)) {
43665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43666 }
43667 arg1 = reinterpret_cast< wxWindow * >(argp1);
43668 if (obj1) {
43669 ecode2 = SWIG_AsVal_int(obj1, &val2);
43670 if (!SWIG_IsOK(ecode2)) {
43671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43672 }
43673 arg2 = static_cast< int >(val2);
43674 }
43675 if (obj2) {
43676 {
43677 arg3 = wxString_in_helper(obj2);
43678 if (arg3 == NULL) SWIG_fail;
43679 temp3 = true;
43680 }
43681 }
43682 if (obj3) {
43683 {
43684 arg4 = wxString_in_helper(obj3);
43685 if (arg4 == NULL) SWIG_fail;
43686 temp4 = true;
43687 }
43688 }
43689 if (obj4) {
43690 {
43691 arg5 = wxString_in_helper(obj4);
43692 if (arg5 == NULL) SWIG_fail;
43693 temp5 = true;
43694 }
43695 }
43696 if (obj5) {
43697 {
43698 arg6 = &temp6;
43699 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43700 }
43701 }
43702 if (obj6) {
43703 {
43704 arg7 = &temp7;
43705 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43706 }
43707 }
43708 if (obj7) {
43709 ecode8 = SWIG_AsVal_long(obj7, &val8);
43710 if (!SWIG_IsOK(ecode8)) {
43711 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43712 }
43713 arg8 = static_cast< long >(val8);
43714 }
43715 if (obj8) {
43716 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43717 if (!SWIG_IsOK(res9)) {
43718 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43719 }
43720 if (!argp9) {
43721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43722 }
43723 arg9 = reinterpret_cast< wxValidator * >(argp9);
43724 }
43725 if (obj9) {
43726 {
43727 arg10 = wxString_in_helper(obj9);
43728 if (arg10 == NULL) SWIG_fail;
43729 temp10 = true;
43730 }
43731 }
43732 {
43733 if (!wxPyCheckForApp()) SWIG_fail;
43734 PyThreadState* __tstate = wxPyBeginAllowThreads();
43735 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);
43736 wxPyEndAllowThreads(__tstate);
43737 if (PyErr_Occurred()) SWIG_fail;
43738 }
43739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43740 {
43741 if (temp3)
43742 delete arg3;
43743 }
43744 {
43745 if (temp4)
43746 delete arg4;
43747 }
43748 {
43749 if (temp5)
43750 delete arg5;
43751 }
43752 {
43753 if (temp10)
43754 delete arg10;
43755 }
43756 return resultobj;
43757 fail:
43758 {
43759 if (temp3)
43760 delete arg3;
43761 }
43762 {
43763 if (temp4)
43764 delete arg4;
43765 }
43766 {
43767 if (temp5)
43768 delete arg5;
43769 }
43770 {
43771 if (temp10)
43772 delete arg10;
43773 }
43774 return NULL;
43775 }
43776
43777
43778 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43779 PyObject *resultobj = 0;
43780 wxFilePickerCtrl *result = 0 ;
43781
43782 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43783 {
43784 if (!wxPyCheckForApp()) SWIG_fail;
43785 PyThreadState* __tstate = wxPyBeginAllowThreads();
43786 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43787 wxPyEndAllowThreads(__tstate);
43788 if (PyErr_Occurred()) SWIG_fail;
43789 }
43790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43791 return resultobj;
43792 fail:
43793 return NULL;
43794 }
43795
43796
43797 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43798 PyObject *resultobj = 0;
43799 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43800 wxWindow *arg2 = (wxWindow *) 0 ;
43801 int arg3 = (int) -1 ;
43802 wxString const &arg4_defvalue = wxPyEmptyString ;
43803 wxString *arg4 = (wxString *) &arg4_defvalue ;
43804 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43805 wxString *arg5 = (wxString *) &arg5_defvalue ;
43806 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43807 wxString *arg6 = (wxString *) &arg6_defvalue ;
43808 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43809 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43810 wxSize const &arg8_defvalue = wxDefaultSize ;
43811 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43812 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43813 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43814 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43815 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43816 wxString *arg11 = (wxString *) &arg11_defvalue ;
43817 bool result;
43818 void *argp1 = 0 ;
43819 int res1 = 0 ;
43820 void *argp2 = 0 ;
43821 int res2 = 0 ;
43822 int val3 ;
43823 int ecode3 = 0 ;
43824 bool temp4 = false ;
43825 bool temp5 = false ;
43826 bool temp6 = false ;
43827 wxPoint temp7 ;
43828 wxSize temp8 ;
43829 long val9 ;
43830 int ecode9 = 0 ;
43831 void *argp10 = 0 ;
43832 int res10 = 0 ;
43833 bool temp11 = false ;
43834 PyObject * obj0 = 0 ;
43835 PyObject * obj1 = 0 ;
43836 PyObject * obj2 = 0 ;
43837 PyObject * obj3 = 0 ;
43838 PyObject * obj4 = 0 ;
43839 PyObject * obj5 = 0 ;
43840 PyObject * obj6 = 0 ;
43841 PyObject * obj7 = 0 ;
43842 PyObject * obj8 = 0 ;
43843 PyObject * obj9 = 0 ;
43844 PyObject * obj10 = 0 ;
43845 char * kwnames[] = {
43846 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43847 };
43848
43849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43851 if (!SWIG_IsOK(res1)) {
43852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43853 }
43854 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43856 if (!SWIG_IsOK(res2)) {
43857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43858 }
43859 arg2 = reinterpret_cast< wxWindow * >(argp2);
43860 if (obj2) {
43861 ecode3 = SWIG_AsVal_int(obj2, &val3);
43862 if (!SWIG_IsOK(ecode3)) {
43863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43864 }
43865 arg3 = static_cast< int >(val3);
43866 }
43867 if (obj3) {
43868 {
43869 arg4 = wxString_in_helper(obj3);
43870 if (arg4 == NULL) SWIG_fail;
43871 temp4 = true;
43872 }
43873 }
43874 if (obj4) {
43875 {
43876 arg5 = wxString_in_helper(obj4);
43877 if (arg5 == NULL) SWIG_fail;
43878 temp5 = true;
43879 }
43880 }
43881 if (obj5) {
43882 {
43883 arg6 = wxString_in_helper(obj5);
43884 if (arg6 == NULL) SWIG_fail;
43885 temp6 = true;
43886 }
43887 }
43888 if (obj6) {
43889 {
43890 arg7 = &temp7;
43891 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43892 }
43893 }
43894 if (obj7) {
43895 {
43896 arg8 = &temp8;
43897 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43898 }
43899 }
43900 if (obj8) {
43901 ecode9 = SWIG_AsVal_long(obj8, &val9);
43902 if (!SWIG_IsOK(ecode9)) {
43903 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43904 }
43905 arg9 = static_cast< long >(val9);
43906 }
43907 if (obj9) {
43908 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43909 if (!SWIG_IsOK(res10)) {
43910 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43911 }
43912 if (!argp10) {
43913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43914 }
43915 arg10 = reinterpret_cast< wxValidator * >(argp10);
43916 }
43917 if (obj10) {
43918 {
43919 arg11 = wxString_in_helper(obj10);
43920 if (arg11 == NULL) SWIG_fail;
43921 temp11 = true;
43922 }
43923 }
43924 {
43925 PyThreadState* __tstate = wxPyBeginAllowThreads();
43926 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);
43927 wxPyEndAllowThreads(__tstate);
43928 if (PyErr_Occurred()) SWIG_fail;
43929 }
43930 {
43931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43932 }
43933 {
43934 if (temp4)
43935 delete arg4;
43936 }
43937 {
43938 if (temp5)
43939 delete arg5;
43940 }
43941 {
43942 if (temp6)
43943 delete arg6;
43944 }
43945 {
43946 if (temp11)
43947 delete arg11;
43948 }
43949 return resultobj;
43950 fail:
43951 {
43952 if (temp4)
43953 delete arg4;
43954 }
43955 {
43956 if (temp5)
43957 delete arg5;
43958 }
43959 {
43960 if (temp6)
43961 delete arg6;
43962 }
43963 {
43964 if (temp11)
43965 delete arg11;
43966 }
43967 return NULL;
43968 }
43969
43970
43971 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43972 PyObject *resultobj = 0;
43973 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43974 wxString result;
43975 void *argp1 = 0 ;
43976 int res1 = 0 ;
43977 PyObject *swig_obj[1] ;
43978
43979 if (!args) SWIG_fail;
43980 swig_obj[0] = args;
43981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43982 if (!SWIG_IsOK(res1)) {
43983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43984 }
43985 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43986 {
43987 PyThreadState* __tstate = wxPyBeginAllowThreads();
43988 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43989 wxPyEndAllowThreads(__tstate);
43990 if (PyErr_Occurred()) SWIG_fail;
43991 }
43992 {
43993 #if wxUSE_UNICODE
43994 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43995 #else
43996 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43997 #endif
43998 }
43999 return resultobj;
44000 fail:
44001 return NULL;
44002 }
44003
44004
44005 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44006 PyObject *resultobj = 0;
44007 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44008 wxString *arg2 = 0 ;
44009 void *argp1 = 0 ;
44010 int res1 = 0 ;
44011 bool temp2 = false ;
44012 PyObject * obj0 = 0 ;
44013 PyObject * obj1 = 0 ;
44014 char * kwnames[] = {
44015 (char *) "self",(char *) "str", NULL
44016 };
44017
44018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44020 if (!SWIG_IsOK(res1)) {
44021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44022 }
44023 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44024 {
44025 arg2 = wxString_in_helper(obj1);
44026 if (arg2 == NULL) SWIG_fail;
44027 temp2 = true;
44028 }
44029 {
44030 PyThreadState* __tstate = wxPyBeginAllowThreads();
44031 (arg1)->SetPath((wxString const &)*arg2);
44032 wxPyEndAllowThreads(__tstate);
44033 if (PyErr_Occurred()) SWIG_fail;
44034 }
44035 resultobj = SWIG_Py_Void();
44036 {
44037 if (temp2)
44038 delete arg2;
44039 }
44040 return resultobj;
44041 fail:
44042 {
44043 if (temp2)
44044 delete arg2;
44045 }
44046 return NULL;
44047 }
44048
44049
44050 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44051 PyObject *resultobj = 0;
44052 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44053 wxString *arg2 = 0 ;
44054 bool result;
44055 void *argp1 = 0 ;
44056 int res1 = 0 ;
44057 bool temp2 = false ;
44058 PyObject * obj0 = 0 ;
44059 PyObject * obj1 = 0 ;
44060 char * kwnames[] = {
44061 (char *) "self",(char *) "path", NULL
44062 };
44063
44064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44066 if (!SWIG_IsOK(res1)) {
44067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44068 }
44069 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44070 {
44071 arg2 = wxString_in_helper(obj1);
44072 if (arg2 == NULL) SWIG_fail;
44073 temp2 = true;
44074 }
44075 {
44076 PyThreadState* __tstate = wxPyBeginAllowThreads();
44077 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44078 wxPyEndAllowThreads(__tstate);
44079 if (PyErr_Occurred()) SWIG_fail;
44080 }
44081 {
44082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44083 }
44084 {
44085 if (temp2)
44086 delete arg2;
44087 }
44088 return resultobj;
44089 fail:
44090 {
44091 if (temp2)
44092 delete arg2;
44093 }
44094 return NULL;
44095 }
44096
44097
44098 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44099 PyObject *resultobj = 0;
44100 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44101 wxString result;
44102 void *argp1 = 0 ;
44103 int res1 = 0 ;
44104 PyObject *swig_obj[1] ;
44105
44106 if (!args) SWIG_fail;
44107 swig_obj[0] = args;
44108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44109 if (!SWIG_IsOK(res1)) {
44110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44111 }
44112 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44113 {
44114 PyThreadState* __tstate = wxPyBeginAllowThreads();
44115 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44116 wxPyEndAllowThreads(__tstate);
44117 if (PyErr_Occurred()) SWIG_fail;
44118 }
44119 {
44120 #if wxUSE_UNICODE
44121 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44122 #else
44123 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44124 #endif
44125 }
44126 return resultobj;
44127 fail:
44128 return NULL;
44129 }
44130
44131
44132 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44133 PyObject *obj;
44134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44135 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44136 return SWIG_Py_Void();
44137 }
44138
44139 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44140 return SWIG_Python_InitShadowInstance(args);
44141 }
44142
44143 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44144 PyObject *resultobj = 0;
44145 wxWindow *arg1 = (wxWindow *) 0 ;
44146 int arg2 = (int) -1 ;
44147 wxString const &arg3_defvalue = wxPyEmptyString ;
44148 wxString *arg3 = (wxString *) &arg3_defvalue ;
44149 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44150 wxString *arg4 = (wxString *) &arg4_defvalue ;
44151 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44152 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44153 wxSize const &arg6_defvalue = wxDefaultSize ;
44154 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44155 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44156 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44157 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44158 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44159 wxString *arg9 = (wxString *) &arg9_defvalue ;
44160 wxDirPickerCtrl *result = 0 ;
44161 void *argp1 = 0 ;
44162 int res1 = 0 ;
44163 int val2 ;
44164 int ecode2 = 0 ;
44165 bool temp3 = false ;
44166 bool temp4 = false ;
44167 wxPoint temp5 ;
44168 wxSize temp6 ;
44169 long val7 ;
44170 int ecode7 = 0 ;
44171 void *argp8 = 0 ;
44172 int res8 = 0 ;
44173 bool temp9 = false ;
44174 PyObject * obj0 = 0 ;
44175 PyObject * obj1 = 0 ;
44176 PyObject * obj2 = 0 ;
44177 PyObject * obj3 = 0 ;
44178 PyObject * obj4 = 0 ;
44179 PyObject * obj5 = 0 ;
44180 PyObject * obj6 = 0 ;
44181 PyObject * obj7 = 0 ;
44182 PyObject * obj8 = 0 ;
44183 char * kwnames[] = {
44184 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44185 };
44186
44187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44189 if (!SWIG_IsOK(res1)) {
44190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44191 }
44192 arg1 = reinterpret_cast< wxWindow * >(argp1);
44193 if (obj1) {
44194 ecode2 = SWIG_AsVal_int(obj1, &val2);
44195 if (!SWIG_IsOK(ecode2)) {
44196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44197 }
44198 arg2 = static_cast< int >(val2);
44199 }
44200 if (obj2) {
44201 {
44202 arg3 = wxString_in_helper(obj2);
44203 if (arg3 == NULL) SWIG_fail;
44204 temp3 = true;
44205 }
44206 }
44207 if (obj3) {
44208 {
44209 arg4 = wxString_in_helper(obj3);
44210 if (arg4 == NULL) SWIG_fail;
44211 temp4 = true;
44212 }
44213 }
44214 if (obj4) {
44215 {
44216 arg5 = &temp5;
44217 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44218 }
44219 }
44220 if (obj5) {
44221 {
44222 arg6 = &temp6;
44223 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44224 }
44225 }
44226 if (obj6) {
44227 ecode7 = SWIG_AsVal_long(obj6, &val7);
44228 if (!SWIG_IsOK(ecode7)) {
44229 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44230 }
44231 arg7 = static_cast< long >(val7);
44232 }
44233 if (obj7) {
44234 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44235 if (!SWIG_IsOK(res8)) {
44236 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44237 }
44238 if (!argp8) {
44239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44240 }
44241 arg8 = reinterpret_cast< wxValidator * >(argp8);
44242 }
44243 if (obj8) {
44244 {
44245 arg9 = wxString_in_helper(obj8);
44246 if (arg9 == NULL) SWIG_fail;
44247 temp9 = true;
44248 }
44249 }
44250 {
44251 if (!wxPyCheckForApp()) SWIG_fail;
44252 PyThreadState* __tstate = wxPyBeginAllowThreads();
44253 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);
44254 wxPyEndAllowThreads(__tstate);
44255 if (PyErr_Occurred()) SWIG_fail;
44256 }
44257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44258 {
44259 if (temp3)
44260 delete arg3;
44261 }
44262 {
44263 if (temp4)
44264 delete arg4;
44265 }
44266 {
44267 if (temp9)
44268 delete arg9;
44269 }
44270 return resultobj;
44271 fail:
44272 {
44273 if (temp3)
44274 delete arg3;
44275 }
44276 {
44277 if (temp4)
44278 delete arg4;
44279 }
44280 {
44281 if (temp9)
44282 delete arg9;
44283 }
44284 return NULL;
44285 }
44286
44287
44288 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44289 PyObject *resultobj = 0;
44290 wxDirPickerCtrl *result = 0 ;
44291
44292 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44293 {
44294 if (!wxPyCheckForApp()) SWIG_fail;
44295 PyThreadState* __tstate = wxPyBeginAllowThreads();
44296 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44297 wxPyEndAllowThreads(__tstate);
44298 if (PyErr_Occurred()) SWIG_fail;
44299 }
44300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44301 return resultobj;
44302 fail:
44303 return NULL;
44304 }
44305
44306
44307 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44308 PyObject *resultobj = 0;
44309 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44310 wxWindow *arg2 = (wxWindow *) 0 ;
44311 int arg3 = (int) -1 ;
44312 wxString const &arg4_defvalue = wxPyEmptyString ;
44313 wxString *arg4 = (wxString *) &arg4_defvalue ;
44314 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44315 wxString *arg5 = (wxString *) &arg5_defvalue ;
44316 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44317 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44318 wxSize const &arg7_defvalue = wxDefaultSize ;
44319 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44320 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44321 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44322 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44323 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44324 wxString *arg10 = (wxString *) &arg10_defvalue ;
44325 bool result;
44326 void *argp1 = 0 ;
44327 int res1 = 0 ;
44328 void *argp2 = 0 ;
44329 int res2 = 0 ;
44330 int val3 ;
44331 int ecode3 = 0 ;
44332 bool temp4 = false ;
44333 bool temp5 = false ;
44334 wxPoint temp6 ;
44335 wxSize temp7 ;
44336 long val8 ;
44337 int ecode8 = 0 ;
44338 void *argp9 = 0 ;
44339 int res9 = 0 ;
44340 bool temp10 = false ;
44341 PyObject * obj0 = 0 ;
44342 PyObject * obj1 = 0 ;
44343 PyObject * obj2 = 0 ;
44344 PyObject * obj3 = 0 ;
44345 PyObject * obj4 = 0 ;
44346 PyObject * obj5 = 0 ;
44347 PyObject * obj6 = 0 ;
44348 PyObject * obj7 = 0 ;
44349 PyObject * obj8 = 0 ;
44350 PyObject * obj9 = 0 ;
44351 char * kwnames[] = {
44352 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44353 };
44354
44355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44357 if (!SWIG_IsOK(res1)) {
44358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44359 }
44360 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44361 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44362 if (!SWIG_IsOK(res2)) {
44363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44364 }
44365 arg2 = reinterpret_cast< wxWindow * >(argp2);
44366 if (obj2) {
44367 ecode3 = SWIG_AsVal_int(obj2, &val3);
44368 if (!SWIG_IsOK(ecode3)) {
44369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44370 }
44371 arg3 = static_cast< int >(val3);
44372 }
44373 if (obj3) {
44374 {
44375 arg4 = wxString_in_helper(obj3);
44376 if (arg4 == NULL) SWIG_fail;
44377 temp4 = true;
44378 }
44379 }
44380 if (obj4) {
44381 {
44382 arg5 = wxString_in_helper(obj4);
44383 if (arg5 == NULL) SWIG_fail;
44384 temp5 = true;
44385 }
44386 }
44387 if (obj5) {
44388 {
44389 arg6 = &temp6;
44390 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44391 }
44392 }
44393 if (obj6) {
44394 {
44395 arg7 = &temp7;
44396 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44397 }
44398 }
44399 if (obj7) {
44400 ecode8 = SWIG_AsVal_long(obj7, &val8);
44401 if (!SWIG_IsOK(ecode8)) {
44402 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44403 }
44404 arg8 = static_cast< long >(val8);
44405 }
44406 if (obj8) {
44407 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44408 if (!SWIG_IsOK(res9)) {
44409 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44410 }
44411 if (!argp9) {
44412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44413 }
44414 arg9 = reinterpret_cast< wxValidator * >(argp9);
44415 }
44416 if (obj9) {
44417 {
44418 arg10 = wxString_in_helper(obj9);
44419 if (arg10 == NULL) SWIG_fail;
44420 temp10 = true;
44421 }
44422 }
44423 {
44424 PyThreadState* __tstate = wxPyBeginAllowThreads();
44425 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);
44426 wxPyEndAllowThreads(__tstate);
44427 if (PyErr_Occurred()) SWIG_fail;
44428 }
44429 {
44430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44431 }
44432 {
44433 if (temp4)
44434 delete arg4;
44435 }
44436 {
44437 if (temp5)
44438 delete arg5;
44439 }
44440 {
44441 if (temp10)
44442 delete arg10;
44443 }
44444 return resultobj;
44445 fail:
44446 {
44447 if (temp4)
44448 delete arg4;
44449 }
44450 {
44451 if (temp5)
44452 delete arg5;
44453 }
44454 {
44455 if (temp10)
44456 delete arg10;
44457 }
44458 return NULL;
44459 }
44460
44461
44462 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44463 PyObject *resultobj = 0;
44464 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44465 wxString result;
44466 void *argp1 = 0 ;
44467 int res1 = 0 ;
44468 PyObject *swig_obj[1] ;
44469
44470 if (!args) SWIG_fail;
44471 swig_obj[0] = args;
44472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44473 if (!SWIG_IsOK(res1)) {
44474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44475 }
44476 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44477 {
44478 PyThreadState* __tstate = wxPyBeginAllowThreads();
44479 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44480 wxPyEndAllowThreads(__tstate);
44481 if (PyErr_Occurred()) SWIG_fail;
44482 }
44483 {
44484 #if wxUSE_UNICODE
44485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44486 #else
44487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44488 #endif
44489 }
44490 return resultobj;
44491 fail:
44492 return NULL;
44493 }
44494
44495
44496 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44497 PyObject *resultobj = 0;
44498 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44499 wxString *arg2 = 0 ;
44500 void *argp1 = 0 ;
44501 int res1 = 0 ;
44502 bool temp2 = false ;
44503 PyObject * obj0 = 0 ;
44504 PyObject * obj1 = 0 ;
44505 char * kwnames[] = {
44506 (char *) "self",(char *) "str", NULL
44507 };
44508
44509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44511 if (!SWIG_IsOK(res1)) {
44512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44513 }
44514 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44515 {
44516 arg2 = wxString_in_helper(obj1);
44517 if (arg2 == NULL) SWIG_fail;
44518 temp2 = true;
44519 }
44520 {
44521 PyThreadState* __tstate = wxPyBeginAllowThreads();
44522 (arg1)->SetPath((wxString const &)*arg2);
44523 wxPyEndAllowThreads(__tstate);
44524 if (PyErr_Occurred()) SWIG_fail;
44525 }
44526 resultobj = SWIG_Py_Void();
44527 {
44528 if (temp2)
44529 delete arg2;
44530 }
44531 return resultobj;
44532 fail:
44533 {
44534 if (temp2)
44535 delete arg2;
44536 }
44537 return NULL;
44538 }
44539
44540
44541 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44542 PyObject *resultobj = 0;
44543 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44544 wxString *arg2 = 0 ;
44545 bool result;
44546 void *argp1 = 0 ;
44547 int res1 = 0 ;
44548 bool temp2 = false ;
44549 PyObject * obj0 = 0 ;
44550 PyObject * obj1 = 0 ;
44551 char * kwnames[] = {
44552 (char *) "self",(char *) "path", NULL
44553 };
44554
44555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44557 if (!SWIG_IsOK(res1)) {
44558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44559 }
44560 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44561 {
44562 arg2 = wxString_in_helper(obj1);
44563 if (arg2 == NULL) SWIG_fail;
44564 temp2 = true;
44565 }
44566 {
44567 PyThreadState* __tstate = wxPyBeginAllowThreads();
44568 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44569 wxPyEndAllowThreads(__tstate);
44570 if (PyErr_Occurred()) SWIG_fail;
44571 }
44572 {
44573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44574 }
44575 {
44576 if (temp2)
44577 delete arg2;
44578 }
44579 return resultobj;
44580 fail:
44581 {
44582 if (temp2)
44583 delete arg2;
44584 }
44585 return NULL;
44586 }
44587
44588
44589 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44590 PyObject *resultobj = 0;
44591 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44592 wxString result;
44593 void *argp1 = 0 ;
44594 int res1 = 0 ;
44595 PyObject *swig_obj[1] ;
44596
44597 if (!args) SWIG_fail;
44598 swig_obj[0] = args;
44599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44600 if (!SWIG_IsOK(res1)) {
44601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44602 }
44603 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44604 {
44605 PyThreadState* __tstate = wxPyBeginAllowThreads();
44606 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44607 wxPyEndAllowThreads(__tstate);
44608 if (PyErr_Occurred()) SWIG_fail;
44609 }
44610 {
44611 #if wxUSE_UNICODE
44612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44613 #else
44614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44615 #endif
44616 }
44617 return resultobj;
44618 fail:
44619 return NULL;
44620 }
44621
44622
44623 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44624 PyObject *obj;
44625 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44626 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44627 return SWIG_Py_Void();
44628 }
44629
44630 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44631 return SWIG_Python_InitShadowInstance(args);
44632 }
44633
44634 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44635 PyObject *resultobj = 0;
44636 wxEventType arg1 ;
44637 wxObject *arg2 = (wxObject *) 0 ;
44638 int arg3 ;
44639 wxString *arg4 = 0 ;
44640 wxFileDirPickerEvent *result = 0 ;
44641 int val1 ;
44642 int ecode1 = 0 ;
44643 void *argp2 = 0 ;
44644 int res2 = 0 ;
44645 int val3 ;
44646 int ecode3 = 0 ;
44647 bool temp4 = false ;
44648 PyObject * obj0 = 0 ;
44649 PyObject * obj1 = 0 ;
44650 PyObject * obj2 = 0 ;
44651 PyObject * obj3 = 0 ;
44652 char * kwnames[] = {
44653 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44654 };
44655
44656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44657 ecode1 = SWIG_AsVal_int(obj0, &val1);
44658 if (!SWIG_IsOK(ecode1)) {
44659 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44660 }
44661 arg1 = static_cast< wxEventType >(val1);
44662 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44663 if (!SWIG_IsOK(res2)) {
44664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44665 }
44666 arg2 = reinterpret_cast< wxObject * >(argp2);
44667 ecode3 = SWIG_AsVal_int(obj2, &val3);
44668 if (!SWIG_IsOK(ecode3)) {
44669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44670 }
44671 arg3 = static_cast< int >(val3);
44672 {
44673 arg4 = wxString_in_helper(obj3);
44674 if (arg4 == NULL) SWIG_fail;
44675 temp4 = true;
44676 }
44677 {
44678 PyThreadState* __tstate = wxPyBeginAllowThreads();
44679 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44680 wxPyEndAllowThreads(__tstate);
44681 if (PyErr_Occurred()) SWIG_fail;
44682 }
44683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44684 {
44685 if (temp4)
44686 delete arg4;
44687 }
44688 return resultobj;
44689 fail:
44690 {
44691 if (temp4)
44692 delete arg4;
44693 }
44694 return NULL;
44695 }
44696
44697
44698 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44699 PyObject *resultobj = 0;
44700 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44701 wxString result;
44702 void *argp1 = 0 ;
44703 int res1 = 0 ;
44704 PyObject *swig_obj[1] ;
44705
44706 if (!args) SWIG_fail;
44707 swig_obj[0] = args;
44708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44709 if (!SWIG_IsOK(res1)) {
44710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44711 }
44712 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44713 {
44714 PyThreadState* __tstate = wxPyBeginAllowThreads();
44715 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44716 wxPyEndAllowThreads(__tstate);
44717 if (PyErr_Occurred()) SWIG_fail;
44718 }
44719 {
44720 #if wxUSE_UNICODE
44721 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44722 #else
44723 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44724 #endif
44725 }
44726 return resultobj;
44727 fail:
44728 return NULL;
44729 }
44730
44731
44732 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44733 PyObject *resultobj = 0;
44734 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44735 wxString *arg2 = 0 ;
44736 void *argp1 = 0 ;
44737 int res1 = 0 ;
44738 bool temp2 = false ;
44739 PyObject * obj0 = 0 ;
44740 PyObject * obj1 = 0 ;
44741 char * kwnames[] = {
44742 (char *) "self",(char *) "p", NULL
44743 };
44744
44745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44747 if (!SWIG_IsOK(res1)) {
44748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44749 }
44750 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44751 {
44752 arg2 = wxString_in_helper(obj1);
44753 if (arg2 == NULL) SWIG_fail;
44754 temp2 = true;
44755 }
44756 {
44757 PyThreadState* __tstate = wxPyBeginAllowThreads();
44758 (arg1)->SetPath((wxString const &)*arg2);
44759 wxPyEndAllowThreads(__tstate);
44760 if (PyErr_Occurred()) SWIG_fail;
44761 }
44762 resultobj = SWIG_Py_Void();
44763 {
44764 if (temp2)
44765 delete arg2;
44766 }
44767 return resultobj;
44768 fail:
44769 {
44770 if (temp2)
44771 delete arg2;
44772 }
44773 return NULL;
44774 }
44775
44776
44777 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44778 PyObject *obj;
44779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44780 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44781 return SWIG_Py_Void();
44782 }
44783
44784 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44785 return SWIG_Python_InitShadowInstance(args);
44786 }
44787
44788 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44789 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44790 return 1;
44791 }
44792
44793
44794 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44795 PyObject *pyobj = 0;
44796
44797 {
44798 #if wxUSE_UNICODE
44799 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44800 #else
44801 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44802 #endif
44803 }
44804 return pyobj;
44805 }
44806
44807
44808 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44809 PyObject *resultobj = 0;
44810 wxWindow *arg1 = (wxWindow *) 0 ;
44811 int arg2 = (int) -1 ;
44812 wxFont const &arg3_defvalue = wxNullFont ;
44813 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44814 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44815 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44816 wxSize const &arg5_defvalue = wxDefaultSize ;
44817 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44818 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44819 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44820 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44821 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44822 wxString *arg8 = (wxString *) &arg8_defvalue ;
44823 wxFontPickerCtrl *result = 0 ;
44824 void *argp1 = 0 ;
44825 int res1 = 0 ;
44826 int val2 ;
44827 int ecode2 = 0 ;
44828 void *argp3 = 0 ;
44829 int res3 = 0 ;
44830 wxPoint temp4 ;
44831 wxSize temp5 ;
44832 long val6 ;
44833 int ecode6 = 0 ;
44834 void *argp7 = 0 ;
44835 int res7 = 0 ;
44836 bool temp8 = false ;
44837 PyObject * obj0 = 0 ;
44838 PyObject * obj1 = 0 ;
44839 PyObject * obj2 = 0 ;
44840 PyObject * obj3 = 0 ;
44841 PyObject * obj4 = 0 ;
44842 PyObject * obj5 = 0 ;
44843 PyObject * obj6 = 0 ;
44844 PyObject * obj7 = 0 ;
44845 char * kwnames[] = {
44846 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44847 };
44848
44849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44851 if (!SWIG_IsOK(res1)) {
44852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44853 }
44854 arg1 = reinterpret_cast< wxWindow * >(argp1);
44855 if (obj1) {
44856 ecode2 = SWIG_AsVal_int(obj1, &val2);
44857 if (!SWIG_IsOK(ecode2)) {
44858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44859 }
44860 arg2 = static_cast< int >(val2);
44861 }
44862 if (obj2) {
44863 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44864 if (!SWIG_IsOK(res3)) {
44865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44866 }
44867 if (!argp3) {
44868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44869 }
44870 arg3 = reinterpret_cast< wxFont * >(argp3);
44871 }
44872 if (obj3) {
44873 {
44874 arg4 = &temp4;
44875 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44876 }
44877 }
44878 if (obj4) {
44879 {
44880 arg5 = &temp5;
44881 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44882 }
44883 }
44884 if (obj5) {
44885 ecode6 = SWIG_AsVal_long(obj5, &val6);
44886 if (!SWIG_IsOK(ecode6)) {
44887 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44888 }
44889 arg6 = static_cast< long >(val6);
44890 }
44891 if (obj6) {
44892 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44893 if (!SWIG_IsOK(res7)) {
44894 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44895 }
44896 if (!argp7) {
44897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44898 }
44899 arg7 = reinterpret_cast< wxValidator * >(argp7);
44900 }
44901 if (obj7) {
44902 {
44903 arg8 = wxString_in_helper(obj7);
44904 if (arg8 == NULL) SWIG_fail;
44905 temp8 = true;
44906 }
44907 }
44908 {
44909 if (!wxPyCheckForApp()) SWIG_fail;
44910 PyThreadState* __tstate = wxPyBeginAllowThreads();
44911 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44912 wxPyEndAllowThreads(__tstate);
44913 if (PyErr_Occurred()) SWIG_fail;
44914 }
44915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44916 {
44917 if (temp8)
44918 delete arg8;
44919 }
44920 return resultobj;
44921 fail:
44922 {
44923 if (temp8)
44924 delete arg8;
44925 }
44926 return NULL;
44927 }
44928
44929
44930 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44931 PyObject *resultobj = 0;
44932 wxFontPickerCtrl *result = 0 ;
44933
44934 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44935 {
44936 if (!wxPyCheckForApp()) SWIG_fail;
44937 PyThreadState* __tstate = wxPyBeginAllowThreads();
44938 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44939 wxPyEndAllowThreads(__tstate);
44940 if (PyErr_Occurred()) SWIG_fail;
44941 }
44942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44943 return resultobj;
44944 fail:
44945 return NULL;
44946 }
44947
44948
44949 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44950 PyObject *resultobj = 0;
44951 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44952 wxWindow *arg2 = (wxWindow *) 0 ;
44953 int arg3 = (int) -1 ;
44954 wxFont const &arg4_defvalue = wxNullFont ;
44955 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44956 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44957 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44958 wxSize const &arg6_defvalue = wxDefaultSize ;
44959 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44960 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44961 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44962 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44963 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44964 wxString *arg9 = (wxString *) &arg9_defvalue ;
44965 bool result;
44966 void *argp1 = 0 ;
44967 int res1 = 0 ;
44968 void *argp2 = 0 ;
44969 int res2 = 0 ;
44970 int val3 ;
44971 int ecode3 = 0 ;
44972 void *argp4 = 0 ;
44973 int res4 = 0 ;
44974 wxPoint temp5 ;
44975 wxSize temp6 ;
44976 long val7 ;
44977 int ecode7 = 0 ;
44978 void *argp8 = 0 ;
44979 int res8 = 0 ;
44980 bool temp9 = false ;
44981 PyObject * obj0 = 0 ;
44982 PyObject * obj1 = 0 ;
44983 PyObject * obj2 = 0 ;
44984 PyObject * obj3 = 0 ;
44985 PyObject * obj4 = 0 ;
44986 PyObject * obj5 = 0 ;
44987 PyObject * obj6 = 0 ;
44988 PyObject * obj7 = 0 ;
44989 PyObject * obj8 = 0 ;
44990 char * kwnames[] = {
44991 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44992 };
44993
44994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44996 if (!SWIG_IsOK(res1)) {
44997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44998 }
44999 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45001 if (!SWIG_IsOK(res2)) {
45002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45003 }
45004 arg2 = reinterpret_cast< wxWindow * >(argp2);
45005 if (obj2) {
45006 ecode3 = SWIG_AsVal_int(obj2, &val3);
45007 if (!SWIG_IsOK(ecode3)) {
45008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45009 }
45010 arg3 = static_cast< int >(val3);
45011 }
45012 if (obj3) {
45013 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45014 if (!SWIG_IsOK(res4)) {
45015 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45016 }
45017 if (!argp4) {
45018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45019 }
45020 arg4 = reinterpret_cast< wxFont * >(argp4);
45021 }
45022 if (obj4) {
45023 {
45024 arg5 = &temp5;
45025 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45026 }
45027 }
45028 if (obj5) {
45029 {
45030 arg6 = &temp6;
45031 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45032 }
45033 }
45034 if (obj6) {
45035 ecode7 = SWIG_AsVal_long(obj6, &val7);
45036 if (!SWIG_IsOK(ecode7)) {
45037 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45038 }
45039 arg7 = static_cast< long >(val7);
45040 }
45041 if (obj7) {
45042 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45043 if (!SWIG_IsOK(res8)) {
45044 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45045 }
45046 if (!argp8) {
45047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45048 }
45049 arg8 = reinterpret_cast< wxValidator * >(argp8);
45050 }
45051 if (obj8) {
45052 {
45053 arg9 = wxString_in_helper(obj8);
45054 if (arg9 == NULL) SWIG_fail;
45055 temp9 = true;
45056 }
45057 }
45058 {
45059 PyThreadState* __tstate = wxPyBeginAllowThreads();
45060 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45061 wxPyEndAllowThreads(__tstate);
45062 if (PyErr_Occurred()) SWIG_fail;
45063 }
45064 {
45065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45066 }
45067 {
45068 if (temp9)
45069 delete arg9;
45070 }
45071 return resultobj;
45072 fail:
45073 {
45074 if (temp9)
45075 delete arg9;
45076 }
45077 return NULL;
45078 }
45079
45080
45081 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45082 PyObject *resultobj = 0;
45083 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45084 wxFont result;
45085 void *argp1 = 0 ;
45086 int res1 = 0 ;
45087 PyObject *swig_obj[1] ;
45088
45089 if (!args) SWIG_fail;
45090 swig_obj[0] = args;
45091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45092 if (!SWIG_IsOK(res1)) {
45093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45094 }
45095 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45096 {
45097 PyThreadState* __tstate = wxPyBeginAllowThreads();
45098 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45099 wxPyEndAllowThreads(__tstate);
45100 if (PyErr_Occurred()) SWIG_fail;
45101 }
45102 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45103 return resultobj;
45104 fail:
45105 return NULL;
45106 }
45107
45108
45109 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45110 PyObject *resultobj = 0;
45111 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45112 wxFont *arg2 = 0 ;
45113 void *argp1 = 0 ;
45114 int res1 = 0 ;
45115 void *argp2 = 0 ;
45116 int res2 = 0 ;
45117 PyObject * obj0 = 0 ;
45118 PyObject * obj1 = 0 ;
45119 char * kwnames[] = {
45120 (char *) "self",(char *) "f", NULL
45121 };
45122
45123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45125 if (!SWIG_IsOK(res1)) {
45126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45127 }
45128 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45130 if (!SWIG_IsOK(res2)) {
45131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45132 }
45133 if (!argp2) {
45134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45135 }
45136 arg2 = reinterpret_cast< wxFont * >(argp2);
45137 {
45138 PyThreadState* __tstate = wxPyBeginAllowThreads();
45139 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45140 wxPyEndAllowThreads(__tstate);
45141 if (PyErr_Occurred()) SWIG_fail;
45142 }
45143 resultobj = SWIG_Py_Void();
45144 return resultobj;
45145 fail:
45146 return NULL;
45147 }
45148
45149
45150 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45151 PyObject *resultobj = 0;
45152 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45153 unsigned int arg2 ;
45154 void *argp1 = 0 ;
45155 int res1 = 0 ;
45156 unsigned int val2 ;
45157 int ecode2 = 0 ;
45158 PyObject * obj0 = 0 ;
45159 PyObject * obj1 = 0 ;
45160 char * kwnames[] = {
45161 (char *) "self",(char *) "max", NULL
45162 };
45163
45164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45166 if (!SWIG_IsOK(res1)) {
45167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45168 }
45169 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45170 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45171 if (!SWIG_IsOK(ecode2)) {
45172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45173 }
45174 arg2 = static_cast< unsigned int >(val2);
45175 {
45176 PyThreadState* __tstate = wxPyBeginAllowThreads();
45177 (arg1)->SetMaxPointSize(arg2);
45178 wxPyEndAllowThreads(__tstate);
45179 if (PyErr_Occurred()) SWIG_fail;
45180 }
45181 resultobj = SWIG_Py_Void();
45182 return resultobj;
45183 fail:
45184 return NULL;
45185 }
45186
45187
45188 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45189 PyObject *resultobj = 0;
45190 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45191 unsigned int result;
45192 void *argp1 = 0 ;
45193 int res1 = 0 ;
45194 PyObject *swig_obj[1] ;
45195
45196 if (!args) SWIG_fail;
45197 swig_obj[0] = args;
45198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45199 if (!SWIG_IsOK(res1)) {
45200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45201 }
45202 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45203 {
45204 PyThreadState* __tstate = wxPyBeginAllowThreads();
45205 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45206 wxPyEndAllowThreads(__tstate);
45207 if (PyErr_Occurred()) SWIG_fail;
45208 }
45209 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45210 return resultobj;
45211 fail:
45212 return NULL;
45213 }
45214
45215
45216 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45217 PyObject *obj;
45218 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45219 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45220 return SWIG_Py_Void();
45221 }
45222
45223 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45224 return SWIG_Python_InitShadowInstance(args);
45225 }
45226
45227 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45228 PyObject *resultobj = 0;
45229 wxObject *arg1 = (wxObject *) 0 ;
45230 int arg2 ;
45231 wxFont *arg3 = 0 ;
45232 wxFontPickerEvent *result = 0 ;
45233 void *argp1 = 0 ;
45234 int res1 = 0 ;
45235 int val2 ;
45236 int ecode2 = 0 ;
45237 void *argp3 = 0 ;
45238 int res3 = 0 ;
45239 PyObject * obj0 = 0 ;
45240 PyObject * obj1 = 0 ;
45241 PyObject * obj2 = 0 ;
45242 char * kwnames[] = {
45243 (char *) "generator",(char *) "id",(char *) "f", NULL
45244 };
45245
45246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45248 if (!SWIG_IsOK(res1)) {
45249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45250 }
45251 arg1 = reinterpret_cast< wxObject * >(argp1);
45252 ecode2 = SWIG_AsVal_int(obj1, &val2);
45253 if (!SWIG_IsOK(ecode2)) {
45254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45255 }
45256 arg2 = static_cast< int >(val2);
45257 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45258 if (!SWIG_IsOK(res3)) {
45259 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45260 }
45261 if (!argp3) {
45262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45263 }
45264 arg3 = reinterpret_cast< wxFont * >(argp3);
45265 {
45266 PyThreadState* __tstate = wxPyBeginAllowThreads();
45267 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45268 wxPyEndAllowThreads(__tstate);
45269 if (PyErr_Occurred()) SWIG_fail;
45270 }
45271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45272 return resultobj;
45273 fail:
45274 return NULL;
45275 }
45276
45277
45278 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45279 PyObject *resultobj = 0;
45280 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45281 wxFont result;
45282 void *argp1 = 0 ;
45283 int res1 = 0 ;
45284 PyObject *swig_obj[1] ;
45285
45286 if (!args) SWIG_fail;
45287 swig_obj[0] = args;
45288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45289 if (!SWIG_IsOK(res1)) {
45290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45291 }
45292 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45293 {
45294 PyThreadState* __tstate = wxPyBeginAllowThreads();
45295 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45296 wxPyEndAllowThreads(__tstate);
45297 if (PyErr_Occurred()) SWIG_fail;
45298 }
45299 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45300 return resultobj;
45301 fail:
45302 return NULL;
45303 }
45304
45305
45306 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45307 PyObject *resultobj = 0;
45308 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45309 wxFont *arg2 = 0 ;
45310 void *argp1 = 0 ;
45311 int res1 = 0 ;
45312 void *argp2 = 0 ;
45313 int res2 = 0 ;
45314 PyObject * obj0 = 0 ;
45315 PyObject * obj1 = 0 ;
45316 char * kwnames[] = {
45317 (char *) "self",(char *) "c", NULL
45318 };
45319
45320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45322 if (!SWIG_IsOK(res1)) {
45323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45324 }
45325 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45327 if (!SWIG_IsOK(res2)) {
45328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45329 }
45330 if (!argp2) {
45331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45332 }
45333 arg2 = reinterpret_cast< wxFont * >(argp2);
45334 {
45335 PyThreadState* __tstate = wxPyBeginAllowThreads();
45336 (arg1)->SetFont((wxFont const &)*arg2);
45337 wxPyEndAllowThreads(__tstate);
45338 if (PyErr_Occurred()) SWIG_fail;
45339 }
45340 resultobj = SWIG_Py_Void();
45341 return resultobj;
45342 fail:
45343 return NULL;
45344 }
45345
45346
45347 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45348 PyObject *obj;
45349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45350 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45351 return SWIG_Py_Void();
45352 }
45353
45354 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45355 return SWIG_Python_InitShadowInstance(args);
45356 }
45357
45358 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45359 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45360 return 1;
45361 }
45362
45363
45364 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45365 PyObject *pyobj = 0;
45366
45367 {
45368 #if wxUSE_UNICODE
45369 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45370 #else
45371 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45372 #endif
45373 }
45374 return pyobj;
45375 }
45376
45377
45378 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45379 PyObject *resultobj = 0;
45380 wxWindow *arg1 = (wxWindow *) 0 ;
45381 int arg2 = (int) -1 ;
45382 wxString const &arg3_defvalue = wxPyEmptyString ;
45383 wxString *arg3 = (wxString *) &arg3_defvalue ;
45384 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45385 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45386 wxSize const &arg5_defvalue = wxDefaultSize ;
45387 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45388 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45389 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45390 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45391 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45392 wxString *arg8 = (wxString *) &arg8_defvalue ;
45393 wxCollapsiblePane *result = 0 ;
45394 void *argp1 = 0 ;
45395 int res1 = 0 ;
45396 int val2 ;
45397 int ecode2 = 0 ;
45398 bool temp3 = false ;
45399 wxPoint temp4 ;
45400 wxSize temp5 ;
45401 long val6 ;
45402 int ecode6 = 0 ;
45403 void *argp7 = 0 ;
45404 int res7 = 0 ;
45405 bool temp8 = false ;
45406 PyObject * obj0 = 0 ;
45407 PyObject * obj1 = 0 ;
45408 PyObject * obj2 = 0 ;
45409 PyObject * obj3 = 0 ;
45410 PyObject * obj4 = 0 ;
45411 PyObject * obj5 = 0 ;
45412 PyObject * obj6 = 0 ;
45413 PyObject * obj7 = 0 ;
45414 char * kwnames[] = {
45415 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45416 };
45417
45418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45420 if (!SWIG_IsOK(res1)) {
45421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45422 }
45423 arg1 = reinterpret_cast< wxWindow * >(argp1);
45424 if (obj1) {
45425 ecode2 = SWIG_AsVal_int(obj1, &val2);
45426 if (!SWIG_IsOK(ecode2)) {
45427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45428 }
45429 arg2 = static_cast< int >(val2);
45430 }
45431 if (obj2) {
45432 {
45433 arg3 = wxString_in_helper(obj2);
45434 if (arg3 == NULL) SWIG_fail;
45435 temp3 = true;
45436 }
45437 }
45438 if (obj3) {
45439 {
45440 arg4 = &temp4;
45441 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45442 }
45443 }
45444 if (obj4) {
45445 {
45446 arg5 = &temp5;
45447 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45448 }
45449 }
45450 if (obj5) {
45451 ecode6 = SWIG_AsVal_long(obj5, &val6);
45452 if (!SWIG_IsOK(ecode6)) {
45453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45454 }
45455 arg6 = static_cast< long >(val6);
45456 }
45457 if (obj6) {
45458 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45459 if (!SWIG_IsOK(res7)) {
45460 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45461 }
45462 if (!argp7) {
45463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45464 }
45465 arg7 = reinterpret_cast< wxValidator * >(argp7);
45466 }
45467 if (obj7) {
45468 {
45469 arg8 = wxString_in_helper(obj7);
45470 if (arg8 == NULL) SWIG_fail;
45471 temp8 = true;
45472 }
45473 }
45474 {
45475 if (!wxPyCheckForApp()) SWIG_fail;
45476 PyThreadState* __tstate = wxPyBeginAllowThreads();
45477 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45478 wxPyEndAllowThreads(__tstate);
45479 if (PyErr_Occurred()) SWIG_fail;
45480 }
45481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45482 {
45483 if (temp3)
45484 delete arg3;
45485 }
45486 {
45487 if (temp8)
45488 delete arg8;
45489 }
45490 return resultobj;
45491 fail:
45492 {
45493 if (temp3)
45494 delete arg3;
45495 }
45496 {
45497 if (temp8)
45498 delete arg8;
45499 }
45500 return NULL;
45501 }
45502
45503
45504 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45505 PyObject *resultobj = 0;
45506 wxCollapsiblePane *result = 0 ;
45507
45508 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45509 {
45510 if (!wxPyCheckForApp()) SWIG_fail;
45511 PyThreadState* __tstate = wxPyBeginAllowThreads();
45512 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45513 wxPyEndAllowThreads(__tstate);
45514 if (PyErr_Occurred()) SWIG_fail;
45515 }
45516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45517 return resultobj;
45518 fail:
45519 return NULL;
45520 }
45521
45522
45523 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45524 PyObject *resultobj = 0;
45525 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45526 wxWindow *arg2 = (wxWindow *) 0 ;
45527 int arg3 = (int) -1 ;
45528 wxString const &arg4_defvalue = wxPyEmptyString ;
45529 wxString *arg4 = (wxString *) &arg4_defvalue ;
45530 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45531 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45532 wxSize const &arg6_defvalue = wxDefaultSize ;
45533 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45534 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45535 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45536 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45537 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45538 wxString *arg9 = (wxString *) &arg9_defvalue ;
45539 bool result;
45540 void *argp1 = 0 ;
45541 int res1 = 0 ;
45542 void *argp2 = 0 ;
45543 int res2 = 0 ;
45544 int val3 ;
45545 int ecode3 = 0 ;
45546 bool temp4 = false ;
45547 wxPoint temp5 ;
45548 wxSize temp6 ;
45549 long val7 ;
45550 int ecode7 = 0 ;
45551 void *argp8 = 0 ;
45552 int res8 = 0 ;
45553 bool temp9 = false ;
45554 PyObject * obj0 = 0 ;
45555 PyObject * obj1 = 0 ;
45556 PyObject * obj2 = 0 ;
45557 PyObject * obj3 = 0 ;
45558 PyObject * obj4 = 0 ;
45559 PyObject * obj5 = 0 ;
45560 PyObject * obj6 = 0 ;
45561 PyObject * obj7 = 0 ;
45562 PyObject * obj8 = 0 ;
45563 char * kwnames[] = {
45564 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45565 };
45566
45567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45569 if (!SWIG_IsOK(res1)) {
45570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45571 }
45572 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45574 if (!SWIG_IsOK(res2)) {
45575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45576 }
45577 arg2 = reinterpret_cast< wxWindow * >(argp2);
45578 if (obj2) {
45579 ecode3 = SWIG_AsVal_int(obj2, &val3);
45580 if (!SWIG_IsOK(ecode3)) {
45581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45582 }
45583 arg3 = static_cast< int >(val3);
45584 }
45585 if (obj3) {
45586 {
45587 arg4 = wxString_in_helper(obj3);
45588 if (arg4 == NULL) SWIG_fail;
45589 temp4 = true;
45590 }
45591 }
45592 if (obj4) {
45593 {
45594 arg5 = &temp5;
45595 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45596 }
45597 }
45598 if (obj5) {
45599 {
45600 arg6 = &temp6;
45601 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45602 }
45603 }
45604 if (obj6) {
45605 ecode7 = SWIG_AsVal_long(obj6, &val7);
45606 if (!SWIG_IsOK(ecode7)) {
45607 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45608 }
45609 arg7 = static_cast< long >(val7);
45610 }
45611 if (obj7) {
45612 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45613 if (!SWIG_IsOK(res8)) {
45614 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45615 }
45616 if (!argp8) {
45617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45618 }
45619 arg8 = reinterpret_cast< wxValidator * >(argp8);
45620 }
45621 if (obj8) {
45622 {
45623 arg9 = wxString_in_helper(obj8);
45624 if (arg9 == NULL) SWIG_fail;
45625 temp9 = true;
45626 }
45627 }
45628 {
45629 PyThreadState* __tstate = wxPyBeginAllowThreads();
45630 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45631 wxPyEndAllowThreads(__tstate);
45632 if (PyErr_Occurred()) SWIG_fail;
45633 }
45634 {
45635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45636 }
45637 {
45638 if (temp4)
45639 delete arg4;
45640 }
45641 {
45642 if (temp9)
45643 delete arg9;
45644 }
45645 return resultobj;
45646 fail:
45647 {
45648 if (temp4)
45649 delete arg4;
45650 }
45651 {
45652 if (temp9)
45653 delete arg9;
45654 }
45655 return NULL;
45656 }
45657
45658
45659 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45660 PyObject *resultobj = 0;
45661 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45662 bool arg2 = (bool) true ;
45663 void *argp1 = 0 ;
45664 int res1 = 0 ;
45665 bool val2 ;
45666 int ecode2 = 0 ;
45667 PyObject * obj0 = 0 ;
45668 PyObject * obj1 = 0 ;
45669 char * kwnames[] = {
45670 (char *) "self",(char *) "collapse", NULL
45671 };
45672
45673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45675 if (!SWIG_IsOK(res1)) {
45676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45677 }
45678 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45679 if (obj1) {
45680 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45681 if (!SWIG_IsOK(ecode2)) {
45682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45683 }
45684 arg2 = static_cast< bool >(val2);
45685 }
45686 {
45687 PyThreadState* __tstate = wxPyBeginAllowThreads();
45688 (arg1)->Collapse(arg2);
45689 wxPyEndAllowThreads(__tstate);
45690 if (PyErr_Occurred()) SWIG_fail;
45691 }
45692 resultobj = SWIG_Py_Void();
45693 return resultobj;
45694 fail:
45695 return NULL;
45696 }
45697
45698
45699 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45700 PyObject *resultobj = 0;
45701 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45702 void *argp1 = 0 ;
45703 int res1 = 0 ;
45704 PyObject *swig_obj[1] ;
45705
45706 if (!args) SWIG_fail;
45707 swig_obj[0] = args;
45708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45709 if (!SWIG_IsOK(res1)) {
45710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45711 }
45712 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45713 {
45714 PyThreadState* __tstate = wxPyBeginAllowThreads();
45715 (arg1)->Expand();
45716 wxPyEndAllowThreads(__tstate);
45717 if (PyErr_Occurred()) SWIG_fail;
45718 }
45719 resultobj = SWIG_Py_Void();
45720 return resultobj;
45721 fail:
45722 return NULL;
45723 }
45724
45725
45726 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45727 PyObject *resultobj = 0;
45728 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45729 bool result;
45730 void *argp1 = 0 ;
45731 int res1 = 0 ;
45732 PyObject *swig_obj[1] ;
45733
45734 if (!args) SWIG_fail;
45735 swig_obj[0] = args;
45736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45737 if (!SWIG_IsOK(res1)) {
45738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45739 }
45740 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45741 {
45742 PyThreadState* __tstate = wxPyBeginAllowThreads();
45743 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45744 wxPyEndAllowThreads(__tstate);
45745 if (PyErr_Occurred()) SWIG_fail;
45746 }
45747 {
45748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45749 }
45750 return resultobj;
45751 fail:
45752 return NULL;
45753 }
45754
45755
45756 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45757 PyObject *resultobj = 0;
45758 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45759 bool result;
45760 void *argp1 = 0 ;
45761 int res1 = 0 ;
45762 PyObject *swig_obj[1] ;
45763
45764 if (!args) SWIG_fail;
45765 swig_obj[0] = args;
45766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45767 if (!SWIG_IsOK(res1)) {
45768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45769 }
45770 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45771 {
45772 PyThreadState* __tstate = wxPyBeginAllowThreads();
45773 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45774 wxPyEndAllowThreads(__tstate);
45775 if (PyErr_Occurred()) SWIG_fail;
45776 }
45777 {
45778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45779 }
45780 return resultobj;
45781 fail:
45782 return NULL;
45783 }
45784
45785
45786 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45787 PyObject *resultobj = 0;
45788 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45789 wxWindow *result = 0 ;
45790 void *argp1 = 0 ;
45791 int res1 = 0 ;
45792 PyObject *swig_obj[1] ;
45793
45794 if (!args) SWIG_fail;
45795 swig_obj[0] = args;
45796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45797 if (!SWIG_IsOK(res1)) {
45798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45799 }
45800 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45801 {
45802 PyThreadState* __tstate = wxPyBeginAllowThreads();
45803 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45804 wxPyEndAllowThreads(__tstate);
45805 if (PyErr_Occurred()) SWIG_fail;
45806 }
45807 {
45808 resultobj = wxPyMake_wxObject(result, 0);
45809 }
45810 return resultobj;
45811 fail:
45812 return NULL;
45813 }
45814
45815
45816 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45817 PyObject *obj;
45818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45819 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45820 return SWIG_Py_Void();
45821 }
45822
45823 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45824 return SWIG_Python_InitShadowInstance(args);
45825 }
45826
45827 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45828 PyObject *resultobj = 0;
45829 wxObject *arg1 = (wxObject *) 0 ;
45830 int arg2 ;
45831 bool arg3 ;
45832 wxCollapsiblePaneEvent *result = 0 ;
45833 void *argp1 = 0 ;
45834 int res1 = 0 ;
45835 int val2 ;
45836 int ecode2 = 0 ;
45837 bool val3 ;
45838 int ecode3 = 0 ;
45839 PyObject * obj0 = 0 ;
45840 PyObject * obj1 = 0 ;
45841 PyObject * obj2 = 0 ;
45842 char * kwnames[] = {
45843 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45844 };
45845
45846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45848 if (!SWIG_IsOK(res1)) {
45849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45850 }
45851 arg1 = reinterpret_cast< wxObject * >(argp1);
45852 ecode2 = SWIG_AsVal_int(obj1, &val2);
45853 if (!SWIG_IsOK(ecode2)) {
45854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45855 }
45856 arg2 = static_cast< int >(val2);
45857 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45858 if (!SWIG_IsOK(ecode3)) {
45859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45860 }
45861 arg3 = static_cast< bool >(val3);
45862 {
45863 PyThreadState* __tstate = wxPyBeginAllowThreads();
45864 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45865 wxPyEndAllowThreads(__tstate);
45866 if (PyErr_Occurred()) SWIG_fail;
45867 }
45868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45869 return resultobj;
45870 fail:
45871 return NULL;
45872 }
45873
45874
45875 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45876 PyObject *resultobj = 0;
45877 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45878 bool result;
45879 void *argp1 = 0 ;
45880 int res1 = 0 ;
45881 PyObject *swig_obj[1] ;
45882
45883 if (!args) SWIG_fail;
45884 swig_obj[0] = args;
45885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45886 if (!SWIG_IsOK(res1)) {
45887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45888 }
45889 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45890 {
45891 PyThreadState* __tstate = wxPyBeginAllowThreads();
45892 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45893 wxPyEndAllowThreads(__tstate);
45894 if (PyErr_Occurred()) SWIG_fail;
45895 }
45896 {
45897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45898 }
45899 return resultobj;
45900 fail:
45901 return NULL;
45902 }
45903
45904
45905 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45906 PyObject *resultobj = 0;
45907 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45908 bool arg2 ;
45909 void *argp1 = 0 ;
45910 int res1 = 0 ;
45911 bool val2 ;
45912 int ecode2 = 0 ;
45913 PyObject * obj0 = 0 ;
45914 PyObject * obj1 = 0 ;
45915 char * kwnames[] = {
45916 (char *) "self",(char *) "c", NULL
45917 };
45918
45919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45921 if (!SWIG_IsOK(res1)) {
45922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45923 }
45924 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45925 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45926 if (!SWIG_IsOK(ecode2)) {
45927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45928 }
45929 arg2 = static_cast< bool >(val2);
45930 {
45931 PyThreadState* __tstate = wxPyBeginAllowThreads();
45932 (arg1)->SetCollapsed(arg2);
45933 wxPyEndAllowThreads(__tstate);
45934 if (PyErr_Occurred()) SWIG_fail;
45935 }
45936 resultobj = SWIG_Py_Void();
45937 return resultobj;
45938 fail:
45939 return NULL;
45940 }
45941
45942
45943 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45944 PyObject *obj;
45945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45946 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
45947 return SWIG_Py_Void();
45948 }
45949
45950 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45951 return SWIG_Python_InitShadowInstance(args);
45952 }
45953
45954 static PyMethodDef SwigMethods[] = {
45955 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45957 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45959 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45960 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45962 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45963 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45965 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45967 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45968 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45969 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45970 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45971 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45978 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45979 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45980 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45981 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45983 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45985 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45986 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45988 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45990 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45991 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45993 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45994 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45996 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45998 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46000 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46001 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46003 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46005 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46007 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46008 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46009 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46011 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46012 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
46015 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46016 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46019 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46021 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46022 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46023 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46024 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46025 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46026 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46027 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46028 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46029 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46031 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46032 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46034 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46037 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
46039 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
46040 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46041 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46043 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46045 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46047 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46048 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46050 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46053 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46054 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46056 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46058 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46059 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46061 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46062 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46064 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46065 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46068 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46069 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46071 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46073 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46077 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46078 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46079 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46080 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46091 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46096 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46102 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46103 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46105 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
46109 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46110 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46111 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46113 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46114 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46124 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46125 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46126 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46127 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46128 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46129 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46130 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46132 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46133 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46134 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46135 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46136 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46137 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46138 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46139 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46140 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46141 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46142 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46143 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46144 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46146 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46148 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46150 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46155 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46156 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46157 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46158 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46159 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46160 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46161 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46162 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46167 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
46168 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
46169 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46177 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46178 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46180 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46182 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46183 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46184 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46185 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46186 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46187 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46188 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46189 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46190 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46191 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46192 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46194 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46195 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46196 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46198 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46199 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
46200 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46201 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46203 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46204 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46205 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46206 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46207 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46208 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46209 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46210 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46211 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46213 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46214 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46215 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46216 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46217 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46218 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46219 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46222 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46223 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46225 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46227 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46228 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46229 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46234 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46236 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46237 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46239 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46241 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46244 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46245 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46246 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46249 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46250 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46251 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46252 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46254 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46255 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46257 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46258 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46259 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46260 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46261 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46262 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46263 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46264 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46268 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46269 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46271 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46272 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46273 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46274 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46276 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46277 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46278 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46279 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46280 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46282 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46284 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46285 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46286 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46287 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46288 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46289 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46290 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46291 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46292 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46293 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46295 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46296 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46297 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46299 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46301 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46302 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46304 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46306 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46307 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46309 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46310 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46311 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46312 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46314 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46315 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46317 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46319 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46320 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46321 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46322 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46323 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46324 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46326 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46327 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46328 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46332 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46334 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46335 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46337 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46338 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
46339 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
46341 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
46343 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
46344 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46347 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46348 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46350 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46351 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46354 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46355 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46356 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46357 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46359 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46361 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46362 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46364 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46365 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46366 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46367 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46369 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46370 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46372 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
46373 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
46374 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46375 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
46376 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
46377 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
46378 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
46379 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46380 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
46381 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
46382 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
46383 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46384 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
46385 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
46386 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
46387 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
46388 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
46390 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
46391 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
46392 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46393 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
46394 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
46395 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
46396 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
46397 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46398 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46399 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46400 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46401 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
46402 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
46403 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
46404 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
46405 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
46406 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
46407 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46408 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
46409 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
46410 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
46411 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
46412 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46413 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
46414 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
46415 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
46416 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
46417 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46418 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
46419 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
46420 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
46421 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
46422 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
46423 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
46424 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
46425 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
46426 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
46427 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
46428 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
46429 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
46430 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
46431 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
46432 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
46433 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
46434 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
46435 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
46436 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
46437 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46438 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
46439 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46441 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46443 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46444 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46445 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
46446 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46447 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
46448 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46449 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
46450 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
46451 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
46452 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46453 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46454 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
46455 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
46456 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
46457 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
46458 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46459 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
46460 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
46461 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
46462 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
46463 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
46464 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
46465 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
46466 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46467 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46468 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46469 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
46470 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
46471 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46472 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46473 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46474 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46475 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46476 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
46477 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46478 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
46479 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
46480 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
46481 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
46482 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
46483 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
46484 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46485 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
46486 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
46487 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
46488 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
46489 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
46490 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
46491 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46492 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
46494 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
46495 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
46496 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
46497 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
46498 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46499 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46500 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
46501 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
46502 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46503 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
46504 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46505 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46506 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46507 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
46508 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
46509 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
46510 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
46511 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
46512 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
46513 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
46514 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
46515 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
46516 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
46517 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
46518 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
46519 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
46520 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
46521 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
46522 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46523 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46524 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46525 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
46526 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46527 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
46528 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46529 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46530 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
46531 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46532 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46533 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46534 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
46535 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
46536 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
46537 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
46538 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
46539 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
46540 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
46541 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
46542 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
46543 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
46544 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
46545 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
46546 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
46547 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
46548 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46549 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46550 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46551 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46552 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46553 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46554 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46555 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46556 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46557 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46558 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46559 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46560 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46561 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46562 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46563 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46564 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46565 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46566 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46567 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46568 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46569 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46570 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46571 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46572 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46573 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46574 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46575 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46576 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46577 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46578 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46579 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46580 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46581 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46582 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46583 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46584 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46585 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46586 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46587 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46588 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46589 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46590 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46591 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46592 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46593 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46594 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46595 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46596 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46597 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46598 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46599 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46600 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46601 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46602 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46603 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46604 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46605 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46606 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46607 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46608 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46609 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46610 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46611 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46612 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46613 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46614 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46615 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46616 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46617 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46618 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46619 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46620 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46621 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46622 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46624 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46625 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46626 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46627 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46628 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46629 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46630 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46631 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46632 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46633 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46634 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46635 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46636 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46637 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46638 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46639 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46640 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46641 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46642 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46643 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46645 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46646 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46647 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46648 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46649 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46650 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46651 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46652 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
46653 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46654 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46655 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46656 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46657 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46658 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46659 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46661 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46662 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46663 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46664 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46666 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46667 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46669 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46671 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46672 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46673 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46674 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46675 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46676 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46677 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46678 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46679 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46680 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46681 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46682 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46683 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46684 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46685 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46686 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46687 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46688 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46689 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46691 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46692 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46693 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46694 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46695 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46696 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46697 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46698 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46699 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46700 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46701 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46702 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
46703 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
46704 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46705 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46707 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46708 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46709 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46711 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46712 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46714 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46715 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46716 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46718 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46719 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46720 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46721 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46723 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46724 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46726 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46727 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46728 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46729 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46731 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46732 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46733 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46735 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46736 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46739 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46740 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46741 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46742 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46743 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46747 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46748 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46749 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46750 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46751 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46752 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46753 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46754 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46755 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46756 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46757 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46758 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46759 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46760 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46761 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46762 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46763 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46764 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46765 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46766 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46767 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46768 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46769 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46770 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46772 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46773 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46774 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46775 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46776 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46777 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46779 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
46780 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46781 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
46782 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46783 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46784 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46785 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46786 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46787 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46788 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46789 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46790 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46793 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46794 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46795 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46796 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46797 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
46800 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46801 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46802 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46804 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46805 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
46806 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
46807 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46808 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46809 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46810 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46811 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46812 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46813 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46814 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46815 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46816 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46817 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46818 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46819 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46820 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46821 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46822 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46823 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46824 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46825 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46826 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46827 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46828 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46829 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46830 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46831 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46832 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46834 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46835 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46836 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46837 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46838 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46839 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46840 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46841 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46842 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46843 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46844 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46845 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46846 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46847 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46848 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46849 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46850 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46851 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46852 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46853 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46854 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46855 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46856 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46857 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46858 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46859 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46860 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46861 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46862 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46863 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46864 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46865 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46866 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46867 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46868 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46869 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46870 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46871 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46872 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46874 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46876 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46878 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46879 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46880 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46881 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46882 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46883 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46887 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46888 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46889 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46890 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46891 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46893 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46895 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46896 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46897 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46898 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46899 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46900 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46901 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46902 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46904 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46905 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46906 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46907 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46908 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46909 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46910 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46911 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46912 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46913 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46914 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46915 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46916 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46917 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46918 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46919 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46920 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46921 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46922 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46923 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46925 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46926 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46927 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46929 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46931 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46932 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46933 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46934 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46935 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46937 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46938 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
46939 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46940 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46941 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46942 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46944 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46945 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46946 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46947 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46949 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46950 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46951 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46952 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46953 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46954 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46955 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46956 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46957 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46958 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46959 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46960 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46961 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46962 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46963 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46965 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46966 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46967 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46968 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46969 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46970 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46971 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46972 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46973 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46974 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46975 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46976 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46977 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46978 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46979 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46980 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46981 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46982 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46983 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46984 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46985 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46986 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46987 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46988 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46989 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46990 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46991 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46992 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46993 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46994 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46995 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46996 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
46997 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
46998 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46999 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47000 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47001 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47002 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47003 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47004 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47005 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47006 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47007 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47008 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47009 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47010 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
47011 { NULL, NULL, 0, NULL }
47012 };
47013
47014
47015 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47016
47017 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47018 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47019 }
47020 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47021 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47022 }
47023 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47024 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47025 }
47026 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47027 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47028 }
47029 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47030 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47031 }
47032 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47033 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47034 }
47035 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47036 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47037 }
47038 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47039 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47040 }
47041 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47042 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47043 }
47044 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47045 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47046 }
47047 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47048 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47049 }
47050 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47051 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47052 }
47053 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47054 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47055 }
47056 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47057 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47058 }
47059 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47060 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47061 }
47062 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47063 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47064 }
47065 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47066 return (void *)((wxEvent *) ((wxPyEvent *) x));
47067 }
47068 static void *_p_wxListEventTo_p_wxEvent(void *x) {
47069 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47070 }
47071 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47072 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47073 }
47074 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47075 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47076 }
47077 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47078 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47079 }
47080 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47081 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47082 }
47083 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47084 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47085 }
47086 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47087 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47088 }
47089 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47090 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47091 }
47092 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47093 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47094 }
47095 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47096 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47097 }
47098 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47099 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47100 }
47101 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47102 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47103 }
47104 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47105 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47106 }
47107 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47108 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47109 }
47110 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47111 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47112 }
47113 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47114 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47115 }
47116 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47117 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47118 }
47119 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47120 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47121 }
47122 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47123 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47124 }
47125 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47126 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47127 }
47128 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47129 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47130 }
47131 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47132 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47133 }
47134 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47135 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47136 }
47137 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47138 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47139 }
47140 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47141 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47142 }
47143 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47144 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47145 }
47146 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47147 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47148 }
47149 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47150 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47151 }
47152 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47153 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47154 }
47155 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47156 return (void *)((wxEvent *) ((wxShowEvent *) x));
47157 }
47158 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47159 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47160 }
47161 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47162 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47163 }
47164 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47165 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47166 }
47167 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47168 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47169 }
47170 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47171 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47172 }
47173 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47174 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47175 }
47176 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47177 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47178 }
47179 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47180 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47181 }
47182 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47183 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47184 }
47185 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47186 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47187 }
47188 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47189 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47190 }
47191 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47192 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47193 }
47194 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47195 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47196 }
47197 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47198 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47199 }
47200 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47201 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47202 }
47203 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47204 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47205 }
47206 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47207 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47208 }
47209 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47210 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47211 }
47212 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47213 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47214 }
47215 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47216 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47217 }
47218 static void *_p_wxToolBarTo_p_wxControl(void *x) {
47219 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47220 }
47221 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47222 return (void *)((wxControl *) ((wxPickerBase *) x));
47223 }
47224 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47225 return (void *)((wxControl *) ((wxToggleButton *) x));
47226 }
47227 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47228 return (void *)((wxControl *) ((wxRadioButton *) x));
47229 }
47230 static void *_p_wxToolbookTo_p_wxControl(void *x) {
47231 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47232 }
47233 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47234 return (void *)((wxControl *) ((wxToolBarBase *) x));
47235 }
47236 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47237 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47238 }
47239 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47240 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47241 }
47242 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47243 return (void *)((wxControl *) ((wxComboBox *) x));
47244 }
47245 static void *_p_wxPyControlTo_p_wxControl(void *x) {
47246 return (void *)((wxControl *) ((wxPyControl *) x));
47247 }
47248 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47249 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47250 }
47251 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47252 return (void *)((wxControl *) ((wxScrollBar *) x));
47253 }
47254 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47255 return (void *)((wxControl *) ((wxControlWithItems *) x));
47256 }
47257 static void *_p_wxGaugeTo_p_wxControl(void *x) {
47258 return (void *)((wxControl *) ((wxGauge *) x));
47259 }
47260 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47261 return (void *)((wxControl *) ((wxStaticLine *) x));
47262 }
47263 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47264 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47265 }
47266 static void *_p_wxListbookTo_p_wxControl(void *x) {
47267 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47268 }
47269 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47270 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47271 }
47272 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47273 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47274 }
47275 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47276 return (void *)((wxControl *) ((wxCheckBox *) x));
47277 }
47278 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47279 return (void *)((wxControl *) ((wxRadioBox *) x));
47280 }
47281 static void *_p_wxChoiceTo_p_wxControl(void *x) {
47282 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47283 }
47284 static void *_p_wxListBoxTo_p_wxControl(void *x) {
47285 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47286 }
47287 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47288 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47289 }
47290 static void *_p_wxListViewTo_p_wxControl(void *x) {
47291 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47292 }
47293 static void *_p_wxNotebookTo_p_wxControl(void *x) {
47294 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47295 }
47296 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47297 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47298 }
47299 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47300 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47301 }
47302 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47303 return (void *)((wxControl *) ((wxStaticText *) x));
47304 }
47305 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47306 return (void *)((wxControl *) ((wxStaticBox *) x));
47307 }
47308 static void *_p_wxSliderTo_p_wxControl(void *x) {
47309 return (void *)((wxControl *) ((wxSlider *) x));
47310 }
47311 static void *_p_wxTreebookTo_p_wxControl(void *x) {
47312 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47313 }
47314 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47315 return (void *)((wxControl *) ((wxSpinButton *) x));
47316 }
47317 static void *_p_wxButtonTo_p_wxControl(void *x) {
47318 return (void *)((wxControl *) ((wxButton *) x));
47319 }
47320 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47321 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47322 }
47323 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47324 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47325 }
47326 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47327 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47328 }
47329 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47330 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47331 }
47332 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47333 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47334 }
47335 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47336 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47337 }
47338 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47339 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47340 }
47341 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47342 return (void *)((wxControl *) ((wxTextCtrl *) x));
47343 }
47344 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47345 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47346 }
47347 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47348 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47349 }
47350 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47351 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47352 }
47353 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
47354 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
47355 }
47356 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
47357 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
47358 }
47359 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
47360 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
47361 }
47362 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
47363 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47364 }
47365 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
47366 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47367 }
47368 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
47369 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47370 }
47371 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
47372 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47373 }
47374 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
47375 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47376 }
47377 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
47378 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
47379 }
47380 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
47381 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
47382 }
47383 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
47384 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
47385 }
47386 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
47387 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
47388 }
47389 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
47390 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
47391 }
47392 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
47393 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47394 }
47395 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
47396 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
47397 }
47398 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
47399 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47400 }
47401 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
47402 return (void *)((wxEvtHandler *) ((wxValidator *) x));
47403 }
47404 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
47405 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
47406 }
47407 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
47408 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47409 }
47410 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
47411 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
47412 }
47413 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
47414 return (void *)((wxEvtHandler *) ((wxMenu *) x));
47415 }
47416 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
47417 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
47418 }
47419 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
47420 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
47421 }
47422 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
47423 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47424 }
47425 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
47426 return (void *)((wxEvtHandler *) ((wxWindow *) x));
47427 }
47428 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
47429 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
47430 }
47431 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
47432 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
47433 }
47434 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
47435 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47436 }
47437 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
47438 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47439 }
47440 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
47441 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47442 }
47443 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
47444 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
47445 }
47446 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
47447 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
47448 }
47449 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
47450 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47451 }
47452 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
47453 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
47454 }
47455 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
47456 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47457 }
47458 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
47459 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
47460 }
47461 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
47462 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
47463 }
47464 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
47465 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47466 }
47467 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
47468 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47469 }
47470 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
47471 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47472 }
47473 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
47474 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47475 }
47476 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
47477 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
47478 }
47479 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
47480 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
47481 }
47482 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
47483 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47484 }
47485 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
47486 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47487 }
47488 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
47489 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47490 }
47491 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
47492 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47493 }
47494 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
47495 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47496 }
47497 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
47498 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47499 }
47500 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
47501 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47502 }
47503 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
47504 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
47505 }
47506 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
47507 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
47508 }
47509 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
47510 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
47511 }
47512 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
47513 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47514 }
47515 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
47516 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
47517 }
47518 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
47519 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
47520 }
47521 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
47522 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47523 }
47524 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
47525 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47526 }
47527 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
47528 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47529 }
47530 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
47531 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47532 }
47533 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
47534 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47535 }
47536 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
47537 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47538 }
47539 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
47540 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47541 }
47542 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
47543 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47544 }
47545 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
47546 return (void *)((wxListBox *) ((wxCheckListBox *) x));
47547 }
47548 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
47549 return (void *)((wxButton *) ((wxBitmapButton *) x));
47550 }
47551 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
47552 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
47553 }
47554 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
47555 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
47556 }
47557 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
47558 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
47559 }
47560 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
47561 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
47562 }
47563 static void *_p_wxToolbookTo_p_wxObject(void *x) {
47564 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47565 }
47566 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47567 return (void *)((wxObject *) ((wxSizerItem *) x));
47568 }
47569 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47570 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47571 }
47572 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47573 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47574 }
47575 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47576 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47577 }
47578 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47579 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47580 }
47581 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47582 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47583 }
47584 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47585 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47586 }
47587 static void *_p_wxSizerTo_p_wxObject(void *x) {
47588 return (void *)((wxObject *) ((wxSizer *) x));
47589 }
47590 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47591 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47592 }
47593 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47595 }
47596 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47597 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47598 }
47599 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47600 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47601 }
47602 static void *_p_wxEventTo_p_wxObject(void *x) {
47603 return (void *)((wxObject *) ((wxEvent *) x));
47604 }
47605 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47606 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47607 }
47608 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47609 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47610 }
47611 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47612 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47613 }
47614 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47615 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47616 }
47617 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47618 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47619 }
47620 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47621 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47622 }
47623 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47624 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47625 }
47626 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47627 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47628 }
47629 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47630 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47631 }
47632 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47633 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47634 }
47635 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47636 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47637 }
47638 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47639 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47640 }
47641 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47642 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47643 }
47644 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47645 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47646 }
47647 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47648 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47649 }
47650 static void *_p_wxControlTo_p_wxObject(void *x) {
47651 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47652 }
47653 static void *_p_wxPyControlTo_p_wxObject(void *x) {
47654 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47655 }
47656 static void *_p_wxGaugeTo_p_wxObject(void *x) {
47657 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47658 }
47659 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47660 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47661 }
47662 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47663 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47664 }
47665 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47666 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47667 }
47668 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47669 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47670 }
47671 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47672 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47673 }
47674 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47675 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47676 }
47677 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47678 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47679 }
47680 static void *_p_wxChoiceTo_p_wxObject(void *x) {
47681 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47682 }
47683 static void *_p_wxFSFileTo_p_wxObject(void *x) {
47684 return (void *)((wxObject *) ((wxFSFile *) x));
47685 }
47686 static void *_p_wxPySizerTo_p_wxObject(void *x) {
47687 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47688 }
47689 static void *_p_wxTreebookTo_p_wxObject(void *x) {
47690 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47691 }
47692 static void *_p_wxListViewTo_p_wxObject(void *x) {
47693 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47694 }
47695 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47696 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47697 }
47698 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47699 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47700 }
47701 static void *_p_wxNotebookTo_p_wxObject(void *x) {
47702 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47703 }
47704 static void *_p_wxPyEventTo_p_wxObject(void *x) {
47705 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47706 }
47707 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47708 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47709 }
47710 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47711 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47712 }
47713 static void *_p_wxListbookTo_p_wxObject(void *x) {
47714 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47715 }
47716 static void *_p_wxShowEventTo_p_wxObject(void *x) {
47717 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47718 }
47719 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47721 }
47722 static void *_p_wxSliderTo_p_wxObject(void *x) {
47723 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47724 }
47725 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47726 return (void *)((wxObject *) ((wxMenuItem *) x));
47727 }
47728 static void *_p_wxDateEventTo_p_wxObject(void *x) {
47729 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47730 }
47731 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47732 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47733 }
47734 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47735 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47736 }
47737 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47738 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47739 }
47740 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47741 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47742 }
47743 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47744 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47745 }
47746 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47747 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47748 }
47749 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47750 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47751 }
47752 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47753 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47754 }
47755 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47757 }
47758 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47759 return (void *)((wxObject *) ((wxContextHelp *) x));
47760 }
47761 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
47762 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47763 }
47764 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47765 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47766 }
47767 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47768 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47769 }
47770 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47771 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47772 }
47773 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47774 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47775 }
47776 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47777 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47778 }
47779 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47780 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47781 }
47782 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47783 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47784 }
47785 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47786 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47787 }
47788 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47789 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47790 }
47791 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47792 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47793 }
47794 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47795 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47796 }
47797 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47798 return (void *)((wxObject *) ((wxImageHandler *) x));
47799 }
47800 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47801 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47802 }
47803 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47804 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47805 }
47806 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
47807 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
47808 }
47809 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47810 return (void *)((wxObject *) ((wxEvtHandler *) x));
47811 }
47812 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47813 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47814 }
47815 static void *_p_wxListEventTo_p_wxObject(void *x) {
47816 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47817 }
47818 static void *_p_wxListBoxTo_p_wxObject(void *x) {
47819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47820 }
47821 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47822 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47823 }
47824 static void *_p_wxButtonTo_p_wxObject(void *x) {
47825 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47826 }
47827 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47828 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47829 }
47830 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47831 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47832 }
47833 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47834 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47835 }
47836 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47837 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47838 }
47839 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47840 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47841 }
47842 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47843 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47844 }
47845 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47846 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47847 }
47848 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47850 }
47851 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47852 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47853 }
47854 static void *_p_wxListItemTo_p_wxObject(void *x) {
47855 return (void *)((wxObject *) ((wxListItem *) x));
47856 }
47857 static void *_p_wxImageTo_p_wxObject(void *x) {
47858 return (void *)((wxObject *) ((wxImage *) x));
47859 }
47860 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47861 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47862 }
47863 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47864 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47865 }
47866 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47867 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47868 }
47869 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47870 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47871 }
47872 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47873 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47874 }
47875 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47876 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47877 }
47878 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47879 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47880 }
47881 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47882 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47883 }
47884 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47885 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47886 }
47887 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47888 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47889 }
47890 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47891 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47892 }
47893 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47894 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47895 }
47896 static void *_p_wxWindowTo_p_wxObject(void *x) {
47897 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47898 }
47899 static void *_p_wxMenuTo_p_wxObject(void *x) {
47900 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47901 }
47902 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47904 }
47905 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47906 return (void *)((wxObject *) ((wxFileSystem *) x));
47907 }
47908 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
47909 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47910 }
47911 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47913 }
47914 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47915 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47916 }
47917 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47918 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47919 }
47920 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47921 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47922 }
47923 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47924 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47925 }
47926 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47927 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47928 }
47929 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47930 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47931 }
47932 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47933 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47934 }
47935 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47936 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47937 }
47938 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47939 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47940 }
47941 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47943 }
47944 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47945 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47946 }
47947 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47948 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47949 }
47950 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47951 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47952 }
47953 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47954 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47955 }
47956 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47957 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47958 }
47959 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47960 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47961 }
47962 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47963 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47964 }
47965 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47966 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47967 }
47968 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47969 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47970 }
47971 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47972 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47973 }
47974 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47975 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47976 }
47977 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47979 }
47980 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47981 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47982 }
47983 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47984 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47985 }
47986 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
47987 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
47988 }
47989 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47990 return (void *)((wxWindow *) ((wxMenuBar *) x));
47991 }
47992 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47993 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47994 }
47995 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47996 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47997 }
47998 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47999 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48000 }
48001 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48002 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48003 }
48004 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48005 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48006 }
48007 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48008 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48009 }
48010 static void *_p_wxControlTo_p_wxWindow(void *x) {
48011 return (void *)((wxWindow *) ((wxControl *) x));
48012 }
48013 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48014 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48015 }
48016 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48017 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48018 }
48019 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48020 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48021 }
48022 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48023 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48024 }
48025 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48026 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48027 }
48028 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48029 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48030 }
48031 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48032 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48033 }
48034 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48035 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48036 }
48037 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48038 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48039 }
48040 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48041 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48042 }
48043 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48044 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48045 }
48046 static void *_p_wxListbookTo_p_wxWindow(void *x) {
48047 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48048 }
48049 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48050 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48051 }
48052 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48053 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48054 }
48055 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48056 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48057 }
48058 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48059 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48060 }
48061 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48062 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48063 }
48064 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48065 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48066 }
48067 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48068 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48069 }
48070 static void *_p_wxListViewTo_p_wxWindow(void *x) {
48071 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48072 }
48073 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48074 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48075 }
48076 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48077 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48078 }
48079 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48080 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48081 }
48082 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48083 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48084 }
48085 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48086 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48087 }
48088 static void *_p_wxSliderTo_p_wxWindow(void *x) {
48089 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48090 }
48091 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48092 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48093 }
48094 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48095 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48096 }
48097 static void *_p_wxButtonTo_p_wxWindow(void *x) {
48098 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48099 }
48100 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48101 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48102 }
48103 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48104 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48105 }
48106 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48107 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48108 }
48109 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48110 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48111 }
48112 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48113 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48114 }
48115 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48116 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48117 }
48118 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48119 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48120 }
48121 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48122 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48123 }
48124 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48125 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48126 }
48127 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48128 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48129 }
48130 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48131 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48132 }
48133 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48134 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48135 }
48136 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48137 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48138 }
48139 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48140 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48141 }
48142 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48143 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48144 }
48145 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48146 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48147 }
48148 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48149 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48150 }
48151 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48152 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48153 }
48154 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48155 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48156 }
48157 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48158 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48159 }
48160 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48161 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48162 }
48163 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48164 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48165 }
48166 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48167 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48168 }
48169 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48170 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48171 }
48172 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48173 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48174 }
48175 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48176 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48177 }
48178 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48179 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48180 }
48181 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48182 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48183 }
48184 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48185 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48186 }
48187 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48188 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48189 }
48190 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48191 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48192 }
48193 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48194 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48195 }
48196 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48197 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48198 }
48199 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48200 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48201 }
48202 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48203 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48204 }
48205 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48206 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48207 }
48208 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48209 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48210 }
48211 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48212 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48213 }
48214 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48215 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48216 }
48217 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48218 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48219 }
48220 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48221 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48222 }
48223 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48224 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48225 }
48226 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48227 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48228 }
48229 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48230 return (void *)((wxValidator *) ((wxPyValidator *) x));
48231 }
48232 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48233 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48234 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};
48235 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48236 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48237 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48238 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48239 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48240 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48241 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48242 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48243 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48244 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48245 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48246 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48247 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48248 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48249 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48250 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48251 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48252 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
48253 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48254 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
48255 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
48256 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48257 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
48258 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48259 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48260 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
48261 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
48262 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48263 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48264 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48265 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48266 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48267 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48268 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48269 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48270 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48271 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48272 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48273 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48274 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48275 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48276 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48277 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
48278 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
48279 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48280 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48281 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48282 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48283 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48284 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48285 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48286 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
48287 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
48288 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48289 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48290 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48291 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48292 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48293 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
48294 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
48295 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48296 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48297 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48298 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48299 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48300 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48301 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48302 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48303 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48304 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48305 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48306 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48307 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48308 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48309 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
48310 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
48311 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48312 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
48313 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
48314 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48315 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
48316 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48317 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48318 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48319 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48320 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
48321 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48322 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
48323 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48324 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48325 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48326 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48327 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48328 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48329 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48330 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48331 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48332 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48333 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48334 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48335 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48336 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48337 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48338 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48339 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48340 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
48341 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
48342 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
48343 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
48344 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
48345 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
48346 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
48347 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
48348 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
48349 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
48350 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
48351 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
48352 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
48353 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
48354 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
48355 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
48356 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
48357 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
48358 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
48359 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
48360 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
48361 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
48362 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
48363 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
48364 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
48365 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
48366 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
48367 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
48368 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
48369 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
48370 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
48371 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
48372 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
48373 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
48374 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
48375 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
48376 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
48377 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
48378 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
48379 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
48380 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
48381 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
48382 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
48383 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
48384 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
48385 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
48386 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
48387 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
48388 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
48389 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
48390 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
48391 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
48392 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
48393 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
48394 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
48395 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
48396 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
48397 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
48398 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
48399 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
48400 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
48401 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
48402 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
48403 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
48404 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
48405 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
48406 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
48407 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
48408 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
48409 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
48410
48411 static swig_type_info *swig_type_initial[] = {
48412 &_swigt__p_bool,
48413 &_swigt__p_char,
48414 &_swigt__p_form_ops_t,
48415 &_swigt__p_int,
48416 &_swigt__p_long,
48417 &_swigt__p_unsigned_char,
48418 &_swigt__p_unsigned_int,
48419 &_swigt__p_unsigned_long,
48420 &_swigt__p_void,
48421 &_swigt__p_wxANIHandler,
48422 &_swigt__p_wxAcceleratorTable,
48423 &_swigt__p_wxActivateEvent,
48424 &_swigt__p_wxArrayInt,
48425 &_swigt__p_wxArrayString,
48426 &_swigt__p_wxBMPHandler,
48427 &_swigt__p_wxBitmap,
48428 &_swigt__p_wxBitmapButton,
48429 &_swigt__p_wxBookCtrlBase,
48430 &_swigt__p_wxBookCtrlBaseEvent,
48431 &_swigt__p_wxBoxSizer,
48432 &_swigt__p_wxButton,
48433 &_swigt__p_wxCURHandler,
48434 &_swigt__p_wxCheckBox,
48435 &_swigt__p_wxCheckListBox,
48436 &_swigt__p_wxChildFocusEvent,
48437 &_swigt__p_wxChoice,
48438 &_swigt__p_wxChoicebook,
48439 &_swigt__p_wxChoicebookEvent,
48440 &_swigt__p_wxClipboardTextEvent,
48441 &_swigt__p_wxCloseEvent,
48442 &_swigt__p_wxCollapsiblePane,
48443 &_swigt__p_wxCollapsiblePaneEvent,
48444 &_swigt__p_wxColour,
48445 &_swigt__p_wxColourPickerCtrl,
48446 &_swigt__p_wxColourPickerEvent,
48447 &_swigt__p_wxComboBox,
48448 &_swigt__p_wxCommandEvent,
48449 &_swigt__p_wxContextHelp,
48450 &_swigt__p_wxContextHelpButton,
48451 &_swigt__p_wxContextMenuEvent,
48452 &_swigt__p_wxControl,
48453 &_swigt__p_wxControlWithItems,
48454 &_swigt__p_wxCursor,
48455 &_swigt__p_wxDC,
48456 &_swigt__p_wxDateEvent,
48457 &_swigt__p_wxDatePickerCtrl,
48458 &_swigt__p_wxDateTime,
48459 &_swigt__p_wxDirFilterListCtrl,
48460 &_swigt__p_wxDirPickerCtrl,
48461 &_swigt__p_wxDisplayChangedEvent,
48462 &_swigt__p_wxDropFilesEvent,
48463 &_swigt__p_wxDuplexMode,
48464 &_swigt__p_wxEraseEvent,
48465 &_swigt__p_wxEvent,
48466 &_swigt__p_wxEvtHandler,
48467 &_swigt__p_wxFSFile,
48468 &_swigt__p_wxFileDirPickerEvent,
48469 &_swigt__p_wxFilePickerCtrl,
48470 &_swigt__p_wxFileSystem,
48471 &_swigt__p_wxFlexGridSizer,
48472 &_swigt__p_wxFocusEvent,
48473 &_swigt__p_wxFont,
48474 &_swigt__p_wxFontPickerCtrl,
48475 &_swigt__p_wxFontPickerEvent,
48476 &_swigt__p_wxGBSizerItem,
48477 &_swigt__p_wxGIFHandler,
48478 &_swigt__p_wxGauge,
48479 &_swigt__p_wxGenericDirCtrl,
48480 &_swigt__p_wxGenericDragImage,
48481 &_swigt__p_wxGridBagSizer,
48482 &_swigt__p_wxGridSizer,
48483 &_swigt__p_wxHelpEvent,
48484 &_swigt__p_wxHelpProvider,
48485 &_swigt__p_wxHyperlinkCtrl,
48486 &_swigt__p_wxHyperlinkEvent,
48487 &_swigt__p_wxICOHandler,
48488 &_swigt__p_wxIcon,
48489 &_swigt__p_wxIconizeEvent,
48490 &_swigt__p_wxIdleEvent,
48491 &_swigt__p_wxImage,
48492 &_swigt__p_wxImageHandler,
48493 &_swigt__p_wxImageList,
48494 &_swigt__p_wxIndividualLayoutConstraint,
48495 &_swigt__p_wxInitDialogEvent,
48496 &_swigt__p_wxItemContainer,
48497 &_swigt__p_wxJPEGHandler,
48498 &_swigt__p_wxKeyEvent,
48499 &_swigt__p_wxLayoutConstraints,
48500 &_swigt__p_wxListBox,
48501 &_swigt__p_wxListEvent,
48502 &_swigt__p_wxListItem,
48503 &_swigt__p_wxListItemAttr,
48504 &_swigt__p_wxListView,
48505 &_swigt__p_wxListbook,
48506 &_swigt__p_wxListbookEvent,
48507 &_swigt__p_wxMaximizeEvent,
48508 &_swigt__p_wxMemoryDC,
48509 &_swigt__p_wxMenu,
48510 &_swigt__p_wxMenuBar,
48511 &_swigt__p_wxMenuEvent,
48512 &_swigt__p_wxMenuItem,
48513 &_swigt__p_wxMouseCaptureChangedEvent,
48514 &_swigt__p_wxMouseCaptureLostEvent,
48515 &_swigt__p_wxMouseEvent,
48516 &_swigt__p_wxMoveEvent,
48517 &_swigt__p_wxNavigationKeyEvent,
48518 &_swigt__p_wxNcPaintEvent,
48519 &_swigt__p_wxNotebook,
48520 &_swigt__p_wxNotebookEvent,
48521 &_swigt__p_wxNotifyEvent,
48522 &_swigt__p_wxObject,
48523 &_swigt__p_wxPCXHandler,
48524 &_swigt__p_wxPNGHandler,
48525 &_swigt__p_wxPNMHandler,
48526 &_swigt__p_wxPaintEvent,
48527 &_swigt__p_wxPaletteChangedEvent,
48528 &_swigt__p_wxPaperSize,
48529 &_swigt__p_wxPickerBase,
48530 &_swigt__p_wxPoint,
48531 &_swigt__p_wxPyApp,
48532 &_swigt__p_wxPyCommandEvent,
48533 &_swigt__p_wxPyControl,
48534 &_swigt__p_wxPyEvent,
48535 &_swigt__p_wxPyImageHandler,
48536 &_swigt__p_wxPyListCtrl,
48537 &_swigt__p_wxPySizer,
48538 &_swigt__p_wxPyTreeCtrl,
48539 &_swigt__p_wxPyTreeItemData,
48540 &_swigt__p_wxPyValidator,
48541 &_swigt__p_wxQueryNewPaletteEvent,
48542 &_swigt__p_wxRadioBox,
48543 &_swigt__p_wxRadioButton,
48544 &_swigt__p_wxRect,
48545 &_swigt__p_wxScrollBar,
48546 &_swigt__p_wxScrollEvent,
48547 &_swigt__p_wxScrollWinEvent,
48548 &_swigt__p_wxSetCursorEvent,
48549 &_swigt__p_wxShowEvent,
48550 &_swigt__p_wxSimpleHelpProvider,
48551 &_swigt__p_wxSize,
48552 &_swigt__p_wxSizeEvent,
48553 &_swigt__p_wxSizer,
48554 &_swigt__p_wxSizerItem,
48555 &_swigt__p_wxSlider,
48556 &_swigt__p_wxSpinButton,
48557 &_swigt__p_wxSpinCtrl,
48558 &_swigt__p_wxSpinEvent,
48559 &_swigt__p_wxStaticBitmap,
48560 &_swigt__p_wxStaticBox,
48561 &_swigt__p_wxStaticBoxSizer,
48562 &_swigt__p_wxStaticLine,
48563 &_swigt__p_wxStaticText,
48564 &_swigt__p_wxStdDialogButtonSizer,
48565 &_swigt__p_wxString,
48566 &_swigt__p_wxSysColourChangedEvent,
48567 &_swigt__p_wxTGAHandler,
48568 &_swigt__p_wxTIFFHandler,
48569 &_swigt__p_wxTextAttr,
48570 &_swigt__p_wxTextCtrl,
48571 &_swigt__p_wxTextUrlEvent,
48572 &_swigt__p_wxToggleButton,
48573 &_swigt__p_wxToolBar,
48574 &_swigt__p_wxToolBarBase,
48575 &_swigt__p_wxToolBarToolBase,
48576 &_swigt__p_wxToolbook,
48577 &_swigt__p_wxToolbookEvent,
48578 &_swigt__p_wxTreeEvent,
48579 &_swigt__p_wxTreeItemId,
48580 &_swigt__p_wxTreebook,
48581 &_swigt__p_wxTreebookEvent,
48582 &_swigt__p_wxUpdateUIEvent,
48583 &_swigt__p_wxValidator,
48584 &_swigt__p_wxVisualAttributes,
48585 &_swigt__p_wxWindow,
48586 &_swigt__p_wxWindowBase,
48587 &_swigt__p_wxWindowCreateEvent,
48588 &_swigt__p_wxWindowDestroyEvent,
48589 &_swigt__p_wxXPMHandler,
48590 };
48591
48592 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48593 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48594 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48595 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48596 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48597 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48598 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48599 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48600 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48601 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48602 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48603 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48604 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}};
48605 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}};
48606 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}};
48607 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}};
48608 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48609 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48610 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}};
48611 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48612 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48613 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
48614 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
48615 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
48616 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48617 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48618 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48619 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
48620 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
48621 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48622 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48623 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48624 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48625 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48626 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48627 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
48628 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}};
48629 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48630 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
48631 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}};
48632 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}};
48633 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48634 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48635 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48636 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48637 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
48638 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48639 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48640 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48641 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48642 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48643 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48644 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48645 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
48646 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
48647 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48648 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48649 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48650 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48651 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48652 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
48653 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
48654 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48655 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48656 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48657 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48658 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48659 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48660 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48661 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48662 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48663 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48664 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
48665 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}};
48666 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48667 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48668 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48669 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
48670 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}};
48671 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48672 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48673 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
48674 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48675 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48676 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48677 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48678 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48679 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48680 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}};
48681 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48682 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
48683 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48684 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48685 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}};
48686 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48687 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}};
48688 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48689 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48690 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48691 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48692 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48693 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48694 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48695 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48696 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48697 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48698 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}};
48699 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
48700 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48701 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48702 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48703 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48704 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48705 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48706 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48707 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48708 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48709 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48710 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48711 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
48712 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48713 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48714 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48715 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
48716 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48717 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48718 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48719 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48720 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
48721 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48722 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48723 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48724 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
48725 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
48726 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
48727 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
48728 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48729 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
48730 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}};
48731 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
48732 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}};
48733 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48734 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48735 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}};
48736 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48737 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48738 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48739 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48740 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48741 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48742 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48743 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48744 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48745 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48746 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48747 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48748 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48749 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48750 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48751 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48752 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48753 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48754 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48755 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48756 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48757 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48758 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}};
48759 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48760 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48761 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48762 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48763 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48764 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48765 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48766 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}};
48767 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
48768 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}};
48769 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
48770
48771 static swig_cast_info *swig_cast_initial[] = {
48772 _swigc__p_bool,
48773 _swigc__p_char,
48774 _swigc__p_form_ops_t,
48775 _swigc__p_int,
48776 _swigc__p_long,
48777 _swigc__p_unsigned_char,
48778 _swigc__p_unsigned_int,
48779 _swigc__p_unsigned_long,
48780 _swigc__p_void,
48781 _swigc__p_wxANIHandler,
48782 _swigc__p_wxAcceleratorTable,
48783 _swigc__p_wxActivateEvent,
48784 _swigc__p_wxArrayInt,
48785 _swigc__p_wxArrayString,
48786 _swigc__p_wxBMPHandler,
48787 _swigc__p_wxBitmap,
48788 _swigc__p_wxBitmapButton,
48789 _swigc__p_wxBookCtrlBase,
48790 _swigc__p_wxBookCtrlBaseEvent,
48791 _swigc__p_wxBoxSizer,
48792 _swigc__p_wxButton,
48793 _swigc__p_wxCURHandler,
48794 _swigc__p_wxCheckBox,
48795 _swigc__p_wxCheckListBox,
48796 _swigc__p_wxChildFocusEvent,
48797 _swigc__p_wxChoice,
48798 _swigc__p_wxChoicebook,
48799 _swigc__p_wxChoicebookEvent,
48800 _swigc__p_wxClipboardTextEvent,
48801 _swigc__p_wxCloseEvent,
48802 _swigc__p_wxCollapsiblePane,
48803 _swigc__p_wxCollapsiblePaneEvent,
48804 _swigc__p_wxColour,
48805 _swigc__p_wxColourPickerCtrl,
48806 _swigc__p_wxColourPickerEvent,
48807 _swigc__p_wxComboBox,
48808 _swigc__p_wxCommandEvent,
48809 _swigc__p_wxContextHelp,
48810 _swigc__p_wxContextHelpButton,
48811 _swigc__p_wxContextMenuEvent,
48812 _swigc__p_wxControl,
48813 _swigc__p_wxControlWithItems,
48814 _swigc__p_wxCursor,
48815 _swigc__p_wxDC,
48816 _swigc__p_wxDateEvent,
48817 _swigc__p_wxDatePickerCtrl,
48818 _swigc__p_wxDateTime,
48819 _swigc__p_wxDirFilterListCtrl,
48820 _swigc__p_wxDirPickerCtrl,
48821 _swigc__p_wxDisplayChangedEvent,
48822 _swigc__p_wxDropFilesEvent,
48823 _swigc__p_wxDuplexMode,
48824 _swigc__p_wxEraseEvent,
48825 _swigc__p_wxEvent,
48826 _swigc__p_wxEvtHandler,
48827 _swigc__p_wxFSFile,
48828 _swigc__p_wxFileDirPickerEvent,
48829 _swigc__p_wxFilePickerCtrl,
48830 _swigc__p_wxFileSystem,
48831 _swigc__p_wxFlexGridSizer,
48832 _swigc__p_wxFocusEvent,
48833 _swigc__p_wxFont,
48834 _swigc__p_wxFontPickerCtrl,
48835 _swigc__p_wxFontPickerEvent,
48836 _swigc__p_wxGBSizerItem,
48837 _swigc__p_wxGIFHandler,
48838 _swigc__p_wxGauge,
48839 _swigc__p_wxGenericDirCtrl,
48840 _swigc__p_wxGenericDragImage,
48841 _swigc__p_wxGridBagSizer,
48842 _swigc__p_wxGridSizer,
48843 _swigc__p_wxHelpEvent,
48844 _swigc__p_wxHelpProvider,
48845 _swigc__p_wxHyperlinkCtrl,
48846 _swigc__p_wxHyperlinkEvent,
48847 _swigc__p_wxICOHandler,
48848 _swigc__p_wxIcon,
48849 _swigc__p_wxIconizeEvent,
48850 _swigc__p_wxIdleEvent,
48851 _swigc__p_wxImage,
48852 _swigc__p_wxImageHandler,
48853 _swigc__p_wxImageList,
48854 _swigc__p_wxIndividualLayoutConstraint,
48855 _swigc__p_wxInitDialogEvent,
48856 _swigc__p_wxItemContainer,
48857 _swigc__p_wxJPEGHandler,
48858 _swigc__p_wxKeyEvent,
48859 _swigc__p_wxLayoutConstraints,
48860 _swigc__p_wxListBox,
48861 _swigc__p_wxListEvent,
48862 _swigc__p_wxListItem,
48863 _swigc__p_wxListItemAttr,
48864 _swigc__p_wxListView,
48865 _swigc__p_wxListbook,
48866 _swigc__p_wxListbookEvent,
48867 _swigc__p_wxMaximizeEvent,
48868 _swigc__p_wxMemoryDC,
48869 _swigc__p_wxMenu,
48870 _swigc__p_wxMenuBar,
48871 _swigc__p_wxMenuEvent,
48872 _swigc__p_wxMenuItem,
48873 _swigc__p_wxMouseCaptureChangedEvent,
48874 _swigc__p_wxMouseCaptureLostEvent,
48875 _swigc__p_wxMouseEvent,
48876 _swigc__p_wxMoveEvent,
48877 _swigc__p_wxNavigationKeyEvent,
48878 _swigc__p_wxNcPaintEvent,
48879 _swigc__p_wxNotebook,
48880 _swigc__p_wxNotebookEvent,
48881 _swigc__p_wxNotifyEvent,
48882 _swigc__p_wxObject,
48883 _swigc__p_wxPCXHandler,
48884 _swigc__p_wxPNGHandler,
48885 _swigc__p_wxPNMHandler,
48886 _swigc__p_wxPaintEvent,
48887 _swigc__p_wxPaletteChangedEvent,
48888 _swigc__p_wxPaperSize,
48889 _swigc__p_wxPickerBase,
48890 _swigc__p_wxPoint,
48891 _swigc__p_wxPyApp,
48892 _swigc__p_wxPyCommandEvent,
48893 _swigc__p_wxPyControl,
48894 _swigc__p_wxPyEvent,
48895 _swigc__p_wxPyImageHandler,
48896 _swigc__p_wxPyListCtrl,
48897 _swigc__p_wxPySizer,
48898 _swigc__p_wxPyTreeCtrl,
48899 _swigc__p_wxPyTreeItemData,
48900 _swigc__p_wxPyValidator,
48901 _swigc__p_wxQueryNewPaletteEvent,
48902 _swigc__p_wxRadioBox,
48903 _swigc__p_wxRadioButton,
48904 _swigc__p_wxRect,
48905 _swigc__p_wxScrollBar,
48906 _swigc__p_wxScrollEvent,
48907 _swigc__p_wxScrollWinEvent,
48908 _swigc__p_wxSetCursorEvent,
48909 _swigc__p_wxShowEvent,
48910 _swigc__p_wxSimpleHelpProvider,
48911 _swigc__p_wxSize,
48912 _swigc__p_wxSizeEvent,
48913 _swigc__p_wxSizer,
48914 _swigc__p_wxSizerItem,
48915 _swigc__p_wxSlider,
48916 _swigc__p_wxSpinButton,
48917 _swigc__p_wxSpinCtrl,
48918 _swigc__p_wxSpinEvent,
48919 _swigc__p_wxStaticBitmap,
48920 _swigc__p_wxStaticBox,
48921 _swigc__p_wxStaticBoxSizer,
48922 _swigc__p_wxStaticLine,
48923 _swigc__p_wxStaticText,
48924 _swigc__p_wxStdDialogButtonSizer,
48925 _swigc__p_wxString,
48926 _swigc__p_wxSysColourChangedEvent,
48927 _swigc__p_wxTGAHandler,
48928 _swigc__p_wxTIFFHandler,
48929 _swigc__p_wxTextAttr,
48930 _swigc__p_wxTextCtrl,
48931 _swigc__p_wxTextUrlEvent,
48932 _swigc__p_wxToggleButton,
48933 _swigc__p_wxToolBar,
48934 _swigc__p_wxToolBarBase,
48935 _swigc__p_wxToolBarToolBase,
48936 _swigc__p_wxToolbook,
48937 _swigc__p_wxToolbookEvent,
48938 _swigc__p_wxTreeEvent,
48939 _swigc__p_wxTreeItemId,
48940 _swigc__p_wxTreebook,
48941 _swigc__p_wxTreebookEvent,
48942 _swigc__p_wxUpdateUIEvent,
48943 _swigc__p_wxValidator,
48944 _swigc__p_wxVisualAttributes,
48945 _swigc__p_wxWindow,
48946 _swigc__p_wxWindowBase,
48947 _swigc__p_wxWindowCreateEvent,
48948 _swigc__p_wxWindowDestroyEvent,
48949 _swigc__p_wxXPMHandler,
48950 };
48951
48952
48953 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48954
48955 static swig_const_info swig_const_table[] = {
48956 {0, 0, 0, 0.0, 0, 0}};
48957
48958 #ifdef __cplusplus
48959 }
48960 #endif
48961 /* -----------------------------------------------------------------------------
48962 * Type initialization:
48963 * This problem is tough by the requirement that no dynamic
48964 * memory is used. Also, since swig_type_info structures store pointers to
48965 * swig_cast_info structures and swig_cast_info structures store pointers back
48966 * to swig_type_info structures, we need some lookup code at initialization.
48967 * The idea is that swig generates all the structures that are needed.
48968 * The runtime then collects these partially filled structures.
48969 * The SWIG_InitializeModule function takes these initial arrays out of
48970 * swig_module, and does all the lookup, filling in the swig_module.types
48971 * array with the correct data and linking the correct swig_cast_info
48972 * structures together.
48973 *
48974 * The generated swig_type_info structures are assigned staticly to an initial
48975 * array. We just loop though that array, and handle each type individually.
48976 * First we lookup if this type has been already loaded, and if so, use the
48977 * loaded structure instead of the generated one. Then we have to fill in the
48978 * cast linked list. The cast data is initially stored in something like a
48979 * two-dimensional array. Each row corresponds to a type (there are the same
48980 * number of rows as there are in the swig_type_initial array). Each entry in
48981 * a column is one of the swig_cast_info structures for that type.
48982 * The cast_initial array is actually an array of arrays, because each row has
48983 * a variable number of columns. So to actually build the cast linked list,
48984 * we find the array of casts associated with the type, and loop through it
48985 * adding the casts to the list. The one last trick we need to do is making
48986 * sure the type pointer in the swig_cast_info struct is correct.
48987 *
48988 * First off, we lookup the cast->type name to see if it is already loaded.
48989 * There are three cases to handle:
48990 * 1) If the cast->type has already been loaded AND the type we are adding
48991 * casting info to has not been loaded (it is in this module), THEN we
48992 * replace the cast->type pointer with the type pointer that has already
48993 * been loaded.
48994 * 2) If BOTH types (the one we are adding casting info to, and the
48995 * cast->type) are loaded, THEN the cast info has already been loaded by
48996 * the previous module so we just ignore it.
48997 * 3) Finally, if cast->type has not already been loaded, then we add that
48998 * swig_cast_info to the linked list (because the cast->type) pointer will
48999 * be correct.
49000 * ----------------------------------------------------------------------------- */
49001
49002 #ifdef __cplusplus
49003 extern "C" {
49004 #if 0
49005 } /* c-mode */
49006 #endif
49007 #endif
49008
49009 #if 0
49010 #define SWIGRUNTIME_DEBUG
49011 #endif
49012
49013 SWIGRUNTIME void
49014 SWIG_InitializeModule(void *clientdata) {
49015 size_t i;
49016 swig_module_info *module_head;
49017 static int init_run = 0;
49018
49019 clientdata = clientdata;
49020
49021 if (init_run) return;
49022 init_run = 1;
49023
49024 /* Initialize the swig_module */
49025 swig_module.type_initial = swig_type_initial;
49026 swig_module.cast_initial = swig_cast_initial;
49027
49028 /* Try and load any already created modules */
49029 module_head = SWIG_GetModule(clientdata);
49030 if (module_head) {
49031 swig_module.next = module_head->next;
49032 module_head->next = &swig_module;
49033 } else {
49034 /* This is the first module loaded */
49035 swig_module.next = &swig_module;
49036 SWIG_SetModule(clientdata, &swig_module);
49037 }
49038
49039 /* Now work on filling in swig_module.types */
49040 #ifdef SWIGRUNTIME_DEBUG
49041 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49042 #endif
49043 for (i = 0; i < swig_module.size; ++i) {
49044 swig_type_info *type = 0;
49045 swig_type_info *ret;
49046 swig_cast_info *cast;
49047
49048 #ifdef SWIGRUNTIME_DEBUG
49049 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49050 #endif
49051
49052 /* if there is another module already loaded */
49053 if (swig_module.next != &swig_module) {
49054 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
49055 }
49056 if (type) {
49057 /* Overwrite clientdata field */
49058 #ifdef SWIGRUNTIME_DEBUG
49059 printf("SWIG_InitializeModule: found type %s\n", type->name);
49060 #endif
49061 if (swig_module.type_initial[i]->clientdata) {
49062 type->clientdata = swig_module.type_initial[i]->clientdata;
49063 #ifdef SWIGRUNTIME_DEBUG
49064 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49065 #endif
49066 }
49067 } else {
49068 type = swig_module.type_initial[i];
49069 }
49070
49071 /* Insert casting types */
49072 cast = swig_module.cast_initial[i];
49073 while (cast->type) {
49074 /* Don't need to add information already in the list */
49075 ret = 0;
49076 #ifdef SWIGRUNTIME_DEBUG
49077 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49078 #endif
49079 if (swig_module.next != &swig_module) {
49080 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49081 #ifdef SWIGRUNTIME_DEBUG
49082 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49083 #endif
49084 }
49085 if (ret) {
49086 if (type == swig_module.type_initial[i]) {
49087 #ifdef SWIGRUNTIME_DEBUG
49088 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49089 #endif
49090 cast->type = ret;
49091 ret = 0;
49092 } else {
49093 /* Check for casting already in the list */
49094 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49095 #ifdef SWIGRUNTIME_DEBUG
49096 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49097 #endif
49098 if (!ocast) ret = 0;
49099 }
49100 }
49101
49102 if (!ret) {
49103 #ifdef SWIGRUNTIME_DEBUG
49104 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49105 #endif
49106 if (type->cast) {
49107 type->cast->prev = cast;
49108 cast->next = type->cast;
49109 }
49110 type->cast = cast;
49111 }
49112 cast++;
49113 }
49114 /* Set entry in modules->types array equal to the type */
49115 swig_module.types[i] = type;
49116 }
49117 swig_module.types[i] = 0;
49118
49119 #ifdef SWIGRUNTIME_DEBUG
49120 printf("**** SWIG_InitializeModule: Cast List ******\n");
49121 for (i = 0; i < swig_module.size; ++i) {
49122 int j = 0;
49123 swig_cast_info *cast = swig_module.cast_initial[i];
49124 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49125 while (cast->type) {
49126 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49127 cast++;
49128 ++j;
49129 }
49130 printf("---- Total casts: %d\n",j);
49131 }
49132 printf("**** SWIG_InitializeModule: Cast List ******\n");
49133 #endif
49134 }
49135
49136 /* This function will propagate the clientdata field of type to
49137 * any new swig_type_info structures that have been added into the list
49138 * of equivalent types. It is like calling
49139 * SWIG_TypeClientData(type, clientdata) a second time.
49140 */
49141 SWIGRUNTIME void
49142 SWIG_PropagateClientData(void) {
49143 size_t i;
49144 swig_cast_info *equiv;
49145 static int init_run = 0;
49146
49147 if (init_run) return;
49148 init_run = 1;
49149
49150 for (i = 0; i < swig_module.size; i++) {
49151 if (swig_module.types[i]->clientdata) {
49152 equiv = swig_module.types[i]->cast;
49153 while (equiv) {
49154 if (!equiv->converter) {
49155 if (equiv->type && !equiv->type->clientdata)
49156 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49157 }
49158 equiv = equiv->next;
49159 }
49160 }
49161 }
49162 }
49163
49164 #ifdef __cplusplus
49165 #if 0
49166 {
49167 /* c-mode */
49168 #endif
49169 }
49170 #endif
49171
49172
49173
49174 #ifdef __cplusplus
49175 extern "C" {
49176 #endif
49177
49178 /* Python-specific SWIG API */
49179 #define SWIG_newvarlink() SWIG_Python_newvarlink()
49180 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49181 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49182
49183 /* -----------------------------------------------------------------------------
49184 * global variable support code.
49185 * ----------------------------------------------------------------------------- */
49186
49187 typedef struct swig_globalvar {
49188 char *name; /* Name of global variable */
49189 PyObject *(*get_attr)(void); /* Return the current value */
49190 int (*set_attr)(PyObject *); /* Set the value */
49191 struct swig_globalvar *next;
49192 } swig_globalvar;
49193
49194 typedef struct swig_varlinkobject {
49195 PyObject_HEAD
49196 swig_globalvar *vars;
49197 } swig_varlinkobject;
49198
49199 SWIGINTERN PyObject *
49200 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49201 return PyString_FromString("<Swig global variables>");
49202 }
49203
49204 SWIGINTERN PyObject *
49205 swig_varlink_str(swig_varlinkobject *v) {
49206 PyObject *str = PyString_FromString("(");
49207 swig_globalvar *var;
49208 for (var = v->vars; var; var=var->next) {
49209 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49210 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49211 }
49212 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49213 return str;
49214 }
49215
49216 SWIGINTERN int
49217 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49218 PyObject *str = swig_varlink_str(v);
49219 fprintf(fp,"Swig global variables ");
49220 fprintf(fp,"%s\n", PyString_AsString(str));
49221 Py_DECREF(str);
49222 return 0;
49223 }
49224
49225 SWIGINTERN void
49226 swig_varlink_dealloc(swig_varlinkobject *v) {
49227 swig_globalvar *var = v->vars;
49228 while (var) {
49229 swig_globalvar *n = var->next;
49230 free(var->name);
49231 free(var);
49232 var = n;
49233 }
49234 }
49235
49236 SWIGINTERN PyObject *
49237 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49238 PyObject *res = NULL;
49239 swig_globalvar *var = v->vars;
49240 while (var) {
49241 if (strcmp(var->name,n) == 0) {
49242 res = (*var->get_attr)();
49243 break;
49244 }
49245 var = var->next;
49246 }
49247 if (res == NULL && !PyErr_Occurred()) {
49248 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49249 }
49250 return res;
49251 }
49252
49253 SWIGINTERN int
49254 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49255 int res = 1;
49256 swig_globalvar *var = v->vars;
49257 while (var) {
49258 if (strcmp(var->name,n) == 0) {
49259 res = (*var->set_attr)(p);
49260 break;
49261 }
49262 var = var->next;
49263 }
49264 if (res == 1 && !PyErr_Occurred()) {
49265 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49266 }
49267 return res;
49268 }
49269
49270 SWIGINTERN PyTypeObject*
49271 swig_varlink_type(void) {
49272 static char varlink__doc__[] = "Swig var link object";
49273 static PyTypeObject varlink_type;
49274 static int type_init = 0;
49275 if (!type_init) {
49276 const PyTypeObject tmp
49277 = {
49278 PyObject_HEAD_INIT(NULL)
49279 0, /* Number of items in variable part (ob_size) */
49280 (char *)"swigvarlink", /* Type name (tp_name) */
49281 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49282 0, /* Itemsize (tp_itemsize) */
49283 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49284 (printfunc) swig_varlink_print, /* Print (tp_print) */
49285 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49286 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49287 0, /* tp_compare */
49288 (reprfunc) swig_varlink_repr, /* tp_repr */
49289 0, /* tp_as_number */
49290 0, /* tp_as_sequence */
49291 0, /* tp_as_mapping */
49292 0, /* tp_hash */
49293 0, /* tp_call */
49294 (reprfunc)swig_varlink_str, /* tp_str */
49295 0, /* tp_getattro */
49296 0, /* tp_setattro */
49297 0, /* tp_as_buffer */
49298 0, /* tp_flags */
49299 varlink__doc__, /* tp_doc */
49300 0, /* tp_traverse */
49301 0, /* tp_clear */
49302 0, /* tp_richcompare */
49303 0, /* tp_weaklistoffset */
49304 #if PY_VERSION_HEX >= 0x02020000
49305 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49306 #endif
49307 #if PY_VERSION_HEX >= 0x02030000
49308 0, /* tp_del */
49309 #endif
49310 #ifdef COUNT_ALLOCS
49311 0,0,0,0 /* tp_alloc -> tp_next */
49312 #endif
49313 };
49314 varlink_type = tmp;
49315 varlink_type.ob_type = &PyType_Type;
49316 type_init = 1;
49317 }
49318 return &varlink_type;
49319 }
49320
49321 /* Create a variable linking object for use later */
49322 SWIGINTERN PyObject *
49323 SWIG_Python_newvarlink(void) {
49324 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49325 if (result) {
49326 result->vars = 0;
49327 }
49328 return ((PyObject*) result);
49329 }
49330
49331 SWIGINTERN void
49332 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49333 swig_varlinkobject *v = (swig_varlinkobject *) p;
49334 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49335 if (gv) {
49336 size_t size = strlen(name)+1;
49337 gv->name = (char *)malloc(size);
49338 if (gv->name) {
49339 strncpy(gv->name,name,size);
49340 gv->get_attr = get_attr;
49341 gv->set_attr = set_attr;
49342 gv->next = v->vars;
49343 }
49344 }
49345 v->vars = gv;
49346 }
49347
49348 SWIGINTERN PyObject *
49349 SWIG_globals() {
49350 static PyObject *_SWIG_globals = 0;
49351 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
49352 return _SWIG_globals;
49353 }
49354
49355 /* -----------------------------------------------------------------------------
49356 * constants/methods manipulation
49357 * ----------------------------------------------------------------------------- */
49358
49359 /* Install Constants */
49360 SWIGINTERN void
49361 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
49362 PyObject *obj = 0;
49363 size_t i;
49364 for (i = 0; constants[i].type; ++i) {
49365 switch(constants[i].type) {
49366 case SWIG_PY_POINTER:
49367 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
49368 break;
49369 case SWIG_PY_BINARY:
49370 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
49371 break;
49372 default:
49373 obj = 0;
49374 break;
49375 }
49376 if (obj) {
49377 PyDict_SetItemString(d, constants[i].name, obj);
49378 Py_DECREF(obj);
49379 }
49380 }
49381 }
49382
49383 /* -----------------------------------------------------------------------------*/
49384 /* Fix SwigMethods to carry the callback ptrs when needed */
49385 /* -----------------------------------------------------------------------------*/
49386
49387 SWIGINTERN void
49388 SWIG_Python_FixMethods(PyMethodDef *methods,
49389 swig_const_info *const_table,
49390 swig_type_info **types,
49391 swig_type_info **types_initial) {
49392 size_t i;
49393 for (i = 0; methods[i].ml_name; ++i) {
49394 const char *c = methods[i].ml_doc;
49395 if (c && (c = strstr(c, "swig_ptr: "))) {
49396 int j;
49397 swig_const_info *ci = 0;
49398 const char *name = c + 10;
49399 for (j = 0; const_table[j].type; ++j) {
49400 if (strncmp(const_table[j].name, name,
49401 strlen(const_table[j].name)) == 0) {
49402 ci = &(const_table[j]);
49403 break;
49404 }
49405 }
49406 if (ci) {
49407 size_t shift = (ci->ptype) - types;
49408 swig_type_info *ty = types_initial[shift];
49409 size_t ldoc = (c - methods[i].ml_doc);
49410 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
49411 char *ndoc = (char*)malloc(ldoc + lptr + 10);
49412 if (ndoc) {
49413 char *buff = ndoc;
49414 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
49415 if (ptr) {
49416 strncpy(buff, methods[i].ml_doc, ldoc);
49417 buff += ldoc;
49418 strncpy(buff, "swig_ptr: ", 10);
49419 buff += 10;
49420 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
49421 methods[i].ml_doc = ndoc;
49422 }
49423 }
49424 }
49425 }
49426 }
49427 }
49428
49429 #ifdef __cplusplus
49430 }
49431 #endif
49432
49433 /* -----------------------------------------------------------------------------*
49434 * Partial Init method
49435 * -----------------------------------------------------------------------------*/
49436
49437 #ifdef __cplusplus
49438 extern "C"
49439 #endif
49440 SWIGEXPORT void SWIG_init(void) {
49441 PyObject *m, *d;
49442
49443 /* Fix SwigMethods to carry the callback ptrs when needed */
49444 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
49445
49446 m = Py_InitModule((char *) SWIG_name, SwigMethods);
49447 d = PyModule_GetDict(m);
49448
49449 SWIG_InitializeModule(0);
49450 SWIG_InstallConstants(d,swig_const_table);
49451
49452
49453 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
49454 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
49455 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
49456 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
49457 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
49458 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
49459 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
49460 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
49461 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
49462 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
49463 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
49464 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
49465 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
49466 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
49467 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
49468 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
49469 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
49470 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
49471 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
49472 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
49473 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
49474 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
49475 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
49476 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
49477 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
49478 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
49479 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
49480 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
49481 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
49482 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
49483 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
49484 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
49485 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
49486 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
49487 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
49488 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
49489 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
49490 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
49491 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
49492 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
49493 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
49494 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
49495 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
49496 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
49497 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
49498 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
49499 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
49500 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
49501 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
49502 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
49503 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
49504 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
49505 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
49506 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
49507 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
49508 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
49509 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
49510 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
49511 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
49512 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
49513 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
49514 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
49515 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
49516 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
49517 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
49518 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
49519 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
49520 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
49521 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
49522 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
49523 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
49524 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
49525 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
49526 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
49527 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
49528 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
49529 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
49530 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
49531 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
49532 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
49533 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
49534 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
49535 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
49536 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
49537 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
49538 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
49539 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
49540 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
49541 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
49542 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
49543 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
49544 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
49545 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
49546 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
49547 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
49548 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
49549 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
49550 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
49551 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
49552 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
49553 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
49554 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
49555 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
49556 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
49557 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
49558 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
49559 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
49560 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
49561 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
49562 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
49563 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
49564 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
49565 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
49566 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
49567 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
49568 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
49569 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
49570 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
49571 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
49572 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
49573 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
49574 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
49575 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
49576 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
49577 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
49578 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
49579 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
49580 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
49581 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
49582 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
49583 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
49584 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
49585 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
49586 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
49587 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
49588 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
49589 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
49590 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49591 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49592 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49593 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49594 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49595 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49596 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49597 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49598 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49599 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49600 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49601 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49602 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49603 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49604 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49605 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49606 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49607 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49608 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
49609 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
49610 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
49611 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
49612 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
49613 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49614 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49615 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49616 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49617 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49618 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49619 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49620 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49621 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
49622 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
49623 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49624 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49625 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49626 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49627 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49628 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49629 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49630 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49631 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49632 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49633 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49634 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49635 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49636 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49637 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49638 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49639 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49640 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49641 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49642 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49643 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49644 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49645 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49646 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49647 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49648 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49649 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49650 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49651 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49652 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49653 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49654 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49655 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49656 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49657 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49658 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49659 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49660 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49661 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49662 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49663 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49664 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49665 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49666 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49667 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49668 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49669 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
49670 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
49671 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49672 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49673 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49674 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49675 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49676 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49677 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49678 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49679 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49680 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49681 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49682 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49683 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49684 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49685 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49686 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49687 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49688 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49689 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49690 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49691 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49692 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49693 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49694 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49695 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49696 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49697 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49698 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49699 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49700 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49701 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49702 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49703 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49704 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49705 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49706 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49707 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49708 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49709 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49710 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49711 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49712 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49713
49714 // Map renamed classes back to their common name for OOR
49715 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49716
49717 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49718 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49719 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49720 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49721 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49722 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49723 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49724 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49725 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49726 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49727 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49728 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49729 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49730 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49731 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
49732 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49733 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49734 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49735 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49736 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49737 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49738 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49739 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49740 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49741 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49742 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49743 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49744 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49745 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49746 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49747 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49748 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49749 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49750 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49751 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49752 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49753 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49754 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49755 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49756 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49757 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49758 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49759 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49760 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49761 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49762 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49763 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49764 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49765 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49766 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49767 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49768 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49769 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49770 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49771 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
49772 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
49773
49774 // Map renamed classes back to their common name for OOR
49775 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49776 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49777
49778 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49779 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49780 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49781 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49782 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49783 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
49784 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49785 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
49786 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49787 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49788 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
49789
49790 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49791
49792 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49793 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49794 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49795 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49796 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49797 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
49798 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49799 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
49800 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49801 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49802 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
49803 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49804 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
49805 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49806 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49807 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49808 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49809 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49810 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49811 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49812 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49813 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49814 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49815 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49816 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49817 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49818 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49819 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49820 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49821 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49822 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49823 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49824 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49825 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49826 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49827 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49828 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49829 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49830 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49831 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49832 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49833 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49834 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
49835 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
49836 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
49837 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
49838 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
49839 }
49840